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

Add sem version to remaining instrumentation packages #412

Merged

Conversation

matej-g
Copy link
Contributor

@matej-g matej-g commented Oct 19, 2020

According to #214, every instrumentation should create its respective Tracer and / or Meter with a semantic version. This version should match the repository version, which is achieved by using the SemVer function in contrib.go from the top-level package.

Most of the instrumentation packages already include semantic version, this PR collects and adjusts the remaining ones, which are:

  • instrumentation/github.com/Shopify/sarama/otelsarama
  • instrumentation/github.com/emicklei/go-restful/otelrestful
  • instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo
  • instrumentation/net/http/otelhttp
  • instrumentation/net/http/httptrace/otelhttptrace

It also adds this requirement to the README.md in instrumentation, as per request in the ticket description.

Should be last piece to resolving #214.

Matej Gera added 2 commits October 19, 2020 09:39
Includes:
- instrumentation/github.com/Shopify/sarama/otelsarama
- instrumentation/github.com/emicklei/go-restful/otelrestful
- instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo
- instrumentation/net/http/otelhttp
- instrumentation/net/http/httptrace/otelhttptrace
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

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

🥇

@MrAlias MrAlias merged commit a0dc004 into open-telemetry:master Oct 27, 2020
vchitai pushed a commit to vchitai/opentelemetry-go-contrib that referenced this pull request Nov 13, 2020
…#412)

* Add top-level sem version for remaining instrumentations

Includes:
- instrumentation/github.com/Shopify/sarama/otelsarama
- instrumentation/github.com/emicklei/go-restful/otelrestful
- instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo
- instrumentation/net/http/otelhttp
- instrumentation/net/http/httptrace/otelhttptrace

* Update instrumentation README

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <[email protected]>
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
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.

4 participants