We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The TraceContext interface accepts nullable values on sampled flag.
The problem is if you do not set that value you'll get NPE because of the ternary condition on the .build() method.
@Override public TraceContext build() { if (StringUtils.isNotEmpty(this.parentId)) { return new OtelTraceContext( SpanContext.createFromRemoteParent(this.traceId, this.spanId, this.sampled ? TraceFlags.getSampled() : TraceFlags.getDefault(), TraceState.getDefault()), null); } return new OtelTraceContext( SpanContext.create(this.traceId, this.spanId, this.sampled ? TraceFlags.getSampled() : TraceFlags.getDefault(), TraceState.getDefault()), null); }
The text was updated successfully, but these errors were encountered:
just offered a simple fix for this #910
Sorry, something went wrong.
No branches or pull requests
The TraceContext interface accepts nullable values on sampled flag.
The problem is if you do not set that value you'll get NPE because of the ternary condition on the .build() method.
The text was updated successfully, but these errors were encountered: