You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
When error occur, my custom error should be print in logging system, such as:
MetricUploadError GaxiosError: One or more TimeSeries could not be written: One or more points were written more frequently than the maximum sampling period configured for the metric.
What did you see instead?
My node process exits directly, instead of print error log. It can be verified by the following procedure
The start function called export function with try/catch statement, but export function is asynchronous and have no return value, so can't catch inner error in start function, and cause process exits.
Please answer these questions before submitting a bug report.
What version of OpenCensus are you using?
"@opencensus/exporter-stackdriver": "0.1.0"
What version of Node are you using?
v17.9.0
What did you do?
I create a simple time series view, and send points to GCP via StackdriverStatsExporter
What did you expect to see?
When error occur, my custom error should be print in logging system, such as:
What did you see instead?
My node process exits directly, instead of print error log. It can be verified by the following procedure
The root cause
The start function called export function with try/catch statement, but export function is asynchronous and have no return value, so can't catch inner error in start function, and cause process exits.
The solution
The text was updated successfully, but these errors were encountered: