package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

ChildSpanFromContxt return a non-nil span.
CodecPlanName returns tp_id of plan.
ContextWithTraceInfo creates a new `model.TraceInfo` for context.
DedupCETrace deduplicate a slice of *CETraceRecord and return the deduplicated slice.
NewPhysicalPlanCostDetail creates a cost detail.
NewRecordedTrace returns a Span which records directly via the specified callback.
SpanFromContext returns the span obtained from the context or, if none is found, a new one started through tracer.
StartRegion provides better API, integrating both opentracing and runtime.trace facilities into one.
StartRegionEx returns Region together with the context.
StartRegionWithNewRootSpan return Region together with the context.
TraceInfoFromContext returns the `model.TraceInfo` in context.

# Constants

TiDBTrace is set as Baggage on traces which are used for tidb tracing.

# Structs

CandidatePlanTrace indicates info for candidate.
CETraceRecord records an expression and related cardinality estimation result.
LogicalOptimizeTracer indicates the trace for the whole logicalOptimize processing.
LogicalRuleOptimizeTracer indicates the trace for the LogicalPlan tree before and after logical rule optimize.
LogicalRuleOptimizeTraceStep indicates the trace for the detailed optimize changing in logical rule optimize.
OptimizeTracer indicates tracer for optimizer.
PhysicalOptimizeTracer indicates the trace for the whole physicalOptimize processing.
PhysicalPlanCostDetail indicates cost detail.
PhysicalPlanCostParam indicates cost params.
PlanTrace indicates for the Plan trace information.
Region is a region of code whose execution time interval is traced.

# Type aliases

A CallbackRecorder immediately invokes itself on received trace spans.