-
Notifications
You must be signed in to change notification settings - Fork 283
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
[Instrumentation.AspNet] Add metric enrich functionality #1407
Conversation
- Adds enrich and filter functionality - Adds additional metric tags
Codecov Report
@@ Coverage Diff @@
## main #1407 +/- ##
==========================================
- Coverage 73.91% 72.56% -1.35%
==========================================
Files 267 14 -253
Lines 9615 288 -9327
==========================================
- Hits 7107 209 -6898
+ Misses 2508 79 -2429
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/OpenTelemetry.Instrumentation.AspNet/.publicApi/net462/PublicAPI.Unshipped.txt
Outdated
Show resolved
Hide resolved
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Is there anything you want me to do with this? Ideally I'd build upon this to introduce the new |
@qhris Do you need filter as well? If yes, could you explain the use case. ASP.NET Core has removed the filter capability open-telemetry/opentelemetry-dotnet#4981 |
@vishweshbankwar No particular reason, I was just matching the API's to the now removed functionality in .NET 8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for late feedback. Any chance to split the PR into 2 parts - exactly as you have in CHANGE:OG:
- Enriching functionality
- Adding tags.
2 reasons behind it.
- Changelog will have better links to the changes, so the end-user can easily check potential changes.
- It is easier to verify smaller functionalities while reviewing.
If I read the specs, it does look like the |
@jdom, you are looking correctly, but we should switch whole package to the new convention at once. IMO the worst option is mixing them. I am fine with merging this as is, then make one more PR to switch convention. |
@Kielek that sounds good to me, since I'd have to undo a lot of work just to add it back in with new values. So for now I'll just make the suggested changes to the changelog and fix the conflicts. |
@vishweshbankwar - our team has used the filter logic in ASP.NET Core's instrumentation to avoid emitting metrics/traces for healthchecks and other unmonitored paths. We'd like to have the same functionality from the ASP.NET instrumentation (though I realize this has now been removed in the newer Core packages). Is this a valid use case that would merit adding filtering, or is there a separate OTel mechanism we should use? I can open a separate PR for filtering if it would be more appropriate to move the discussion there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. Still I would prefer to have it as 2 PRs.
@vishweshbankwar, could you please check this?
@Kielek I can still split it if necessary but that would be later tonight. Either way works for me. If it doesn't get merged until then the plan is:
|
@qhris Do you mind updating this PR to just add |
Sorry for the inconvenience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks @qhris!
Thanks for contribution! |
Fixes #1226 by adding adding functionality.
Changes
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes