Skip to content
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.AspNetCore, Instrumentation.HttpClient] Add Enrichment instructions #2059

Conversation

ysolomchenko
Copy link
Contributor

Fixes #1762

Changes

Add Enrichment instructions for .NET8.0 for

  • Instrumentation.AspNetCore
  • Instrumentation.HttpClient

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@ysolomchenko ysolomchenko requested a review from a team September 10, 2024 09:09
@github-actions github-actions bot added comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore documentation Improvements or additions to documentation comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http labels Sep 10, 2024
This feature allows you to add custom tags to metrics like `http.server.request.duration`,
which records the duration of HTTP requests on the server.

Here's an example of enriching the `http.server.request.duration` metric:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do user specify that they intend to enrich http.server.request.duration metric, and nothing else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 99a4211

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still confused. Where does user specify that they intend to enrich "http.server.request.duration" metric, and nothing else?
The example just shows how to get IHttpMetricsTagsFeature and add tags to it. But don't see any place where user selects which metric is this applied to.

@Kielek Kielek requested a review from cijothomas September 16, 2024 08:01
Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving the docs! I have requested changes to address the comments left.

@cijothomas cijothomas requested a review from a team as a code owner September 27, 2024 15:40
ysolomchenko and others added 4 commits October 7, 2024 09:23
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 15, 2024
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http documentation Improvements or additions to documentation Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Enrichment instructions for Instrumentation.AspNetCore and Instrumentation.HttpClient for .NET8.0
3 participants