Skip to content

user_AuthenticatedId column empty in appInsights requests and traces #4770

Description

@jibidus

Expected behavior

After following official documentation, I expect user_AuthenticatedId to be populated in requests table of AppInsights.

Actual behavior

user_AuthenticatedId is still empty (as well was customDimension is not populated).

To Reproduce

Submitting a PR with an example reproducing the issue in this repository would make it easier for the Application Insight maintainers to help you. Before doing this, you have to fork this repository.

System information

Please provide the following information:

  • SDK Version: Agent Azure Monitor Java 3.7.3
  • OS type and version: Linux with Apache Tomcat 9.0
  • Application Server type and version : Web App service with WAR deployment
  • Using spring-boot? Spring Framework 4.3
  • Additional relevant libraries (with version, if applicable): opentelemetry-api version 1.0.0 or 1.63.0 (latest)

Logs

There is no relevant log in /var/log/applicationinsights/applicationinsights.log:

2026-06-24 19:12:03.159Z INFO  c.m.applicationinsights.agent - Java version: 1.8.0_472, vendor: Temurin, home: /usr/lib/jdk/jre   
2026-06-25 05:59:52.235Z WARN  i.o.s.a.ResourceConfiguration - Found reference to io.opentelemetry.sdk.autoconfigure.internal.Envi
2026-06-25 06:00:11.559Z INFO  c.m.applicationinsights.agent - Application Insights Java Agent 3.7.3 started successfully (PID 169
2

Screenshots

This…

log.info("Span valid: {}", span.getSpanContext().isValid());
Span.current().setAttribute("test.attribute", currentUserId);
Span.current().setAttribute("enduser.id", currentUserId);
Span.current().setAttribute("enduser.pseudo.id", currentUserId);

… produces this…

  • test.attribute is populated in customDimensions of requests
  • customDimensions does not contain enduser.id and enduser.pseudo.id properties
  • user_AuthenticatedId is empty
  • user_Id is empty
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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