Skip to content

Fix and disable HttpWebRequest test#797

Merged
cijothomas merged 1 commit intoopen-telemetry:masterfrom
cijothomas:cijothomas/httpwebrequesttestdisable
Jul 10, 2020
Merged

Fix and disable HttpWebRequest test#797
cijothomas merged 1 commit intoopen-telemetry:masterfrom
cijothomas:cijothomas/httpwebrequesttestdisable

Conversation

@cijothomas
Copy link
Copy Markdown
Member

Changes

This HttpWebRequest unit test was passing accidentally. This PR fixes the test logic, and it is now expected to fail until we have the ability to filter httpwebrequest calls, which we don't have yet.

An actual fix would likely come with this PR: (or with alternate solution to support filtering)
#741

At this stage, the only way to filter out httpwebrequests is by writing custom ActivityProcessors.

@cijothomas cijothomas requested a review from a team July 10, 2020 14:57
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 10, 2020

Codecov Report

Merging #797 into master will increase coverage by 1.52%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #797      +/-   ##
==========================================
+ Coverage   71.68%   73.21%   +1.52%     
==========================================
  Files         220      220              
  Lines        6929     6929              
  Branches     1157     1157              
==========================================
+ Hits         4967     5073     +106     
+ Misses       1653     1542     -111     
- Partials      309      314       +5     
Impacted Files Coverage Δ
...penTelemetry/Trace/Export/BatchingSpanProcessor.cs 73.68% <0.00%> (+2.63%) ⬆️
...elemetry/Trace/Export/BatchingActivityProcessor.cs 80.00% <0.00%> (+4.70%) ⬆️
...ntation.AspNet.Win/AspNetInstrumentationOptions.cs 66.66% <0.00%> (+66.66%) ⬆️
...ation.AspNet.Win/Implementation/PropertyFetcher.cs 71.42% <0.00%> (+71.42%) ⬆️
...nstrumentation.AspNet.Win/AspNetInstrumentation.cs 72.72% <0.00%> (+72.72%) ⬆️
...tation.AspNet.Win/Implementation/HttpInListener.cs 85.18% <0.00%> (+85.18%) ⬆️
...ation.AspNet.Win/OpenTelemetryBuilderExtensions.cs 100.00% <0.00%> (+100.00%) ⬆️

@cijothomas cijothomas merged commit 4abc57d into open-telemetry:master Jul 10, 2020
@cijothomas cijothomas deleted the cijothomas/httpwebrequesttestdisable branch July 10, 2020 15:55
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.

3 participants