Video in progress

50 services write logs in different formats, and their metric names differ too. How do you roll out a telemetry standard across the whole company?

I deliver the standard not as a document but as a library and a platform default: a shared starter, field names based on the OpenTelemetry semantic conventions, and automated checks in CI. Migration goes step by step, starting with the services that cause the most incidents.

📖 Answer

This is how it usually goes: a "logging guideline" wiki page is forgotten after a month. A standard works only when the right way is also the easiest way.

What gets standardized:

  • resource attributes: service.name, service.version, deployment.environment, the same on every signal;
  • log fields: trace_id, span_id, level, logger, error.type, error.stack_trace, based on the OpenTelemetry semantic conventions or ECS, so we don't invent our own;
  • metric naming: Micrometer's dotted names (orders.created), units in base units (seconds, bytes), and a mandatory set of tags;
  • HTTP, DB and messaging spans come from ready-made instrumentation, not by hand.

How it gets delivered:

  1. An internal Spring Boot starter: JSON logging, trace ID in MDC, standard MeterFilters, OTLP export configuration. A new service adds it and everything works.
  2. At the platform level: normalizing attribute names in the Collector (old orderId to order.id), so both names work during the migration.
  3. A check in CI: the service is started, and the /actuator/prometheus output and a sample log line are validated against a schema.
  4. The "golden" dashboard and alert templates work only with the standard names. This is the strongest motivation: a service that moves to the standard gets ready-made dashboards and SLO alerts for free.

Migration order: not everyone at once. First new services, then the services that cause the most incidents or on-call load. At each stage I measure: how many services conform to the standard, and how long a cross-service search takes during an incident.

The standard needs an owner too: the platform team plus one representative from each large team. Without that, the standard falls apart with every new request.