My company uses the Cloud Endpoints framework on App Engine. Starting on July 6, 2020, we noticed that this error message appeared in the logs of every endpoint call, and we could no longer see metrics for the endpoints on the Google Cloud console:
The message complains about a metric called serviceruntime.googleapis.com/api/request_latencies_backend having a duplicate signature, but the library does not send a metric with that name.
I did notice the library sends 3 metrics related to backend latency, that are computed using the same function:
I made a guess that Google was mapping these three metrics to serviceruntime.googleapis.com/api/request_latencies_backend, and tried monkeypatching the library to only send one of the three. That fixed the issue and the library was able to send metrics again.
Can anyone confirm if this is a new bug with the library caused by some change Google made internally?
My company uses the Cloud Endpoints framework on App Engine. Starting on July 6, 2020, we noticed that this error message appeared in the logs of every endpoint call, and we could no longer see metrics for the endpoints on the Google Cloud console:
The message complains about a metric called
serviceruntime.googleapis.com/api/request_latencies_backend
having a duplicate signature, but the library does not send a metric with that name.I did notice the library sends 3 metrics related to backend latency, that are computed using the same function:
serviceruntime.googleapis.com/api/consumer/backend_latencies
serviceruntime.googleapis.com/api/producer/backend_latencies
serviceruntime.googleapis.com/api/producer/by_consumer/backend_latencies
I made a guess that Google was mapping these three metrics to
serviceruntime.googleapis.com/api/request_latencies_backend
, and tried monkeypatching the library to only send one of the three. That fixed the issue and the library was able to send metrics again.Can anyone confirm if this is a new bug with the library caused by some change Google made internally?