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

Otel integration #17

Merged
merged 11 commits into from
Mar 20, 2023
Merged

Otel integration #17

merged 11 commits into from
Mar 20, 2023

Conversation

pmchung
Copy link
Member

@pmchung pmchung commented Mar 1, 2023

Initialize tracing in a separate bean so the tracing instance can be injected into the contrib libraries

Copy link

@juliorenner juliorenner left a comment

Choose a reason for hiding this comment

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

It looks good to me overall

Copy link

@juliorenner juliorenner left a comment

Choose a reason for hiding this comment

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

LGTM overall

public Optional<String> getTraceId() {
if (this.span.isPresent()) {
SpanContext spanContext = this.span.get().getSpanContext();
return Optional.of(

Choose a reason for hiding this comment

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

weird that we have to manually generate the traceID, isn't it provided in the span context?

Copy link
Member Author

Choose a reason for hiding this comment

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

the SpanContext only provided methods to access only the parts of the full trace id

@pmchung pmchung marked this pull request as ready for review March 20, 2023 16:57
@pmchung pmchung merged commit 019cf10 into sandbox Mar 20, 2023
@pmchung pmchung deleted the otel-integration branch March 20, 2023 16:57
pmchung added a commit that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants