Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aledsz/opentelemetry-decorator
Decorator for Elixir OpenTelemetry API
https://github.com/aledsz/opentelemetry-decorator
Last synced: 3 days ago
JSON representation
Decorator for Elixir OpenTelemetry API
- Host: GitHub
- URL: https://github.com/aledsz/opentelemetry-decorator
- Owner: aleDsz
- Created: 2020-09-26T01:04:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T03:24:13.000Z (about 4 years ago)
- Last Synced: 2024-10-27T19:50:53.868Z (18 days ago)
- Language: Elixir
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenTelemetry Decorator
This library provide an easily interface to trace your application with [OpenTelemetry](https://github.com/open-telemetry/opentelemetry-erlang-api) for Elixir, using decorations above your functions.
## Usage
```elixir
defmodule Foo do
use OpenTelemetryDecorator@decorate with_span()
def bar do
{:ok, %{id: 123}}
end
end
```## Configuration
If you and a custom handler for function results, you can add to your `config/*.exs`:
```elixir
config :opentelemetry_decorator, handler: MyApp.Handler
```## Installation
The package can be installed by adding `opentelemetry_decorator` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:opentelemetry_decorator, "~> 0.1.0"}
]
end
```## Documentation
Documentation can be found at [https://hexdocs.pm/opentelemetry_decorator](https://hexdocs.pm/opentelemetry_decorator).