Package org.opensearch.telemetry.tracing
Class AbstractSpan
java.lang.Object
org.opensearch.telemetry.tracing.AbstractSpan
- All Implemented Interfaces:
Span
Base span
- Opensearch.internal:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpan(String spanName, Span parentSpan) Base constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.telemetry.tracing.Span
addAttribute, addAttribute, addAttribute, addAttribute, addEvent, endSpan, getSpanId, getTraceId, setError
-
Constructor Details
-
AbstractSpan
Base constructor- Parameters:
spanName- name of the spanparentSpan- span's parent span
-
-
Method Details
-
getParentSpan
Description copied from interface:SpanReturns span's parent span- Specified by:
getParentSpanin interfaceSpan
-
getSpanName
Description copied from interface:SpanReturns the name of theSpan- Specified by:
getSpanNamein interfaceSpan
-