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

Provide ways to include new attributes to span #308

Closed
ArthurSens opened this issue Sep 8, 2022 · 0 comments · Fixed by #323
Closed

Provide ways to include new attributes to span #308

ArthurSens opened this issue Sep 8, 2022 · 0 comments · Fixed by #323
Assignees

Comments

@ArthurSens
Copy link
Contributor

ArthurSens commented Sep 8, 2022

For preview environments, for example, we used to add a new attribute preview.domain so we can use it to filter traces from different preview environments.

How it was done with jsonnet:

local processorsConfig = if withPreviewEnvironment then
|||
processors:
attributes:
actions:
- key: 'preview.domain'
value: %(domain)s
action: insert
||| % {
domain: config.previewEnvironment.domain,
} else '',

Our installer should be able to add attributes as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant