use of io.opencensus.trace.SpanContext in project instrumentation-java by census-instrumentation.
the class BinaryFormatImplTest method testSpanContextConversion.
private void testSpanContextConversion(SpanContext spanContext) throws SpanContextParseException {
SpanContext propagatedBinarySpanContext = binaryFormat.fromByteArray(binaryFormat.toByteArray(spanContext));
assertWithMessage("BinaryFormat propagated context is not equal with the initial context.").that(propagatedBinarySpanContext).isEqualTo(spanContext);
}
Aggregations