public class TraceComponent extends Object implements ComponentEventContext
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.component.location.ComponentLocation |
getComponentLocation() |
io.opentelemetry.context.Context |
getContext() |
Instant |
getEndTime() |
String |
getErrorMessage() |
String |
getEventContextId() |
String |
getLocation() |
String |
getName() |
io.opentelemetry.api.trace.SpanKind |
getSpanKind() |
String |
getSpanName() |
Instant |
getStartTime() |
io.opentelemetry.api.trace.StatusCode |
getStatusCode() |
Map<String,String> |
getTags() |
String |
getTransactionId() |
static TraceComponent |
of(org.mule.runtime.api.component.Component component) |
static TraceComponent |
of(org.mule.runtime.api.component.location.ComponentLocation location) |
static TraceComponent |
of(String name) |
static TraceComponent |
of(String name,
org.mule.runtime.api.component.location.ComponentLocation location) |
TraceComponent |
withComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation) |
TraceComponent |
withContext(io.opentelemetry.context.Context val) |
TraceComponent |
withEndTime(Instant endTime) |
TraceComponent |
withErrorMessage(String val) |
TraceComponent |
withEventContextId(String eventContextId) |
TraceComponent |
withLocation(String val) |
TraceComponent |
withSpanKind(io.opentelemetry.api.trace.SpanKind val) |
TraceComponent |
withSpanName(String val) |
TraceComponent |
withStartTime(Instant startTime) |
TraceComponent |
withStatsCode(io.opentelemetry.api.trace.StatusCode statusCode) |
TraceComponent |
withTags(Map<String,String> val) |
TraceComponent |
withTransactionId(String val) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontextCopedPath, contextNestingLevel, contextScopedLocation, contextScopedLocationFor, contextScopedPath, getEventContextPrimaryId, prevContextScopedPathpublic static TraceComponent of(String name)
public static TraceComponent of(String name, org.mule.runtime.api.component.location.ComponentLocation location)
public static TraceComponent of(org.mule.runtime.api.component.Component component)
public static TraceComponent of(org.mule.runtime.api.component.location.ComponentLocation location)
public io.opentelemetry.api.trace.SpanKind getSpanKind()
public String getName()
public String getTransactionId()
public String getSpanName()
public io.opentelemetry.context.Context getContext()
public String getLocation()
getLocation in interface ComponentEventContextpublic String getErrorMessage()
public Instant getStartTime()
public Instant getEndTime()
public String getEventContextId()
getEventContextId in interface ComponentEventContextpublic org.mule.runtime.api.component.location.ComponentLocation getComponentLocation()
public TraceComponent withTags(Map<String,String> val)
public TraceComponent withTransactionId(String val)
public TraceComponent withSpanName(String val)
public TraceComponent withLocation(String val)
public TraceComponent withContext(io.opentelemetry.context.Context val)
public TraceComponent withSpanKind(io.opentelemetry.api.trace.SpanKind val)
public TraceComponent withErrorMessage(String val)
public TraceComponent withStatsCode(io.opentelemetry.api.trace.StatusCode statusCode)
public TraceComponent withStartTime(Instant startTime)
public TraceComponent withEndTime(Instant endTime)
public TraceComponent withEventContextId(String eventContextId)
public TraceComponent withComponentLocation(org.mule.runtime.api.component.location.ComponentLocation componentLocation)
public io.opentelemetry.api.trace.StatusCode getStatusCode()
Copyright © 2024 AVIO Consulting. All rights reserved.