Observability Specification Template (OpenTelemetry)
Telemetry goals, OTel semantic conventions 1.44.0 baseline with stability per area, logs, metrics, traces, optional Profiles, dashboards, SLOs, alerts, privacy, retention, cost
How to use: Use it when a service or platform needs one agreed telemetry contract. Fill the operator questions and the semantic conventions baseline (4.4) first, then the signal catalogues. The main pitfall is building alerts on development-status names or mixing security log retention into operational retention.
Preview
Observability Specification: [Service or platform name]
Complete observability specification for a service or platform: goals, telemetry signals, naming and semantic conventions, log schema, metrics catalogue, tracing, dashboards, SLIs and SLOs, alert rules, retention, cost, privacy and ownership. Concepts follow OpenTelemetry (signals, resources, attributes, context propagation, sampling), with OpenTelemetry semantic conventions 1.44.0 (released 2026-08-04) as the pinned naming baseline. Security event logging and its retention are governed separately by a security logging standard. Replace every
[bracketed]value and every row marked Example.
Document control
| Field | Value |
|---|---|
| Document ID | [OBS-PLATFORM-001] |
| Services covered | [Service names or "all services on platform X"] |
| Version | [0.1] |
| Status | [Draft / In review / Approved / Superseded] |
| Owner | [@observability-owner] |
| Approvers/reviewers | [@sre-lead], [@engineering-lead], [@security-privacy], [@finops] |
| Classification | [Internal] |
| Last updated | YYYY-MM-DD |
| Semantic conventions baseline | [OpenTelemetry semantic conventions 1.44.0] |
| Related documents | [SLO document], [On-call handbook], [Runbooks], [Data protection policy], Alerting Policy (ops/alerting-policy), Security Logging Standard (security/security-logging-standard) |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| SRE lead | [@name] | [Approved / Changes requested] | YYYY-MM-DD |
| Engineering lead | [@name] | [Decision] | YYYY-MM-DD |
| Security / privacy | [@name] | [Decision] | YYYY-MM-DD |
| FinOps | [@name] | [Decision] | YYYY-MM-DD |
Revision history
| Version | Date | Author | Change summary |
|---|---|---|---|
| 0.1 | YYYY-MM-DD | [@name] | Initial draft |
| 0.2 | YYYY-MM-DD | [@name] | Example: Renamed app.user_id to enduser.pseudo.id; added PII scrubbing rule PR-04 |
| 1.0 | YYYY-MM-DD | [@name] | Example: Approved |
| 1.1 | 2026-10-24 | [@name] | Updated to OpenTelemetry semantic conventions 1.44.0 baseline with stability per area (4.4); GenAI conventions moved to their own repository; Profiles added as optional signal; links to the alerting policy and security logging standard |
Contents
1. Goals and scope
1.1 Goals
| ID | Goal | Measure |
|---|---|---|
| OG-01 | Example: Detect user-facing failures before customers report them | 90% of incidents detected by alert first |
| OG-02 | Example: Locate the failing component quickly | Median time to identify root service < 10 min |
| OG-03 | Example: Keep telemetry cost proportional to traffic | Telemetry spend < 8% of infrastructure spend |
| [OG-nn] | [Goal] | [Measure] |
1.2 Operator questions
The signals in this specification must answer these questions without deploying new code:
- Is the service healthy for users right now, and since when has it not been?
- Which endpoint, region, version or customer segment is affected?
- Which downstream dependency is slow or failing?
- What changed just before the problem started (deploys, config, traffic)?
- [Question]
1.3 Scope
| In scope | Out of scope |
|---|---|
| Example: All production and staging services on [platform] | Developer laptops |
| Example: Managed databases and queues via provider metrics | Business analytics events (see analytics spec) |
| [Item] | [Item] |
2. Architecture and telemetry pipeline
Services emit telemetry with the OpenTelemetry SDK through the OTLP protocol to a local collector, which processes, scrubs and exports it to the storage backends.
| Component | Technology | Version | Owner | Notes |
|---|---|---|---|---|
| SDK | Example: OpenTelemetry SDK for [language] | [x.y] | Each service team | Auto plus manual instrumentation |
| Collector | Example: OpenTelemetry Collector | [x.y] | Platform team | Agent per node, gateway per region |
| Log backend | [Product] | [x.y] | Platform team | [Notes] |
| Metrics backend | [Product] | [x.y] | Platform team | [Notes] |
| Trace backend | [Product] | [x.y] | Platform team | [Notes] |
3. Signal standards
| Signal | Use it for | Do not use it for | Required for every service |
|---|---|---|---|
| Metrics | Aggregated rates, ratios, latency distributions, saturation; alerting | Per-request detail, high-cardinality IDs | RED metrics for every entry point; USE metrics for every resource |
| Traces | Following one request across services; latency breakdown | Long-term trend analysis | Server and client spans for every network call |
| Logs | Discrete events with context: errors, state changes, audit | Counting things that should be metrics | Structured JSON per 5.1, correlated by trace ID |
| Profiles (optional) | Continuous CPU and memory profiling: which code paths consume resources; linking hot code to slow spans | Alerting, SLIs, or any decision that needs a stable data contract | None; opt in per service after a pilot |
| [Events] | [Use] | [Not for] | [Requirement] |
All signals carry the same resource attributes (4.2) so that a metric spike can be followed to traces and then to logs.
Profiles are the fourth OpenTelemetry signal. The OTLP profiles signal entered public Alpha in March 2026, so treat it as optional: pilot it on one or two services, keep it out of alerting and SLO calculations, and expect format and Collector changes between releases. Record the Collector and agent versions used in section 2 and review the maturity status at each semantic conventions upgrade (4.4).
4. Naming and semantic conventions
4.1 General rules
- Attribute and metric names are lowercase, dot-separated namespaces:
http.request.method,db.system.name. - Custom attributes use the organisation namespace:
[org].[domain].[name], for exampleacme.order.channel. - Units follow UCUM-style abbreviations in metric metadata (
s,By,{request}), not in the name. - Durations are recorded in seconds as floating point.
- Never put unbounded values (user IDs, URLs with IDs, error messages) into metric attributes.
4.2 Required resource attributes
| Attribute | Example | Purpose |
|---|---|---|
service.name | checkout-api | Identifies the service |
service.version | 2026.10.3 | Correlates with deploys |
service.namespace | commerce | Groups services by domain |
deployment.environment.name | production | Separates environments |
cloud.region | eu-west-1 | Locates failures by region |
k8s.pod.name or host.name | checkout-api-7d9f | Finds the instance |
| [Attribute] | [Example] | [Purpose] |
4.3 Custom attributes register
| Attribute | Type | Allowed values | Signals | Cardinality | Owner |
|---|---|---|---|---|---|
acme.order.channel | string | web, ios, android, partner | metrics, traces, logs | 4 | [@team] |
acme.tenant.tier | string | free, pro, enterprise | metrics, traces | 3 | [@team] |
| [name] | [type] | [values] | [signals] | [n] | [@team] |
4.4 Semantic conventions baseline and stability
This specification pins OpenTelemetry semantic conventions 1.44.0 (released 2026-08-04). Instrumentation, Collector processors, dashboards and alert queries use the names defined in that release. Stability differs by area, and the status decides how much you can build on it:
| Area | Status in 1.44.0 (check the area page) | What it means for this spec |
|---|---|---|
| HTTP spans and metrics | Stable | Use as the contract for RED metrics, dashboards and SLIs |
Database spans (db.system.name, db.operation.name) | Stable document; only some well-known db.system.name values are stable | Safe for SLIs; check that your database value is marked stable |
Resource: service.*, deployment.environment.name | Stable | Required resource attributes in 4.2 |
| Kubernetes resource attributes | Development document; pod, node, namespace and workload name and UID attributes are stable | Safe for routing and grouping; avoid relying on development attributes in alerts |
| RPC (gRPC and other RPC) | Release Candidate | Usable; plan a migration window when it becomes stable |
| Messaging spans and metrics | Development | Use, but isolate queries behind recording rules so a rename touches one place |
| Process metrics and attributes | Release Candidate (namespace promoted step by step in 1.42.0 to 1.44.0; the metrics page header still reads Development) | Usable for USE dashboards (for example process.cpu.utilization); plan for renames before stable |
| System metrics | Development, some metrics Release Candidate | Use behind recording rules; avoid hard-coding names in many alerts |
Generative AI (gen_ai.*) | Moved out of this repository in 1.42.0 to the separate OpenTelemetry GenAI semantic conventions repository | Follow LLM Observability Specification (ai-data/llm-observability-spec) and pin that repository's version separately |
| [Area] | [Status] | [Decision] |
Rules for the baseline:
- Record the pinned version in Document control and in each service's
instrumentation configuration (the
schema_urlwhere the SDK sets it). - Prefer stable areas for anything that drives paging or SLOs. Where an area is not stable, put the metric name behind a recording rule or a Collector transform so that a rename changes one definition only.
- When an area moves from experimental to stable names, use the
instrumentation's dual-emit opt-in (for example the
OTEL_SEMCONV_STABILITY_OPT_INsetting where your SDK supports it) for one release cycle, migrate dashboards and alerts, then switch off the old names. - Review the baseline at least every [two] semantic conventions releases, and record each upgrade in the revision history with a migration note.
5. Logs
5.1 Log schema
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
timestamp | RFC 3339 string, UTC | Yes | Time the event occurred | 2026-10-21T09:14:03.512Z |
severity_text | string | Yes | One of DEBUG, INFO, WARN, ERROR, FATAL | ERROR |
body | string | Yes | Human-readable message without variable data where possible | payment authorisation failed |
trace_id | hex string | When in a request | Correlates with traces | 4bf92f3577b34da6a3ce929d0e0e4736 |
span_id | hex string | When in a request | Correlates with the span | 00f067aa0ba902b7 |
service.name | string | Yes | From resource attributes | checkout-api |
event.name | string | For domain events | Stable event identifier | payment.authorisation.failed |
error.type | string | On errors | Error class or code | card_declined |
attributes | object | No | Additional context per 4.3 | {"acme.order.channel":"web"} |
| [field] | [type] | [Yes / No] | [Description] | [Example] |
5.2 Severity guidelines
| Level | Use when | Pages anyone? |
|---|---|---|
| DEBUG | Detail useful only during development; disabled in production by default | No |
| INFO | Normal state changes: started, configuration loaded, job completed | No |
| WARN | Unexpected but handled: retry succeeded, fallback used | No |
| ERROR | A request or job failed and the caller saw a failure | Only via metric-based alerts |
| FATAL | The process cannot continue | Via health checks |
5.3 Logging rules
- Log once per failure at the boundary that handles it, not at every layer.
- Do not log request or response bodies by default.
- Sample high-volume INFO logs at the collector when volume exceeds [n] lines per second per service.
- Never sample, drop or shorten security events (authentication, authorisation decisions, administrative actions). Their fields, routing and retention are set by the Security Logging Standard (
security/security-logging-standard), not by this section.
6. Metrics
6.1 Method
- RED for request-driven components: Rate, Errors, Duration.
- USE for resources: Utilisation, Saturation, Errors.
6.2 Metrics catalogue
| Metric name | Instrument | Unit | Attributes | Method | Description | Owner |
|---|---|---|---|---|---|---|
http.server.request.duration | Histogram | s | http.request.method, http.route, http.response.status_code | RED (rate, errors, duration) | Server request latency; count gives rate | Service team |
http.client.request.duration | Histogram | s | server.address, http.response.status_code | RED | Outbound call latency | Service team |
db.client.operation.duration | Histogram | s | db.system.name, db.operation.name | RED | Database call latency | Service team |
process.cpu.utilization | Gauge | 1 | cpu.mode | USE | CPU utilisation per process | Platform |
acme.queue.depth | Gauge | {message} | messaging.destination.name | USE (saturation) | Messages waiting | [@team] |
acme.orders.placed | Counter | {order} | acme.order.channel | Business | Orders successfully placed | [@team] |
| [name] | [Counter / Histogram / Gauge / UpDownCounter] | [unit] | [attributes] | [RED / USE / Business] | [Description] | [@team] |
6.3 Histogram buckets
[Define standard bucket boundaries or use exponential histograms. Example: latency buckets 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10 seconds.]
6.4 Cardinality budget
The number of time series per metric is the product of distinct values of its attributes:
Example: 5 methods x 40 routes x 12 status codes x 11 buckets x 30 pods gives about 792,000 series. Remove the pod attribute from histograms and aggregate at the collector to bring it under the budget of [n] series per service.
7. Traces
7.1 Instrumentation
| Boundary | Span kind | Instrumentation | Required attributes |
|---|---|---|---|
| Incoming HTTP / gRPC | SERVER | Auto | http.route, http.response.status_code |
| Outgoing HTTP / gRPC | CLIENT | Auto | server.address, http.response.status_code |
| Database calls | CLIENT | Auto | db.system.name, db.operation.name (no full statements with values) |
| Message publish / consume | PRODUCER / CONSUMER | Manual or library | messaging.system, messaging.destination.name |
| Significant internal work | INTERNAL | Manual | Business attributes from 4.3 |
7.2 Context propagation
[State the propagation format and where it is applied. Example: "W3C
Trace Context (traceparent, tracestate) on all HTTP and gRPC calls;
W3C Baggage only for acme.tenant.tier; trace context copied into
message headers for queues; batch jobs start a new trace and link to the
triggering trace."]
The sequence below shows propagation across a synchronous call and an asynchronous queue.
7.3 Sampling
| Rule | Where | Rate | Rationale |
|---|---|---|---|
| Export all spans, parent-based | SDK | 100% of root traces to the collector | Tail rules can only keep what reaches the collector |
| Keep all errors | Collector tail sampling | 100% | Errors are rare and valuable |
| Keep slow traces | Collector tail sampling | 100% above p99 latency threshold | Latency investigation |
| Probabilistic baseline | Collector tail sampling | 10% of remaining traces | Bounded storage cost |
| [Rule] | [Where] | [Rate] | [Rationale] |
Head sampling below 100% in the SDK drops traces before the collector sees them, so tail rules such as "keep all errors" cannot recover errors in those traces. If SDK or network overhead forces head sampling, record the head rate here and state that the error and latency rules apply only to head-sampled traces.
Effective stored volume:
where is the share of traces kept by the error and latency rules and is the probabilistic baseline rate (0.10 above).
8. Dashboards
| Dashboard | Audience | Required panels | Owner | Link |
|---|---|---|---|---|
| Service overview (one per service) | On-call | Rate, error ratio, p50/p95/p99 latency, saturation, SLO burn, deploy markers | Service team | [Link] |
| Dependency view | On-call | Outbound call latency and errors per dependency | Service team | [Link] |
| Platform health | SRE | Cluster utilisation, collector health, queue depth | Platform | [Link] |
| Business KPIs | Product | Orders, sign-ups, conversion | Product analytics | [Link] |
| [Dashboard] | [Audience] | [Panels] | [@team] | [Link] |
Dashboards are stored as code in [repository path] and reviewed like any other change.
9. SLIs and SLOs
| SLO ID | SLI | Metric query (summary) | Objective | Window | Error budget |
|---|---|---|---|---|---|
| SLO-CHK-01 | Availability of POST /orders | Non-5xx count divided by total count from http.server.request.duration | 99.9% | 28 days | 40.3 min |
| SLO-CHK-02 | Latency of POST /orders | Share of requests under 500 ms | 99% | 28 days | 1% of requests |
| [SLO-ID] | [SLI] | [Query] | [%] | [Window] | [Budget] |
Burn rate, used by alerts in section 10:
Burn rate needed to consume a fraction of the budget in an alert window , for an SLO window , is . For the 28-day windows above (672 hours), consuming 2% in one hour needs a burn rate of ; for a 30-day window (720 hours) the same rule gives 14.4.
10. Alerting
10.1 Severity levels
The organisation rules for paging, alert metadata, noise budgets and alert
review are set by the Alerting Policy (ops/alerting-policy); this
section lists only the alert rules this service implements. Alert levels
below decide how a person is notified. Incident severity (SEV levels) is
decided separately, during response, with the Incident Severity Matrix
(ops/incident-severity-matrix).
| Alert level | Meaning | Notification | Response |
|---|---|---|---|
| Page | Users affected now or budget burning fast | Page primary on-call | Example: Acknowledge within 5 min |
| Ticket | Degradation or slow burn | Ticket and chat | Example: Next working hours |
| Info | Awareness only | Chat channel | None required |
10.2 Alert rules
| ID | Alert | Condition | For | Severity | Routing | Runbook |
|---|---|---|---|---|---|---|
| AL-01 | Example: Checkout fast burn (28-day SLO) | Burn rate > 13.44 over 1 h and > 13.44 over 5 min | 2 min | Page | checkout on-call | [Runbook link] |
| AL-02 | Example: Checkout slow burn | Burn rate > 0.93 over 3 days and > 0.93 over 6 h (10% of a 28-day budget) | 1 h | Ticket | checkout team queue | [Runbook link] |
| AL-03 | Example: Queue saturation | acme.queue.depth > 50,000 | 10 min | Page | fulfilment on-call | [Runbook link] |
| AL-04 | Example: Collector dropping data | Exporter failures > 1% | 15 min | Ticket | platform team | [Runbook link] |
| [AL-nn] | [Alert] | [Condition] | [Duration] | [Severity] | [Route] | [Link] |
10.3 Alert hygiene
- Review alert volume monthly; any alert that fired without action is tuned or removed.
- Silence windows require an owner and expiry.
- Target: stay within the Alerting Policy (
ops/alerting-policy) noise budget, Example: no more than [2] pages per on-call shift on average across a week. Production readiness reviews (dev/service-readiness) forecast against the same budget.
11. Privacy and security
| ID | Rule | Enforcement point | Verification |
|---|---|---|---|
| PR-01 | Never record passwords, tokens, keys or session cookies | SDK and collector redaction processor | Automated scan of sampled logs weekly |
| PR-02 | Email addresses, phone numbers and card numbers are masked | Collector pattern-based scrubber | Unit tests on scrubber rules |
| PR-03 | User identifiers are pseudonymised (enduser.pseudo.id) | SDK helper | Code review checklist |
| PR-04 | Query strings are dropped from url.full | Collector attribute processor | Sample inspection |
| PR-05 | Telemetry access is role-based and logged | Backend access control | Quarterly access review |
| [PR-nn] | [Rule] | [Where] | [How checked] |
Security telemetry boundary: security event logs (for example sign-in
results, privilege changes, access to sensitive records) often need
fields, integrity protection and retention periods that differ from
operational telemetry, and may be subject to legal retention
requirements. Define them in the Security Logging Standard
(security/security-logging-standard). The operational pipeline may carry
a copy for correlation, but the operational retention in section 12 never
shortens the security retention.
Data subject requests: [describe how telemetry is handled for deletion requests, for example "retention below 30 days for logs containing pseudonymous IDs, so data expires within the response deadline"].
12. Retention and cost
| Signal | Hot retention | Archive retention | Volume per day | Unit cost | Monthly cost |
|---|---|---|---|---|---|
| Logs | Example: 14 days | 90 days compressed | 400 GB | [Amount per GB] | [Amount] |
| Metrics | Example: 30 days raw, 13 months downsampled | n/a | 2 M active series | [Amount per series] | [Amount] |
| Traces | Example: 7 days | None | 150 GB | [Amount per GB] | [Amount] |
| Profiles (if piloted) | Example: 7 days | None | 20 GB | [Amount per GB] | [Amount] |
| [Signal] | [Days] | [Days] | [Volume] | [Cost] | [Amount] |
Retention here covers operational telemetry only. Security event logs
follow the retention set in security/security-logging-standard.
Monthly cost estimate per signal:
where is the ingested volume per day, the ingest price per unit, the average volume held in storage during the month (hot plus archive) and the storage price per unit per month. Example: logs at 400 GB per day with 14 days hot retention hold about 400 x 14 = 5,600 GB hot on average.
Cost controls: [list sampling, log level defaults, attribute limits and budget alerts that keep spend within OG-03].
13. Ownership and governance
| Area | Owner | Responsibilities |
|---|---|---|
| Telemetry pipeline and backends | Platform team | Availability, scaling, upgrades, scrubbing processors |
| Service instrumentation | Each service team | RED metrics, spans, logs per this spec; dashboards and alerts |
| Semantic conventions register (4.3) | Observability guild | Review new attributes and metric names |
| Privacy rules (11) | Security / privacy | Approve rules, audit compliance |
| [Area] | [@team] | [Responsibilities] |
Changes to this specification follow [process, for example "pull request to the observability repository with review from two guild members"]. A new service is production-ready only when it passes the checklist in appendix 14.1.
14. Appendices
14.1 Service onboarding checklist
- Resource attributes in 4.2 set and verified in each backend.
- RED metrics exported for every entry point.
- Trace context propagated on all inbound and outbound calls.
- Logs follow schema 5.1 and include
trace_id. - Service overview dashboard created from the standard template.
- At least one SLO defined and burn-rate alerts configured with runbooks.
- Privacy rules in section 11 verified by a sample review.
14.2 Glossary
| Term | Meaning |
|---|---|
| OTLP | OpenTelemetry Protocol for transporting telemetry |
| Resource | The entity producing telemetry, described by attributes |
| Span | One timed operation within a trace |
| RED | Rate, Errors, Duration |
| USE | Utilisation, Saturation, Errors |
| Burn rate | Speed at which an error budget is consumed relative to the SLO |
| Semantic conventions | OpenTelemetry's agreed names and meanings for attributes, metrics, spans and events |
| Stability status | Maturity of a convention: Development (with Alpha and Beta sub-levels), Release Candidate, Stable, or Deprecated |
| Profiles | Fourth OpenTelemetry signal: sampled stack traces showing where code spends CPU and memory |
14.3 References
| Reference | Use |
|---|---|
| OpenTelemetry specification (opentelemetry.io/docs/specs/otel) | Signals, resources, propagation, sampling |
| OpenTelemetry semantic conventions 1.44.0, 2026-08-04 (opentelemetry.io/docs/specs/semconv) | Pinned attribute and metric names, stability per area (4.4) |
| OpenTelemetry GenAI semantic conventions repository (github.com/open-telemetry/semantic-conventions-genai) | gen_ai.* names, moved out of the main repository in 1.42.0 |
| OpenTelemetry blog, "OpenTelemetry Profiles Enters Public Alpha" (2026-03-26) | Profiles maturity (section 3) |
| W3C Trace Context Recommendation | Propagation headers |
Alerting Policy (ops/alerting-policy) | Organisation alerting rules (section 10) |
Security Logging Standard (security/security-logging-standard) | Security event fields and retention (sections 5, 11, 12) |
LLM Observability Specification (ai-data/llm-observability-spec) | Telemetry for LLM and agent features |
SLO Document (dev/slo-doc) | Objectives in section 9 |
Standard and licence note
Based on OpenTelemetry concepts (signals, resources, semantic conventions, context propagation and sampling) and on common SRE practice for RED and USE metrics and burn-rate alerting. Attribute and metric names follow OpenTelemetry semantic conventions 1.44.0 (2026-08-04); stability statuses were checked on 2026-10-24 and change between releases, so check the current version and each area page at opentelemetry.io before adopting. The OpenTelemetry specifications are published under the Apache License 2.0 and the opentelemetry.io documentation under CC BY 4.0; attribution: The OpenTelemetry Authors. This template is original text written for this collection and reproduces no text from the specification. Template licence: MIT.
Related templates
Alerting Policy Template (SLO Burn-Rate Alerts)
Symptom-based paging, page vs ticket vs log, multi-window burn-rate rules with worked numbers, alert metadata, naming, routing, noise budget, review, alerts as code
OperationsCapacity Plan Template
Capacity plan: demand forecast with growth model, utilisation, headroom policy, resource models, bottlenecks, scaling, lead times, cost
OperationsIT Disaster Recovery Plan Template (NIST SP 800-34)
DR plan per NIST SP 800-34: BIA summary, tiers, strategies, activation, recovery, reconstitution, SP 800-84 test and exercise types, DR test report links