Elastic APM dotnet yarp issue

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:

  "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.

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?

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