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

opentelemetrytracer: Log (debug) the number of exported spans #37828

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joaopgrassi
Copy link
Contributor

Commit Message: Log (debug) the number of exported spans

Additional Description:

Adds a debug log message containing the number of (about to be) exported spans. This is helpful in troubleshooting for cases where the configuration looks "correct" but no spans are seen in the tracing back-end. The stats sink could be used, but that only exports via OTLP/gRPC which is not always possible.
Risk Level: Low
Testing: Manual and Unit tests
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@joaopgrassi joaopgrassi force-pushed the otel-tracer-log-num-exported-spans branch from 586b2d4 to 3528896 Compare December 27, 2024 11:35
@joaopgrassi
Copy link
Contributor Author

CC @wbpcode I thought about adding this, as I have been experiencing some users having problems with Istio where the config "looks OK" but no spans are received by the back-end. Having such log can help in troubleshooting.

I saw there's a OTel stat sink, but that can only be exported via gRPC which is not always helpful, specially for those who use a back-end that does not support OTLP/gRPC. I opened a separated issue for it: #37826

Copy link
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall with simple comments.

changelogs/current.yaml Outdated Show resolved Hide resolved
Signed-off-by: Joao Grassi <[email protected]>
Signed-off-by: Joao Grassi <[email protected]>
@joaopgrassi joaopgrassi force-pushed the otel-tracer-log-num-exported-spans branch from 627876c to 00dfe76 Compare January 3, 2025 08:31
@joaopgrassi
Copy link
Contributor Author

Sorry, had to force push because I forgot to sign-off the commits.

@joaopgrassi joaopgrassi requested a review from wbpcode January 3, 2025 08:32
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