iand675 / hs-opentelemetry

OpenTelemetry support for the Haskell programming language
https://iankduncan.com/projects/opentelemetry
BSD 3-Clause "New" or "Revised" License
73 stars 34 forks source link

Added Logging when creating spans or emitting logs drops attributes. Updated Severity Number #133

Closed evanlauer1 closed 4 months ago

evanlauer1 commented 4 months ago

Big Context

Logging Support is being added to hs-opentelemetry. Logging spec

Small (This PR) Context

If creating a Span drops attributes, a warning is now logged. The same goes for emitting logs. SeverityNumber was updated to be an Enum instead of a datatype containing both a number and a name. Helper functions were added for emitting logs from the hs-opentelemetry library.

Testing

evanlauer1 commented 4 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @evanlauer1 and the rest of your teammates on Graphite Graphite