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 →
- Use the route template:
GET /users/{id}/orders/{orderId}(most framework instrumentations sethttp.route). - Where it is wrong, fix it in the Collector with the
transformprocessor or in the SDK. - Keep the full URL in
url.fullorurl.pathas 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.
More on Tracing and OpenTelemetry
Your company has 30 microservices and no tracing. How do you roll out distributed tracing?IntermediateTraces stop at service B: you see spans from A, but B's spans start new traces. What is wrong?BeginnerTracing every request costs too much. How do you design sampling?IntermediateYou set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?AdvancedA checkout request takes 4 seconds. Walk through how you use a trace to find the cause.BeginnerYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?Intermediate