Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T06:21:00.000Z (7 months ago)
- Last Synced: 2024-10-06T16:42:03.540Z (4 months ago)
- Topics: elixir, opentelemetry, phoenix-channels, telemetry
- Language: Elixir
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).