Documentation ¶
Index ¶
- Variables
- func AddMessageSendEvent(span trace.Span, iid int64, uncompressedLen int64, compressedLen int64) trace.Span
- func BoolAttribute(key string, value bool) attribute.KeyValue
- func FromContext(ctx context.Context) trace.Span
- func Int64Attribute(key string, value int64) attribute.KeyValue
- func NewContext(parent context.Context, s trace.Span) context.Context
- func StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- func StringAttribute(key, value string) attribute.KeyValue
Constants ¶
This section is empty.
Variables ¶
View Source
var TracingEnabled = false
TracingEnabled tracks whether tracing is enabled in your application.
Functions ¶
func AddMessageSendEvent ¶
func AddMessageSendEvent(span trace.Span, iid int64, uncompressedLen int64, compressedLen int64) trace.Span
AddMessageSendEvent adds a message send event to the provided span. This function is useful for tracking the sending of messages within a trace.
func FromContext ¶
FromContext is a wrapper which returns a no-op span if tracing is disabled.
func Int64Attribute ¶
Int64Attribute --
func NewContext ¶
NewContext is a wrapper which returns back the parent context if tracing is disabled.
func StartSpan ¶
func StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
StartSpan is a wrapper over the OpenTelemetry package method. This is to allow us to skip calling that particular method if tracing has been disabled.
func StringAttribute ¶
StringAttribute --
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.