opentelemetry-erlang-contrib/instrumentation
Andrew Rosa 56c6503a93
Fix two use cases of Ecto span propagation (#82)
First one is related to `OpenTelemetry.Ctx` API. I've noticed in a few
scenarios the current span of a trace may get lost after Ecto calls.

Looking at the The `attach/1` typespec, it's a Ctx -> Token, while
`dettach/1` as Token -> Ctx function. That made me assume the expected
input of dettach is the return type of attach. Indeed, after this change
we got the behavior of Ecto calls preserve the parent span untouched.

That leads to a second bug found. When ecto does simple calls within a
Task, due the special propagation code for preloads that means it will
skip the current span, if any.  The solution here is to first check the
current process.

One test was added to reproduce this bug.
2022-11-15 17:55:32 -07:00
..
opentelemetry_cowboy Add server span kind to otel cowboy (#116) 2022-11-10 04:15:15 -07:00
opentelemetry_ecto Fix two use cases of Ecto span propagation (#82) 2022-11-15 17:55:32 -07:00
opentelemetry_elli bump otel-elli version number (#74) 2022-03-28 10:13:13 -06:00
opentelemetry_finch update elixir package deps (#126) 2022-11-15 17:48:50 -07:00
opentelemetry_grpcbox add grpcbox instrumentation library (#70) 2022-03-27 11:42:36 -06:00
opentelemetry_oban update elixir package deps (#126) 2022-11-15 17:48:50 -07:00
opentelemetry_phoenix update elixir package deps (#126) 2022-11-15 17:48:50 -07:00
opentelemetry_redix update elixir package deps (#126) 2022-11-15 17:48:50 -07:00
opentelemetry_tesla update elixir package deps (#126) 2022-11-15 17:48:50 -07:00