Skip to content

document the telemetry stack#452

Merged
kacy merged 1 commit into
mainfrom
docs/telemetry
Jul 17, 2026
Merged

document the telemetry stack#452
kacy merged 1 commit into
mainfrom
docs/telemetry

Conversation

@kacy

@kacy kacy commented Jul 17, 2026

Copy link
Copy Markdown
Owner

summary

adds docs/telemetry.md, a guide to pith's observability stack, and links it
from the readme's standard-library overview. the four modules landed in #448-#451
but had no prose tying them together; this is that page.

it covers:

  • the zero-code path — set OTEL_SERVICE_NAME + OTEL_EXPORTER_OTLP_ENDPOINT,
    call obs.init(), and the std http/grpc clients produce traces and RED metrics
  • std.metrics counters/gauges/histograms with labels, and the metric names the
    std clients register on their own
  • serving /metrics for prometheus with std.prometheus
  • std.trace: spans, ambient per-thread nesting, and the one explicit case —
    crossing a spawn
  • W3C traceparent propagation across services (client injection, the
    begin/end_server_span server helpers)
  • the OTEL_* environment variables and the background OTLP/HTTP exporter
  • an honest "what isn't here yet" (OTLP/grpc transport, OTLP logs, sampling,
    fixed histogram buckets)

what was tested

docs-only plus the one-line readme link. verified every api and metric name in
the doc against the current source (std/obs.pith, std/trace.pith,
std/metrics.pith, std/prometheus.pith, std/otlp.pith, and the grpc/http
instrumentation). no code changes.

design notes

matches the house doc voice: lowercase headings, runnable snippets, and a
closing limitations section like docs/limitations.md. the module count in the
readme's layout section was already stale before this change and is left alone.

a guide covering the three pieces of pith's observability: std.metrics +
std.prometheus for pull-based metrics, std.trace for spans and context
propagation, and std.otlp/std.obs for OTLP push export. shows the
zero-code OTEL_* path, the metrics the std http/grpc clients register on
their own, how spans nest and cross a spawn, W3C traceparent propagation,
and the OTEL_* environment variables. also lists what isn't there yet
(OTLP/grpc transport, OTLP logs, sampling).

links it from the readme's stdlib overview.
@kacy
kacy merged commit f79b6d3 into main Jul 17, 2026
2 checks passed
@kacy
kacy deleted the docs/telemetry branch July 17, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant