Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a noop span around logging #1102

Merged
merged 1 commit into from
Oct 2, 2020
Merged

add a noop span around logging #1102

merged 1 commit into from
Oct 2, 2020

Conversation

bengl
Copy link
Collaborator

@bengl bengl commented Oct 2, 2020

What does this PR do?

Does all internal logging within a NoopSpan, preventing instrumentation of
anything logging related.

Motivation

In debug mode, when logging spans/traces, it's possible to use a logger that
calls instrumented code. This can result in infinite recursions or otherwise
loopy code flow. Surrounding the call with a NoopSpan prevents creating new
spans for logging.

@bengl bengl requested a review from a team as a code owner October 2, 2020 19:44
@bengl bengl changed the title [WIP] add a noop span around logging add a noop span around logging Oct 2, 2020
@bengl bengl merged commit 369fc9f into master Oct 2, 2020
@tlhunter tlhunter deleted the bengl/noop-around-logging branch January 19, 2024 22:14
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.

None yet

2 participants