Commit Graph

115 Commits

Author SHA1 Message Date
Timothy Mothra 55556af592
fix analysis issues: CA2000 (#4038) 2022-12-22 13:59:59 -08:00
Utkarsh Umesan Pillai b138784df5
Remove unnecessary usings from instrumentation tests (#4028) 2022-12-20 19:45:14 -08:00
Timothy Mothra 64f1d74561
fix analysis issues: CA2007 (part2) (#4018)
* fix analysis issues: CA2007

* remove duplicate

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2022-12-15 16:31:49 -08:00
Timothy Mothra 804c448d2e
add nullable enable to Common.props and disable in projects. (#3964) 2022-12-05 15:33:57 -08:00
Vishwesh Bankwar 2e7b7a9308
[HttpClient] Add `net.peer.name` and `net.peer.port` on metric dimensions (#3907)
* Add net.peer.name and net.peer.port on metric

* changelog

* rmv todo
2022-11-15 14:57:32 -05:00
Vishwesh Bankwar 2fce583b9c
[HttpClient] Remove `http.host` and add `net.peer.name` & `net.peer.port` to match spec (#3832) 2022-11-11 12:49:30 -05:00
Mikel Blanchard 399fbcfaab
[Http Instrumentation] Unify exposed public API (#3793)
* Expose the same Http API for all targets.

* CHANGELOG stub.

* Merge updates.

* CHANGELOG updates.

* CHANGELOG cleanup.

* Working on tests.

* Test fix.

* Cleanup.

* HttpClient tests passing.

* Tests passing.

* Tests passing.

* README updates.

* Cleanup.

* Lint

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-11-02 11:48:23 -07:00
Mikel Blanchard 8add3db43a
[Http] Fix propagation issues (#3828)
* Fix propagation issues with http client instrumentation.

* More comments and asserts.

* Fixes.

* Improve tests.

* Test cleanup.

* Simplify things.

* CHANGELOG update.

* Code review.

* Lint.

* Code review.

* Code review.

Co-authored-by: Vishwesh Bankwar <vishweshbankwar@users.noreply.github.com>
2022-10-28 10:48:24 -07:00
Vishwesh Bankwar d21e609f00
[Http] Update enrich callbacks for http (#3792) 2022-10-21 11:34:17 -07:00
Vishwesh Bankwar 0feebf3145
[HttpClient] Add unit tests for `RecordException` case (#3761) 2022-10-14 18:00:53 -04:00
Vishwesh Bankwar 3671e550fb
[HttpClient] Export spans corresponding to retries (#3732) 2022-10-07 13:08:55 -04:00
Vishwesh Bankwar d42f171d13
[HttpClient] Unit test for retries (#3730) 2022-10-05 15:49:00 -04:00
Vishwesh Bankwar d10f1f945d
Unit test to validate spans in http redirect (#3699) 2022-09-27 17:51:41 -04:00
Mikel Blanchard d72a94f3ba
[Traces] Support named options in HttpWebRequest instrumentation (#3667)
* Added support for named options in the HttpWebRequest builder extensions.

* CHANGELOG update.
2022-09-15 11:54:35 -07:00
Mikel Blanchard 215f58bad5
[Traces] Support named options in HttpClient instrumentation (#3664)
* Enabled named options in httpclient instrumentation.

* Tests.

* CHANGELOG update.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-09-15 10:56:13 -07:00
Yun-Ting Lin dd8809900a
AspNetCore/Http Instrumentation to leverage native Activity Status. (#3555) 2022-08-10 15:51:17 -04:00
Vishwesh Bankwar 668b07335b
Clean up netcoreapp3.1 and add net7.0 to tests (#3543) 2022-08-04 20:21:55 -07:00
Alan West a789bc0259
Merge net7.0 to main (#3539) 2022-08-04 10:25:21 -07:00
Alan West 25df7e85b0
Revert "Merge branch 'net7.0' into main" (#3531)
This reverts commit e64015cadd, reversing
changes made to 5653454b0c.
2022-08-03 15:47:18 -07:00
Alan West e64015cadd
Merge branch 'net7.0' into main 2022-08-03 13:37:36 -07:00
Yun-Ting Lin 5653454b0c
nits: doc update, test cleanup (#3520) 2022-08-03 12:40:01 -07:00
Alan West 8dd0743174
Merge branch 'main' into net7.0 2022-08-03 11:46:27 -07:00
liangli 82e041c27c
fix: replace all newtonsoft.json usages (#3478) 2022-07-28 19:12:28 -07:00
Vishwesh Bankwar 54e83a9c9b
Add http.scheme tag to HttpClient instrumentation (#3464)
* add http.scheme tag
2022-07-20 13:59:07 -07:00
Gérald Barré 1c6bb182c7
Replace StringComparison.InvariantCultureIgnoreCase with OrdinalIgnoreCase (#3436) 2022-07-11 16:20:08 -07:00
Vishwesh Bankwar 0f0a96d31f
add net7.0 for httpclient tests (#3389)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-06-22 12:10:42 -07:00
Cijo Thomas d74ac9ea4a
Remove SetHttpFlavor from Http instrumentations (#3381) 2022-06-18 10:36:27 -07:00
Alan West d84f0edf77
Use DiagnosticSource 7.0 and drop netcoreapp3.1 target (#3351)
* Remove AspNetCore 3.1 test app

* Remove netcoreapp3.1 target from projects

* Bump to DiagnosticSource 7.0.0-preview.4.22229.4

* Enable CI on net7.0 branch

* Remove trailing space
2022-06-07 20:46:15 -07:00
Cijo Thomas 87ab4af4cd
Remove NET5 from tests and CI (#3215) 2022-04-21 09:21:07 -07:00
Cijo Thomas edede3a32a
Remove net461 from Prometheus SQL SE HTTP Client (#3195) 2022-04-15 13:05:42 -07:00
Piotr Kiełkowicz c2ab8d4d8a
Replace TestExporter by InMemoryExporter in MetricAPITest (#3150) 2022-04-08 06:56:06 -07:00
Travis Illig 7ed97be908
Fix analyzers (#3053) 2022-04-01 07:46:32 -07:00
Travis Illig d55de344f1
Fix IDE0090: 'using' statement can be simplified. (#3017) 2022-03-10 21:32:41 -08:00
Travis Illig 7b19794de3
Fix IDE0001: Name can be simplified. (#3011) 2022-03-10 07:39:27 -08:00
Travis Illig 5255917581
Improve VS Code and cross-platform dev experience (#2997) 2022-03-09 09:35:30 -08:00
Alan West cbc5172d24
MetricReaderOptions for AddInMemoryExporter extension methods (#2931) 2022-02-23 09:56:00 -08:00
Cijo Thomas 782626920a
Fix tests to avoid external dependency (#2884) 2022-02-10 12:03:46 -08:00
Reiley Yang 794450b178
Clean up test cases by using consistent variable name (#2672) 2021-11-23 21:26:29 -08:00
Reiley Yang fb161af939
Refactor temporality to align with the spec (#2666) 2021-11-23 13:49:29 -08:00
Utkarsh Umesan Pillai 69ef5f86bf
Update MetricPoint for Histograms (#2657) 2021-11-22 16:31:45 -08:00
Mikel Blanchard 71f5fb00a8
Metrics: Use ReadOnlyTagCollection to encapsulate key/values on MetricPoint (#2642) 2021-11-20 13:59:22 -08:00
Cijo Thomas ac98506ed4
Delta exporters will Export only those points which received new update (#2629) 2021-11-17 11:04:14 -08:00
Michael Maxwell c085504462
Replace use of TestExporter with InMemoryExporter (#2562) 2021-11-05 09:35:49 -07:00
Vishwesh Bankwar 4f930d5074
Enable .net6.0 build and add net6.0 target (#2559) 2021-11-04 08:33:35 -07:00
Mikel Blanchard 38ee521b24
Hosting: Support metrics registration via IServiceCollection & deferred configuration (#2412)
* Add metrics support to hosting lib.

* Bug fixes and some public api additions.

* Added missing zipkin publicapi files.

* Unit tests.

* CHANGELOG updates

* Fixes

* Code review.

* Update src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* Code review.

* Warning fixup.

Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-09-27 10:30:10 -07:00
Reiley Yang 78baf7c261
Implement the metrics dispose/shutdown logic (#2404) 2021-09-23 08:02:09 -07:00
Mikel Blanchard 58054d16cc
.NET Framework HttpClient Instrumentation: Fix missing events on instances created before TracerProvider (Part 2) (#2375)
* CHANGELOG update.

* Test and bug fixes.

* Update src/OpenTelemetry.Instrumentation.Http/CHANGELOG.md

Co-authored-by: Robert Pająk <pellared@hotmail.com>

* Lint

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2021-09-20 10:37:29 -07:00
Reiley Yang 886b39f0fa
Refactor MetricExporter AggregationTemporality (#2347) 2021-09-13 21:35:53 -07:00
Reiley Yang bec00a9a92
Refactor MetricReader AggregationTemporality (#2342) 2021-09-13 11:05:37 -07:00
Cijo Thomas 16b3188496
Metrics -> Main (#2332)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Michael Maxwell <micmax@microsoft.com>
2021-09-10 15:34:54 -07:00