Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOpenTelemetryNotEnabled = errors.New("OTEL_ENABLED is not set to true")
)
Functions ¶
func GetServiceName ¶
func GetServiceName() string
GetServiceName combines the values of the environment variables OTEL_SERVICE_NAME_PREFIX and OTEL_SERVICE_NAME with fallback to "m8" and "version.Name"
func GetSpan ¶
func GetSpan(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
GetSpan creates a span and a context.Context containing the newly-created span with default attributes set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.