# Elastic APM dotnet yarp issue

**URL:** <https://discuss.elastic.co/t/elastic-apm-dotnet-yarp-issue/343247>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [September 18, 2023, 10:32am UTC](https://discuss.elastic.co/t/elastic-apm-dotnet-yarp-issue/343247 "2023-09-18T10:32:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamazbagdavadze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tamazbagdavadze/32/125749_2.png) [@tamazbagdavadze](https://discuss.elastic.co/u/tamazbagdavadze)\
**Post date:** [September 18, 2023, 10:32am UTC](https://discuss.elastic.co/t/elastic-apm-dotnet-yarp-issue/343247/1 "2023-09-18T10:32:24Z")

</div>

**Kibana version** : 8.5.1

**Elasticsearch version** : 8.5.1

**APM Server version** : 8.5.1 (amd64), libbeat 8.5.1 [7cf6f555935def992ecfd9a4693771447cb51431 built 2022-11-09 11:21:18 -0800 -0800]

**APM Agent language and version** : Elastic.Apm.NetCoreAll 1.23.0

I'm using api gateway (Yarp reverse proxy) in front of all microservices. I have installed `Elastic.Apm.NetCoreAll` in all services + gateway.

This is how apm config looks like in all services and gateway:

```auto
  "ElasticApm": {
    "ServerUrl": "myapmurl",
    "TransactionSampleRate": 1
  }

```

When I check some request in kibana apm in some service, I see all details, sub requests from svc1 to svc2, from svc2 to svc3, db calls etc.  
When I check same request in Api gateway, I see only one http request, no other details.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/554e8f3350bc8ec5ec52271c934015d63bc5fc88.png)

`TraceParent` and `TraceState` headers are passed from gateway to microservices.  
Is there any additional setup I need to do to make APM work correctly with yarp?

---

<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:** [October 16, 2023, 10:32am UTC](https://discuss.elastic.co/t/elastic-apm-dotnet-yarp-issue/343247/2 "2023-10-16T10:32:33Z")

</div>

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