📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

Jaeger, Zipkin, Grafana Tempo or Application Insights: what does each give you as a tracing backend, how do you get traces into them from .NET using OTLP and the OpenTelemetry Collector, and how would you choose for a team running .NET 10 services on Azure?

Compares Jaeger v2, Zipkin, Grafana Tempo and Application Insights on features, storage, cost and operations, explains OTLP export directly or via the Collector, the deprecated Zipkin exporter, and a decision approach for Azure-hosted .NET teams.

Mid-Level Theory Intermediate application-insights distributed-tracing jaeger observability opentelemetry-collector otlp

🎯 Key points

  • OTLP (gRPC 4317, HTTP 4318) is the vendor-neutral export protocol; instrument once with OpenTelemetry, switch backends by configuration
  • Jaeger v2 is a distribution of the OpenTelemetry Collector with Jaeger's UI and storage; OTLP is its native input; production storage is OpenSearch/Elasticsearch or Cassandra (Badger and memory only for small or local use)
  • Zipkin: OpenTelemetry deprecated its Zipkin exporters; the .NET package stops getting updates in December 2026, so don't start new work on it: export OTLP and convert in the Collector
  • Grafana Tempo stores traces in object storage, cheap at volume, queried with TraceQL, links from Prometheus exemplars and Loki
  • Application Insights: managed, correlates requests, dependencies, exceptions and logs (Application Map, transaction view, KQL); billed per GB ingested plus retention, check current pricing tiers
  • Azure Monitor OpenTelemetry Distro (UseAzureMonitor) or the Collector's azuremonitor exporter feed Application Insights
  • Collector decouples apps from backends: batching, retries, sampling, fan-out; set sampling deliberately so the backend keeps the traces you need
  • Choose on ops capacity, cost at your span volume, correlation with logs/metrics, data residency (Australia East)

⏱ 30-second answer

All of them store and show traces; they differ in who runs them and how they price and store data.

  • Application Insights: managed by Azure, correlates traces with logs, exceptions and metrics, gives you Application Map and KQL. You pay per GB ingested and retained.
  • Jaeger v2: open source, built on the OpenTelemetry Collector, ingests OTLP natively; you run it and its storage (Elasticsearch/OpenSearch or Cassandra).
  • Grafana Tempo: stores traces in object storage, so it's cheap at high volume, and pairs with Prometheus and Loki.
  • Zipkin: older and simpler; OpenTelemetry has deprecated its Zipkin exporter, so send OTLP instead.

From .NET you instrument once with OpenTelemetry and export OTLP, ideally through a Collector that can batch, sample and fan out. The trade-off: managed backends cost money per GB; self-hosted ones cost engineering time.

🗣 Full answer (senior)

How I would answer this in an interview

"The first thing I'd say is that the backend decision matters less than it used to, because with OpenTelemetry you instrument once and export OTLP, the vendor-neutral protocol. Changing backend is a configuration change, not a code change, especially if the services send to an OpenTelemetry Collector that then exports wherever you want.

Then the backends. Application Insights is the managed option on Azure: you call UseAzureMonitor() from the Azure Monitor OpenTelemetry Distro, and you get traces, logs, exceptions and metrics correlated in one place, the Application Map, the end-to-end transaction view, and KQL over a Log Analytics workspace, which you can keep in Australia East for data residency. The cost is per GB ingested and retained, which gets significant at high span volumes. Jaeger is the CNCF open-source tracing backend; version 2 is built on the OpenTelemetry Collector and accepts OTLP directly, but you run it and its storage, usually OpenSearch or Cassandra. Grafana Tempo stores traces in object storage like Azure Blob, so it's cheap at scale and pairs naturally with Prometheus and Loki in Grafana. Zipkin is the older, simpler option; OpenTelemetry has deprecated its Zipkin exporter, so if you keep Zipkin you send OTLP and convert in the Collector.

The mistake I see is choosing on features alone. For a team of [six] on Azure with no platform team, Application Insights is usually right because nobody has to run storage at 2 a.m. If you're producing tens of thousands of spans per second and already run Grafana, Tempo is often much cheaper. Pick the backend your team can operate, and keep OTLP so you can change your mind."


Comparison

Application Insights Jaeger v2 Grafana Tempo Zipkin
Hosting Managed (Azure) Self-hosted Self-hosted or Grafana Cloud Self-hosted
Ingest Azure Monitor exporter/distro; Collector azuremonitor exporter OTLP native OTLP native Zipkin format; OTLP via Collector or Zipkin's OTLP support
Storage Log Analytics workspace OpenSearch/Elasticsearch, Cassandra, Badger, memory Object storage (Blob, S3, GCS) Cassandra, Elasticsearch, MySQL, memory
Query KQL, transaction search, Application Map UI search by service/tags, trace compare TraceQL in Grafana UI search
Logs/metrics correlation Built-in Via links to other tools Grafana with Loki, Prometheus exemplars Limited
Cost driver GB ingested + retention Your storage and ops time Object storage (cheap) + compute Your storage and ops time

When each fits

Situation Choice
Azure-hosted, small team, want logs/metrics/traces in one place Application Insights
Already run Grafana, Prometheus and Loki; high span volume Tempo
Need open source, on-premises or air-gapped, search UI Jaeger
Existing Zipkin estate Keep it short term, send OTLP via the Collector, plan migration
Local development Jaeger all-in-one or the .NET Aspire dashboard

Production example

A team sending about 8,000 spans per second to Application Insights was paying [roughly A$X per month] for trace ingestion. They kept Application Insights for requests, exceptions and logs (with 10% trace sampling) and used the Collector to fan out 100% of traces to Tempo on Azure Blob storage with 14-day retention. Trace storage cost fell [by about 70%] while full traces stayed available in Grafana.

🔍 What the interviewer is checking

Checks that the candidate knows the tracing backend landscape, OTLP and the Collector, and can choose on operational and cost grounds.

Green flags

  • Leads with OTLP and instrument-once
  • Knows Jaeger v2 is Collector-based and the Zipkin exporter is deprecated
  • Explains Application Insights' correlation features and per-GB cost
  • Weighs ops capacity, cost and data residency

Red flags

  • Ties instrumentation to a single vendor SDK
  • No idea how traces get from .NET to the backend
  • Chooses on UI features only

📚 Learn in depth

1. OTLP and why it changed the choice

OTLP (OpenTelemetry Protocol) carries traces, metrics and logs over gRPC (port 4317) or HTTP/protobuf (port 4318). Every major backend now accepts it, either directly or through the Collector. That means:

.NET service --OTLP--> Collector --+--> Application Insights (azuremonitor exporter)
                                   +--> Tempo / Jaeger (OTLP)
                                   +--> Zipkin (zipkin exporter)

The apps only know the Collector's address (OTEL_EXPORTER_OTLP_ENDPOINT).

2. Application Insights internals

  • Data lands in a Log Analytics workspace in tables like AppRequests, AppDependencies, AppTraces, AppExceptions (the classic requests/dependencies names still work in the Application Insights blade).
  • Server spans become requests, client/internal spans become dependencies; operation_Id = trace id.
  • Features built on that data: Application Map (dependency graph), end-to-end transaction view, failures and performance blades, Live Metrics, smart detection.
  • Microsoft's recommended way to send data from .NET is the Azure Monitor OpenTelemetry Distro (Azure.Monitor.OpenTelemetry.AspNetCore, UseAzureMonitor()); the classic Application Insights SDK is the older path. Check current guidance before starting a migration.
  • Cost: billed per GB ingested (with commitment tiers) plus retention beyond the included period. Basic/auxiliary log plans are cheaper but limit queries.

3. Jaeger

  • Created at Uber, CNCF graduated. Jaeger v2 (released late 2024) is a distribution of the OpenTelemetry Collector with Jaeger's storage and UI; OTLP is the native input. The old Jaeger client libraries were retired in favour of OpenTelemetry SDKs.
  • Storage: OpenSearch/Elasticsearch or Cassandra for production; Badger or memory for small or local set-ups.
  • Strengths: mature UI, trace comparison, service dependency graph. You own scaling, retention and upgrades.

4. Zipkin

  • The original open-source tracer (Twitter, 2012), using B3 headers historically.
  • OpenTelemetry deprecated its Zipkin exporters in favour of OTLP; the .NET OpenTelemetry.Exporter.Zipkin package is marked deprecated and stops receiving updates in December 2026. Use the OTLP exporter and convert in the Collector if Zipkin stays.

5. Grafana Tempo

  • Index-light design: stores trace blocks in object storage and looks them up by trace id, with TraceQL for search. Much cheaper per GB than search-indexed stores.
  • Best with exemplars: Prometheus histograms carry trace ids, so a latency spike on a dashboard links straight to an example trace.

6. Choosing

Score candidates on: ops capacity, cost at your span volume and retention, correlation with logs and metrics you already have, data residency (Azure Australia East/Southeast for Australian personal information), access control, and lock-in (OTLP keeps it low).

Try it yourself

  1. Run jaegertracing/jaeger locally and point a .NET API at it with AddOtlpExporter().
  2. Add a Collector between them and fan out to both Jaeger and the console (debug exporter).
  3. Create a free Application Insights resource, switch the app to UseAzureMonitor(), and compare the views.
  4. Run Grafana, Tempo and Prometheus with docker compose; enable exemplars and click from a histogram to a trace.
  5. Estimate monthly cost for your span volume in Application Insights vs Tempo on Blob storage.

💻 Code

The same instrumentation, three ways to export.

// Program.cs: option A, Application Insights via the Azure Monitor OpenTelemetry Distro
using Azure.Monitor.OpenTelemetry.AspNetCore;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddOpenTelemetry()
    .UseAzureMonitor(o => o.SamplingRatio = 0.2F); // APPLICATIONINSIGHTS_CONNECTION_STRING from config
// Distro adds ASP.NET Core, HttpClient and SQL instrumentation, logs and metrics.

var app = builder.Build();
app.MapGet("/", () => "ok");
app.Run();
// Program.cs: option B, vendor-neutral OTLP (to Jaeger, Tempo or a Collector)
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddOpenTelemetry()
    .ConfigureResource(r => r.AddService("orders-api", serviceVersion: "1.4.0"))
    .WithTracing(t => t
        .AddAspNetCoreInstrumentation()
        .AddHttpClientInstrumentation()
        .AddOtlpExporter()); // OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317

var app = builder.Build();
app.MapGet("/", () => "ok");
app.Run();
# Option C: the Collector fans out to Application Insights and Tempo (contrib distribution)
receivers:
  otlp:
    protocols: { grpc: {}, http: {} }
processors:
  memory_limiter: { check_interval: 1s, limit_percentage: 80, spike_limit_percentage: 20 }
  batch: {}
exporters:
  azuremonitor:
    connection_string: ${env:APPLICATIONINSIGHTS_CONNECTION_STRING}
  otlp/tempo:
    endpoint: tempo-distributor:4317
    tls: { insecure: true } # in-cluster only; use TLS across networks
service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [azuremonitor, otlp/tempo]

⚠ Common mistakes

  • Mistake: Coupling code to one vendor's SDK. Why it is wrong: switching backend means rewriting instrumentation. Instead: OpenTelemetry APIs with OTLP or the distro, so only configuration changes.
  • Mistake: Starting new work on the Zipkin exporter. Why it is wrong: it is deprecated and stops getting updates in December 2026. Instead: OTLP, converting in the Collector if Zipkin must stay.
  • Mistake: Choosing self-hosted Jaeger to save money without counting ops time. Why it is wrong: running OpenSearch or Cassandra reliably is real work and on-call load. Instead: compare total cost including people.
  • Mistake: Sending 100% of traces to Application Insights at high volume. Why it is wrong: per-GB ingestion makes it the top cost line. Instead: sample, or fan out full traces to cheaper storage.
  • Mistake: Ignoring data residency. Why it is wrong: traces can contain personal information that should stay in Australia under your privacy obligations. Instead: workspaces and storage in Australia East/Southeast, and scrub attributes.
  • Mistake: Treating the tracing backend in isolation. Why it is wrong: the value comes from jumping between metrics, traces and logs. Instead: pick a backend that correlates with the tools you already use.

🏛 Senior insight: trade-offs

Standardise the pipeline, not the backend: OpenTelemetry in every service, OTLP to a Collector, and backends behind it. That turns the backend into a cost and operations decision you can revisit. Most Azure teams start with Application Insights and add a cheaper trace store only when volume makes the bill hurt.

Option When it fits Cost When not to
Application Insights Azure, small or mid team, want one tool Per GB, rises with volume Very high span volume with tight budget
Jaeger v2 Open source, on-prem, need search UI Storage + ops time No one to run storage
Grafana Tempo Grafana stack, high volume Cheap object storage + compute Team wants full-text search over spans
Zipkin Existing estate only Ops time New systems

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions the Azure Monitor distro or OTLP exporter Why: Checks hands-on OpenTelemetry setup and sampling choices
    How to answer

    OpenTelemetry gives you three correlated signals: traces (a span per operation, linked by trace id), metrics (cheap aggregated counters and histograms) and logs (events that carry the TraceId and SpanId of the span they were written in).

    In .NET the runtime already emits Activity and Meter data; you call AddOpenTelemetry() with WithTracing, WithMetrics and WithLogging, set a resource (service.name), and choose an exporter: UseOtlpExporter() for any OTLP back end or Collector (endpoint from OTEL_EXPORTER_OTLP_ENDPOINT or options), or the Azure Monitor distro (UseAzureMonitor()) for Application Insights.

    For cost: metrics for rates and latency (never sampled), sampled traces (the distro now defaults to a rate-limited sampler of 5 traces per second, which adapts the kept percentage to load; you can change the rate or switch to a fixed SamplingRatio), level-filtered logs, and tail sampling in a Collector, configured with policies to keep errors and slow traces. The trade-off is completeness versus ingestion cost.

  2. When: Candidate mentions cost at high span volume Why: Checks they can cut cost with head or tail sampling
    How to answer

    Head sampling decides at the start of a trace: the root service keeps, say, 10%, and the decision travels in the traceparent sampled flag so every service records the same traces. In .NET that's ParentBasedSampler(new TraceIdRatioBasedSampler(0.1)). It's cheap, but it decides before knowing whether the request will fail.

    Tail sampling decides after the trace completes: the OpenTelemetry Collector buffers spans (about 30 s), then keeps all errors, all traces slower than a threshold, and a small random baseline. It needs every span of a trace on the same Collector, so you route by trace id with the loadbalancing exporter, and it costs memory.

    Always compute metrics before sampling, so dashboards and alerts stay accurate. The trade-off: head sampling is simple and cheap; tail sampling keeps the interesting traces but adds infrastructure you must run.

  3. When: Candidate compares Grafana and Azure Monitor Why: Checks the matching metrics decision: Prometheus/Grafana vs Azure Monitor
    How to answer

    Prometheus pulls: it scrapes a /metrics endpoint on each target every 15 to 60 seconds and stores each metric-plus-label combination as a time series, queried with PromQL; Grafana draws the dashboards. Azure Monitor is push: the Azure Monitor OpenTelemetry exporter or an agent sends metrics to Application Insights (queried with KQL) or to Azure Monitor managed Prometheus, which keeps PromQL but removes the servers you would otherwise run, and pairs with Azure Managed Grafana.

    In all of them cardinality is the cost driver: self-hosted Prometheus pays in memory and disk per active series, managed Prometheus bills per sample ingested, and Log Analytics bills per GB.

    On AKS I'd usually pick managed Prometheus plus Grafana for metrics and Application Insights for traces and logs; the trade-off is that you then run two query languages.

🛠 Real-world problems: how you handle them

Trace ingestion cost forced a rethink of the tracing backend
Situation
A logistics platform [about 15 .NET services on AKS in Australia East] sent all traces to Application Insights. Traffic growth pushed trace ingestion to [about 8,000 spans per second], and the observability bill became the second-largest Azure line item.
Signals
Azure Cost Management showed Log Analytics ingestion growing [about 20% a month]. KQL on `_BilledSize` by table showed AppDependencies as [70%] of volume. Finance asked for a plan within the quarter.
Investigation
Broke down volume by service and span name with KQL; two services emitted a span per cache lookup. Modelled three options: aggressive sampling in Application Insights, self-hosted Jaeger on OpenSearch, and Grafana Tempo on Azure Blob storage. The team already ran Prometheus and Grafana, and had no OpenSearch expertise.
Resolution
Removed the per-lookup spans immediately (about 25% of volume). Deployed an OpenTelemetry Collector that sends requests, exceptions and 10% of traces to Application Insights and 100% of traces to Tempo on Blob storage in Australia East with 14-day retention. Developers kept the Application Insights views and used Grafana for full traces.
Prevention
Monthly ingestion review per service against a budget; alert when daily ingestion exceeds budget by 50% (team channel). Telemetry ADR records the pipeline and the rule that services export OTLP only to the Collector.

How to tell it (STAR)

**S:** At [company], our Application Insights trace ingestion had become our second-largest Azure cost as traffic grew. **T:** I was asked to cut it without losing the traces we used for incidents. **A:** I found the noisy spans with KQL and removed them, compared Application Insights sampling, Jaeger and Tempo on cost and our ability to run them, and put a Collector in front that fans out: sampled data to Application Insights and full traces to Tempo on Blob storage. **R:** Trace storage cost dropped [about 70%], and engineers still had complete traces for every incident.

↩ Usually asked after

More in Tracing

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me