2021-08-30 02:33:52 +00:00
|
|
|
elixir:
|
|
|
|
- instrumentation/**/*.ex
|
|
|
|
- instrumentation/**/*.exs
|
2021-09-12 22:46:23 +00:00
|
|
|
- instrumentation/**/mix.lock
|
2021-08-30 02:33:52 +00:00
|
|
|
- propagators/**/*.ex
|
|
|
|
- propagators/**/*.exs
|
2021-09-12 22:46:23 +00:00
|
|
|
- propagators/**/mix.lock
|
2021-08-30 02:33:52 +00:00
|
|
|
- exporters/**/*.ex
|
|
|
|
- exporters/**/*.exs
|
2021-09-12 22:46:23 +00:00
|
|
|
- exporters/**/mix.lock
|
2021-09-12 19:49:24 +00:00
|
|
|
- examples/**/*.ex
|
|
|
|
- examples/**/*.exs
|
2021-09-12 22:46:23 +00:00
|
|
|
- examples/**/mix.lock
|
2021-11-28 01:33:47 +00:00
|
|
|
- utilities/**/*.ex
|
|
|
|
- utilities/**/*.exs
|
|
|
|
- utilities/**/mix.lock
|
2021-08-30 02:33:52 +00:00
|
|
|
|
|
|
|
erlang:
|
|
|
|
- instrumentation/**/*.erl
|
|
|
|
- instrumentation/**/*.hrl
|
2021-10-06 19:36:22 +00:00
|
|
|
- instrumentation/**/rebar.*
|
2021-08-30 02:33:52 +00:00
|
|
|
- propagators/**/*.erl
|
|
|
|
- propagators/**/*.hrl
|
2021-10-06 19:36:22 +00:00
|
|
|
- propagators/**/rebar.*
|
2021-08-30 02:33:52 +00:00
|
|
|
- exporters/**/*.erl
|
|
|
|
- exporters/**/*.hrl
|
2021-10-06 19:36:22 +00:00
|
|
|
- exporters/**/rebar.*
|
2021-09-12 19:49:24 +00:00
|
|
|
- examples/**/*.erl
|
|
|
|
- examples/**/*.hrl
|
2021-10-06 19:36:22 +00:00
|
|
|
- examples/**/rebar.*
|
2021-11-28 01:33:47 +00:00
|
|
|
- utilities/**/*.erl
|
|
|
|
- utilities/**/*.hrl
|
|
|
|
- utilities/**/rebar.*
|
2021-08-30 02:33:52 +00:00
|
|
|
|
|
|
|
instrumentation:
|
|
|
|
- instrumentation/**/*
|
|
|
|
|
|
|
|
propagators:
|
|
|
|
- propagators/**/*
|
|
|
|
|
2021-09-12 19:49:24 +00:00
|
|
|
examples:
|
|
|
|
- examples/**/*
|
|
|
|
|
2021-11-28 01:33:47 +00:00
|
|
|
utilities:
|
|
|
|
- utilities/**/*
|
|
|
|
|
2021-08-30 02:33:52 +00:00
|
|
|
scope-ci:
|
|
|
|
- .github/workflows/**
|
2021-09-12 19:49:24 +00:00
|
|
|
|
2021-10-06 19:36:22 +00:00
|
|
|
opentelemetry_cowboy:
|
|
|
|
- instrumentation/opentelemetry_cowboy/**/*
|
|
|
|
|
2021-10-08 21:38:18 +00:00
|
|
|
opentelemetry_ecto:
|
|
|
|
- instrumentation/opentelemetry_ecto/**/*
|
|
|
|
|
2021-09-12 19:49:24 +00:00
|
|
|
opentelemetry_phoenix:
|
2021-09-12 22:46:23 +00:00
|
|
|
- instrumentation/opentelemetry_phoenix/**/*
|
2021-11-28 01:33:47 +00:00
|
|
|
|
|
|
|
opentelemetry_telemetry:
|
|
|
|
- utilities/opentelemetry_telemetry/**/*
|
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 15:41:36 +00:00
|
|
|
|
|
|
|
opentelemetry_oban:
|
|
|
|
- instrumentation/opentelemetry_oban/**/*
|