Skip to content

Commit ef58c8c

Browse files
authored
Add docs for Elixir/Telemetry integration (#13725)
1 parent 470c701 commit ef58c8c

File tree

1 file changed

+27
-0
lines changed
  • docs/platforms/elixir/integrations/telemetry

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Telemetry
3+
description: "Sentry supports monitoring Telemetry handler errors and reporting them."
4+
sidebar_order: 40
5+
---
6+
7+
The [Telemetry](https://github.com/beam-telemetry/telemetry) integration supports:
8+
9+
* Capturing errors that happen in Telemetry handlers and reporting them.
10+
11+
This integration is built into the Sentry SDK starting with *v10.10.0*.
12+
13+
## Configure
14+
15+
You can configure the Telemetry integration in your Sentry configuration, under the `:integrations` key:
16+
17+
```elixir {filename:config/config.exs} {diff}
18+
config :sentry,
19+
# ...,
20+
integrations: [
21+
+ telemetry: [
22+
+ report_handler_failures: true,
23+
+ ]
24+
]
25+
```
26+
27+
This configuration will report failed Telemetry handler errors to Sentry. It's usually important to report these errors, as Telemetry *detaches* failing handlers. If you don't monitor these errors, you may not know that a handler failed and is not going to execute anymore until it's re-attached (usually when the application restarts).

0 commit comments

Comments
 (0)