-
Notifications
You must be signed in to change notification settings - Fork 821
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
chore: use span interface from API #2075
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2075 +/- ##
=======================================
Coverage 93.03% 93.03%
=======================================
Files 154 154
Lines 5976 5976
Branches 1246 1246
=======================================
Hits 5560 5560
Misses 416 416
|
This seems to be inconsistent now.
Please note the subtle difference in the APIs, e.g. there is |
yes
Class span implements the
It is an interface https://github.com/dyladan/opentelemetry-js/blob/span-processor-interface/packages/opentelemetry-tracing/src/export/ReadableSpan.ts#L29
As long as an implementation which satisfies the interface is used, it should work. |
Well that's true but if you want to access any detail from The existing SpanProcessors in this repo have no need for I'm not sure if we really want to remove this functionality to avoid issues caused by a mixed version setup. |
This might not be needed once #2073 is merged anyway |
it was merged, does it mean it is not needed now or ? |
Probably. I'll close for now but not delete the branch until we release with pinned versions and ensure the problem is actually fixed. |
In #2065 an issue was raised that compilation can fail if multiple versions of
tracing
are installed because theSpanProcessor
interface refers to the concreteSpan
class instead of the interface from the API.Using the interface makes this module more backwards compatible.