Documentation ¶
Index ¶
- Constants
- func ContextWithParentSpan(parent context.Context, span trace.Span) context.Context
- func CopyFromParentSpanAttribute(ctx context.Context, span trace.Span, attributeName string, ...)
- func CopyFromParentSpanAttributeIfNotSet(ctx context.Context, span trace.Span, attributeName string, ...)
- func GetParentSpanAttribute(ctx context.Context, parentAttributeName string) attribute.KeyValue
- func GetParentSpanContext(span trace.Span) trace.SpanContext
- func GetSpanAttribute(span trace.Span, attributeName string) attribute.KeyValue
- func GetSpanAttributeFromCurrentContext(ctx context.Context, attributeName string) attribute.KeyValue
- func MapsToAttributes(maps map[string]interface{}) []attribute.KeyValue
- func MetadataToSet(meta metadata.Metadata) attribute.Set
- func ParentSpanFromContext(ctx context.Context) trace.Span
- func TraceErrFromContext(ctx context.Context, err error) error
- func TraceErrFromSpan(span trace.Span, err error) error
- type AppTracer
- type TracingOpenTelemetry
Constants ¶
View Source
const ( TraceId = "general.trace-id" SpanId = "general.span-id" ParentSpanId = "general.parent-span-id" Traceparent = "general.traceparent" Timestamp = "general.timestamp" ErrorMessage = "general.error_message" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithParentSpan ¶
func GetParentSpanAttribute ¶
func GetParentSpanContext ¶
func GetParentSpanContext(span trace.Span) trace.SpanContext
func GetSpanAttribute ¶
func MapsToAttributes ¶
Types ¶
type AppTracer ¶
func NewAppTracer ¶
func NewAppTracer(name string, options ...trace.TracerOption) AppTracer
type TracingOpenTelemetry ¶
type TracingOpenTelemetry struct { TracerProvider *tracesdk.TracerProvider AppTracer AppTracer // contains filtered or unexported fields }
func NewOtelTracing ¶
func NewOtelTracing( config *config2.OpenTelemetryOptions, environment environemnt.Environment, ) (*TracingOpenTelemetry, error)
Click to show internal directories.
Click to hide internal directories.