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
At least locally with Jaeger.
The text was updated successfully, but these errors were encountered:
I can reproduce it in plain Java. Works with 1.22.0. Works with Thread.sleep. Does not work on 1.23.0 without Thread.sleep.
import io.opentelemetry.api.GlobalOpenTelemetry; import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.api.common.Attributes; import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.Tracer; import io.opentelemetry.context.Scope; import java.io.InputStream; import java.util.logging.LogManager; class PlainAssJava { public static void main(String[] args) throws Exception { InputStream in = PlainAssJava.class.getClassLoader().getResourceAsStream("logging.properties"); LogManager.getLogManager().readConfiguration(in); OpenTelemetry openTelemetry = GlobalOpenTelemetry.get(); Tracer tracer = openTelemetry.getTracer("plain-ass-java", "1.0.0"); Span span = tracer.spanBuilder("my span").startSpan(); try (Scope ss = span.makeCurrent()) { // In this scope, the span is the current/active span } finally { span.end(); } // Thread.sleep(10000); } }
Sorry, something went wrong.
Reported upstream. It may be our misuse, but it happens without otel4s in the picture at all:
open-telemetry/opentelemetry-java#5218
Fixed by 1.23.1, which Steward will be serving up soon.
No branches or pull requests
At least locally with Jaeger.
The text was updated successfully, but these errors were encountered: