Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hdonnay
Copy link
Member

@hdonnay hdonnay commented Aug 11, 2023

This implements an slog.Handler that defaults to JSON but seamlessly upgrades to the native journald protocol.

It also automatically extracts pprof labels (if the context.Context is provided) and OpenTelemetry baggage (if the context.Context is provided and a filtering function is provided).

@hdonnay hdonnay force-pushed the hack/slog branch 2 times, most recently from 4de0a0f to a00da84 Compare August 15, 2023 14:14
This implements an slog.Handler that defaults to JSON but seamlessly
upgrades to the native journald protocol.

It also automatically extracts pprof labels (if the context.Context is
provided) and OpenTelemetry baggage (if the context.Context is provided
and a filtering function is provided).

This needs some additional testing and documentation before merge+release.

Signed-off-by: Hank Donnay <[email protected]>
@hdonnay hdonnay marked this pull request as ready for review September 15, 2023 18:03
@hdonnay hdonnay merged commit 0aeefec into quay:main Sep 15, 2023
@hdonnay hdonnay deleted the hack/slog branch February 8, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant