Skip to content

Create 'otel.extension.library.version' attribute in all spans#371

Closed
bradAtTraceable wants to merge 2 commits intomainfrom
ENG-21292
Closed

Create 'otel.extension.library.version' attribute in all spans#371
bradAtTraceable wants to merge 2 commits intomainfrom
ENG-21292

Conversation

@bradAtTraceable
Copy link
Contributor

Because the otel.library.version span attribute contains the OTEL version, rather than our version, this PR is introducing a new attribute: 'otel.extension.library.version', which will contain the version of the Hypertrace agent.

Copy link
Contributor

@shashank11p shashank11p left a comment

Choose a reason for hiding this comment

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

We can maybe add this in https://github.com/hypertrace/javaagent/blob/main/otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/processor/AddTagsSpanProcessor.java#L39, so that we don't have to add it in every instrumentation framework, just at one place, and for any new frameworks in the future we do not need to remember and take care of adding this.

@bradAtTraceable
Copy link
Contributor Author

bradAtTraceable commented Sep 9, 2022

@shashank11p I'll give that a try. I didn't like the idea of making the changes in so many places, I was trying to instrument the OTEL code which set the otel.library.version attribute, but it proved to be impossible.

@bradAtTraceable bradAtTraceable deleted the ENG-21292 branch September 19, 2022 13:58
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