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
You might be having something that brings in 0.12. Do you happen to use @google-cloud/pubsub in the same code base? If so, you might are hitting this issue: googleapis/nodejs-pubsub#1233. To solve it you can make sure to add opentelemetry packages
Adding onto that, what version of npm are you using @thespacedeck ? If you have npm 7, it should have complained to you about unsupported peerDependency
Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
^0.9.0
What version of Node are you using?
v12.19.1
What did you do?
If possible, provide a recipe for reproducing the error.
What did you expect to see?
Expected no error
What did you see instead?
TypeError: Cannot read property 'FAILED' of undefined
/@google-cloud/opentelemetry-cloud-trace-exporter/build/src/trace.js:95:52)
relates to ln 92 error.message => Cannot read property 'SUCCESS' of undefined
Additional context
I think core_1.ExportResultCode does not exist, only core_1.ExportResult does.
core_1.ExportResult looks like this:
{
'0': 'SUCCESS',
'1': 'FAILED_NOT_RETRYABLE',
'2': 'FAILED_RETRYABLE',
SUCCESS: 0,
FAILED_NOT_RETRYABLE: 1,
FAILED_RETRYABLE: 2
}
The text was updated successfully, but these errors were encountered: