-
Notifications
You must be signed in to change notification settings - Fork 582
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
Use tracer and meter test helpers from the OTEL repository instead of the internal ones #414
Use tracer and meter test helpers from the OTEL repository instead of the internal ones #414
Conversation
FYI, looks like from next version, the test helper packages in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks solid 👍
Thanks for digging into this!
instrumentation/github.com/Shopify/sarama/otelsarama/producer_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm overall in favor of this, but the Event
addition in #413 makes me think perhaps we should ensure that we have fully-working helper implementations before relying on the main repo. Otherwise we may find ourselves in a situation where multiple releases need to happen in order to properly test an addition in this repo.
I guess |
@Aneurysm9 are you good with merging this and possibly opening an issue to address the concerns you raised? |
Yup, I'm good. It looks like the main repo has more in the |
For some time, the test helpers have existed in parallel in both
otel
andcontrib
repositories. Although helpers were functionally very similar in both repositories, not all helpers have been exported from the mainotel
repository, which resulted in some duplication of helper methods.This is no longer the case, as helpers for both tracer and meter are now "stabilized" and exported in the main
otel
repository (go.opentelemetry.io/otel/api/trace/tracetest
andgo.opentelemetry.io/otel/api/metric/metrictest
as of current version0.13.0
). This makes it possible to replace internal helpers incontrib
by the ones exported fromotel
repo and subsequently to remove internal helpers, resolving in cleaner and slimmer codebase.Changes include:
go mod
related changes in affected modulesResolves #385 and effectively resolves #31, #43 as well