-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry does not get rest api title correct on performance metric transaction when using Microsoft.AspNetCore.Mvc.Versioning #1637
Comments
Thanks for raising this. I belive @lucas-zimerman might have some input on this one? |
It has been like that for a while. |
Perhaps it would be possible to make it configurable from the application using sentry options? I have not looked under the hood of api versioning, but I am aware that for dotnet 6, some things with the api version have changed and it is now no longer a Microsoft project, more info here: dotnet/aspnet-api-versioning#808. And currently there is no release yet for dotnet 6, yet many people (including myself) are using the 5.x version for dotnet 6 without issues. Just something to keep in mind if adding integration for. Perhaps if adding integration, it could be included in a separate package, this would allow for not including the api versioning as a dependency for projects that do not use it. It could also be the means for configuring that you would like to resolve the api version. The old behavior would be maintained if the dependency is not included, but with the dependency then the api version would be resolved. Just another idea for how to address the issue. Thank you, |
Yes, this may be considered a breaking behavioral change, but my thinking is this:
So, let's get it fixed. |
Package
Sentry.AspNetCore
.NET Flavor
.NET Core
.NET Version
6.0.4
OS
Windows
SDK Version
3.16.0
Self-Hosted Sentry Version
22.2.0
Steps to Reproduce
Microsoft.AspNetCore.Mvc.Versioning
Example:
Expected Result
It is expected that the correct version is inserted into the request metadata sent back to the server.
Actual Result
The text was updated successfully, but these errors were encountered: