public class CloudTraceContext extends Object
| Constructor and Description |
|---|
CloudTraceContext(byte[] traceId,
long spanId,
long traceMask)
Create a new context with the given parameters.
|
CloudTraceContext(byte[] traceId,
long parentSpanId,
long spanId,
long traceMask)
Create a new context with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
CloudTraceContext |
createChildContext()
Creates a child context of the current context.
|
long |
getParentSpanId() |
long |
getSpanId() |
byte[] |
getTraceId() |
long |
getTraceMask() |
boolean |
isTraceEnabled() |
public CloudTraceContext(byte[] traceId,
long spanId,
long traceMask)
traceId - id of the trace.spanId - current span id.traceMask - trace options.public CloudTraceContext(byte[] traceId,
long parentSpanId,
long spanId,
long traceMask)
traceId - id of the trace.parentSpanId - parent span id.spanId - current span id.traceMask - trace options.public CloudTraceContext createChildContext()
public byte[] getTraceId()
public long getParentSpanId()
public long getSpanId()
public long getTraceMask()
public boolean isTraceEnabled()
Copyright © 2022. All rights reserved.