opentelemetry-sdk-workers icon indicating copy to clipboard operation
opentelemetry-sdk-workers copied to clipboard

Throw exceptions rather than returning them?

Open oxcafedead opened this issue 1 year ago • 0 comments

I found some non-clear behavior, and I wonder if it is intentional.

https://github.com/RichiCoder1/opentelemetry-sdk-workers/blob/271b1b2a17a1b825d63ac8af54e639bcee83631c/packages/opentelemetry-sdk-workers/src/sdk.ts#L290-L294

I would expect throw there instead of return at line 292.

Am I missing something obvious?

oxcafedead avatar Apr 04 '23 07:04 oxcafedead