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

Send TraceProcess attributes on resource #260

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

trulfos
Copy link

@trulfos trulfos commented Jan 26, 2023

OpenTelemetry allows setting attributes on the resource associated with each span to attach information about the resource creating those spans, and the spec also details some conventions for naming [1].

So far, this integration has only been sending the service.name attribute as the only value in resource attributes, but for some tracing solutions, it's important to be able to specify other attributes, such as the deployment environment (deployment.environment).

This moves the attributes associated with the TraceProcess from each individual span to the resource level, where they are more likely to belong.

Unfortunately not backwards compatible, and makes life harder for those who need to add attributes to every span (although it should be possible with a custom span completer).

Disclaimer: I'm not to familiar with the TraceProcess abstraction and realize that these changes might not be hitting the nail on the head, but I'd be happy to implement this in another way if you have other suggestions.

[1] https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/

OpenTelemetry allows setting attributes on the resource associated with
each span to attach information about the resource creating those spans,
and the spec also details some conventions for naming [1].

So far, this integration has only been sending the `service.name`
attribute as the only value in resource attributes, but for some tracing
solutions, it's important to be able to specify other attributes, such
as the deployment environment (`deployment.environment`).

This moves the attributes associated with the `TraceProcess` from each
individual span to the resource level, where they are more likely to
belong.

[1] https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/
@janstenpickle
Copy link
Contributor

Sorry I totally missed this, thank you!

@janstenpickle janstenpickle merged commit e00443e into trace4cats:master Aug 9, 2023
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