daml icon indicating copy to clipboard operation
daml copied to clipboard

[FEATURE REQUEST] Allow callers to specify an optional `trace_id` on HTTP JSON API calls and thread it through to the Ledger API server

Open stefanobaghino-da opened this issue 3 years ago • 0 comments
trafficstars

I confirm that, if this is a feature request that has security implications, I already contacted [email protected] and followed the responsible disclosure policy.

I confirm that this is not a question or a request for technical support by the community, for which the Daml forum is available.

What is the problem you want to solve?

Tracking requests going through the HTTP JSON API all the way into the Ledger API.

What is the solution you would propose?

The Ledger API allows to add a trace identifier to calls going in via gRPC calls metadata. One could provide such identifier via the HTTP JSON API to track the full life cycle of a call originating from there. Ideally the identifier could possibly be also threaded through all the way from the Ledger API as those calls are served.

Describe alternatives you've considered

None, really. Not sure whether there are any.

stefanobaghino-da avatar Feb 07 '22 20:02 stefanobaghino-da