Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

user_AuthenticatedId column empty in appInsights requests and traces

Open
#4,770 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
azure, java, spring

Research direction

Start with the official Azure Monitor documentation and the ApplicationInsights-Java-Repros example referenced in the report, then reproduce the behavior with Java Agent 3.7.3, Spring 4.3, and the shown OpenTelemetry attributes. Trace how enduser.id and enduser.pseudo.id are handled for requests and traces. Done means the expected user_AuthenticatedId and related fields are populated consistently.

Written by the indexing model from the issue text.

Description

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
Dominant language
Java
Stars
327
Forks
222
Avg merge
22h 34m
Merged PRs (30d)
14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/ApplicationInsights-Java

All issues in microsoft/ApplicationInsights-Java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.