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

[.NET7.0] Http client activity source migration #3415

Conversation

vishweshbankwar
Copy link
Member

@vishweshbankwar vishweshbankwar commented Jun 28, 2022

Fixes #3018

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #3415 (54d7378) into net7.0 (7c88389) will increase coverage by 0.03%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           net7.0    #3415      +/-   ##
==========================================
+ Coverage   86.10%   86.14%   +0.03%     
==========================================
  Files         258      258              
  Lines        9261     9279      +18     
==========================================
+ Hits         7974     7993      +19     
+ Misses       1287     1286       -1     
Impacted Files Coverage Δ
...tp/Implementation/HttpHandlerDiagnosticListener.cs 72.34% <73.33%> (-0.84%) ⬇️
....Instrumentation.Http/HttpClientInstrumentation.cs 100.00% <100.00%> (ø)
...umentation.Http/TracerProviderBuilderExtensions.cs 75.00% <100.00%> (+3.57%) ⬆️
src/OpenTelemetry.Api/BaseProvider.cs 66.66% <0.00%> (-33.34%) ⬇️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 97.14% <0.00%> (-2.86%) ⬇️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 74.16% <0.00%> (-0.84%) ⬇️
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 97.65% <0.00%> (+0.78%) ⬆️
src/OpenTelemetry/BatchExportProcessor.cs 81.90% <0.00%> (+2.85%) ⬆️
...porter.OpenTelemetryProtocol/OtlpMetricExporter.cs 86.36% <0.00%> (+13.63%) ⬆️
... and 1 more

@vishweshbankwar vishweshbankwar marked this pull request as ready for review June 28, 2022 18:03
@vishweshbankwar vishweshbankwar requested a review from a team June 28, 2022 18:03
@vishweshbankwar vishweshbankwar changed the title Http client activity source migration [.NET7.0] Http client activity source migration Jul 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2022

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label Jul 9, 2022
Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

Some feedback but LGTM

@alanwest alanwest removed the Stale Issues and pull requests which have been flagged for closing due to inactivity label Jul 14, 2022
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label Jul 26, 2022
@github-actions github-actions bot removed the Stale Issues and pull requests which have been flagged for closing due to inactivity label Jul 29, 2022
@cijothomas cijothomas merged commit 09744c6 into open-telemetry:net7.0 Aug 3, 2022
@alanwest alanwest mentioned this pull request Aug 3, 2022
3 tasks
alanwest pushed a commit to alanwest/opentelemetry-dotnet that referenced this pull request Aug 3, 2022
alanwest added a commit that referenced this pull request Aug 3, 2022
pellared pushed a commit to open-telemetry/opentelemetry-dotnet-instrumentation that referenced this pull request Nov 25, 2022
* Bump OpenTelemetry.AutoInstrumentation dependencies to 1.4.0-beta.3
and other released to the newest versions

* Adjust setting up Prometheus exporter
based on https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md#140-alpha2

* Remove Microsoft.Extensions.Logging.Abstractions from duplicated libraries list
After upgrade all places references 7.0.0

* Reintroduce DiagnosticSource source to additional deps
it is needed by .NET 6 applications

* Bump Additional Dependencies to 7.0
as we should always bring the newest packages

* Use HttpClientInstrumentationOptions instead of HttpWebRequestInstrumentationOptions
based on open-telemetry/opentelemetry-dotnet@399fbcf

* Add Microsoft.Extensions.Configuration.EnvironmentVariables to Additional Store
introduced by open-telemetry/opentelemetry-dotnet@f191e846d37283e82272f6daa95df10aec4edd7bhttps://github.com/open-telemetry/opentelemetry-dotnet/commit/f191e846d37283e82272f6daa95df10aec4edd7b

* Fix references in Smoke tests

* Update SourceNames for Http Instrumentation
due to https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.Http/CHANGELOG.md#100-rc96

* Change expected span names for Http Instrumentation
changes due to
dotnet/runtime@d8c0170
open-telemetry/opentelemetry-dotnet#3415
open-telemetry/opentelemetry-dotnet@8add3db

* Update Sql Integration name
due to https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md#100-rc95

* Update tests dependencies

* Binding to System.Memory 4.0.1.2 to avoid conflicts with loaded library
Workaround will be fixed in scope of #1646

* Update distributed structure

* Remove reference to HttpWebRequestInstrumentationOptions
from documentation. It was removed from instrumentation package

* Dotnet format fix

* Propagate workaround from 411e778 to TestApplication.Http.NetFramework

* Bump OpenTelemetry.Instrumentation.Runtime to 1.1.0-beta.1

* Remove todo comment
we expect that it will be needed shortly

* Remove DiagnosticSource reference from TestApplication.Http
It is not used in the application, so it is loaded from additional store

* Update documentation
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.

4 participants