public class PropagationContext extends Object
| Constructor | Description |
|---|---|
PropagationContext(String traceId,
String spanId,
String dataset,
Map<String,?> traceFields) |
Create a trace context with provided IDs and map of trace fields.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PropagationContext |
emptyContext() |
|
boolean |
equals(Object other) |
|
String |
getDataset() |
|
String |
getSpanId() |
|
Map<String,Object> |
getTraceFields() |
|
String |
getTraceId() |
|
int |
hashCode() |
|
boolean |
isTraced() |
|
String |
toString() |
public PropagationContext(String traceId, String spanId, String dataset, Map<String,?> traceFields)
traceId - that identifies the trace - may be null.spanId - that identifies the latest span - may only be null if span ID is also null.dataset - that identifies an explicit dataset that spans should be sent to - may be null.traceFields - to propagate to the next span - may be null.Span.getTraceContext()public static PropagationContext emptyContext()
public Map<String,Object> getTraceFields()
public String getTraceId()
public String getSpanId()
public String getDataset()
public boolean isTraced()
Copyright © 2019–2020 Honeycomb. All rights reserved.