telemetry

package
v0.5.0-dev2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 14 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 tot "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 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