Distributed tracing displayed Unknown in the Transaction Name instead of the endpoint path for otel traces

Distributed Tracing

Otel details for Seal ID: 90661

Service name: transserve-qa3-api-gateway

Current Transaction Name column display the values as UNKNOWN instead of the endpoint path for the otel traces

attached screenshot for reference

What could the reason for not displaying teh actul endpoint and display as UNKNOW

are we missing any thing or something for Dynatrace front

Hi @Parag_Chaturvedi

In your span details, HTTP route is the literal value UNKNOWN. Dynatrace builds endpoint and transaction names from http.route. Web frameworks like Spring and Express set it automatically, but most reverse proxies and gateways don’t. Your gateway (transserve-qa3-api-gateway) is sending the placeholder UNKNOWN, and Dynatrace uses that as the name. The real path is still there in url.path (/inquiry/transserve/inquiry/message/history)

You have two options:

  1. Fix it at the source: configure the gateway instrumentation to set a real http.route, such as the matched route template, or not set it at all.
  2. Fix it in Dynatrace: go to Settings → Process and contextualize → Services → Endpoint detection and add a custom rule for this service:
    • Condition: span.kind == “server” AND http.route == “UNKNOWN” AND service.name == “transserve-qa3-api-gateway”
    • Endpoint name: {http.request.method} {url.truncated_path}

Custom rules are evaluated before the built-in ones, so this takes effect for new traces only existing ones will still show UNKNOWN

Thanks,

Sujit