Markdown Editor

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

OperationsFullOpenTelemetry semantic conventions 1.44.0observabilityspecmath

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

FieldValue
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 updatedYYYY-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

RoleNameDecisionDate
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

VersionDateAuthorChange summary
0.1YYYY-MM-DD[@name]Initial draft
0.2YYYY-MM-DD[@name]Example: Renamed app.user_id to enduser.pseudo.id; added PII scrubbing rule PR-04
1.0YYYY-MM-DD[@name]Example: Approved
1.12026-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

IDGoalMeasure
OG-01Example: Detect user-facing failures before customers report them90% of incidents detected by alert first
OG-02Example: Locate the failing component quicklyMedian time to identify root service < 10 min
OG-03Example: Keep telemetry cost proportional to trafficTelemetry 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 scopeOut of scope
Example: All production and staging services on [platform]Developer laptops
Example: Managed databases and queues via provider metricsBusiness 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.

ComponentTechnologyVersionOwnerNotes
SDKExample: OpenTelemetry SDK for [language][x.y]Each service teamAuto plus manual instrumentation
CollectorExample: OpenTelemetry Collector[x.y]Platform teamAgent 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

SignalUse it forDo not use it forRequired for every service
MetricsAggregated rates, ratios, latency distributions, saturation; alertingPer-request detail, high-cardinality IDsRED metrics for every entry point; USE metrics for every resource
TracesFollowing one request across services; latency breakdownLong-term trend analysisServer and client spans for every network call
LogsDiscrete events with context: errors, state changes, auditCounting things that should be metricsStructured 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 spansAlerting, SLIs, or any decision that needs a stable data contractNone; 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 example acme.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

AttributeExamplePurpose
service.namecheckout-apiIdentifies the service
service.version2026.10.3Correlates with deploys
service.namespacecommerceGroups services by domain
deployment.environment.nameproductionSeparates environments
cloud.regioneu-west-1Locates failures by region
k8s.pod.name or host.namecheckout-api-7d9fFinds the instance
[Attribute][Example][Purpose]

4.3 Custom attributes register

AttributeTypeAllowed valuesSignalsCardinalityOwner
acme.order.channelstringweb, ios, android, partnermetrics, traces, logs4[@team]
acme.tenant.tierstringfree, pro, enterprisemetrics, traces3[@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:

AreaStatus in 1.44.0 (check the area page)What it means for this spec
HTTP spans and metricsStableUse 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 stableSafe for SLIs; check that your database value is marked stable
Resource: service.*, deployment.environment.nameStableRequired resource attributes in 4.2
Kubernetes resource attributesDevelopment document; pod, node, namespace and workload name and UID attributes are stableSafe for routing and grouping; avoid relying on development attributes in alerts
RPC (gRPC and other RPC)Release CandidateUsable; plan a migration window when it becomes stable
Messaging spans and metricsDevelopmentUse, but isolate queries behind recording rules so a rename touches one place
Process metrics and attributesRelease 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 metricsDevelopment, some metrics Release CandidateUse 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 repositoryFollow 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_url where 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_IN setting 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

FieldTypeRequiredDescriptionExample
timestampRFC 3339 string, UTCYesTime the event occurred2026-10-21T09:14:03.512Z
severity_textstringYesOne of DEBUG, INFO, WARN, ERROR, FATALERROR
bodystringYesHuman-readable message without variable data where possiblepayment authorisation failed
trace_idhex stringWhen in a requestCorrelates with traces4bf92f3577b34da6a3ce929d0e0e4736
span_idhex stringWhen in a requestCorrelates with the span00f067aa0ba902b7
service.namestringYesFrom resource attributescheckout-api
event.namestringFor domain eventsStable event identifierpayment.authorisation.failed
error.typestringOn errorsError class or codecard_declined
attributesobjectNoAdditional context per 4.3{"acme.order.channel":"web"}
[field][type][Yes / No][Description][Example]

5.2 Severity guidelines

LevelUse whenPages anyone?
DEBUGDetail useful only during development; disabled in production by defaultNo
INFONormal state changes: started, configuration loaded, job completedNo
WARNUnexpected but handled: retry succeeded, fallback usedNo
ERRORA request or job failed and the caller saw a failureOnly via metric-based alerts
FATALThe process cannot continueVia 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 nameInstrumentUnitAttributesMethodDescriptionOwner
http.server.request.durationHistogramshttp.request.method, http.route, http.response.status_codeRED (rate, errors, duration)Server request latency; count gives rateService team
http.client.request.durationHistogramsserver.address, http.response.status_codeREDOutbound call latencyService team
db.client.operation.durationHistogramsdb.system.name, db.operation.nameREDDatabase call latencyService team
process.cpu.utilizationGauge1cpu.modeUSECPU utilisation per processPlatform
acme.queue.depthGauge{message}messaging.destination.nameUSE (saturation)Messages waiting[@team]
acme.orders.placedCounter{order}acme.order.channelBusinessOrders 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:

Nseries=∏i=1k∣Vi∣N_{\text{series}} = \prod_{i=1}^{k} |V_i|

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

BoundarySpan kindInstrumentationRequired attributes
Incoming HTTP / gRPCSERVERAutohttp.route, http.response.status_code
Outgoing HTTP / gRPCCLIENTAutoserver.address, http.response.status_code
Database callsCLIENTAutodb.system.name, db.operation.name (no full statements with values)
Message publish / consumePRODUCER / CONSUMERManual or librarymessaging.system, messaging.destination.name
Significant internal workINTERNALManualBusiness 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

RuleWhereRateRationale
Export all spans, parent-basedSDK100% of root traces to the collectorTail rules can only keep what reaches the collector
Keep all errorsCollector tail sampling100%Errors are rare and valuable
Keep slow tracesCollector tail sampling100% above p99 latency thresholdLatency investigation
Probabilistic baselineCollector tail sampling10% of remaining tracesBounded 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:

Vstored=V×(prule+(1−prule)×pbase)V_{\text{stored}} = V \times \left( p_{\text{rule}} + (1 - p_{\text{rule}}) \times p_{\text{base}} \right)

where prulep_{\text{rule}} is the share of traces kept by the error and latency rules and pbasep_{\text{base}} is the probabilistic baseline rate (0.10 above).

8. Dashboards

DashboardAudienceRequired panelsOwnerLink
Service overview (one per service)On-callRate, error ratio, p50/p95/p99 latency, saturation, SLO burn, deploy markersService team[Link]
Dependency viewOn-callOutbound call latency and errors per dependencyService team[Link]
Platform healthSRECluster utilisation, collector health, queue depthPlatform[Link]
Business KPIsProductOrders, sign-ups, conversionProduct 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 IDSLIMetric query (summary)ObjectiveWindowError budget
SLO-CHK-01Availability of POST /ordersNon-5xx count divided by total count from http.server.request.duration99.9%28 days40.3 min
SLO-CHK-02Latency of POST /ordersShare of requests under 500 ms99%28 days1% of requests
[SLO-ID][SLI][Query][%][Window][Budget]

Burn rate, used by alerts in section 10:

burn rate=observed error ratio1−SLO\text{burn rate} = \frac{\text{observed error ratio}}{1 - \text{SLO}}

Burn rate needed to consume a fraction ff of the budget in an alert window ww, for an SLO window PP, is b=f×P/wb = f \times P / w. For the 28-day windows above (672 hours), consuming 2% in one hour needs a burn rate of 0.02×672/1=13.440.02 \times 672 / 1 = 13.44; 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 levelMeaningNotificationResponse
PageUsers affected now or budget burning fastPage primary on-callExample: Acknowledge within 5 min
TicketDegradation or slow burnTicket and chatExample: Next working hours
InfoAwareness onlyChat channelNone required

10.2 Alert rules

IDAlertConditionForSeverityRoutingRunbook
AL-01Example: Checkout fast burn (28-day SLO)Burn rate > 13.44 over 1 h and > 13.44 over 5 min2 minPagecheckout on-call[Runbook link]
AL-02Example: Checkout slow burnBurn rate > 0.93 over 3 days and > 0.93 over 6 h (10% of a 28-day budget)1 hTicketcheckout team queue[Runbook link]
AL-03Example: Queue saturationacme.queue.depth > 50,00010 minPagefulfilment on-call[Runbook link]
AL-04Example: Collector dropping dataExporter failures > 1%15 minTicketplatform 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

IDRuleEnforcement pointVerification
PR-01Never record passwords, tokens, keys or session cookiesSDK and collector redaction processorAutomated scan of sampled logs weekly
PR-02Email addresses, phone numbers and card numbers are maskedCollector pattern-based scrubberUnit tests on scrubber rules
PR-03User identifiers are pseudonymised (enduser.pseudo.id)SDK helperCode review checklist
PR-04Query strings are dropped from url.fullCollector attribute processorSample inspection
PR-05Telemetry access is role-based and loggedBackend access controlQuarterly 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

SignalHot retentionArchive retentionVolume per dayUnit costMonthly cost
LogsExample: 14 days90 days compressed400 GB[Amount per GB][Amount]
MetricsExample: 30 days raw, 13 months downsampledn/a2 M active series[Amount per series][Amount]
TracesExample: 7 daysNone150 GB[Amount per GB][Amount]
Profiles (if piloted)Example: 7 daysNone20 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:

C=Vday×30×cingest+Vretained×cstorageC = V_{\text{day}} \times 30 \times c_{\text{ingest}} + V_{\text{retained}} \times c_{\text{storage}}

where VdayV_{\text{day}} is the ingested volume per day, cingestc_{\text{ingest}} the ingest price per unit, VretainedV_{\text{retained}} the average volume held in storage during the month (hot plus archive) and cstoragec_{\text{storage}} 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

AreaOwnerResponsibilities
Telemetry pipeline and backendsPlatform teamAvailability, scaling, upgrades, scrubbing processors
Service instrumentationEach service teamRED metrics, spans, logs per this spec; dashboards and alerts
Semantic conventions register (4.3)Observability guildReview new attributes and metric names
Privacy rules (11)Security / privacyApprove 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

TermMeaning
OTLPOpenTelemetry Protocol for transporting telemetry
ResourceThe entity producing telemetry, described by attributes
SpanOne timed operation within a trace
REDRate, Errors, Duration
USEUtilisation, Saturation, Errors
Burn rateSpeed at which an error budget is consumed relative to the SLO
Semantic conventionsOpenTelemetry's agreed names and meanings for attributes, metrics, spans and events
Stability statusMaturity of a convention: Development (with Alpha and Beta sub-levels), Release Candidate, Stable, or Deprecated
ProfilesFourth OpenTelemetry signal: sampled stack traces showing where code spends CPU and memory

14.3 References

ReferenceUse
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 RecommendationPropagation 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