open-telemetry / semantic-conventions

Defines standards for generating consistent, accessible telemetry across a variety of domains
Apache License 2.0
231 stars 146 forks source link

General `error.type` definition should clarify that fully qualified exception type name should be used #855

Open lmolkova opened 3 months ago

lmolkova commented 3 months ago

Area(s)

area:error

What happened?

Description

Common definition of error.type doesn't mention that fully qualified name should be used (when exception type is recorded).

It's specifically important on Python where exception_type.__name__ is not qualified.

Expected Result

Here's how we recommend it in HTTP semconv

[1]: If the request fails with an error before response status code was sent or received, error.type SHOULD be set to exception type (its fully-qualified class name, if applicable) or a component-specific low cardinality error identifier.

TODO:

Semantic convention version

1.24.0

Additional context

No response

joaopgrassi commented 3 months ago

I will send a PR to address this.