Replies: 1 comment 4 replies
-
Yarp. See https://cloud-native.slack.com/archives/C01N3BC2W7Q/p1675781903348719 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an ASP.NET Core .NET 7 project set up that uses YARP. Using a Swagger-generated C# client library, I'm making a REST API call to another service. Even though I've integrated the latest prerelease packages into my code, I am not seeing any trace headers attached to the outgoing request. I'll dump some code below. It's been frustrating to get any of this working due to the lack of documentation, unclear documentation, or just out of date information.
Code I use in
program.cs
to set everthing up:I also added this to
Program.cs
to try to get propagation working (which is what I assume is needed to get the headers, but this is just trial & error on my part):Lastly, in the class that uses the swagger C# client class (which itself has an
HttpClient
), I tried using theActivitySource
to start a new activity, thinking it might help, but it doesn't. For that matter, I thought this was supposed to be built in so I get an implicit start activity for every HTTP request I send out:My testing was done by:
Here are the packages I'm using. Again, this is .NET 7.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions