Skip to content

Commit 4bbf0c4

Browse files
committed
fix log assertions
1 parent abd250f commit 4bbf0c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

instrumentation/logback/logback-appender-1.0/library/src/test/java/io/opentelemetry/instrumentation/logback/appender/v1_0/AbstractOpenTelemetryAppenderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void logNoSpan() {
8989
.hasResource(resource)
9090
.hasInstrumentationScope(instrumentationScopeInfo)
9191
.hasBody("log message 1")
92-
.hasTotalAttributeCount(4));
92+
.hasTotalAttributeCount(3));
9393
}
9494

9595
@Test
@@ -156,7 +156,7 @@ void logContextData() {
156156
.hasResource(resource)
157157
.hasInstrumentationScope(instrumentationScopeInfo)
158158
.hasBody("log message 1")
159-
.hasTotalAttributeCount(2 + 4) // 4 code attributes
159+
.hasTotalAttributeCount(2 + 3) // 3 code attributes
160160
.hasAttributesSatisfying(
161161
equalTo(AttributeKey.stringKey("key1"), "val1"),
162162
equalTo(AttributeKey.stringKey("key2"), "val2")));
@@ -180,7 +180,7 @@ void logLoggerContext() {
180180
.hasResource(resource)
181181
.hasInstrumentationScope(instrumentationScopeInfo)
182182
.hasBody("log message 1")
183-
.hasTotalAttributeCount(1 + 4) // 4 code attributes
183+
.hasTotalAttributeCount(1 + 3) // 3 code attributes
184184
.hasAttributesSatisfying(
185185
equalTo(AttributeKey.stringKey("test-property"), "test-value")));
186186
}

instrumentation/logback/logback-appender-1.0/library/src/test/java/io/opentelemetry/instrumentation/logback/appender/v1_0/LogReplayOpenTelemetryAppenderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ void twoLogs() {
7474
.hasResource(resource)
7575
.hasInstrumentationScope(instrumentationScopeInfo)
7676
.hasBody("log message 1")
77-
.hasTotalAttributeCount(4));
77+
.hasTotalAttributeCount(3));
7878
}
7979
}

0 commit comments

Comments
 (0)