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

Create a tracing layer doing JSON output and Sentry at once #1382

Closed
wants to merge 2 commits into from

Conversation

Swatinem
Copy link
Member

Using composition to chain the JSON output and the Sentry layer means that both layers are capturing span attributes, duplicating that work.

This pretty much copy-pasted the code of both these layers and combines them, thus avoiding doing all the SpanAttribute capturing twice.


TBH, I don’t think this might be fully worth it, as copy-pasting all this code over looks really horrible :-(

Also consolidates all the usage sites and removes unused feature flags
Using composition to chain the JSON output and the Sentry layer means that both layers are capturing span attributes, duplicating that work.

This pretty much copy-pasted the code of both these layers and combines them, thus avoiding doing all the `SpanAttribute` capturing twice.
Copy link
Contributor

@loewenheim loewenheim left a comment

Choose a reason for hiding this comment

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

Oof. I'm honestly not a fan.

@Swatinem Swatinem closed this Mar 13, 2024
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