# \#tracing

**URL:** https://forum.elixirforum.com/tag/tracing/317.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Observer Web - A self-contained liveview library to monitor applications processes/ports and tracing with Erlang debugger](https://forum.elixirforum.com/t/observer-web-a-self-contained-liveview-library-to-monitor-applications-processes-ports-and-tracing-with-erlang-debugger/69267)

<div class="topic-metadata">

**Author:** [@thiagoesteves](https://forum.elixirforum.com/u/thiagoesteves)\
**Replies:** 2\
**Last updated:** [October 28, 2025, 1:43pm UTC](https://forum.elixirforum.com/t/observer-web-a-self-contained-liveview-library-to-monitor-applications-processes-ports-and-tracing-with-erlang-debugger/69267 "2025-10-28T13:43:13Z")

</div>

Hi There, We are thrilled to announce the first sub-product from the ongoing development and research of DeployEx! Inspired by the recent open-source release from the Oban Team , we’ve wrapped the powerful distributed f…

---

## [Would you enable ExUnit's \`--trace\` option in a CI environment (GitHub)? (poll)](https://forum.elixirforum.com/t/would-you-enable-exunits-trace-option-in-a-ci-environment-github-poll/73049)

<div class="topic-metadata">

**Author:** [@b1az](https://forum.elixirforum.com/u/b1az)\
**Replies:** 4\
**Last updated:** [October 23, 2025, 4:28pm UTC](https://forum.elixirforum.com/t/would-you-enable-exunits-trace-option-in-a-ci-environment-github-poll/73049 "2025-10-23T16:28:00Z")

</div>

Coworker and I are at an impasse and would appreciate the community’s vote to resolve it. :slight\_smile: poll Elixir’s test-runner has a --trace option which does the following: it discards all of Elixir’s concurrency…

---

## [Calling all Matchspecs!](https://forum.elixirforum.com/t/calling-all-matchspecs/44217)

<div class="topic-metadata">

**Author:** [@christhekeele](https://forum.elixirforum.com/u/christhekeele)\
**Replies:** 8\
**Last updated:** [May 30, 2024, 5:28am UTC](https://forum.elixirforum.com/t/calling-all-matchspecs/44217 "2024-05-30T05:28:15Z")

</div>

:wave: Hey all! I’ve been working on an elixir-to-matchspec compiler. Think ex2ms with support for a few more expressions, pattern support, tracing support, helpful errors, and some other niceties. Right now it’s passi…

---

## [Tracee - Trace function calls in concurrent Elixir processes](https://forum.elixirforum.com/t/tracee-trace-function-calls-in-concurrent-elixir-processes/63300)

<div class="topic-metadata">

**Author:** [@ream88](https://forum.elixirforum.com/u/ream88)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 12:10pm UTC](https://forum.elixirforum.com/t/tracee-trace-function-calls-in-concurrent-elixir-processes/63300 "2024-05-03T12:10:17Z")

</div>

Hey, super proud to announce Tracee, a library that allows to trace and assert expected function calls within concurrent Elixir processes. I had a very particular problem that is explained in this forum post, and after l…

---

## [Tracing and asserting function calls](https://forum.elixirforum.com/t/tracing-and-asserting-function-calls/63035)

<div class="topic-metadata">

**Author:** [@ream88](https://forum.elixirforum.com/u/ream88)\
**Replies:** 8\
**Last updated:** [May 3, 2024, 12:07pm UTC](https://forum.elixirforum.com/t/tracing-and-asserting-function-calls/63035 "2024-05-03T12:07:24Z")

</div>

I recently encountered an issue where a partial or functional component was re-rendered multiple times, resulting in an inline function call being executed multiple times as well. This led to multiple database requests i…

---

## [All Talk Videos | BEAM Devroom @ FOSDEM 2024](https://forum.elixirforum.com/t/all-talk-videos-beam-devroom-fosdem-2024/61811)

<div class="topic-metadata">

**Author:** [@rbino](https://forum.elixirforum.com/u/rbino)\
**Replies:** 0\
**Last updated:** [February 22, 2024, 9:01am UTC](https://forum.elixirforum.com/t/all-talk-videos-beam-devroom-fosdem-2024/61811 "2024-02-22T09:01:35Z")

</div>

Hi everyone, here you can find all talks from the BEAM Devroom at FOSDEM 2024. The titles link to the talk page on the FOSDEM website where you can find additional details (author bio, description, slides, etc). Thank…

---

## [IExHistory2 - improved history, save variable bindings from the IEx shell and more...](https://forum.elixirforum.com/t/iexhistory2-improved-history-save-variable-bindings-from-the-iex-shell-and-more/61282)

<div class="topic-metadata">

**Author:** [@nhpip](https://forum.elixirforum.com/u/nhpip)\
**Replies:** 8\
**Last updated:** [February 5, 2024, 2:48am UTC](https://forum.elixirforum.com/t/iexhistory2-improved-history-save-variable-bindings-from-the-iex-shell-and-more/61282 "2024-02-05T02:48:49Z")

</div>

Hello, I wrote the initial version of this library as my first Elixir project a couple of years ago, mostly to learn Elixir, but also a desire to be able to save variable bindings between IEx sessions (especially useful…

---

## [Rexbug - Elixir wrapper for :redbug tracing debugger](https://forum.elixirforum.com/t/rexbug-elixir-wrapper-for-redbug-tracing-debugger/12612)

<div class="topic-metadata">

**Author:** [@nietaki](https://forum.elixirforum.com/u/nietaki)\
**Replies:** 5\
**Last updated:** [August 27, 2023, 2:25pm UTC](https://forum.elixirforum.com/t/rexbug-elixir-wrapper-for-redbug-tracing-debugger/12612 "2023-08-27T14:25:28Z")

</div>

Rexbug is the Elixir wrapper for the :redbug Erlang tracing debugger. Redbug has been around forever and it has some nice features (it is production safe, simple and pretty powerful), but it was a bit of a pain to use fr…

---

## [Trace messages arriving in a GenServer's mailbox](https://forum.elixirforum.com/t/trace-messages-arriving-in-a-genservers-mailbox/54455)

<div class="topic-metadata">

**Author:** [@Astarno](https://forum.elixirforum.com/u/Astarno)\
**Replies:** 2\
**Last updated:** [March 10, 2023, 4:38pm UTC](https://forum.elixirforum.com/t/trace-messages-arriving-in-a-genservers-mailbox/54455 "2023-03-10T16:38:54Z")

</div>

Hi there, Is there a way to trace, in any way, when a message arrives in the mailbox of a GenServer? Note, I am not refering to the moment when a message is actually handled (taken out of the mailbox). I am specifically…

---

## [Movement or interest in Spandex, or Telemetry, for other adapters for tracing?](https://forum.elixirforum.com/t/movement-or-interest-in-spandex-or-telemetry-for-other-adapters-for-tracing/41011)

<div class="topic-metadata">

**Author:** [@felix-starman](https://forum.elixirforum.com/u/felix-starman)\
**Replies:** 8\
**Last updated:** [March 8, 2023, 1:07am UTC](https://forum.elixirforum.com/t/movement-or-interest-in-spandex-or-telemetry-for-other-adapters-for-tracing/41011 "2023-03-08T01:07:19Z")

</div>

Hello! This is surprisingly my first topic despite lurking for a very long time. I find myself wanting to add tracing and some form of Application Performance Monitoring (APM) service. The complication is that we are a…

---

## [Spandex trying to send additional data/tags through tags no making it through to datadog](https://forum.elixirforum.com/t/spandex-trying-to-send-additional-data-tags-through-tags-no-making-it-through-to-datadog/54164)

<div class="topic-metadata">

**Author:** [@andym](https://forum.elixirforum.com/u/andym)\
**Replies:** 0\
**Last updated:** [February 27, 2023, 9:43am UTC](https://forum.elixirforum.com/t/spandex-trying-to-send-additional-data-tags-through-tags-no-making-it-through-to-datadog/54164 "2023-02-27T09:43:41Z")

</div>

i’m trying to send some additional tags through the spandex library (i’m using datadog). to test if its working i’m using something like the following start\_span("test\_span", tags: \[foo: "bar", baz: 123\]) the span mak…

---

## [Gathering runtime statistics about function calls across entire app](https://forum.elixirforum.com/t/gathering-runtime-statistics-about-function-calls-across-entire-app/53938)

<div class="topic-metadata">

**Author:** [@gmile](https://forum.elixirforum.com/u/gmile)\
**Replies:** 7\
**Last updated:** [February 17, 2023, 2:33pm UTC](https://forum.elixirforum.com/t/gathering-runtime-statistics-about-function-calls-across-entire-app/53938 "2023-02-17T14:33:30Z")

</div>

How does one approach gathering runtime statistics about function calls from modules that belong to a specific app? In my app, using a combination of decorator and telemetry packages, I am able to collect statistics abo…

---

## [How do I send tracing (OpenTelemetry/OpenTracing?) info to Grafana Tempo from a Phoenix api in 2022?](https://forum.elixirforum.com/t/how-do-i-send-tracing-opentelemetry-opentracing-info-to-grafana-tempo-from-a-phoenix-api-in-2022/50968)

<div class="topic-metadata">

**Author:** [@willemo](https://forum.elixirforum.com/u/willemo)\
**Replies:** 7\
**Last updated:** [October 16, 2022, 8:21am UTC](https://forum.elixirforum.com/t/how-do-i-send-tracing-opentelemetry-opentracing-info-to-grafana-tempo-from-a-phoenix-api-in-2022/50968 "2022-10-16T08:21:06Z")

</div>

I’m having a hard time figuring out where to start. I’d like to configure our Phoenix apis to send trace info to Grafana Tempo, so that I can debug issues where multiple APIs/services are calling one another. But I don’…

---

## [How to use the dbg tracer in Elixir](https://forum.elixirforum.com/t/how-to-use-the-dbg-tracer-in-elixir/44702)

<div class="topic-metadata">

**Author:** [@Astarno](https://forum.elixirforum.com/u/Astarno)\
**Replies:** 6\
**Last updated:** [December 20, 2021, 5:51pm UTC](https://forum.elixirforum.com/t/how-to-use-the-dbg-tracer-in-elixir/44702 "2021-12-20T17:51:26Z")

</div>

I’m trying to use the dbg tracer from Erlang in Elixir. At the moment I have the following line: :dbg.tracer(process, fn (msg, \_) -\> IO.puts("DEBUG: #{msg}") end) This raises the error: \*\* (CompileError) iex:1: undef…

---

## [Can Elixir Kernel functions be traced by :dbg?](https://forum.elixirforum.com/t/can-elixir-kernel-functions-be-traced-by-dbg/44422)

<div class="topic-metadata">

**Author:** [@xxia](https://forum.elixirforum.com/u/xxia)\
**Replies:** 2\
**Last updated:** [December 11, 2021, 11:30pm UTC](https://forum.elixirforum.com/t/can-elixir-kernel-functions-be-traced-by-dbg/44422 "2021-12-11T23:30:03Z")

</div>

I’m new to Elixir and playing around with tracing. Following an example, I successfully setup :dbg to trace Enum.map/2 when executed inside iex. The trace event is created. iex(3)\> :dbg.tp(Enum, :map, \[\]) {:ok, \[{:ma…

---

## [Rexbug: get arguments instead of arity in :retn trace-messages](https://forum.elixirforum.com/t/rexbug-get-arguments-instead-of-arity-in-retn-trace-messages/42572)

<div class="topic-metadata">

**Author:** [@Sebb](https://forum.elixirforum.com/u/Sebb)\
**Replies:** 4\
**Last updated:** [September 29, 2021, 8:47am UTC](https://forum.elixirforum.com/t/rexbug-get-arguments-instead-of-arity-in-retn-trace-messages/42572 "2021-09-29T08:47:44Z")

</div>

TIL that I can hook my own print functions into Rexbug: iex(1)\> Rexbug.start("Map.get/\_ :: return", \[print\_fun: fn msg -\> IO.inspect(msg) end\]) {111, 2} iex(2)\> Map.…

---

## [Tracing all calls to handle\_info in all processes using recon\_trace](https://forum.elixirforum.com/t/tracing-all-calls-to-handle-info-in-all-processes-using-recon-trace/23191)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 9\
**Last updated:** [January 2, 2021, 3:30pm UTC](https://forum.elixirforum.com/t/tracing-all-calls-to-handle-info-in-all-processes-using-recon-trace/23191 "2021-01-02T15:30:41Z")

</div>

Background Our app is constantly printing an error message and we have no idea where it is coming from. My objective is to detect which process(es) is receiving the message so I can then trace it using Process.info via a…

---

## [Trying to trace a request through each function](https://forum.elixirforum.com/t/trying-to-trace-a-request-through-each-function/33597)

<div class="topic-metadata">

**Author:** [@roostercrab](https://forum.elixirforum.com/u/roostercrab)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 6:44am UTC](https://forum.elixirforum.com/t/trying-to-trace-a-request-through-each-function/33597 "2020-08-07T06:44:31Z")

</div>

I’m watching Chris McCord’s original video on his design for Phoenix and I’m trying to follow along with the files that he is looking at because I really want to be able to follow a request from beginning to end, but I a…

---

## [Iodata print elixir term as elixir syntax](https://forum.elixirforum.com/t/iodata-print-elixir-term-as-elixir-syntax/24245)

<div class="topic-metadata">

**Author:** [@bryanhuntesl](https://forum.elixirforum.com/u/bryanhuntesl)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 7:03pm UTC](https://forum.elixirforum.com/t/iodata-print-elixir-term-as-elixir-syntax/24245 "2019-07-26T19:03:37Z")

</div>

ReconTrace (taking one example) is a trading library (like all of them) which provides the ability to specify a formatting function which takes an argument tuple and does something with it rather than just tracing to t…

---

## [OpenCensus gains new integrations with Elixir libraries](https://forum.elixirforum.com/t/opencensus-gains-new-integrations-with-elixir-libraries/18481)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 17\
**Last updated:** [June 30, 2019, 2:03pm UTC](https://forum.elixirforum.com/t/opencensus-gains-new-integrations-with-elixir-libraries/18481 "2019-06-30T14:03:42Z")

</div>

As tracing and metrics gathering seems to still be problem for some of the newcomers I have started few projects to improve that by utilising OpenCensus. During my last 2 days of work I have added few 3 new libraries to …

---

## [Can't get recon\_trace to work with anon function](https://forum.elixirforum.com/t/cant-get-recon-trace-to-work-with-anon-function/23220)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 3\
**Last updated:** [June 18, 2019, 12:58pm UTC](https://forum.elixirforum.com/t/cant-get-recon-trace-to-work-with-anon-function/23220 "2019-06-18T12:58:20Z")

</div>

Background I have an app constantly logging the following error: =ERROR REPORT==== 18-Jun-2019::11:30:55.362697 === Unexpected message: {#Ref\<0.1587460723.3280207877.77462\>,badarg} At first I thought that one of our Ge…

---

## [How to use recon\_trace.calls properly?](https://forum.elixirforum.com/t/how-to-use-recon-trace-calls-properly/23198)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 6\
**Last updated:** [June 17, 2019, 4:36pm UTC](https://forum.elixirforum.com/t/how-to-use-recon-trace-calls-properly/23198 "2019-06-17T16:36:55Z")

</div>

Background I have an app that prints out the following error every few seconds: =ERROR REPORT==== 17-Jun-2019::13:50:08.172872 === Unexpected message: {#Ref\<0.2741279221.3080978449.3817\>,badarg} I am trying to find out…

---

## [Error when using function in recon\_trace.calls](https://forum.elixirforum.com/t/error-when-using-function-in-recon-trace-calls/23193)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 12:39pm UTC](https://forum.elixirforum.com/t/error-when-using-function-in-recon-trace-calls/23193 "2019-06-17T12:39:30Z")

</div>

Background I have an app that is printing the following error every 2 or 3 seconds: =ERROR REPORT==== 14-Jun-2019::14:31:35.089496 === Unexpected message: {#Ref\<0.2607974300.3493068808.175359\>,badarg} I want to find ou…

---

## [Distributed tracing in elixir](https://forum.elixirforum.com/t/distributed-tracing-in-elixir/20927)

<div class="topic-metadata">

**Author:** [@ananthakumaran](https://forum.elixirforum.com/u/ananthakumaran)\
**Replies:** 6\
**Last updated:** [March 18, 2019, 8:12pm UTC](https://forum.elixirforum.com/t/distributed-tracing-in-elixir/20927 "2019-03-18T20:12:37Z")

</div>

With the proliferation of microservice architecture, distributed tracing has become more and more important in recent days. Because the landscape is quite new, there are multiple open standards like opentracing, opencens…

---

## [Awesome BEAM monitoring list - curated list of libraries and applications for measuring, tracing, and logging in BEAM apps](https://forum.elixirforum.com/t/awesome-beam-monitoring-list-curated-list-of-libraries-and-applications-for-measuring-tracing-and-logging-in-beam-apps/19677)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 0\
**Last updated:** [January 25, 2019, 6:21pm UTC](https://forum.elixirforum.com/t/awesome-beam-monitoring-list-curated-list-of-libraries-and-applications-for-measuring-tracing-and-logging-in-beam-apps/19677 "2019-01-25T18:21:06Z")

</div>

I have created awesome-beam-monitoring list that is meant to gather all resources, libraries, and frameworks about monitoring, tracing, and logging data in BEAM applications. I hope that this list will help newcomers wit…

---

## [Application using GenStage with pretty tracing for studying purposes](https://forum.elixirforum.com/t/application-using-genstage-with-pretty-tracing-for-studying-purposes/12917)

<div class="topic-metadata">

**Author:** [@hugolnx](https://forum.elixirforum.com/u/hugolnx)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 9:44pm UTC](https://forum.elixirforum.com/t/application-using-genstage-with-pretty-tracing-for-studying-purposes/12917 "2018-03-05T21:44:36Z")

</div>

Hey! I created a simple project using GenStage only to study more deeply how the processes comunicate with each other. Instead of using the default erlang tracer, I implemented a prettier tracer and also added some extr…

---

## [Getting Line Error on stack trace when "using" modules](https://forum.elixirforum.com/t/getting-line-error-on-stack-trace-when-using-modules/10667)

<div class="topic-metadata">

**Author:** [@amnu3387](https://forum.elixirforum.com/u/amnu3387)\
**Replies:** 8\
**Last updated:** [December 7, 2017, 9:57pm UTC](https://forum.elixirforum.com/t/getting-line-error-on-stack-trace-when-using-modules/10667 "2017-12-07T21:57:45Z")

</div>

I had a very large module (for my experience) with around 2k loc. I broke it down for organisational purposes, although I’m just “importing” these new modules into a main one. Now whenever I have an error that occurs in …
