-
Notifications
You must be signed in to change notification settings - Fork 867
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
Move SpanKey to internal package #4869
Move SpanKey to internal package #4869
Conversation
For the record: this PR will break the bridging with the previous instrumentation-api versions; but since it's still alpha maybe breaking changes are okay. |
@lmolkova does this cause any issues for your use case(s)? |
@trask thanks for the heads up! I can work around it. I have a small concern around it: assuming I don't use I also understand that public API is a big pain and if making it internal can get instrumentation-api closer to stability, it's probably more important. And once (if) layering and suppression lands in the cross-language spec, we'll expose it back in some way. |
And more to
if my understanding is correct, instrumentation-api is a super-useful convenience layer, but it probably has limitations compared to the direct usage of tracing and metrics APIs. If I want to go low lever and use them directly, I'd still need all the knobs to control everything that instrumentation-api can control. |
I want to remind you that spec explicitly discourages direct access to context keys:
Also in context Trace API:
I think this recommendation is applicable here as well |
@iNikem |
👍 |
Co-authored-by: Trask Stalnaker <[email protected]>
This is probably a class that we don't want to expose in
instrumentation-api
's public API.