ISSUE SUMMARY
I would like to recive an alert whenever any of his traced spans gets a high latency (based on customer defines parameters).
Looking at the predefined Cloud Trace metrics [1], there is none that can be used for this purpose. Looking at the log entries generated in Cloud Logging by default, the latency cannot be extracted to create a distribution logs-based metric.
There is a Trace API v1 method [2] that can be used to obtain the start and end times of a specific trace spans, but this would require the implementation of a custom solution with a bit of overhead.
It would be nice to add a Cloud Trace metric [1] that would draw the "ms" between start and end times for all the spans, with the possibility to group by the parent trace. This way, customers would be able to create and integrate alerting for this events easily in GCP.
Description
ISSUE SUMMARY
I would like to recive an alert whenever any of his traced spans gets a high latency (based on customer defines parameters).
Looking at the predefined Cloud Trace metrics [1], there is none that can be used for this purpose. Looking at the log entries generated in Cloud Logging by default, the latency cannot be extracted to create a distribution logs-based metric.
There is a Trace API v1 method [2] that can be used to obtain the start and end times of a specific trace spans, but this would require the implementation of a custom solution with a bit of overhead.
It would be nice to add a Cloud Trace metric [1] that would draw the "ms" between start and end times for all the spans, with the possibility to group by the parent trace. This way, customers would be able to create and integrate alerting for this events easily in GCP.
[1]https://cloud.google.com/monitoring/api/metrics_gcp#gcp-cloudtrace https://cloud.google.com/trace/docs/reference/v1/rest/v1/projects.traces/get
[2]