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

internal: add a marker for the first span event for each exception #899

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

Conversation

adriangb
Copy link
Member

This will allow us to differentiate in the backend if this is the span an exception originated inside of vs. subsequent spans it tears through as it goes up the stack

This will allow us to differentiate in the backend if this is the span an exception originated inside of vs. subsequent spans it tears through as it goes up the stack
@adriangb adriangb requested a review from alexmojaki February 25, 2025 19:38
Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2025

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f374dd1
Status: ✅  Deploy successful!
Preview URL: https://19c6165c.logfire-docs.pages.dev
Branch Preview URL: https://dedupe-exceptions.logfire-docs.pages.dev

View logs

# our backend can replicate the behavior of exceptions as OTEL logs, see
# https://github.com/open-telemetry/opentelemetry-specification/pull/4430#issue-2876146448
# and linked issues.
attributes['logfire.exception_first_recorded'] = True
Copy link
Member Author

Choose a reason for hiding this comment

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

@alexmojaki the idea is that we only explode exception span events if this attribute is set

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.

1 participant