public class ContextCarrier extends Object implements Serializable
ContextCarrier is a data carrier of TracingContext. It holds the snapshot (current state) of TracingContext.
Created by wusheng on 2017/2/17.
| Modifier and Type | Class and Description |
|---|---|
static class |
ContextCarrier.HeaderVersion |
| Constructor and Description |
|---|
ContextCarrier() |
| Modifier and Type | Method and Description |
|---|---|
DistributedTraceId |
getDistributedTraceId() |
String |
getEntryEndpointName() |
int |
getEntryServiceInstanceId() |
String |
getParentEndpointName() |
int |
getParentServiceInstanceId() |
String |
getPeerHost() |
int |
getSpanId() |
ID |
getTraceSegmentId() |
boolean |
isValid() |
CarrierItem |
items() |
void |
setDistributedTraceIds(List<DistributedTraceId> distributedTraceIds) |
void |
setEntryServiceInstanceId(int entryServiceInstanceId) |
public CarrierItem items()
public boolean isValid()
public String getEntryEndpointName()
public ID getTraceSegmentId()
public int getSpanId()
public int getParentServiceInstanceId()
public String getPeerHost()
public DistributedTraceId getDistributedTraceId()
public void setDistributedTraceIds(List<DistributedTraceId> distributedTraceIds)
public String getParentEndpointName()
public int getEntryServiceInstanceId()
public void setEntryServiceInstanceId(int entryServiceInstanceId)
Copyright © 2019 The Apache Software Foundation. All rights reserved.