# \#decorator

**URL:** https://forum.elixirforum.com/tag/decorator/1399.md

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

---

## [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…

---

## [Types in a decorator and accessing Context struct](https://forum.elixirforum.com/t/types-in-a-decorator-and-accessing-context-struct/50534)

<div class="topic-metadata">

**Author:** [@trashyEx](https://forum.elixirforum.com/u/trashyEx)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 3:53pm UTC](https://forum.elixirforum.com/t/types-in-a-decorator-and-accessing-context-struct/50534 "2022-10-14T15:53:06Z")

</div>

Hello, Probably related with macros (since I am learning them bit a bit), but let’s see if I can get some insight in what is going on. I installed the decorator library (Elixir function decorators — decorator v1.4.0). …

---

## [TelemetryDecorator - @decorate functions for :telemetry.span/3](https://forum.elixirforum.com/t/telemetrydecorator-decorate-functions-for-telemetry-span-3/34023)

<div class="topic-metadata">

**Author:** [@garthk](https://forum.elixirforum.com/u/garthk)\
**Replies:** 1\
**Last updated:** [August 28, 2020, 9:16am UTC](https://forum.elixirforum.com/t/telemetrydecorator-decorate-functions-for-telemetry-span-3/34023 "2020-08-28T09:16:03Z")

</div>

TelemetryDecorator uses Decorator to wrap a function’s body with a :telemetry.span/3 call. I’ve found the results easier to read and maintain than when I make the call explicitly. To use it, take the dependency and add …

---

## [Creating a GenServer \`handle\_call\` macro / decorator](https://forum.elixirforum.com/t/creating-a-genserver-handle-call-macro-decorator/30282)

<div class="topic-metadata">

**Author:** [@BenSchZA](https://forum.elixirforum.com/u/BenSchZA)\
**Replies:** 8\
**Last updated:** [April 12, 2020, 2:49pm UTC](https://forum.elixirforum.com/t/creating-a-genserver-handle-call-macro-decorator/30282 "2020-04-12T14:49:03Z")

</div>

I’ve created a custom GenServer macro, to abstract the logic from the user of a project I’m working on, Cadex. It’s used for modelling and simulating basic differential equation based models and eventually complex system…

---

## [Code review: macros and decorator system](https://forum.elixirforum.com/t/code-review-macros-and-decorator-system/20476)

<div class="topic-metadata">

**Author:** [@ImNotAVirus](https://forum.elixirforum.com/u/ImNotAVirus)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 11:08am UTC](https://forum.elixirforum.com/t/code-review-macros-and-decorator-system/20476 "2019-02-27T11:08:19Z")

</div>

Hello, everyone. I’d like to get your opinion on a pull-request that I just did: Feature: packet documentation by ImNotAVirus · Pull Request #1 · elvengard-mmo/elvengard\_network · GitHub I am currently working on a too…
