Skip to content

Requests proxied via YARP are missing in the traces #3843

@saithis

Description

@saithis

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0.0

OS

Any (not platform specific)

SDK Version

4.13.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Create a ASP.NET Core project
  2. Add Sentry.AspNetCore and wire it up (.UseSentry + config)
"Sentry": {
        "Dsn": "...",
        "IncludeActivityData": true,
        "MaxRequestBodySize": "None",
        "TracesSampleRate": 1.0
    },
  1. Add Yarp.ReverseProxy
  2. configure a route, that just echos the request back
  3. configure a route, that takes the request and forwards it to the echo route via YARP (in production it would be another api for us, but for local debugging i tested it with the echo endpoint)
  4. call the route via postman/etc.

Expected Result

The proxied request should show up in the trace as a child

Actual Result

It doesn't
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions