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

Latest commit

 

History

History
15 lines (11 loc) · 806 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 806 Bytes

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