# APM transaction name is not consistent

**URL:** <https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713>\
**Category:** APM\
**Tags:** dotnet, language-clients\
**Created:** [January 9, 2023, 9:08am UTC](https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713 "2023-01-09T09:08:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciizo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ciizo/32/115698_2.png) [@ciizo](https://discuss.elastic.co/u/ciizo)\
**Post date:** [January 9, 2023, 9:08am UTC](https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713/1 "2023-01-09T09:08:47Z")

</div>

**Kibana version** : 8.1.2

**Elasticsearch version** : 8.1.2

**APM Server version** : 8.1.2

**APM Agent language and version** : APM .NET 1.19.0

**Browser version** : Chrome 108.0.5359.125 (Official Build) (64-bit)

APM transaction name is misleading as follows

- the transaction name of success request is formatted as “{HTTP method} {controller}/{method}”
- the transaction name of failure request is formatted as “{HTTP method} {URL}”

I expect all transaction names to be formatted as “{HTTP method} {URL}”

I can fix this with a weird solution by setting the name at the beginning of request in middleware.

`Agent.Tracer.CurrentTransaction.Name = Agent.Tracer.CurrentTransaction.Name;`

also, from my debugging the name value is always “{HTTP method} {URL}” since beginning.

Here is my screenshot.

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

---

<div class="post-metadata">

**Author:** ![Wolfgang\_Ziegler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfgang_ziegler/32/109929_2.png) [@Wolfgang\_Ziegler](https://discuss.elastic.co/u/Wolfgang_Ziegler)\
**Post date:** [January 10, 2023, 7:18am UTC](https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713/2 "2023-01-10T07:18:37Z")

</div>

Hi @ciizo,

thanks for bringing this to our attention.  
Do you mind [creating an issue](https://github.com/elastic/apm-agent-dotnet/issues/new/choose) for that in our GitHub repository?  
That way we can triage and prioritize the issue better.

Thanks  
Wolfgang

---

<div class="post-metadata">

**Author:** ![ciizo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ciizo/32/115698_2.png) [@ciizo](https://discuss.elastic.co/u/ciizo)\
**Post date:** [January 11, 2023, 3:59am UTC](https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713/3 "2023-01-11T03:59:49Z")

</div>

Thanks, here we go [[BUG] APM transaction name is not consistent · Issue #1969 · elastic/apm-agent-dotnet · GitHub](https://github.com/elastic/apm-agent-dotnet/issues/1969)

---

<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:** [January 31, 2023, 11:59pm UTC](https://discuss.elastic.co/t/apm-transaction-name-is-not-consistent/322713/4 "2023-01-31T23:59:59Z")

</div>

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