Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

user_AuthenticatedId column empty in appInsights requests and traces

未关闭
#4,770 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
azure, java, spring

调研方向

从官方 Azure Monitor 文档以及报告中引用的 ApplicationInsights-Java-Repros 示例开始,然后使用 Java Agent 3.7.3、Spring 4.3 和所示的 OpenTelemetry 属性重现该行为。跟踪 enduser.id 和 enduser.pseudo.id 如何针对请求和 trace 进行处理。当 user_AuthenticatedId 和相关字段都能一致地填充时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Java
星标
326
派生
223
平均合并
23 小时 6 分钟
30 天内合并 PR
13

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/ApplicationInsights-Java 的其他 Issue

查看 microsoft/ApplicationInsights-Java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。