OpenTelemetryDecorator.Base behaviour (opentelemetry_decorator v0.1.0)

Behaviour module to handle results, errors and exceptions for OpenTelemetry Decorator

Link to this section Summary

Link to this section Types

Specs

attribute() :: {binary(), any()}
Link to this type

attributes()

Specs

attributes() :: [attribute()]

Specs

error() :: {:error, any()} | {:error, atom(), any(), map()}

Link to this section Callbacks

Link to this callback

handle_error(error)

Specs

handle_error(error()) :: attributes()
Link to this callback

handle_exception(arg1, arg2)

Specs

handle_exception(Exception.t(), Exception.stacktrace()) :: attributes()
Link to this callback

handle_result(any)

Specs

handle_result(any()) :: attributes()