Commit Graph

141 Commits

Author SHA1 Message Date
Mikel Blanchard 74212a2402
[sdk+hosting] Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package (#4174)
* Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package.

* Added Azure Functions warning.

* Test fixes.

* Test fixes.

* Patch CHANGELOGs.

* Hosting README updates.

* Comment tweak.

* Clean up.

* Test cleanup.

* MD lint.

* Test fixes.
2023-02-10 12:11:26 -08:00
Mikel Blanchard 94f67d8a8c
Revert "[sdk] Use reflection and dynamic types to start providers (#4151)" (#4173)
This reverts commit b549e12148.
2023-02-09 10:14:12 -08:00
Mikel Blanchard b549e12148
[sdk] Use reflection and dynamic types to start providers (#4151)
* Remove StartWithHost extension and using reflection to do the work in SDK.

* Warning cleanup.

* Fix up.

* Improved logging.

* Remove OpenTelemetry.Extensions.Hosting dependency from examples & docs.

* Test fixes.

* Fixes and test updates.

* Bug fix.

* Patch CHANGELOGs.

* Clean up.

* Support Azure Functions TelemetryHostedService dependency inspection logic.

* Code review.

* Code review.

* Code review.

---------

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-02-08 15:20:02 -08:00
Mikel Blanchard 1f096cb6b8
[DI] Remove ConfigureBuilder and add implementation factory helpers (#4103)
* Hide ConfigureBuilder and add common helpers.

* Remove ConfigureBuilder.

* Test fixes.

* Test fixes.

* Tests for new factory methods.

* CHANGELOG patch.
2023-01-31 09:46:36 -08:00
Utkarsh Umesan Pillai 00314ac693
Update versions of common packages used in tests and examples (#4045) 2022-12-28 11:21:44 -08:00
Utkarsh Umesan Pillai 8013a3a539
Refactor unit tests (#4039) 2022-12-22 15:25:20 -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
Mikel Blanchard 723ad0bd65
[AspNetCore Instrumentation] AspNetCoreMetricsInstrumentationOptions follow-ups & nits (#3982)
* Updates to take care of nits.

* Public API fixes.

* CHANGELOG patch.
2022-12-08 17:03:05 -08:00
Mikel Blanchard 9836d3addb
[DependencyInjection] Introduce new package and refactor SDK (#3923) 2022-12-08 15:24:44 -08:00
Ivan Beňovic b3a0a142d3
Add support for some AspNetCoreMetricsInstrumentationOptions (#3948)
* Add support for some AspNetCoreMetricsInstrumentationOptions

(cherry picked from commit 67b7c7a64cf8a426486ba26aac9e6c3f8246bb6f)

* Refactor and fix MetricTests

* Code review changes

* Update changelog

* Add new APIs to all targets

* Rename function name to Enrich and fixed typo in comment

* Update PublicAPI definitions after renaming

* Fix changelog typo and formatting

Signed-off-by: Ivan Benovic <ivan.benovic@innovatrics.com>

* Change AspNetCoreMetricEnrichmentFunc signature to ref instead of out

Signed-off-by: Ivan Benovic <ivan.benovic@innovatrics.com>

* Fixed documentation file name

* Removed unused using

* Make markdown linter happy

* Fix MetricTests style warnings

Signed-off-by: Ivan Benovic <ivan.benovic@innovatrics.com>
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2022-12-07 11:23:51 -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 943c856c1c
[]ASP.NET Core] Update `http.status_code` dimension type to int (#3930)
* change status code dimension from string to int
2022-11-22 10:06:32 -08:00
Vishwesh Bankwar c5ecd05c72
[ASP.NET Core] Add additional `http.server.duration` metric attributes (#3928) 2022-11-21 15:21:31 -08:00
rinat16 490b9b1ac7
[ASP.NET Core] replace http.target with http.route (#3903) 2022-11-18 12:50:30 -05:00
Vishwesh Bankwar 459e2d7fad
[ASP.NET Core] Remove `http.host` and add `net.host.name` and `net.host.port` (#3858) 2022-11-17 12:18:34 -05:00
Vishwesh Bankwar a758c60cf4
fix tests (#3906) 2022-11-15 13:32:11 -05:00
Vishwesh Bankwar b5e50b2878
[ASP.NET Core] Clear logging for testing scenarios (#3810) 2022-11-11 13:50:12 -05:00
Cijo Thomas 85da882bbd
Upgrade DS to 7.0 stable (#3875) 2022-11-08 12:13:54 -05:00
Vishwesh Bankwar 131b350d95
add net7.0 to test and docs project (#3842) 2022-10-28 16:58:56 -04:00
Vishwesh Bankwar 0c31fb9702
[ASP.NET Core] Update enrich callbacks to use specific type. (#3749) 2022-10-21 13:26:41 -04:00
Vishwesh Bankwar 86ee906dcd
Update Diagnostic Source to rc version (#3698) 2022-09-27 10:34:30 -07:00
Vishwesh Bankwar 8800b2ffdb
Move all diagnostic source events to a single callback method `OnEventWritten` (#3691) 2022-09-26 15:22:41 -04:00
Vishwesh Bankwar 74412f0b19
[ASP.NET Core] Enable diagnostic source events using explicit names (#3519) 2022-09-21 11:54:34 -07:00
Mikel Blanchard 97e5021c73
[Traces] Support named options in AspNetCore instrumentation (#3661)
* Support named options in aspnetcore instrumentation.

* CHANGELOG update.
2022-09-14 13:14:33 -07:00
Vishwesh Bankwar 098f2e0253
[ASP.NET Core] Add unit test for validating diagnostic source event subscription (#3597)
* add unit test for validating event subscription
2022-08-30 14:13:07 -07:00
al-mac 4310e08afd
Fix ASP.NET Core ExceptionFilter prevents recording exception (#3475) 2022-08-24 14:28:19 -04:00
Vishwesh Bankwar bbb7e98ec5
#3490 follow up (Fix asp.net core middleware activity modification issue) (#3498) 2022-08-11 13:35:43 -04:00
Yun-Ting Lin dd8809900a
AspNetCore/Http Instrumentation to leverage native Activity Status. (#3555) 2022-08-10 15:51:17 -04:00
Vishwesh Bankwar b8385a8ca0
Refactor asp.net core test apps (#3558) 2022-08-08 20:41:03 -07: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
Vishwesh Bankwar e24677b8ea
[.NET7.0] AspNetCore ActivitySource Migration (#3391) 2022-08-03 11:57:25 -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 6789efab53
Asp.Net Core Unit test [Activity started in middleware is modified by instrumentation] (#3490) 2022-07-27 15:27:44 -07:00
Cijo Thomas 9bb7aaf727
Try asp.net core tests with inproc server (#3394) 2022-06-22 10:26:21 -07:00
Cijo Thomas cc5083e37b
Asp.Net Core trace instrumentation to populate http schema tag (#3392) 2022-06-20 12:29:23 -07:00
Cijo Thomas 3c38200f96
Fix AspNetCore metrics to use correct value for http.flavor (#3379)
* Fix AspNetCore metrics to use correct value for http.flavor

* word better
2022-06-17 14:29:17 -07:00
Cijo Thomas fd24811e75
ASPNETCore instrumentation to populate httpflavor tag (#3372) 2022-06-17 11:20:28 -07:00
Vishwesh Bankwar 5d5f1f2964
Add net7.0 target for aspnetcore (#3366) 2022-06-17 10:27:18 -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 05feb69d34
Replace MOQ with InMemoryExporter in ASP.NET Core (#3328) 2022-06-02 09:21:19 -07:00
Vishwesh Bankwar ee19d70492
Add additional tags to ASP.NET Core metrics (#3247) 2022-05-06 14:44:54 -07:00
Cijo Thomas 06d623bf5a
Remove net5.0 target from aspnet core instrumentation (#3223) 2022-04-22 09:23:39 -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 5255917581
Improve VS Code and cross-platform dev experience (#2997) 2022-03-09 09:35:30 -08:00
Stefan af6a5d2561
Improve GetUri (#2947) 2022-03-09 08:46:49 -08:00