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

sdk-common: add Context #391

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Dec 1, 2023

Reference Link
Spec https://opentelemetry.io/docs/specs/otel/context
Java implementation Context.java

We will use this context to carry span details, etc.

@iRevive iRevive added the module:sdk Features and improvements to the sdk module label Dec 1, 2023
@NthPortal
Copy link
Contributor

thoughts on just using VaultContext, which is currently in the tests for core I believe?

@iRevive
Copy link
Contributor Author

iRevive commented Dec 7, 2023

thoughts on just using VaultContext, which is currently in the tests for core I believe?

It's not 'debug-friendly' :( I can think of several scenarios where you would like to dump the whole context into the console to figure out what's happening there.

While we can make a key have a debug name (your version of the VaultContext.Key has it), the VaultContext cannot have a meaningful toString.

@iRevive
Copy link
Contributor Author

iRevive commented Dec 12, 2023

I will merge these changes as is to unblock further development. If there are any concerns, we can mitigate them afterward.

@iRevive iRevive merged commit 9999b5f into typelevel:main Dec 12, 2023
10 checks passed
@iRevive iRevive deleted the sdk-common/context branch December 12, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:sdk Features and improvements to the sdk module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants