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

feat: Default attributes get added to all spans #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nossrannug
Copy link

This PR allows creating RequestTracing with default attributes that will
get included in all spans created by the middleware. This is useful for
e.g. Datadog where you would always want to include version and
span.type

This PR allows creating RequestTracing with default attributes that will
get included in all spans created by the middleware. This is useful for
e.g. Datadog where you would always want to include `version` and
`span.type`
Copy link
Contributor

@jtescher jtescher left a comment

Choose a reason for hiding this comment

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

This is great @nossrannug. One small thing, could we name the method with_extra_attributes or some other name that suggests the attributes are additive as opposed to a replacement for the existing span attributes that are set by default?

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