Class OtelFinishedSpan
java.lang.Object
io.micrometer.tracing.otel.bridge.OtelFinishedSpan
- All Implemented Interfaces:
io.micrometer.tracing.exporter.FinishedSpan
OpenTelemetry implementation of a
FinishedSpan
.- Since:
- 1.0.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.tracing.exporter.FinishedSpan
addLink
(io.micrometer.tracing.Link link) io.micrometer.tracing.exporter.FinishedSpan
static io.micrometer.tracing.exporter.FinishedSpan
fromOtel
(io.opentelemetry.sdk.trace.data.SpanData span) Converts from OTel to Tracing.getError()
io.micrometer.tracing.Span.Kind
getKind()
List<io.micrometer.tracing.Link>
getLinks()
getName()
int
getTags()
io.micrometer.tracing.exporter.FinishedSpan
io.micrometer.tracing.exporter.FinishedSpan
setEvents
(Collection<Map.Entry<Long, String>> events) io.micrometer.tracing.exporter.FinishedSpan
setLocalIp
(String ip) io.micrometer.tracing.exporter.FinishedSpan
io.micrometer.tracing.exporter.FinishedSpan
setRemotePort
(int port) io.micrometer.tracing.exporter.FinishedSpan
setRemoteServiceName
(String remoteServiceName) io.micrometer.tracing.exporter.FinishedSpan
io.micrometer.tracing.exporter.FinishedSpan
setTypedTags
(Map<String, Object> tags) static io.opentelemetry.sdk.trace.data.SpanData
toOtel
(io.micrometer.tracing.exporter.FinishedSpan span) Converts from Tracing to OTel.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micrometer.tracing.exporter.FinishedSpan
getDuration
-
Method Details
-
fromOtel
public static io.micrometer.tracing.exporter.FinishedSpan fromOtel(io.opentelemetry.sdk.trace.data.SpanData span) Converts from OTel to Tracing.- Parameters:
span
- OTel version- Returns:
- Tracing version
-
toOtel
public static io.opentelemetry.sdk.trace.data.SpanData toOtel(io.micrometer.tracing.exporter.FinishedSpan span) Converts from Tracing to OTel.- Parameters:
span
- Tracing version- Returns:
- OTel version
-
setName
- Specified by:
setName
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getName
- Specified by:
getName
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getStartTimestamp
- Specified by:
getStartTimestamp
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getEndTimestamp
- Specified by:
getEndTimestamp
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setTags
- Specified by:
setTags
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getTags
- Specified by:
getTags
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setTypedTags
- Specified by:
setTypedTags
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getTypedTags
- Specified by:
getTypedTags
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setEvents
public io.micrometer.tracing.exporter.FinishedSpan setEvents(Collection<Map.Entry<Long, String>> events) - Specified by:
setEvents
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getEvents
- Specified by:
getEvents
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getSpanId
- Specified by:
getSpanId
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getParentId
- Specified by:
getParentId
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getRemoteIp
- Specified by:
getRemoteIp
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getLocalIp
- Specified by:
getLocalIp
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setLocalIp
- Specified by:
setLocalIp
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setRemotePort
public io.micrometer.tracing.exporter.FinishedSpan setRemotePort(int port) - Specified by:
setRemotePort
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getTraceId
- Specified by:
getTraceId
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getError
- Specified by:
getError
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setError
- Specified by:
setError
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getKind
public io.micrometer.tracing.Span.Kind getKind()- Specified by:
getKind
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getRemoteServiceName
- Specified by:
getRemoteServiceName
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
setRemoteServiceName
- Specified by:
setRemoteServiceName
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
getLinks
- Specified by:
getLinks
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
addLinks
- Specified by:
addLinks
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
addLink
public io.micrometer.tracing.exporter.FinishedSpan addLink(io.micrometer.tracing.Link link) - Specified by:
addLink
in interfaceio.micrometer.tracing.exporter.FinishedSpan
-
toString
-