Interview Prep/Monitoring & Observability/Tracing and OpenTelemetry

Span names look like `GET /users/8812/orders/99812`. Why is that a problem?

BeginnerScenarioTracing and OpenTelemetry
Answer

Situation read → Raw paths with IDs create unbounded span names, which explode cardinality in span metrics and make grouping useless.

What I'd do →

  1. Use the route template: GET /users/{id}/orders/{orderId} (most framework instrumentations set http.route).
  2. Where it is wrong, fix it in the Collector with the transform processor or in the SDK.
  3. Keep the full URL in url.full or url.path as an attribute, not in the name.

Why → Span names should be low-cardinality groups; specifics belong in attributes.

Interview tip → Same principle as metric labels: names group, attributes describe.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing and OpenTelemetry