public class TraceProtoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.ByteString |
toProtoSpanId(io.opentelemetry.trace.SpanId spanId)
Converts a SpanId into a protobuf ByteString.
|
static com.google.protobuf.ByteString |
toProtoTraceId(io.opentelemetry.trace.TraceId traceId)
Converts a TraceId into a protobuf ByteString.
|
static io.opentelemetry.sdk.trace.config.TraceConfig |
traceConfigFromProto(io.opentelemetry.proto.trace.v1.TraceConfig traceConfigProto)
Returns a
TraceConfig from the given proto. |
public static com.google.protobuf.ByteString toProtoSpanId(io.opentelemetry.trace.SpanId spanId)
spanId - the spanId to convert.public static com.google.protobuf.ByteString toProtoTraceId(io.opentelemetry.trace.TraceId traceId)
traceId - the traceId to convert.public static io.opentelemetry.sdk.trace.config.TraceConfig traceConfigFromProto(io.opentelemetry.proto.trace.v1.TraceConfig traceConfigProto)
TraceConfig from the given proto.traceConfigProto - proto format TraceConfig.TraceConfig.