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

[ASP.NET Core] Remove grpc server instrumentation #5097

Conversation

vishweshbankwar
Copy link
Member

@vishweshbankwar vishweshbankwar commented Nov 29, 2023

Fixes #
Design discussion issue #

Changes

See issue open-telemetry/opentelemetry-dotnet-contrib#1726

Merge requirement checklist

  • CONTRIBUTING guidelines followed (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)

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #5097 (3111a2c) into main (4f73d2b) will decrease coverage by 0.16%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    open-telemetry/opentelemetry-dotnet#5097      +/-   ##
==========================================
- Coverage   83.02%   82.87%   -0.16%     
==========================================
  Files         296      296              
  Lines       12315    12312       -3     
==========================================
- Hits        10225    10203      -22     
- Misses       2090     2109      +19     
Flag Coverage Δ
unittests 82.87% <ø> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ion.AspNetCore/AspNetCoreInstrumentationOptions.cs 100.00% <ø> (ø)
...tation.AspNetCore/Implementation/HttpInListener.cs 75.18% <ø> (-13.71%) ⬇️

... and 5 files with indirect coverage changes

@vishweshbankwar vishweshbankwar marked this pull request as ready for review November 29, 2023 21:21
@vishweshbankwar vishweshbankwar requested a review from a team as a code owner November 29, 2023 21:21
@vishweshbankwar vishweshbankwar changed the title Remove grpc server instrumentation [ASP.NET Core] Remove grpc server instrumentation Nov 29, 2023
Copy link
Contributor

@utpilla utpilla left a comment

Choose a reason for hiding this comment

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

Approved with suggestions.

Comment on lines +14 to +15
* Removed support for grpc instrumentation to unblock stable release of http
instrumentation. For details, see issue
Copy link
Member

Choose a reason for hiding this comment

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

Why the decision to comment the functionality out when we could use the EXPOSE_EXPERIMENTAL_FEATURES directive. Seems this causes more toil for us to maintain and for users who may want to use the latest instrumentation.

Copy link
Member Author

Choose a reason for hiding this comment

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

The idea is to have all the breaking changes introduced in rc version itself so that users are aware of what is coming in stable release. After the stable release, we can re-introduce this as experimental.

Copy link
Contributor

Choose a reason for hiding this comment

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

We could do that but I think it might be okay to comment this functionality out for the next rc which is supposed to mimic the stable behavior. We could see if people complain about this in the rc and decide to mark it experimental then? Otherwise, we would introduce in the first alpha after the stable release.

Copy link
Member

Choose a reason for hiding this comment

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

I guess what I'm hearing is that we want to treat rc releases a bit differently than other pre-release monikers like alpha, beta, etc. I'd be fine if we set a precedent that EXPOSE_EXPERIMENTAL_FEATURES is only set for non-rc prereleases. I'm mainly looking for ways we can avoid the commenting/uncommenting toil we've had in the past.

I don't feel strongly that this is performed right now, so if you'd prefer to take the shortcut and comment it out for now then I'm ok with that. Though, I do want to see this reintroduced as soon as possible. I don't need to wait for customers to complain. I know of customers that use this instrumentation. Also, the cartservice from the opentelemetry-demo project is a gRPC service and depends on this instrumentation.

Copy link
Contributor

@utpilla utpilla Nov 29, 2023

Choose a reason for hiding this comment

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

I guess what I'm hearing is that we want to treat rc releases a bit differently than other pre-release monikers like alpha, beta, etc.

We want to treat this particular rc that we would be releasing next differently. As this is the first time this library would have a stable release so that's why this rc is special than let's say an rc that would happen after we have had a stable release.

Though, I do want to see this reintroduced as soon as possible. I don't need to wait for customers to complain. I know of customers that use this instrumentation.

We would have to tell them that these conventions are not stabilized yet. Ideally (meaning taking the shortcut route), we would add it right after the first stable which should happen in ~2-3 weeks from now.

Copy link
Member

Choose a reason for hiding this comment

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

we would add it right after the first stable which should happen in ~2-3 weeks from now

ok

@utpilla utpilla merged commit 39c77d4 into open-telemetry:main Nov 29, 2023
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants