https://github.com/h3poteto/opentelemetry_phoenixchannel
Telemetry handler that creates Opentelemetry spans for Phoenix.Channels events
https://github.com/h3poteto/opentelemetry_phoenixchannel
elixir opentelemetry phoenix-channels telemetry
Last synced: 10 months ago
JSON representation
Telemetry handler that creates Opentelemetry spans for Phoenix.Channels events
- Host: GitHub
- URL: https://github.com/h3poteto/opentelemetry_phoenixchannel
- Owner: h3poteto
- License: mit
- Created: 2024-07-19T08:12:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-16T16:30:49.000Z (10 months ago)
- Last Synced: 2025-09-19T01:05:22.450Z (10 months ago)
- Topics: elixir, opentelemetry, phoenix-channels, telemetry
- Language: Elixir
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpentelemetryPhoenixchannel
Telemetry handler that creates Opentelemetry spans from Phoenix.Channels events.
## Installation
This package can be installed by adding `opentelemetry_phoenixchannel` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:opentelemetry_phoenixchannel, "~> 0.1.0"}
]
end
```
## Usage
After installing, setup the handler in your application behaviour before your top-level supervisor starts.
```elixir
def start(_type, _args) do
OpentelemetryPhoenixchannel.setup()
children = [
{Phoenix.PubSub, name: MyApp.PubSub},
MyAppWeb.Endpoint
]
opts = [strategy: :one_for_one, name: MyStore.Supervisor]
Supervisor.start_link(children, opts)
end
```
## License
The software is available as open source under the terms of the [MIT License](https://opensource.org/license/MIT).