telemetry

package
v0.5.0-dev14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIsOpenTelemetryEnabled

func GetIsOpenTelemetryEnabled() bool

GetIsOpenTelemetryEnabled returns if environment variable OTEL_ENABLED is set to "true"

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 GetTracer

func GetTracer() trace.Tracer

GetTracer returns a new traces with the current service name set

func InitOpenTelemetry

func InitOpenTelemetry(ctx context.Context) (func() error, error)

InitOpenTelemetry configures and sets the global MeterProvider and TracerProvider for OpenTelemetry

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL