otelplay

package module
v0.0.0-...-95eac5a Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureOpentelemetry

func ConfigureOpentelemetry(ctx context.Context, conf *Config) func()

ConfigureOpentelemetry configures Opentelemetry to export spans to Uptrace, Jaeger, or console depending on environment variables.

You can use it to run examples, but don't use it in your applications. Instead, use uptrace-go or opentelemetry-go directly. See https://uptrace.dev/get/opentelemetry-go.html

func PrintTraceID

func PrintTraceID(ctx context.Context)

func TraceURL

func TraceURL(span trace.Span) string

Types

type Config

type Config struct {
	ServiceDSN     string
	ServiceName    string
	ServiceVersion string
	Environment    string
}

Jump to

Keyboard shortcuts

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