Scrivio Interview library
DesignPrincipal6 min read · updated 12 November 2026

Health endpoints, metrics and logs have evolved from Dropwizard Metrics and Codahale health checks to Micrometer and OpenTelemetry. How would you set a long-term observability direction for a mixed estate?

I would adopt vendor-neutral standards for all new work, OpenTelemetry for traces and metrics and structured JSON logs with trace ids, and bridge the legacy Dropwizard Metrics into the same backend during the transition instead of rewriting it. Health checks stay as a lifecycle signal for the orchestrator, while telemetry is used for diagnosis and SLOs. Migration is budgeted service by service with no big bang, and sampling and retention are set centrally because telemetry cost grows quickly.

Why this question is asked

A long-lived estate collects layers of observability: Codahale health checks and Dropwizard Metrics in the oldest services, Micrometer in Spring Boot ones, and now OpenTelemetry arriving with new tools. Each layer has its own names, formats and dashboards, and an engineer on call has to know all of them. Interviewers ask this at the most senior levels because the answer is a direction that must hold for years and survive budgets. In this answer, we will recap the libraries, choose the standards, bridge the old ones, separate health from telemetry, plan the migration and control the cost.

1A Quick Recap of the Libraries Involved

Dropwizard Metrics (formerly Codahale Metrics) is a Java library of meters, timers, histograms and gauges kept in a MetricRegistry, together with the health check API. Micrometer is a metrics facade used by Spring Boot: code records to Micrometer, and a registry sends the data to Prometheus, Datadog or another backend. OpenTelemetry (OTel) is a vendor-neutral standard and set of SDKs for traces, metrics and logs, with its own wire protocol, OTLP, and a Collector that receives, processes and forwards telemetry to any backend.

The three overlap but are not equal. Dropwizard Metrics and Micrometer are metrics libraries inside one JVM. OpenTelemetry defines how all three signals are described and transported across languages and vendors. That is why it is the natural common ground for a mixed estate.

2Standards for New Work

For anything new, the direction is: traces and metrics through OpenTelemetry, sent over OTLP to a central Collector; logs as structured JSON with the trace id and span id in every line, so a log can be joined to its trace. Spring Boot services can keep Micrometer in their code, since Micrometer can export over OTLP and Micrometer Tracing can bridge to OpenTelemetry; the OpenTelemetry Java agent can also instrument common libraries without code changes. Check your versions for the exact bridges.

The Collector is the key piece. Services send to it, and it decides where data goes. Changing a vendor, or sending a copy to a second backend during an evaluation, then becomes a Collector configuration change rather than a change in hundreds of services. That is what vendor-neutral means in practice.

Step throughTarget observability architecture
  1. ServicesOTel SDK or agent, Micrometer, Dropwizard Metrics
  2. Bridgeslegacy metrics exported in the common format
  3. OpenTelemetry Collectorreceive, sample, enrich, route
  4. Backendsmetrics store, trace store, log store
  5. Usedashboards, SLO alerts, incident analysis

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

Every source ends at the same Collector, so backends can change without touching services.

3Bridging the Legacy Libraries Instead of Rewriting

Rewriting every Dropwizard service's metrics before we see any benefit would cost months and deliver nothing visible. Instead we bridge. Several routes exist: the OpenTelemetry Java agent has an instrumentation that can read Dropwizard Metrics registries (it is off by default, check your version), a Prometheus exporter can expose a Dropwizard MetricRegistry for scraping by the Collector, and Dropwizard's own reporters can send to common backends.

The bridge gives us one place to see everything within weeks. The cost is naming: legacy metrics keep their old dotted names such as orders.http.requests.count, while new ones follow OpenTelemetry semantic conventions such as http.server.request.duration. We accept that during the transition, document a mapping for the most important ones, and build the shared dashboards and SLOs on the standard names, migrating a service's important metrics when it reaches the front of the queue.

4Health Checks and Telemetry Have Different Jobs

It is tempting to fold health checks into the new telemetry story, but they answer a different question. A health check is a lifecycle signal: it tells the orchestrator whether to restart a container or send it traffic, and it must answer in milliseconds from inside the pod. Telemetry is for understanding: why latency rose, which dependency failed, how much of the error budget is left.

So the direction keeps health checks, whether Codahale health checks, the Dropwizard health module or Spring Boot Actuator, as the probe endpoints, with one shared format across stacks. Their results can also be exported as a metric so dashboards show them, but alerting comes from SLOs built on request telemetry, not from health checks.

5Migrating Service by Service, and Watching the Cost

Each service gets a migration budget, typically one to three days, scheduled when the team touches the service anyway, such as during a framework upgrade. The order follows value: services on the critical user paths first, because their traces matter most during incidents, and quiet internal tools last or never. A simple scorecard per service tracks traces on, logs structured, standard metrics, SLOs defined.

Cost needs central control from the start. Telemetry volume grows faster than traffic, because every new attribute multiplies the number of metric series and every span is stored. A single high-cardinality tag, such as a user id on a metric, can create millions of series. So the platform sets rules: head sampling of, say, 10 percent of traces, plus tail sampling in the Collector that keeps every trace with an error or high latency; limits on metric attributes; and retention such as 14 days for traces, 30 days for logs and 13 months for aggregated metrics. A monthly cost report per team keeps the rules respected.

6Follow-up questions

Why not just standardise on Micrometer, since Spring Boot already uses it?

Micrometer is a good metrics library for JVM code, and Spring services can keep it. But it covers only metrics in Java, while the estate also needs traces, logs and probably other languages. OpenTelemetry defines the protocol and conventions for all of them, so it is the better contract between services and the platform. Micrometer then becomes one of several producers that speak OTLP.

What is the difference between head and tail sampling?

Head sampling decides at the start of a request, for example keep 10 percent, and the decision travels with the trace context so all services agree. It is cheap but random, so it can drop the one interesting failing trace. Tail sampling decides in the Collector after the trace is complete, so it can keep all errors and slow traces and drop most fast successful ones. It needs the Collector to buffer spans, which costs memory, so many setups combine both.

How do you avoid a big-bang rewrite when leadership wants results quickly?

Deliver visible results early through the bridge and the Collector: within weeks, every service appears on the common backend, and SLO dashboards exist for the main user journeys. Then convert services gradually behind those results. Leadership sees value at the start, and teams spread the real work over normal maintenance.

7Conclusion

In this answer, we set a long-term observability direction for a mixed estate. New work uses OpenTelemetry for traces and metrics and structured logs with trace ids, all sent through a central Collector. Legacy Dropwizard Metrics are bridged rather than rewritten, health checks remain lifecycle signals for the orchestrator, migration happens service by service within a budget, and sampling, attribute limits and retention are set centrally to control cost.

What to say in the interviewAbout 80 seconds aloud

Open with

My direction would be vendor-neutral standards with bridges, not a rewrite. For new work, traces and metrics go through OpenTelemetry over OTLP to a central Collector, and logs are structured JSON with trace and span ids so they join to traces.

Then, if they want more

Spring services can keep Micrometer, since it can export over OTLP, and the OpenTelemetry agent covers common libraries. The Collector is the important part: it decouples services from vendors, so switching or adding a backend is a config change.

For the legacy Dropwizard Metrics, I'd bridge them into the same backend, through the agent's Dropwizard instrumentation, a Prometheus exporter or a reporter, so everything is visible in weeks, and accept old metric names during the transition while dashboards and SLOs use the standard names.

I'd keep health checks as lifecycle signals for Kubernetes, with one format across stacks, and do alerting from SLOs on request telemetry. Migration is budgeted per service, a few days each, critical paths first, done when teams touch the service anyway.

And I'd control cost centrally from day one: head plus tail sampling that keeps errors and slow traces, limits on metric attributes, retention policies, and a monthly cost report per team.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. 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 "Health endpoints, metrics and logs have evolved from Dropwizard Metrics and Codahale...": https://scrivio-interview-library.netlify.app/java/dropwizard/d8c1195527/