Go to file
Derek Kraan ddb2d3b963
Only attempt to record an exception if there is an active span. (#37)
There is an edge case, if you use `forward/4` and use Plug.ErrorHandler,
then when an exception reaches the outer router, then Plug.send_resp
will be called, triggering `[:phoenix, :endpoint, :stop]`, and the span
will be gone by the time the outer router gets the exception. This
causes this telemetry handler to crash and be detached.

Sequence of events:
- [:phoenix, :endpoint, :start]
- [:phoenix, :router_dispatch, :exception] (inner router)
- [:phoenix, :endpoint, :stop]
- [:phoenix, :router_dispatch, :exception] (outer router) ** here there is no span, crashes
2022-03-18 05:21:26 -06:00
.github Update CI config for opentelemetry_redix (#58) 2022-01-04 22:34:06 -07:00
examples Add missing .env and update README (#67) 2022-03-15 13:49:17 -06:00
instrumentation Only attempt to record an exception if there is an active span. (#37) 2022-03-18 05:21:26 -06:00
utilities/opentelemetry_telemetry Do not attempt to end a span if ctx wasn't found (#59) 2022-01-05 10:23:10 -07:00
.formatter.exs Otel phoenix migration (#4) 2021-09-12 13:49:24 -06:00
.gitignore Update .gitignore 2021-11-22 12:18:02 -07:00
CODEOWNERS Add OpenTelemetry integration to Redix (#29) 2022-01-04 14:39:19 -07:00
CONTRIBUTING.md Add info about conventions to guides (#33) 2021-11-12 10:52:29 -07:00
LICENSE Initial commit 2021-04-19 10:19:28 -07:00
README.md Fix typo (#56) 2022-01-04 06:01:06 -07:00
mix.exs Otel phoenix migration (#4) 2021-09-12 13:49:24 -06:00

README.md

<p align="center"> <strong> <a href="https://github.com/open-telemetry/opentelemetry-erlang/blob/main/website_docs/getting-started.md">Getting Started<a/>   •   <a href="https://hexdocs.pm/opentelemetry_api/1.0.0-rc.2/OpenTelemetry.html">API Documentation<a/> </strong> </p> <p align="center"> <strong> <a href="CONTRIBUTING.md">Contributing<a/>   •   <a href="instrumentation/">Instrumentation<a/>   •   <a href="propagators/">Propagators<a/>   •   <a href="examples/">Examples<a/> </strong> </p>

Getting Started   •   API Documentation

Contributing   •   Instrumentation   •   Propagators   •   Examples

EEF Observability WG project Elixir

About this project

This is a repository for OpenTelemetry Erlang & Elixir contributions that are not part of the core repository and core distribution of the API and SDK.

Instrumentations

OpenTelemetry can collect tracing data using instrumentation. Vendors/Users can also create and use their own. Currently, OpenTelemetry supports automatic tracing for:

Supported Runtimes

OpenTelemetry requires OTP v21.3 and above.

See Elixir OTP Compatibility for supported OTP/Elixir combinations.

Contributing

We'd love your help!. Use tags [up-for-grabs][up-for-grabs-issues] and good first issue to get started with the project. Follow CONTRIBUTING guide to report issues or submit a proposal.

License

Apache 2.0 - See LICENSE for more information.