Class BinaryFormat.NoopBinaryFormat
java.lang.Object
io.opencensus.trace.propagation.BinaryFormat
io.opencensus.trace.propagation.BinaryFormat.NoopBinaryFormat
- Enclosing class:
BinaryFormat
- Since:
- 0.5
-
Field Summary
Fields inherited from class BinaryFormat
NOOP_BINARY_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromByteArray(byte[] bytes) Parses theSpanContextfrom a byte array using the binary format.byte[]toByteArray(SpanContext spanContext) Serializes aSpanContextinto a byte array using the binary format.Methods inherited from class BinaryFormat
fromBinaryValue, getNoopBinaryFormat, toBinaryValue
-
Constructor Details
-
NoopBinaryFormat
private NoopBinaryFormat()
-
-
Method Details
-
toByteArray
Description copied from class:BinaryFormatSerializes aSpanContextinto a byte array using the binary format.- Overrides:
toByteArrayin classBinaryFormat- Parameters:
spanContext- theSpanContextto serialize.- Returns:
- the serialized binary value.
-
fromByteArray
Description copied from class:BinaryFormatParses theSpanContextfrom a byte array using the binary format.- Overrides:
fromByteArrayin classBinaryFormat- Parameters:
bytes- a binary encoded buffer from which theSpanContextwill be parsed.- Returns:
- the parsed
SpanContext.
-