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

3.x Backport of scope/baggage fix #8244

Merged
merged 6 commits into from
Jan 18, 2024

Conversation

tjquinno
Copy link
Member

Description

Resolves #8211

Backport of PR #8225 - see the description there for full information.

Documentation

Bug fix - no doc impact.

@tjquinno tjquinno self-assigned this Jan 16, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 16, 2024
@tjquinno tjquinno marked this pull request as draft January 16, 2024 22:19
ljnelson
ljnelson previously approved these changes Jan 16, 2024
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

Couple of minor comments

@@ -27,6 +27,10 @@
<artifactId>helidon-tracing-opentelemetry</artifactId>
<name>Helidon Tracing Open Telemetry</name>

<properties>
<version.lib.opentelemetry-sdk-extension-autoconfigure>1.22.0-alpha</version.lib.opentelemetry-sdk-extension-autoconfigure>
Copy link
Member

Choose a reason for hiding this comment

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

(I assume we're OK with this property at this level, and not in dependencies/pom.xml as would normally be the case.)

Copy link
Member Author

Choose a reason for hiding this comment

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

My understanding is that for "tangential" dependencies we don't want to load up dependencies/pom.xml with them.

Now, maybe OTel is becoming central enough that we do want them there but ideally there should be direct dependencies on OTel only from one (maybe two?) artifacts.

Maybe that's just for integrations and this usage is less tangential than those.

@tomas-langer @romain-grecourt Thoughts, folks?

@tjquinno tjquinno marked this pull request as ready for review January 18, 2024 00:20
}

void baggage(String key, String value) {
values.put(key, new HBaggageEntry(value, new HBaggageEntryMetadata("")));
Copy link
Member

Choose a reason for hiding this comment

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

Not thread safe. OK?

@tjquinno tjquinno merged commit 9cae35d into helidon-io:helidon-3.x Jan 18, 2024
12 checks passed
@tjquinno tjquinno deleted the 3.x-baggage-and-span-scopes branch January 18, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.x Backport of #8187 - Telemetry scopes are not closed properly when using baggage
2 participants