o11y

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "chat-roulette"

	HoneycombEndpoint          = "api.honeycomb.io:443"
	HTTPHeaderHoneycombTeam    = "x-honeycomb-team"
	HTTPHeaderHoneycombDataset = "x-honeycomb-dataset"
)

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(level string, jsonFormat bool) (context.Context, hclog.Logger)

CreateLogger returns an annotated logger

func NewBufferedLogger

func NewBufferedLogger() (hclog.Logger, *bytes.Buffer)

NewBufferedLogger returns a logger writing to a buffer.

This should only be used in tests.

func NewTracerProvider

func NewTracerProvider(cfg *config.TracingConfig) (*sdktrace.TracerProvider, error)

NewTracerProvider creates an OpenTelemetry TracerProvider.

func ShutdownTracer

func ShutdownTracer(ctx context.Context, logger hclog.Logger, tp *sdktrace.TracerProvider)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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