Right now, status of the span does not seem to be explicitly set when end() is called on a span. The default is OK which is fine for when a span finishes successfully, but when an exception is thrown, the status is not set. In OpenCensus the status seems to be derived from the exception thrown. We should at least set the status of the span to Unknown when this happens. I believe pymongo integration does the same thing.
Right now,
statusof the span does not seem to be explicitly set whenend()is called on a span. The default isOKwhich is fine for when a span finishes successfully, but when an exception is thrown, the status is not set. In OpenCensus the status seems to be derived from the exception thrown. We should at least set thestatusof the span toUnknownwhen this happens. I believe pymongo integration does the same thing.