Skip to content

CONCEPT Cited by 1 source

Observability SDK wrapper

Definition

An observability SDK wrapper is a thin, internally-owned library that sits on top of a standards-based observability SDK (e.g. OpenTelemetry), pre- configures organisation-specific conventions (env vars, semantic tags, exporter endpoints, default instrumentations, security/compliance constraints), and exposes a single- statement startup surface so service owners do not have to wire OTel themselves.

Why it matters

Upstream OTel is deliberately low-level — it exposes providers, processors, exporters, resource attributes, propagators, and more as composable primitives so any organisation can fit them to their stack. That flexibility becomes operational burden for the service owner who just wants tracing turned on: setting up every OTel primitive correctly is a dozen lines of boilerplate per service, repeated across hundreds of services, and drift accumulates.

A wrapper solves this by centralising the glue (Source: sources/2024-07-28-zalando-opentelemetry-for-javascript-observability-at-zalando):

  • Auto-configuration — parses platform-provided env vars (service name, deployment, zone, cluster) and wires them as OTel resource attributes without the service owner having to do anything.
  • Standard semantic conventions across languages so dashboards work uniformly.
  • Built-in auto-instrumentations (HTTP, framework, DB clients) and platform-specific metrics (CPU, memory, GC, event-loop lag) enabled by default.
  • Central control over feature use/restriction — security, compliance, rate-limiting, sampling policy — updated by bumping the wrapper version across the fleet.
  • Single-statement startup:
import { SDK } from "@zalando/observability-sdk-node";
new SDK().start();

replacing 20+ lines of OTel setup.

Canonical instance

Zalando ships observability SDKs in several languages; the 2024-07-28 post documents the Node.js and Browser members. The wrapper acts as "a small wrapper on top of open-source core OpenTelemetry packages that adds Zalando-specific configuration and acts as a proxy for all underlying dependencies" (Source: sources/2024-07-28-zalando-opentelemetry-for-javascript-observability-at-zalando).

Trade-offs

  • Cost: requires a dedicated platform team (Zalando's is SRE Enablement + Web Platform) to own and version the wrapper; drift between the wrapper and upstream OTel must be managed.
  • Benefit: the 53 Node.js apps instrumented by 2024-07 cite the 1-line import as the adoption enabler; direct OTel wiring probably wouldn't have reached this number.
Last updated · 501 distilled / 1,218 read