Fix otlp logging exporter test to be more realistic (#7136)
This commit is contained in:
parent
3c77016788
commit
b5daeb0871
|
@ -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",
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"droppedAttributesCount": -2,
|
||||
"traceId": "12345678876543211234567887654322",
|
||||
"spanId": "8765432112345876"
|
||||
}
|
||||
|
@ -78,7 +77,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"droppedAttributesCount": -1,
|
||||
"traceId": "12345678876543211234567887654322",
|
||||
"spanId": "8765432112345875"
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"droppedAttributesCount": -2,
|
||||
"traceId": "12345678876543211234567887654322",
|
||||
"spanId": "8765432112345876"
|
||||
}
|
||||
|
@ -76,7 +75,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"droppedAttributesCount": -1,
|
||||
"traceId": "12345678876543211234567887654322",
|
||||
"spanId": "8765432112345875"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue