Skip to content

fix(instrument): ensure logger includes span context#30

Open
tomatobet wants to merge 1 commit intou-ctf:mainfrom
tomatobet:fix/instrumentation-logger
Open

fix(instrument): ensure logger includes span context#30
tomatobet wants to merge 1 commit intou-ctf:mainfrom
tomatobet:fix/instrumentation-logger

Conversation

@tomatobet
Copy link
Copy Markdown

Fix #29 by moving the IntoContext after having created the span, this ensures the logger in context actually contains the span

A new test case has been added in reconciler_test.go to validate that the bug has been fixed.

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.

Logger initialization loses instrumentation context in InstrumentedReconciler

1 participant