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

Attach metadata to root span and entire propagate in the entire hierarchy #180

Closed
wants to merge 1 commit into from

Conversation

dotansimha
Copy link
Contributor

Related:
#178 (comment)

With this PR, new custom metadata can be attached to every root SpanContext created. This metadata is propagated to every child span within that context.

It uses dyn Any to allow developers to pass any kind of data.

The metadata is also available in SpanRecord, and a Reporter can use it and decide how/what to report.

I tested it with my project, and this seems to work pretty well. I'm implementing a custom flow where multiple reporters are defined, and each one is associated with an endpoint in my project - so this way I can distinguish what Reporter to use.

Signed-off-by: Dotan Simha <dotansimha@gmail.com>
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