Skip to content

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

@lgiuliani80

Description

@lgiuliani80

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions