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

Exclude metadata #3

Open
skeet70 opened this issue Dec 11, 2024 · 1 comment
Open

Exclude metadata #3

skeet70 opened this issue Dec 11, 2024 · 1 comment

Comments

@skeet70
Copy link

skeet70 commented Dec 11, 2024

I have a json subscriber and I'm flattening spans. Instead of ending up with whatever the last spans name was at the top, I'd like to have a collapsed version of all the names along the way. I've written a function to get that collapsed name from whatever the current span is when it's called, but tracing doesn't allow for dynamic span names, so I can't use it directly.

It'd be nice to have an option to skip logging specific metadata fields (like "name"), so I could include my "contexts" field that has all the names collapsed.

@mladedav
Copy link
Owner

The name is the only additional metadata field other than the fields you explicitly set in the span! macro. Is that what you mean?

Or do you want a way to exclude some normal span fields from the output?

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

No branches or pull requests

2 participants