Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtelShutdown ¶
func InitOpenTelemetry ¶
func InitOpenTelemetry(ctx context.Context, serviceName string) OtelShutdown
InitOpenTelemetry sets up the OpenTelemetry plumbing so it's ready to use. It requires a context.Context and service name string that is the name of your service or application. TODO: should even this be overrideable via envvars? Returns a func() that encapuslates clean shutdown.
Click to show internal directories.
Click to hide internal directories.