we have been having some problems with the plugin and CLS for some time now. In CLS, only the request itself is displayed under spans and logs. Without the subordinate spans.
[
{
"_index": "otel-v1-apm-span-000317",
"_type": "_doc",
"_id": "8f58dd02e42757cd",
"_score": 10.119028,
"_source": {
"traceId": "9d426dec9e0abfcee95b47d44079a46e",
"droppedLinksCount": 0,
"kind": "SPAN_KIND_SERVER",
"droppedEventsCount": 0,
"traceGroupFields": {
"endTime": "2025-06-18T18:10:59.822136275Z",
"durationInNanos": 1434136275,
"statusCode": 0
},
"traceGroup": "POST",
"serviceName": "xxx",
"parentSpanId": "",
"spanId": "8f58dd02e42757cd",
"traceState": "",
"name": "POST",
"startTime": "2025-06-18T18:10:58.388Z",
"links": [],
"endTime": "2025-06-18T18:10:59.822136275Z",
"droppedAttributesCount": 0,
"durationInNanos": 1434136275,
"events": [],
"span.attributes.http@url": "http://xxx.cfapps.eu10-004.hana.ondemand.com/xxx",
"span.attributes.net@peer@ip": "xxx",
"resource.attributes.sap@cf@process@type": "web",
"span.attributes.http@status_text": "OK",
"span.attributes.net@host@port": 8080,
"resource.attributes.sap@cf@source_type": "APP/PROC/WEB",
"resource.attributes.telemetry@sdk@version": "1.30.1",
"resource.attributes.service@instance@id": "03a2b4b6-f2f9-4bb3-64d0-c018",
"span.attributes.http@request_content_length_uncompressed": 3078,
"resource.attributes.service@name": "xxx",
"span.attributes.net@host@name": "xxx.cfapps.eu10-004.hana.ondemand.com",
"status.code": 0,
"resource.attributes.sap@cf@source_id": "5e4685b9-3752-4eff-93b7-c44aa0886798",
"span.attributes.net@peer@port": 44182,
"resource.attributes.service@version": "2.0.0-31",
"resource.attributes.sap@cf@app_name": "xxx",
"span.attributes.http@host": "xxx.cfapps.eu10-004.hana.ondemand.com",
"span.attributes.http@target": "xxx",
"span.attributes.http@scheme": "http",
"span.attributes.http@flavor": "1.1",
"span.attributes.http@status_code": 200,
"span.attributes.http@client_ip": "xxx",
"resource.attributes.sap@cf@instance_id": "03a2b4b6-f2f9-4bb3-64d0-c018",
"resource.attributes.sap@cf@org_id": "7e68da9d-1933-47a0-8830-17c518d55aee",
"resource.attributes.telemetry@sdk@language": "nodejs",
"resource.attributes.sap@cf@process@instance_id": "03a2b4b6-f2f9-4bb3-64d0-c018",
"resource.attributes.sap@cf@space_id": "1a66eed7-89bd-4fd9-a86f-ab62306c090c",
"resource.attributes.sap@cf@org_name": "xxx",
"span.attributes.net@transport": "ip_tcp",
"instrumentationScope.version": "0.57.2",
"span.attributes.http@method": "POST",
"span.attributes.http@user_agent": "vscode-restclient",
"instrumentationScope.name": "@opentelemetry/instrumentation-http",
"resource.attributes.telemetry@sdk@name": "opentelemetry",
"resource.attributes.sap@cf@space_name": "xxx",
"resource.attributes.sap@cf@process@id": "5e4685b9-3752-4eff-93b7-c44aa0886798",
"span.attributes.net@host@ip": "10.142.227.10",
"resource.attributes.sap@cf@app_id": "5e4685b9-3752-4eff-93b7-c44aa0886798"
}
}
]
If I display all traces, I can find the ones that belong together. Unfortunately, this makes the analysis much more complicated.

cap-js/asyncapi: 1.0.3
@cap-js/cds-typer: 0.35.0
@cap-js/cds-types: 0.11.0
@cap-js/db-service: 1.20.2
@cap-js/hana: 1.9.1
@cap-js/openapi: 1.2.3
@cap-js/sqlite: 1.11.1
@cap-js/telemetry: 1.4.0
@sap/cds: 8.9.4
@sap/cds-compiler: 5.9.4
@sap/cds-dk: 8.9.5
@sap/cds-dk (global): 8.9.3
@sap/cds-fiori: 1.4.1
@sap/cds-foss: 5.0.1
@sap/cds-mtxs: 2.7.2
@sap/eslint-plugin-cds: 3.2.0
Node.js: v22.13.1
Hi @sjvans,
we have been having some problems with the plugin and CLS for some time now. In CLS, only the request itself is displayed under spans and logs. Without the subordinate spans.
If I display all traces, I can find the ones that belong together. Unfortunately, this makes the analysis much more complicated.
