Skip to content

Open Telemetry (OTel) exporter that outputs via the golang slog library

License

Notifications You must be signed in to change notification settings

subnova/slog-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go slog exporter

This is a tiny library that provides an OpenTelemetry exporter that emits traces via Go's slog package. This is intended to be used for development purposes when you want to see traces in your terminal.

Traces that are batched together will be sorted by their start time. However, traces that are emitted individually will be printed in the order they are received. Traces emitted in different batches will be interleaved.

When using the default slog handler, timestamps are added by go's standard logger instead of using the timestamps in the trace. Therefore, the timestamps will be for when the trace was emitted, not when the span started.

About

Open Telemetry (OTel) exporter that outputs via the golang slog library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages