opentelemetry-go-contrib icon indicating copy to clipboard operation
opentelemetry-go-contrib copied to clipboard

Add open telemetry severity hook integration for zerolog

Open AkhigbeEromo opened this issue 8 months ago • 3 comments

This PR introduces the otelzerolog package, which provides a SeverityHook to bridge the logging capabilities of Zerolog with OpenTelemetry. The following key features are included:

Changes

  • Added config struct to handle configuration options.
  • Implemented Option interface and related functions (WithVersion, WithSchemaURL, WithLoggerProvider).
  • Created NewSeverityHook function to initialize a SeverityHook.
  • Defined SeverityHook struct to perform the logging bridge functionality.

Part of https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5405

AkhigbeEromo avatar Jun 18 '24 22:06 AkhigbeEromo