OpenTelemetryDecorator (opentelemetry_decorator v0.1.0)
Implement decorators to your functions and send data to OpenTelemetry automatically
Link to this section Summary
Functions
Get module from config to get attributes to use on OpenTelemetry
Decorate function to run OpenTelemetry.Tracer.with_span/2
Link to this section Functions
Link to this function
get_module(atom)
Specs
get_module(:error | :result | :exception) :: module()
Get module from config to get attributes to use on OpenTelemetry
You can input in your config/*.exs:
Example
config :opentelemetry_decorator, handler: MyApp.CustomHandler
Link to this function
with_span(block, context)
Decorate function to run OpenTelemetry.Tracer.with_span/2