# ElasticAPM, trace class&method name with zero code change setup on .net programming

**URL:** <https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [November 30, 2020, 2:28am UTC](https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015 "2020-11-30T02:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulietCeaser](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@JulietCeaser](https://discuss.elastic.co/u/JulietCeaser)\
**Post date:** [November 30, 2020, 2:28am UTC](https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015/1 "2020-11-30T02:28:49Z")

</div>

In Elastic APM, I want to trace class name, method name, etc in transactions with Zero code change setup on .NET Core.  
Is it possible?  
If possible, could you guide me reference link or tell me how to set up.

**Kibana version** : kibana-7.9.3-windows-x86\_64

**Elasticsearch version** : elasticsearch-7.9.2-windows-x86\_64

**APM Server version** : apm-server-7.10.0-windows-x86\_64

> **[Download APM Server | Elastic](https://www.elastic.co/downloads/apm)**

**APM Agent language and version** : ElasticApmAgent\_1.7.0

> **[Releases · elastic/apm-agent-dotnet](https://github.com/elastic/apm-agent-dotnet/releases)**
>
> Elastic APM .NET Agent. Contribute to elastic/apm-agent-dotnet development by creating an account on GitHub.

**Browser version** : Google Chrome Version 87.0.4280.66 (Official Build) (64-bit)

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: [https://www.elastic.co/guide/en/apm/agent/dotnet/1.x/setup-dotnet-net-core.html#zero-code-change-setup](https://www.elastic.co/guide/en/apm/agent/dotnet/1.x/setup-dotnet-net-core.html#zero-code-change-setup)

Currently is shown as attached image.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f2460675a49590041322b09db865501b6962b23f.png)

Thanks in advanced!!!

---

<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:** [November 30, 2020, 2:00pm UTC](https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015/2 "2020-11-30T14:00:04Z")

</div>

Hi @JulietCeaser,

the agent will capture spans for known actions, like an outgoing HTTP request or a database call. If you'd like to capture a custom method, then that won't show up out of the box, for that you'll need to use the [Public Agent API](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html), which admittedly won't be "zero code change" anymore.

---

<div class="post-metadata">

**Author:** ![JulietCeaser](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@JulietCeaser](https://discuss.elastic.co/u/JulietCeaser)\
**Post date:** [December 1, 2020, 3:03am UTC](https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015/3 "2020-12-01T03:03:40Z")

</div>

I see.  
Thank you for your reply.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 21, 2020, 11:03pm UTC](https://discuss.elastic.co/t/elasticapm-trace-class-method-name-with-zero-code-change-setup-on-net-programming/257015/4 "2020-12-21T23:03:53Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
