Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
/ otellogr Public archive

Implementation of the logr interface with OpenTelemetry

License

Notifications You must be signed in to change notification settings

dmathieu/otellogr

Repository files navigation

Otel Logr

Go Reference CircleCI

Implementation of the logr interface with OpenTelemetry Go

Usage

logger := otellogr.NewLogger("Tracer Name")
logger = logger.WithAttributes("my-key", "my value") // Sets attributes for all spans created afterwards with this logger

logger.Info("This is some information") // Creates and ends a span with this name
logger.Info(errors.New("An error occured"), "This is some error") // Creates and ends a span with an error Event

About

Implementation of the logr interface with OpenTelemetry

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published