google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

Capture request_id in traces

Open dbolduc opened this issue 1 year ago • 0 comments

@coryan points out that

  • We auto populate request_id-like fields in the connection layer.
  • This is valuable information for debugging
  • So we should include it in our traces.

He proposes that:

  • we should include the attribute even if the value is empty, because that is a bug and thus "interesting".
  • we name the attribute: gl-cpp.request_id

This will have to go in the tracing stub layer, because the tracing connection layer is never made aware of the request ID.

dbolduc avatar Feb 29 '24 22:02 dbolduc