public class TraceComponent extends Object
| Modifier and Type | Method and Description |
|---|---|
io.opentelemetry.context.Context |
getContext() |
Instant |
getEndTime() |
String |
getErrorMessage() |
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 |
named(String name) |
TraceComponent |
withContext(io.opentelemetry.context.Context val) |
TraceComponent |
withEndTime(Instant endTime) |
TraceComponent |
withErrorMessage(String val) |
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) |
public static TraceComponent named(String name)
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()
public String getErrorMessage()
public Instant getStartTime()
public Instant getEndTime()
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 io.opentelemetry.api.trace.StatusCode getStatusCode()
Copyright © 2024 AVIO Consulting. All rights reserved.