Spanimplementation that uses OpenTelemetry's
Spanto provide tracing capabilities to an application.
start() should result in an
end() being called. Only when the last
end() is called
will the OpenTelemetry span actually be ended. This is because
Scopes that are kept active should be closed
before ending the span, or memory leaks can occur. This is also the reason the
scopes are kept in a
|Constructor and Description|
Creates the span, based on the
|Modifier and Type||Method and Description|
Ends the span.
Records an exception to the span.
Starts the Span.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OpenTelemetrySpan(io.opentelemetry.api.trace.SpanBuilder spanBuilder)
SpanBuilderwill supply the
start()method is invoked.
spanBuilder- The provider of the
public Span start()
public void end()
Copyright © 2010–2022. All rights reserved.