Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
subpoena-conform
command
Command subpoena-conform checks a TraceQL evaluator, in any language, against the conformance corpus: every query over every fixture must give the trace IDs in conformance/expected.yaml, and every query in conformance/rejected.traceql must be rejected.
|
Command subpoena-conform checks a TraceQL evaluator, in any language, against the conformance corpus: every query over every fixture must give the trace IDs in conformance/expected.yaml, and every query in conformance/rejected.traceql must be rejected. |
|
subpoena-cross
command
Command subpoena-cross cross-examines a test suite: it removes each enforcement statement in a temp copy of the module and requires the test suite to fail.
|
Command subpoena-cross cross-examines a test suite: it removes each enforcement statement in a temp copy of the module and requires the test suite to fail. |
|
subpoena-invgen
command
Command subpoena-invgen writes names.go into an invariants directory: one string constant per *.traceql file, so tests load an invariant by name (invariants.NoExecAfterDeny) instead of pasting its TraceQL, and subpoena-lint's orphan-invariant rule can hold them to it.
|
Command subpoena-invgen writes names.go into an invariants directory: one string constant per *.traceql file, so tests load an invariant by name (invariants.NoExecAfterDeny) instead of pasting its TraceQL, and subpoena-lint's orphan-invariant rule can hold them to it. |
|
subpoena-lint
command
Command subpoena-lint checks a package tree for trace-native testing violations.
|
Command subpoena-lint checks a package tree for trace-native testing violations. |
|
subpoena-traceql
command
Command subpoena-traceql evaluates one query of the TraceQL subset (docs/traceql-subset.md) over OTLP/JSON traces, with pkg/traceql.
|
Command subpoena-traceql evaluates one query of the TraceQL subset (docs/traceql-subset.md) over OTLP/JSON traces, with pkg/traceql. |
|
subpoena-witness
command
Command subpoena-witness runs the kernel-side process witness (pkg/witness/execbpf) and writes one JSON line per exec, for shipping to a log store (tier 2 sends them to Loki).
|
Command subpoena-witness runs the kernel-side process witness (pkg/witness/execbpf) and writes one JSON line per exec, for shipping to a log store (tier 2 sends them to Loki). |
|
Package conformance holds the fixtures and helpers that check pkg/traceql against a real Tempo.
|
Package conformance holds the fixtures and helpers that check pkg/traceql against a real Tempo. |
|
examples
|
|
|
gateway
Package gateway is a toy agent gateway used to demonstrate trace-native testing.
|
Package gateway is a toy agent gateway used to demonstrate trace-native testing. |
|
gateway/cmd/gateway
command
Command gateway runs the toy agent gateway as an HTTP service exporting OTLP/JSON traces.
|
Command gateway runs the toy agent gateway as an HTTP service exporting OTLP/JSON traces. |
|
internal/otlpjson
Package otlpjson is a minimal OTLP/HTTP JSON trace exporter built on the standard library only.
|
Package otlpjson is a minimal OTLP/HTTP JSON trace exporter built on the standard library only. |
|
generated
|
|
|
go/semconv
Package semconv holds the span names and attribute keys of the Subpoena registry, plus the per-attribute export tier.
|
Package semconv holds the span names and attribute keys of the Subpoena registry, plus the per-attribute export tier. |
|
internal
|
|
|
cross
Package cross implements cross-examination.
|
Package cross implements cross-examination. |
|
invgen
Package invgen (cmd/subpoena-invgen) generates invariants/names.go: one string constant per invariants/*.traceql file, so tests reference an invariant by name (invariants.NoExecAfterDeny) instead of pasting its TraceQL.
|
Package invgen (cmd/subpoena-invgen) generates invariants/names.go: one string constant per invariants/*.traceql file, so tests reference an invariant by name (invariants.NoExecAfterDeny) instead of pasting its TraceQL. |
|
lint
Package lint implements subpoena-lint: static checks that keep a codebase's tests and telemetry honest.
|
Package lint implements subpoena-lint: static checks that keep a codebase's tests and telemetry honest. |
|
Package invariants embeds the repository's TraceQL invariants so tests load the exact string that OATS and the alert rules use.
|
Package invariants embeds the repository's TraceQL invariants so tests load the exact string that OATS and the alert rules use. |
|
pkg
|
|
|
cgroup
Package cgroup creates one cgroup v2 per agent session, named with the session's trace ID, and starts a session's child processes inside it.
|
Package cgroup creates one cgroup v2 per agent session, named with the session's trace ID, and starts a session's child processes inside it. |
|
harness
Package harness is the tier-1 test harness: an in-memory OpenTelemetry exporter with completeness tracking, and TraceQL queries over what it saw.
|
Package harness is the tier-1 test harness: an in-memory OpenTelemetry exporter with completeness tracking, and TraceQL queries over what it saw. |
|
production
Package production keeps test-tier attributes out of production telemetry.
|
Package production keeps test-tier attributes out of production telemetry. |
|
traceql
Package traceql implements a small, strictly-defined subset of TraceQL.
|
Package traceql implements a small, strictly-defined subset of TraceQL. |
|
witness
Package witness defines the independent observer of side effects.
|
Package witness defines the independent observer of side effects. |
|
witness/execbpf
Package execbpf is a kernel-side process witness.
|
Package execbpf is a kernel-side process witness. |
|
witness/netbpf
Package netbpf is a kernel-side network witness.
|
Package netbpf is a kernel-side network witness. |
Click to show internal directories.
Click to hide internal directories.