semconv.com

exception.type

Stablestringas of v1.44.0

The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.

If the recorded exception type is a wrapper that is not meaningful for failure classification, instrumentation MAY use the type of the inner exception instead. For example, in Go, errors created with fmt.Errorf using %w MAY be unwrapped when the wrapper type does not help classify the failure.

Examples

Used by

events (14)

  • app.crash
  • db.client.operation.exception
  • exception
  • faas.invocation.exception
  • gen_ai.client.operation.exception
  • http.client.request.exception
  • http.server.request.exception
  • messaging.create.exception
  • messaging.process.exception
  • messaging.receive.exception
  • messaging.send.exception
  • messaging.settle.exception
  • rpc.client.call.exception
  • rpc.server.call.exception

* required on that signal.

History

  1. v1.30.0

    Already present at v1.30.0, the oldest release tracked here (stable).

Definition sourceRegistry docsJSON