Documentation ¶
Index ¶
- Constants
- func CreateLogger(level string, jsonFormat bool) (context.Context, hclog.Logger)
- func NewBufferedLogger() (hclog.Logger, *bytes.Buffer)
- func NewTracerProvider(cfg *config.TracingConfig) (*sdktrace.TracerProvider, error)
- func ShutdownTracer(ctx context.Context, logger hclog.Logger, tp *sdktrace.TracerProvider)
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 ¶
CreateLogger returns an annotated logger
func NewBufferedLogger ¶
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.
Click to show internal directories.
Click to hide internal directories.