-
- All Implemented Interfaces:
-
com.datadog.trace.bootstrap.instrumentation.api.AgentSpan.Context,com.datadog.trace.bootstrap.instrumentation.api.AgentSpan.Context.Extracted
public class TagContext implements AgentSpan.Context.Extracted
When calling extract, we allow for grabbing other configured headers as tags. Those tags are returned here even if the rest of the request would have returned null.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTagContext.HttpHeaders
-
Field Summary
Fields Modifier and Type Field Description private final CharSequenceoriginprivate final Map<String, String>tagsprivate List<AgentSpanLink>terminatedContextLinksprivate ObjectrequestContextDataAppSecprivate ObjectrequestContextDataIastprivate ObjectciVisibilityContextDataprivate PathwayContextpathwayContextprivate final Map<String, String>baggageprivate final intsamplingPriorityprivate final TraceConfigtraceConfigprivate final TracePropagationStylepropagationStyle
-
Constructor Summary
Constructors Constructor Description TagContext()TagContext(String origin, Map<String, String> tags)TagContext(CharSequence origin, Map<String, String> tags, TagContext.HttpHeaders httpHeaders, Map<String, String> baggage, int samplingPriority, TraceConfig traceConfig, TracePropagationStyle propagationStyle)
-
Method Summary
-
-
Constructor Detail
-
TagContext
TagContext()
-
TagContext
TagContext(CharSequence origin, Map<String, String> tags, TagContext.HttpHeaders httpHeaders, Map<String, String> baggage, int samplingPriority, TraceConfig traceConfig, TracePropagationStyle propagationStyle)
-
-
Method Detail
-
getOrigin
final CharSequence getOrigin()
-
getTerminatedContextLinks
List<AgentSpanLink> getTerminatedContextLinks()
Gets the span links related to the other terminated context.
-
getRequestContextDataAppSec
final Object getRequestContextDataAppSec()
-
getRequestContextDataIast
final Object getRequestContextDataIast()
-
getCiVisibilityContextData
Object getCiVisibilityContextData()
-
getPathwayContext
PathwayContext getPathwayContext()
-
getBaggage
final Map<String, String> getBaggage()
-
getSamplingPriority
final int getSamplingPriority()
Gets the trace sampling priority of the span's trace.
Check PrioritySampling for possible values.
-
getTraceConfig
TraceConfig getTraceConfig()
-
getPropagationStyle
TracePropagationStyle getPropagationStyle()
-
addTerminatedContextLink
void addTerminatedContextLink(AgentSpanLink link)
-
getForwarded
String getForwarded()
-
getFastlyClientIp
String getFastlyClientIp()
-
getCfConnectingIp
String getCfConnectingIp()
-
getCfConnectingIpv6
String getCfConnectingIpv6()
-
getXForwardedProto
String getXForwardedProto()
-
getXForwardedHost
String getXForwardedHost()
-
getXForwardedPort
String getXForwardedPort()
-
getForwardedFor
String getForwardedFor()
-
getXForwarded
String getXForwarded()
-
getXForwardedFor
String getXForwardedFor()
-
getXClusterClientIp
String getXClusterClientIp()
-
getXRealIp
String getXRealIp()
-
getXClientIp
String getXClientIp()
-
getUserAgent
String getUserAgent()
-
getTrueClientIp
String getTrueClientIp()
-
getCustomIpHeader
String getCustomIpHeader()
-
baggageItems
Iterable<Map.Entry<String, String>> baggageItems()
-
getTraceId
DDTraceId getTraceId()
Gets the TraceId of the span's trace.
-
getSpanId
long getSpanId()
Gets the SpanId.
-
getTrace
final AgentTrace getTrace()
Get the span's trace.
-
withRequestContextDataAppSec
final TagContext withRequestContextDataAppSec(Object requestContextData)
-
withRequestContextDataIast
final TagContext withRequestContextDataIast(Object requestContextData)
-
withCiVisibilityContextData
TagContext withCiVisibilityContextData(Object ciVisibilityContextData)
-
withPathwayContext
TagContext withPathwayContext(PathwayContext pathwayContext)
-
-
-
-