Closed lmolkova closed 2 months ago
The second example in the linked spec OSError
looks like python , and that's exactly what the linked code is returning.
@xrmx the spec then contradicts itself and I don't mind fixing it :)
In python some exceptions are builtin you won't have a path like in java. For others maybe prefixing it with its .__class__.__module__
if it's not builtins
.
Seems like it would also be better to use __qualname__
instead of __name__
in the (likely uncommon) case of nested exceptions.
https://github.com/open-telemetry/opentelemetry-python/blob/721beb8b530e7a830c1e27b70c2fb9af6465baf1/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py#L999
According to the spec, it should contain
It'd uniquely identify exceptions and will make it easier to understand where they are coming from.