-
Notifications
You must be signed in to change notification settings - Fork 96
UnhandledPromiseRejectionWarning: Error: One or more TimeSeries could not be written #694
Comments
Thanks for reporting this! Is it possible to provide a complete dump of generated |
I'm also seeing this, quite verbosely in fact! It could also be related to the same issue the python and java opencensus implementations had: Which looked like they had to do with flushing. I'm running on cloud run, so that too may be causing issues. Here's the message, I see it every 5 minutes or so in the log: I don't know if this is related to the metric the user mentioned up above, or every metric like in the python and java issues, I haven't done any debugging. |
Is it possible to provide some recipe to reproduce this? I will try to debug this at my end. |
It's consistently happening for us, we usually have two containers running,
and I'd say almost always are submitting more than 1 metric at a time. I
have the timeout set at 90 seconds.
…On Tue, Dec 3, 2019 at 11:02 AM Mayur Kale ***@***.***> wrote:
Is it possible to provide some recipe to reproduce this? I will try to
debug this at my end.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#694?email_source=notifications&email_token=ABGISN4AKG6DAZC2CXX35HDQW2ULHA5CNFSM4JAPXE42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF2ON3A#issuecomment-561309420>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGISN2FJF6F5YWK3A2ZQCLQW2ULHANCNFSM4JAPXE4Q>
.
|
@mayurkale22 Were you able to repro this? I’d be happy to give you a dump, is there’s a way to turn on verbose logging through env variables? |
AFAIK this scenario possible in distributed system when multiple clients writing to the same metric. Ideally, MonitoredResource (https://cloud.google.com/monitoring/api/resources) should address this problem (if detected properly). The Stackdriver Exporter tries to find accurate MonitoredResource but if the expected labels are missing then it uses a global Stackdriver monitored resource with no labels. Could you please try OC_ env variable approach (mentioned here)? Also, please confirm whether you're seeing on single client or multiple clients setup? |
Please answer these questions before submitting a bug report.
What version of OpenCensus are you using?
0.0.18
What version of Node are you using?
10.15.3
What did you do?
I create a simple time series view, I use the timeseries metric descriptor
my-app/app-latency
(for example)What did you expect to see?
I expect to see no UnhandledPromiseRejectionWarning error on flush to stackdriver, I expect to see the metric type to be a valid URL with domain and non empty path (while debugging)
What did you see instead?
On flush to stackdriver, I see the following errors:
Upon debugging the issue, I can see that the metric type error given above is given as the value is transformed into the following:
I traced the issue to the following method inside:
I can see that when refering to the node js docs on
path.join
It seems that if the metric type is meant to a valid URL (for exporting to stackdriver) then using
path
is not the correct solution to combine the prefix and descriptor.This error occurs in our windows development environments only.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: