Go to file
Indrek Juhkam eecb238cff
Add opentelemetry integration to Oban (#6)
By default a new trace is automatically started when a job is processed
by monitoring these events:
* `[:oban, :job, :start]` — at the point a job is fetched from the database and will execute
* `[:oban, :job, :stop]` — after a job succeeds and the success is recorded in the database
* `[:oban, :job, :exception]` — after a job fails and the failure is recorded in the database

To also record a span when a job is created and to link traces together
`Oban.insert/2` has to be replaced by `OpentelemetryOban.insert/2`.

Before:

```elixir
  %{id: 1, in_the: "business", of_doing: "business"}
  |> MyApp.Business.new()
  |> Oban.insert()
```

After:

```elixir
  %{id: 1, in_the: "business", of_doing: "business"}
  |> MyApp.Business.new()
  |> OpentelemetryOban.insert()
```

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2021-12-08 08:41:36 -07:00
.github Add opentelemetry integration to Oban (#6) 2021-12-08 08:41:36 -07:00
examples/basic_elixir Avoid syntax error for insecure key (#45) 2021-11-24 10:38:59 -07:00
instrumentation Add opentelemetry integration to Oban (#6) 2021-12-08 08:41:36 -07:00
utilities/opentelemetry_telemetry Fix compilation warning on otel_telemetry (#46) 2021-11-28 12:16:37 -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 Oban (#6) 2021-12-08 08:41:36 -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 Add info about conventions to guides (#33) 2021-11-12 10:52:29 -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 Compatability 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.