Fix otlp logging exporter test to be more realistic (#7136)

This commit is contained in:
Trask Stalnaker 2025-02-24 08:24:08 -08:00 committed by GitHub
parent 3c77016788
commit b5daeb0871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 4 deletions

View File

@ -62,6 +62,7 @@ abstract class TestDataExporter<T> {
.setTimestamp(100L, TimeUnit.NANOSECONDS)
.setObservedTimestamp(200L, TimeUnit.NANOSECONDS)
.setAttributes(Attributes.of(stringKey("animal"), "cat", longKey("lives"), 9L))
.setTotalAttributeCount(2)
.setSpanContext(
SpanContext.create(
"12345678876543211234567887654322",
@ -81,6 +82,7 @@ abstract class TestDataExporter<T> {
.setTimestamp(100L, TimeUnit.NANOSECONDS)
.setObservedTimestamp(200L, TimeUnit.NANOSECONDS)
.setAttributes(Attributes.of(booleanKey("important"), true))
.setTotalAttributeCount(1)
.setSpanContext(
SpanContext.create(
"12345678876543211234567887654322",

View File

@ -49,7 +49,6 @@
}
}
],
"droppedAttributesCount": -2,
"traceId": "12345678876543211234567887654322",
"spanId": "8765432112345876"
}
@ -78,7 +77,6 @@
}
}
],
"droppedAttributesCount": -1,
"traceId": "12345678876543211234567887654322",
"spanId": "8765432112345875"
}

View File

@ -47,7 +47,6 @@
}
}
],
"droppedAttributesCount": -2,
"traceId": "12345678876543211234567887654322",
"spanId": "8765432112345876"
}
@ -76,7 +75,6 @@
}
}
],
"droppedAttributesCount": -1,
"traceId": "12345678876543211234567887654322",
"spanId": "8765432112345875"
}