spandex-project/spandex

Support a `strict` mode

Closed this issue · 2 comments

Right now, the library does everything it can not to fail any operations whatsoever, at all. This can mean that updates to spans might fail if they are not valid, or that entire traces aren't started. This also happens silently, currently. We want some kind of strict mode that fails on any issue w/ any operation, or perhaps a log_errors configuration.

The datadog api server should also use strict mode to validate its outgoing spans, for instance that they all have a resource (or that the top one does, I think). #56

If this were to exist, it would need to exist at the adapter level anyway. I think that with explicit returns, and the API changes we're looking to make, that the essence of this will be included in all of those changes anyway.