--- WARNING: THIS IS AN AUTO-GENERATED FILE, DO NOT EDIT. PLEASE MODIFY THE ORIGINAL SOURCE IN THE https://github.com/istio/istio REPO source_repo: https://github.com/istio/istio title: Trace Span description: A template that represents an individual span within a distributed trace. location: https://istio.io/docs/reference/config/policy-and-telemetry/templates/tracespan.html layout: protoc-gen-docs generator: protoc-gen-docs number_of_entries: 1 ---
The tracespan
template represents an individual span within a distributed trace.
Example config:
apiVersion: "config.istio.io/v1alpha2"
kind: tracespan
metadata:
name: default
namespace: istio-system
spec:
traceId: request.headers["x-b3-traceid"]
spanId: request.headers["x-b3-spanid"] | ""
parentSpanId: request.headers["x-b3-parentspanid"] | ""
spanName: request.path | "/"
startTime: request.time
endTime: response.time
clientSpan: (context.reporter.kind | "inbound") == "inbound"
rewriteClientSpanId: false
spanTags:
http.method: request.method | ""
http.status_code: response.code | 200
http.url: request.path | ""
request.size: request.size | 0
response.size: response.size | 0
source.principal: source.principal | ""
source.version: source.labels["version"] | ""
See also: Distributed Tracing for information on tracing within Istio.
TraceSpan represents an individual span within a distributed trace.
When writing the configuration, the value for the fields associated with this template can either be a literal or an expression. Please note that if the datatype of a field is not istio.policy.v1beta1.Value, then the expression’s inferred type must match the datatype of the field.