Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

You are standardising observability across 60 Spring services, some on Sleuth and some on Micrometer Tracing. What standard and migration plan would you set?

I would standardise on Micrometer Observation and Micrometer Tracing with one exporter path, for example OTLP to an OpenTelemetry collector, plus common tag names, naming rules and W3C trace context propagation for every service. A shared starter would set those defaults, sampling and log correlation so no team configures them by hand. Sleuth services would migrate as part of their Boot 3 upgrade, since Sleuth does not support Boot 3, and a dashboard with per-service cardinality budgets would track adoption and keep metrics cost under control.

Why this question is asked

With 60 services, observability stops being a library choice and becomes a platform decision. If half the services send B3 trace headers and half send W3C headers, traces break at every boundary between the two halves, and an incident that crosses five services turns into five separate investigations. Different tag names make dashboards impossible to share, and one team's careless tag can multiply the metrics bill. Interviewers ask this to see whether we can set a standard that teams will actually adopt, and plan a migration that does not stop feature work. In this answer, we will recap the two stacks involved, define the standard, design the shared starter, plan the migration, and see how to measure adoption and control cost.

1A Quick Recap of Sleuth and Micrometer Tracing

Spring Cloud Sleuth was the tracing library for Spring Boot 2. It created spans for incoming and outgoing requests and put trace ids into log lines, and by default it propagated trace context with B3 headers, the format that came from Zipkin. Micrometer Tracing is its successor for Spring Boot 3 and later. It sits behind the Micrometer Observation API, so the same observation produces both a metric and a span, and it delegates the actual tracing to a bridge, either Brave or OpenTelemetry.

Sleuth does not support Spring Boot 3, so any service on Boot 3 already uses Micrometer Tracing or nothing. That fact shapes the migration plan: we do not need a separate tracing project, because the tracing move rides on the Boot upgrade every team must do anyway.

2The Standard Itself

The standard should be short enough to fit on one page. Instrumentation uses the Micrometer Observation API and Micrometer Tracing with the OpenTelemetry bridge. Every service exports metrics and traces over OTLP, the OpenTelemetry protocol, to a collector run by the platform team. The collector decides where the data goes, so changing a vendor later is a collector change, not 60 code changes.

Propagation is W3C trace context, the traceparent header, because it is the open standard that gateways, service meshes and other languages understand. Every metric and span carries the same resource tags: service.name, deployment environment, region and version. Custom metric names follow one pattern, such as domain.object.action in lower case with dots, for example payments.refund.issued.

Step throughThe observability path for every service
  1. Service codeframework observations plus @Observed and custom observations
  2. Company startertags, sampling, propagation, log pattern, cardinality guard
  3. Micrometer Observation and TracingOpenTelemetry bridge
  4. OTLP exporterone protocol for metrics and traces
  5. OpenTelemetry collectorbatching, tail sampling, routing
  6. Backendsmetrics store, trace store, log store

6 layers, from the top down. Step through them one at a time.

Teams own only the top layer; everything below is set once by the platform.

3A Shared Starter Instead of a Wiki Page

Standards written on a wiki are followed for a month. Standards built into a dependency are followed by default. So the platform team ships a small Spring Boot starter, for example acme-observability-starter, that each service adds once. It brings the OpenTelemetry bridge and OTLP exporter, sets the common tags, configures sampling, sets the log pattern so every line carries traceId and spanId, and registers a guard that refuses obviously high-cardinality tags.

Java
# Defaults the starter ships (Boot 3.x property names; check your version)
# 10% head sampling, overridable per service
management.tracing.sampling.probability=0.1
management.tracing.propagation.type=w3c
management.otlp.tracing.endpoint=http://otel-collector:4318/v1/traces
management.observations.key-values.region=${REGION:unknown}
logging.pattern.correlation=[${spring.application.name:},%X{traceId:-},%X{spanId:-}]
// And a guard bean, so one mistake cannot create a million series
@Bean MeterFilter maxUriTags() {
return MeterFilter.maximumAllowableTags("http.server.requests", "uri", 200, MeterFilter.deny());
}

Notice that every value is a default, not a lock. A team with a good reason can override sampling, but it has to do so visibly in its own configuration, which makes the exception reviewable.

4Planning the Migration

The services fall into two groups. Those already on Boot 3 adopt the starter directly; that is usually a one-day change. Those on Sleuth move when they upgrade to Boot 3, and the tracing change is listed as one step of that upgrade checklist rather than a separate project.

There is a catch during the transition: Sleuth services send B3 headers and migrated services send W3C headers, so traces would break between them. The fix is to let migrated services accept both formats while the mix exists, and to have the collector or gateway handle both. Once the last Sleuth service is gone, we drop B3. We order the waves by risk: start with two volunteer teams to prove the starter, then the services on the busiest request paths, so incident investigations benefit first, then the rest.

Step throughMigration waves
  1. Release the starterwith two volunteer teams
  2. Is the service on Boot 3?
    YesAdd the starter nowNoAdd tracing step to its Boot 3 upgrade
  3. Accept both B3 and W3Cwhile Sleuth services remain
  4. Migrate the busiest request pathsthey matter most in incidents
  5. Migrate the remaining servicestrack on the adoption dashboard
  6. Remove B3 supportwhen no Sleuth service remains

6 steps in order. Play them, or step through them one at a time.

5Measuring Adoption and Controlling Cost

We track the rollout on a dashboard built from the telemetry itself: the number of services reporting with the starter's version tag, the share of requests whose traces are complete end to end, and the services still on Sleuth. That turns the migration into something visible to directors, which helps teams prioritise it.

Cost needs its own control. Metrics cost grows with the number of active time series, so each service gets a cardinality budget, for example 5,000 active series, with an alert when it is exceeded. Traces are controlled with sampling: 10% head sampling as a default, and tail sampling in the collector to keep every trace that contains an error or is slower than a threshold. Reviewing the top ten series producers each month usually finds the one tag that holds a user id or a raw path.

6Follow-up questions

Why W3C trace context rather than B3?

W3C trace context is an open standard that OpenTelemetry, most gateways, service meshes and cloud providers support by default, and it is what Micrometer Tracing uses by default in Boot 3. B3 is still widely understood but mainly a Zipkin heritage format. Choosing W3C means non-Java services and infrastructure join the same traces without extra configuration.

Should the shared starter be mandatory?

I would make it the default in the service template and a requirement for anything on the critical request paths, but allow a documented exception for special cases. Forcing it on teams through a review gate works less well than making it the easiest path, with the adoption dashboard showing who is missing.

How do you keep the starter from becoming a bottleneck?

Keep it small, version it with semantic versioning, test it against the Boot versions we support, and accept contributions from service teams through normal pull requests. It should hold defaults and guards only, never business logic, so most releases are routine dependency updates.

7Conclusion

In this answer, we set one observability standard for 60 services: Micrometer Observation and Tracing with the OpenTelemetry bridge, OTLP to a collector, W3C propagation and common tags and names. A shared starter delivers the defaults, sampling and log correlation, Sleuth services migrate as part of their Boot 3 upgrade with both propagation formats accepted during the transition, and a dashboard plus cardinality budgets and sampling keep adoption visible and cost under control.

What to say in the interviewAbout 80 seconds aloud

Open with

I would set a one-page standard and deliver it as code. The standard is Micrometer Observation and Micrometer Tracing with the OpenTelemetry bridge, exporting metrics and traces over OTLP to an OpenTelemetry collector that the platform team runs, so backends can change in one place.

Then, if they want more

Propagation is W3C trace context, and every service carries the same tags, service name, environment, region and version, with one naming pattern for custom metrics. Then I would ship a small company starter that brings the bridge and exporter, sets the tags, 10 percent head sampling, the log pattern with trace and span ids, and a guard against high-cardinality tags.

For the migration, services already on Boot 3 adopt the starter directly. Sleuth services move as one step of their Boot 3 upgrade, because Sleuth does not support Boot 3 anyway. During the transition, migrated services accept both B3 and W3C headers so traces do not break, and we drop B3 when the last Sleuth service is gone.

I would start with two volunteer teams, then the busiest request paths. Finally, a dashboard shows adoption and end-to-end trace completeness, and each service has a cardinality budget, say 5,000 series, with tail sampling in the collector keeping errors and slow traces, so the cost stays predictable.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 3, Spring Boot 2
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "You are standardising observability across 60 Spring services, some on Sleuth and some...": https://scrivio-interview-library.netlify.app/spring-boot/spring-framework-evolution/212687f464/