Class HibernateTracer
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.BaseTracer
-
- io.opentelemetry.javaagent.instrumentation.hibernate.HibernateTracer
-
public class HibernateTracer extends io.opentelemetry.instrumentation.api.tracer.BaseTracer
-
-
Constructor Summary
Constructors Constructor Description HibernateTracer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetInstrumentationName()io.opentelemetry.context.ContextstartSpan(io.opentelemetry.context.Context parentContext, String spanName)io.opentelemetry.context.ContextstartSpan(io.opentelemetry.context.Context parentContext, String operationName, String entityName)static HibernateTracertracer()-
Methods inherited from class io.opentelemetry.instrumentation.api.tracer.BaseTracer
end, end, endExceptionally, endExceptionally, extract, getVersion, inject, onException, shouldStartSpan, spanBuilder, startSpan, startSpan, startSpan, unwrapThrowable, withClientSpan, withConsumerSpan, withServerSpan
-
-
-
-
Method Detail
-
tracer
public static HibernateTracer tracer()
-
startSpan
public io.opentelemetry.context.Context startSpan(io.opentelemetry.context.Context parentContext, String operationName, String entityName)
-
startSpan
public io.opentelemetry.context.Context startSpan(io.opentelemetry.context.Context parentContext, String spanName)
-
getInstrumentationName
protected String getInstrumentationName()
- Specified by:
getInstrumentationNamein classio.opentelemetry.instrumentation.api.tracer.BaseTracer
-
-