Skip to content

otel: add WithSpanIDField option to Logrus hook - #33

Open
thaJeztah wants to merge 1 commit into
containerd:mainfrom
thaJeztah:otel_WithSpanIDField
Open

thaJeztah wants to merge 1 commit into
containerd:mainfrom
thaJeztah:otel_WithSpanIDField

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Add WithSpanIDField to allow callers to include the active span ID in Logrus entries, independently of the existing trace ID option.

Extend the span-context field tests to cover trace ID, span ID, both fields, disabled options, and entries without a span or context.

Add WithSpanIDField to allow callers to include the active span ID in
Logrus entries, independently of the existing trace ID option.

Extend the span-context field tests to cover trace ID, span ID, both
fields, disabled options, and entries without a span or context.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah

Copy link
Copy Markdown
Member Author

Looking at consolidating implementation; possibly replacing bits of https://github.com/microsoft/hcsshim/blob/v0.15.0-rc.4/internal/log/hook.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants