package
0.0.0-20241023220700-795e40450fc4
Repository: https://github.com/krixlion/dev_forum-lib.git
Documentation: pkg.go.dev

# Functions

ExtractMetadataFromContext extracts traceparent id from given context and returns it in a map following a format {"traceparent": "<id>"}.
InitProvider initializes the global meter and tracer providers and returns a func used to close exporters running in the background or an error if the initialization failed.
InjectMetadataIntoContext takes in a map following a format {"traceparent": "<id>"} and returns a new context with the metadata appended.
SetSpanErr records given error to the span and sets the span's status as Error with err.Error() as the description.