Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lgiuliani80 opened this issue Oct 26, 2021 · 1 comment · Fixed by #1930
Closed
Assignees

Comments

@lgiuliani80
Copy link

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.
@ghost ghost added the Needs: Triage 🔍 label Oct 26, 2021
@trask trask self-assigned this Oct 26, 2021
This was referenced Oct 26, 2021
@trask
Copy link
Member

trask commented Oct 26, 2021

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

@ghost ghost added the Status: Fixed label Oct 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants