Documentation ¶
Index ¶
- Constants
- func InternalTracesToZipkinSpans(td pdata.Traces) ([]*zipkinmodel.SpanModel, error)
- func V1JSONBatchToInternalTraces(blob []byte) (pdata.Traces, error)
- func V1ThriftBatchToInternalTraces(zSpans []*zipkincore.Span) (pdata.Traces, error)
- func V2SpansToInternalTraces(zipkinSpans []*zipkinmodel.SpanModel) (pdata.Traces, error)
- type AttrValDescript
Constants ¶
View Source
const ( LocalEndpointIPv4 = "ipv4" LocalEndpointIPv6 = "ipv6" LocalEndpointPort = "port" LocalEndpointServiceName = "serviceName" RemoteEndpointIPv4 = "zipkin.remoteEndpoint.ipv4" RemoteEndpointIPv6 = "zipkin.remoteEndpoint.ipv6" RemoteEndpointPort = "zipkin.remoteEndpoint.port" RemoteEndpointServiceName = "zipkin.remoteEndpoint.serviceName" StartTimeAbsent = "otel.zipkin.absentField.startTime" )
These constants are the attribute keys used when translating from zipkin format to the internal collector data format.
Variables ¶
This section is empty.
Functions ¶
func InternalTracesToZipkinSpans ¶ added in v0.8.0
func InternalTracesToZipkinSpans(td pdata.Traces) ([]*zipkinmodel.SpanModel, error)
InternalTracesToZipkinSpans translates internal trace data into Zipkin v2 spans. Returns a slice of Zipkin SpanModel's.
func V1JSONBatchToInternalTraces ¶ added in v0.8.0
func V1ThriftBatchToInternalTraces ¶ added in v0.8.0
func V1ThriftBatchToInternalTraces(zSpans []*zipkincore.Span) (pdata.Traces, error)
func V2SpansToInternalTraces ¶ added in v0.8.0
func V2SpansToInternalTraces(zipkinSpans []*zipkinmodel.SpanModel) (pdata.Traces, error)
V2SpansToInternalTraces translates Zipkin v2 spans into internal trace data.
Types ¶
type AttrValDescript ¶ added in v0.8.0
type AttrValDescript struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.