trc
Distributed tracing, OpenTelemetry, Jaeger/Zipkin.
Load with: use trc
Quick example
use trc
result = trcne("value", "value")
prn(result)
Functions
Tracer
trcne(svc, opts)
Creates a new instance. Takes svc, opts.
trcsp(tr, n, opts)
Performs the operation. Takes tr, n, opts.
trcen(tr, sp, opts)
Encodes. Takes tr, sp, opts.
trccu(tr)
Performs the operation. Takes tr.
Span operations
trcwi(ctx, n, opts, fn)
Performs the operation. Takes ctx, n, opts, fn.
trcat(sp, k, v)
Performs the operation. Takes sp, k, v.
trcse(sp, n, attrs)
Sets a value. Takes sp, n, attrs.
trcxp(sp, err)
Performs the operation. Takes sp, err.
trcva(v)
Performs the operation. Takes v.
trcid()
Performs the operation.
Samplers
trcsa()
Performs the operation.
trcsn()
Performs the operation.
trcspr(p)
Processes or prints. Takes p.
trcra(r)
Performs the operation. Takes r.
Propagators
trcw3()
Performs the operation.
trcb3()
Performs the operation.
trcpu(tr, ctx, c)
Performs the operation. Takes tr, ctx, c.
trcge(tr, c)
Gets or retrieves a value. Takes tr, c.
Exporters
trcco()
Connects.
trcot(ep, opts)
Performs the operation. Takes ep, opts.
trcjg(ep)
Performs the operation. Takes ep.
trczi(ep)
Performs the operation. Takes ep.
Format conversions
trc2o(sp)
Performs the operation. Takes sp.
trck2(k)
Performs the operation. Takes k.
trcst(st)
Sets a value or starts a process. Takes st.
trcavl(v)
Validates. Takes v.
trc2j(sp)
Performs the operation. Takes sp.
trc2z(sp)
Performs the operation. Takes sp.
Batch export
trcba(exp, mx, tmo)
Performs the operation. Takes exp, mx, tmo.
HTTP middleware
trcmw(tr, svc)
Performs the operation. Takes tr, svc.
Database tracing
trcdb(tr, fn, sql, p)
Performs the operation. Takes tr, fn, sql, p.
Stack trace
trcstk()
Performs the operation.
Legacy names (call sites / older docs)
trcstartspan(tr, n, opts)
Performs the operation. Takes tr, n, opts.
trcendspan(tr, sp, opts)
Performs the operation. Takes tr, sp, opts.
trcextract(tr, c)
Performs the operation. Takes tr, c.
trcspanaddattr(sp, k, v)
Performs the operation. Takes sp, k, v.
trcspanrecordexception(sp, err)
Performs the operation. Takes sp, err.
trcspan2otlp(sp)
Performs the operation. Takes sp.
trcspankind2otlp(k)
Performs the operation. Takes k.
trcstatus2otlp(st)
Performs the operation. Takes st.
trcattr2otlp(v)
Performs the operation. Takes v.
trcspan2jaeger(sp)
Performs the operation. Takes sp.
trcspan2zipkin(sp)
Initialises. Takes sp.
Notes
- Distributed tracing - spans, context propagation, exporters.