# Elastic APM .net agent is not instrumenting methods

**URL:** <https://discuss.elastic.co/t/elastic-apm-net-agent-is-not-instrumenting-methods/228815>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [April 20, 2020, 8:44am UTC](https://discuss.elastic.co/t/elastic-apm-net-agent-is-not-instrumenting-methods/228815 "2020-04-20T08:44:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [April 20, 2020, 9:21am UTC](https://discuss.elastic.co/t/elastic-apm-net-agent-is-not-instrumenting-methods/228815/4 "2020-04-20T09:21:44Z")

</div>

> so that means if not http calls, we have to go for manual instrumentation

Correct.

> When will the complete flow is instrumented.., I mean all the method calls, irrespective of http calls or sql client calls?

We don't really aim for that - that would mean an overhead that would be very likely unacceptable for most of the users in production. Also including app and framework methods would lead to a UI that is very hard to understand even with a simple application.

What we already do is that for each span that is created we capture a callstack depending on the duration of the span. [Here](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-stacktrace.html#config-span-frames-min-duration) is the setting to change the duration limit for call stack capturing.

With that you'll see the callstack on every span like this (this is the same for every span - not matter what it captures):

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e0ad63a6481a224ca05c118fe3ee2a10531a450b.png)

If you set `SpanFramesMinDuration` to negative value you'll have the callstack for every single span - keep in mind this will still cause some overhead.

With that hopefully you'll get what you aim for - so you could strategically place some code and manually capture spans and for those spans you can get the callstack - but instrumenting every single method is not a recommended way.

---

_[View the full topic](https://discuss.elastic.co/t/elastic-apm-net-agent-is-not-instrumenting-methods/228815)._
