Skip to content

Commit 9a47e2c

Browse files
committed
up
1 parent 18a0065 commit 9a47e2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

agent/instrumentation/applicationinsights-web-2.3/src/test/java/ApplicationInsightsWebTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void setRequestUser() {
6969
.hasAttributesSatisfyingExactly(
7070
equalTo(CodeIncubatingAttributes.CODE_NAMESPACE, "Code"),
7171
equalTo(CodeIncubatingAttributes.CODE_FUNCTION, "setUser"),
72-
equalTo(EnduserIncubatingAttributes.ENDUSER_ID, "myuser")),
72+
equalTo(EnduserIncubatingAttributes.ENDUSER_PSEUDO_ID, "myuser")),
7373
span ->
7474
span.hasName("Code.internalSetUser")
7575
.hasKind(INTERNAL)

smoke-tests/apps/OpenTelemetryApiSupport/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/OpenTelemetryApiSupportTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void testApi() throws Exception {
5050

5151
assertThat(telemetry.rdEnvelope.getTags())
5252
.hasEntrySatisfying("ai.internal.sdkVersion", v -> assertThat(v).startsWith("java:3."));
53-
assertThat(telemetry.rdEnvelope.getTags()).containsEntry("ai.user.id", "myuser");
53+
assertThat(telemetry.rdEnvelope.getTags()).containsEntry("ai.user.authUserId", "myuser");
54+
assertThat(telemetry.rdEnvelope.getTags()).containsEntry("ai.user.id", "mypseudo");
5455
}
5556

5657
@Test

0 commit comments

Comments
 (0)