# .NET Instrumentation via MSIL bytecode injection

**URL:** <https://community.dynatrace.com/t/net-instrumentation-via-msil-bytecode-injection/47224>\
**Category:** Dynatrace Tips\
**Tags:** dotnet\
**Created:** [August 20, 2024, 10:09pm UTC](https://community.dynatrace.com/t/net-instrumentation-via-msil-bytecode-injection/47224 "2024-08-20T22:09:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 20, 2024, 10:09pm UTC](https://community.dynatrace.com/t/net-instrumentation-via-msil-bytecode-injection/47224/1 "2024-08-20T22:09:21Z")

</div>

Reading the most recent Phrack edition, I noticed I had missed #70

#70 has a magnificent article on .NET Instrumentation via MSIL bytecode injection

Sometimes, we wonder how instrumentation is done. This article details how it can be done, and although the motives might be different, they really show the details on how it is done:

> **[.NET Instrumentation via MSIL bytecode injection](https://phrack.org/issues/70/6)**
>
> In this article we will explore the internals of the .NET framework with the purpose of providing an innovative method to instrument .NET programs at runtime. Actually, there are several libraries that allow to instrument .NET programs; most of them...
