Skip to content

getSession().setId() called from Application Insights SDK 2.6.2 ignored with agent 3.2.1 #1928

Closed

Description

Expected behavior

The session_Id field in AI tables should match the value overridden by ThreadContext.getRequestTelemetryContext().getHttpRequestTelemetry().getContext().getSession().setId().

Actual behavior

setId is ignored.

To Reproduce

Steps to reproduce the behavior:

  • Create a Java Springboot project.
  • In an API implementation:
    ThreadContext.getRequestTelemetryContext().getHttpRequestTelemetry().getContext().getSession().setId("new-session-id");
  • Perform a HTTP request towards that API
  • session_Id in request table of Application Insights stays empty.

Activity

  1. trask commented on Oct 26, 2021

    @trask
    Member

    thanks for reporting this Luca Gabriele Giuliani (@lgiuliani80)! I've put in a PR to address this and it will be included in the next release

  2. ghost locked as resolved and limited conversation to collaborators on Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions