Documentation ¶
Index ¶
Constants ¶
const ( TagSpanKind = "span.kind" TagError = "error" TagHTTPStatusMsg = "http.status_message" TagW3CTraceState = "w3c.tracestate" )
Some of the keys used to represent OTLP constructs as tags or annotations in other formats.
const (
ResourceNoServiceName = "OTLPResourceNoServiceName"
)
Constants used for signifying batch-level attribute values where not supplied by OTLP data but required by other protocols.
Variables ¶
This section is empty.
Functions ¶
func StatusCodeFromHTTP ¶
func StatusCodeFromHTTP(httpStatusCode int64) ptrace.StatusCode
StatusCodeFromHTTP takes an HTTP status code and return the appropriate OpenTelemetry status code See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#status
Types ¶
type OpenTracingSpanKind ¶
type OpenTracingSpanKind string
OpenTracingSpanKind are possible values for TagSpanKind and match the OpenTracing conventions: https://github.com/opentracing/specification/blob/main/semantic_conventions.md These values are used for representing span kinds that have no equivalents in OpenCensus format. They are stored as values of TagSpanKind
const ( OpenTracingSpanKindUnspecified OpenTracingSpanKind = "" OpenTracingSpanKindClient OpenTracingSpanKind = "client" OpenTracingSpanKindServer OpenTracingSpanKind = "server" OpenTracingSpanKindConsumer OpenTracingSpanKind = "consumer" OpenTracingSpanKindProducer OpenTracingSpanKind = "producer" OpenTracingSpanKindInternal OpenTracingSpanKind = "internal" )