Skip to content

Commit 8e74e0e

Browse files
committed
fix logback tests
1 parent 08a316c commit 8e74e0e

File tree

1 file changed

+6
-6
lines changed
  • instrumentation/logback/logback-appender-1.0/library/src/slf4j2ApiTest/java/io/opentelemetry/instrumentation/logback/appender/v1_0

1 file changed

+6
-6
lines changed

instrumentation/logback/logback-appender-1.0/library/src/slf4j2ApiTest/java/io/opentelemetry/instrumentation/logback/appender/v1_0/Slf4j2Test.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void keyValue() {
6161
.hasResource(resource)
6262
.hasInstrumentationScope(instrumentationScopeInfo)
6363
.hasBody("log message 1")
64-
.hasTotalAttributeCount(12) // 4 code attributes + 8 key value pairs
64+
.hasTotalAttributeCount(11) // 3 code attributes + 8 key value pairs
6565
.hasAttributesSatisfying(
6666
equalTo(AttributeKey.stringKey("string key"), "string value"),
6767
equalTo(AttributeKey.booleanKey("boolean key"), true),
@@ -90,7 +90,7 @@ void multipleMarkers() {
9090
.hasResource(resource)
9191
.hasInstrumentationScope(instrumentationScopeInfo)
9292
.hasBody("log message 1")
93-
.hasTotalAttributeCount(5) // 4 code attributes + 1 marker
93+
.hasTotalAttributeCount(4) // 3 code attributes + 1 marker
9494
.hasAttributesSatisfying(
9595
equalTo(
9696
AttributeKey.stringArrayKey("logback.marker"),
@@ -115,7 +115,7 @@ void arguments() {
115115
.hasInstrumentationScope(instrumentationScopeInfo)
116116
.hasBody(
117117
"log message 'world' and 3.141592653589793, bool true, long 9223372036854775807")
118-
.hasTotalAttributeCount(6)
118+
.hasTotalAttributeCount(5)
119119
.hasAttributesSatisfying(
120120
equalTo(
121121
AttributeKey.stringArrayKey("log.body.parameters"),
@@ -148,7 +148,7 @@ void logstash() {
148148
.hasResource(resource)
149149
.hasInstrumentationScope(instrumentationScopeInfo)
150150
.hasBody("log message 1")
151-
.hasTotalAttributeCount(7) // 4 code attributes + 3 markers
151+
.hasTotalAttributeCount(6) // 3 code attributes + 3 markers
152152
.hasAttributesSatisfying(
153153
equalTo(AttributeKey.stringKey("field1"), "value1"),
154154
equalTo(AttributeKey.longKey("field2"), 2L),
@@ -186,7 +186,7 @@ void logstashVariousValues() {
186186
.hasResource(resource)
187187
.hasInstrumentationScope(instrumentationScopeInfo)
188188
.hasBody("log message 1")
189-
.hasTotalAttributeCount(18) // 4 code attributes + 14 fields (including map keys)
189+
.hasTotalAttributeCount(17) // 3 code attributes + 14 fields (including map keys)
190190
.hasAttributesSatisfying(
191191
equalTo(AttributeKey.longKey("field1"), 1L),
192192
equalTo(AttributeKey.doubleKey("field2"), 2.0),
@@ -231,7 +231,7 @@ void logstashEmptyAndNullValues() {
231231
.hasResource(resource)
232232
.hasInstrumentationScope(instrumentationScopeInfo)
233233
.hasBody("log message 1")
234-
.hasTotalAttributeCount(4) // 4 code attributes
234+
.hasTotalAttributeCount(3) // 3 code attributes
235235
);
236236
}
237237
}

0 commit comments

Comments
 (0)