In this section: Learn
Guides
- Guide: choosing and implementing a binding
- Guide: OBSP-COMMUNITY (COMMUNITY)
- Conformance guide
- Guide: OBSP-CONSTELLATION (CONSTELLATION)
- Guide: OBSP-CONSUMER
- Guide: the exchange plane (reference implementation)
- Guide: OBSP-GRID
- Implementers guide
- Guide: OBSP-MOBILE (MOBILE)
- Guide: OBSP-MODEL-OBSERVER (MODEL-OBSERVER)
- Guide: OBSP-NETWORK-SENSING (NETWORK-SENSING, provisional)
- Guide: OBSP-NODE
- Guide: operating the reference stack
- Operators guide
- Guide: OBSP-PROVIDER
- Python SDK: the 0.2 candidate mode (DRAFT)
- Release guide
- Guide: OBSP-SITE
- Guide: OBSP-SOV (operator sovereignty overlay)
- Start here: from a clone to a checked evidence set in 30 minutes
- Guide: the web front ends
Domain packs
- All domain packs
- Agriculture: fields, crops, livestock and stored grain
- Air quality: reference monitors and sensor networks
- Cryosphere: snow, glaciers, permafrost, sea and lake ice
- Greenhouse gases and methane: in-situ, flux and remote sensing
- Health (One Health): environment, animals and people
- Hydrology: river, lake, groundwater and water-quality stations
- Infrastructure: structural health of bridges, dams, tunnels and buildings
- Meteorology: surface synoptic and climate stations (GBON-oriented)
- Ocean: moorings, buoys, profiling floats and coastal stations
- Seismology and geodesy: seismometers, strong motion, GNSS and InSAR
- Space weather: geomagnetism, ionosphere and the solar wind
Participants
- Non-profits, humanitarian organisations, communities and citizen networks
- Device makers
- Enterprises and infrastructure owners
- Governments, agencies and utilities
- Individual experts, developers and students
- United Nations agencies and intergovernmental organisations
- National consortiums, national standards councils and national hosts
- Universities, observatories and research networks
- Managed-service and technology providers
Security and privacy
- Threat note: obsp-mcp (reference Model Context Protocol server)
- Threat note: credential status publisher (reference service)
- Threat note: discovery (reference service)
- Threat note: production public services
- Threat note: implementations and conformance registry (reference service)
- Threat note: transparency log (reference service)
- Supply chain: controls and current status
- Threat model of the Observatory Protocol (version 2)
- Privacy assessments
- Draft privacy impact assessment: COMMUNITY profile (OIP-0017)
- Draft privacy impact assessment: MOBILE profile, person-carried case (OIP-0013)
- Draft privacy impact assessment: NETWORK-SENSING profile (OIP-0011)
- Privacy impact assessment template
Pilot kits
Operations
- Operations
- Capacity scaling
- Capacity plan
- Chaos and resilience experiments
- Data plane
- Deploy
- Error-budget policy
- Game days
- Game day: clock skew
- Game day: disk full
- Game day: federation partition and rejoin
- Game day: replica loss
- Game day: slow or unreachable database
- Incident response
- Key rotation and compromise recovery
- Load and soak testing
- Observability conventions
- Offline site operation
- What the owner must decide
- Restore
- Rollback
- Service-level objectives
- Static web sites
- Supply chain and release hardening: the checks
- Variables
Observability conventions
How the reference services emit traces, metrics and logs, and how the reference stack collects them. The conventions follow OpenTelemetry (W3C Trace Context, the OTLP data model and the HTTP semantic conventions) so that any OpenTelemetry-compatible backend can receive them. They describe the reference programs of this repository; an implementation of the protocol may instrument itself differently and still interoperate, because nothing here is part of the protocol.
| Piece | Where |
|---|---|
| Rust services (gateway, federation peer) | telemetry.rs, metrics.rs, federation metrics.rs and http.rs |
| Python services (public services, conformance runner) | one module, telemetry.py, kept identical in both packages |
| Black-box indicators | the prober, obsp_prober.py |
| Collection | the observability profile, compose.observability.yaml |
| Objectives, alerts, dashboards | slos.yaml, generated slo.rules.yml and dashboards/; slo.md |
No new dependency was added for any of this: the Rust services use the standard library and the crates they already had, the Python services the standard library.
Traces
Propagation. Every HTTP server reads the W3C traceparent header. A valid one (version 00, lower-case hex,
non-zero ids) makes the request’s span a child of the caller’s span in the caller’s trace and keeps the caller’s
sampled flag; anything else starts a new trace. Every answer carries traceparent naming the server span, so a
client can find its request in the trace store. Clients in this repository that call other services (the prober, the
load driver) send a fresh traceparent on each request.
Span names and kinds.
| Span | Kind | Where | Name |
|---|---|---|---|
| request | server | every HTTP service | <METHOD> <route>; the route is a template or a fixed family, never a raw path: gateway GET gateway, POST ingest, GET exchange, POST v02; Python services GET /v1/entries/{index} |
| ingest | internal | gateway, intake batches answered 200 | obsp.ingest.batch |
| verification | internal | gateway (child of the batch); runner (child of the request) | obsp.verify.events; obsp.verify.run |
| federation operation | server | federation peer | POST obsp.federation.<operation> |
| correction propagation | client (probe) | prober | the probe’s write and reads carry one traceparent; the propagation histogram’s exemplar is that trace |
Attributes. OpenTelemetry semantic conventions where they exist, obsp.* otherwise:
| Attribute | Value |
|---|---|
http.request.method, http.route, http.response.status_code |
as in the HTTP semantic conventions; http.route is the template or family |
error.type |
set on a failed span: the problem’s OBS-* code, or an exception class name; never a message |
obsp.route.family |
gateway route family: gateway, ingest, v02, exchange, metrics |
obsp.error.code |
the errorCode of a problem answer |
obsp.ingest.events |
events in the batch |
obsp.verify.checked, obsp.verify.rejected |
events checked and events rejected by verification |
obsp.conformance.kind, .profile, .outcome |
runner: suite or live, the profile id, PASS/FAIL/INCOMPLETE |
obsp.federation.operation |
the federation operation name |
resource: service.name, service.namespace (obsp), service.version |
from OTEL_SERVICE_NAME or the program’s name |
What is never recorded. No request or response body, no header value, no query string, no client address, no
identifier of a participant, tenant, node or record, no key material. Names and values come from fixed sets so a
trace cannot carry what a participant sent and cardinality stays bounded. The collector removes the attributes that
would break this rule if a future service sent them (attributes/redact in
otelcol.yaml); that is defence in depth, not the control.
Sampling. OTEL_TRACES_SAMPLER_ARG (0.0 to 1.0, default 1.0) samples new root traces; a caller’s sampled flag
is honoured. Exemplars are taken only from sampled spans, so every exemplar resolves to a stored trace.
Export. With OTEL_EXPORTER_OTLP_ENDPOINT=http://host:port, finished spans go to /v1/traces and one log record
per span to /v1/logs, as OTLP/HTTP JSON, batched by one background thread every two seconds or 512 spans. The queue
holds 4096 spans; a full queue drops spans and counts them (obsp_telemetry_spans_dropped_total), it never blocks a
request. Only plain http:// is supported: the collector belongs on the operator’s internal network.
Metrics
Every service serves GET /metrics: the Prometheus text format 0.0.4 by default, OpenMetrics 1.0 when the scraper
sends Accept: application/openmetrics-text (Prometheus does by default). OpenMetrics adds exemplars: each
duration-histogram bucket carries the trace_id of the latest sampled request that fell into it, so a dashboard
jumps from a latency point to its trace.
RED (rate, errors, duration) per route:
| Metric | Type | Labels | Service |
|---|---|---|---|
obsp_gateway_requests_total |
counter | family, class |
gateway |
obsp_gateway_request_duration_seconds |
histogram | family |
gateway |
obsp_requests_total |
counter | service, method, route, status |
public services |
obsp_request_duration_seconds |
histogram | service, route |
public services, runner |
obsp_http_responses_total |
counter | operation, class or status, error_code |
every HTTP service |
USE (utilisation, saturation, errors):
| Metric | Type | Service |
|---|---|---|
obsp_gateway_requests_in_flight, obsp_requests_in_flight |
gauge | gateway, Python services |
process_cpu_seconds_total, process_max_resident_memory_bytes, process_open_fds, process_threads |
counter, gauges | Python services |
obsp_gateway_store_entries, obsp_log_tree_size |
gauge | gateway store, transparency log |
| container CPU, memory and file-system metrics | the platform (cAdvisor, kubelet) in a cluster; docker stats locally |
Domain indicators behind the objectives:
| Metric | Type | Meaning | Objective |
|---|---|---|---|
obsp_ingest_batch_duration_seconds |
histogram | time to answer one replay batch (status 200) | SLO-INGEST |
obsp_ingest_events_total{disposition} |
counter | events by disposition; REJECTED is a verification failure |
SLO-VERIFY (symptom) |
obsp_conformance_runs_total{kind,outcome} |
counter | runner runs | |
obsp_correction_propagation_seconds |
histogram | prober: synthetic correction accepted to visible on every read URL | SLO-CORRECTION |
obsp_correction_probe_failures_total{reason} |
counter | prober: timeout, write_refused, write_unreachable |
SLO-CORRECTION |
obsp_federation_peer_contact_age_seconds{peer} |
gauge | seconds since a counterpart last answered (federation lag) | symptom of SLO-CORRECTION |
obsp_federation_partitioned_peers, _writes_held, _correction_candidates, _lease_held |
gauges | federation state | |
obsp_log_last_signed_tree_head_timestamp_seconds |
gauge | when the transparency log last signed a tree head | SLO-LOG-FRESH |
obsp_log_tree_head_fresh, obsp_log_tree_head_age_seconds, obsp_log_tree_head_signed |
gauges | prober: is the served tree head signed and fresh | SLO-LOG-FRESH |
probe_success{target}, probe_duration_seconds{target} |
gauges | prober: availability of every service | SLO-AVAIL |
Rules for new metrics. Prefix obsp_; base units (seconds, bytes); counters end in _total; label values from
a fixed set (a route template, a status class, an OBS-* code, a disposition, an operator-configured peer); a
histogram uses the buckets of BUCKETS in the telemetry modules unless the objective needs another threshold as a
bucket edge (the propagation histogram has 60 s). A metric that an objective uses is listed in
slos.yaml; tests/test_observability.py fails when an objective
names a metric no service serves.
Logs
With OBSP_LOG_FORMAT=json, every finished span is also one JSON line on standard error: ts, service,
event (span), severity (INFO or ERROR), name, trace_id, span_id, parent_span_id, duration_ms and
the span’s attributes. The public services also write their existing request log lines (one per request, no client
address, query, header or body). With OTLP export the same records reach the log store with traceId and spanId
set, so a trace links to its log lines and back. Without either variable the services log as before.
Collection: the observability profile
make obs-up # the stack plus the profile; dashboards on http://127.0.0.1:3000 (anonymous, read-only)
make obs-down
| Service | Role |
|---|---|
otel-collector |
OTLP/HTTP receiver on :4318 (ops network); redaction, batching; traces to tempo, logs to loki |
tempo |
trace store, 7 days |
loki |
log store, 7 days, OTLP ingestion |
prometheus (from the base stack) |
scrapes every /metrics with exemplar storage on; evaluates slo.rules.yml |
alertmanager |
groups the alerts; no receiver sends anything off the host until an operator adds one |
grafana |
the dashboards of dashboards/, provisioned read-only; exemplars link to traces, traces to logs |
prober |
the black-box indicators above, from the conformance-runner image |
translog |
a transparency log service signing tree heads with the stack’s runner key, for the log-freshness objective |
All are open-source projects, pinned by digest, with the hardening of the base stack (read-only root, no capability, no privilege escalation). Only the dashboard server publishes a port, on the loopback interface. The profile’s files were checked statically here (compose configuration, YAML, the generated rules and dashboards); running it needs a container engine.
Dashboards
Generated as code by generate.py (make slo-rules; make check fails
when a committed file is stale): SLO (budgets remaining, burn rates), Ingest (rate, dispositions, p50/p99
against 0.5 s with exemplars, saturation), Verification failures (rejected share, verification server errors,
conformance runs, failed verification spans), Correction latency (propagation p50/p99 against 60 s, probes,
budget), Federation lag (contact age, partitions, writes, candidates, leases), Transparency log growth (tree
size and growth, tree head age, store growth) and API errors (requests and errors by family and OBS-* code,
p99 by route, rate limiting, CPU, server-error logs).