Commit Graph

1089 Commits

Author SHA1 Message Date
Cijo Thomas 814206dd21
Improve log message written by selfdiagnostics to file. (#4219) 2023-02-23 00:48:15 -05:00
Mikel Blanchard 7139c7a656
[Otlp] Make sure Otlp trace and metric exporters have dedicated options instances (#4200)
* Make sure Otlp trace and metric exporters have dedicated options instances.

* CHANGELOG patch.
2023-02-16 14:04:45 -08:00
Vishwesh Bankwar d0829fff2f
[ASP.NET Core] Add test validating route information for non-mvc scenario (#4105) 2023-02-14 18:39:07 -05:00
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
Alan West c0f927f9a3
OTLP exporter add User-Agent header (#4120)
* OTLP exporter add User-Agent header

* Fix tests

* Update changelog

* Update changelog

* Handle exceptions retrieving assembly version

---------

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-01-31 20:38:54 -08:00
Mikel Blanchard 074c0196f1
[docs] Update "note" styling (#4130)
* Clean up.

* Update notes to use github styling.

* Clean up.

* MD028 lint hack.
2023-01-31 16:53:05 -08:00
Mikel Blanchard 3a491b14b2
[DI] Rename DI package to OpenTelemetry.Api.ProviderBuilderExtensions (#4125)
* Rename DI package to OpenTelemetry.Api.ProviderBuilderExtensions.

* Patch CHANGELOG.
2023-01-31 12:17:15 -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
Cijo Thomas 2e9a204243
Minor refactor on histogram metric update (#4111) 2023-01-27 15:58:48 -05:00
Timothy Mothra ff6efe784b
cleanup tests and docs (#4099) 2023-01-24 22:14:57 -05:00
Mikel Blanchard 84b377878a
[SDK] Add a test covering exception thrown in custom sampler (#4072) 2023-01-23 17:41:17 -05:00
Timothy Mothra 9e00b8f0cd
fix: change Environment Var parsing to not throw FormatException (part1) (#4095) 2023-01-21 10:21:28 -05:00
Reiley Yang ea5a25caac
Rename to Base2ExponentialBucketHistogram to align with the latest spec (#4079) 2023-01-13 17:06:05 -05:00
Utkarsh Umesan Pillai b091200ebe
Standardize GetHashCode implementation (#4064) 2023-01-09 12:28:46 -08:00
Utkarsh Umesan Pillai 1a026839d2
Metrics Perf Improvement- Use KeyValuePair<string, object>[] to store dimensions (#4059) 2023-01-06 16:20:53 -08:00
Mikel Blanchard 9708349641
Port package cleanup from closed PR. (#4062)
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
2023-01-06 14:20:33 -08:00
Mikel Blanchard a5941d53f1
[OtlpExporter] Registration extension configuration delegate fix (#4058)
* Fix tracing and metric otlp exporter extensions mutating the same options instance when named options are not used.

* Log tweaks.

* Clean up.

* Issue links.

* Tweaks.

* Code review.
2023-01-06 13:59:07 -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
Mikel Blanchard c96356bebe
[repo] Update the guard class with nullable decorations (#4033)
* Update the guard class with nullable decorations.

* Test fix.
2022-12-22 20:45:51 -08:00
Utkarsh Umesan Pillai 3fb063fb2e
Update W3CTraceContext unit tests (#4041) 2022-12-22 16:28:42 -08:00
Utkarsh Umesan Pillai 8013a3a539
Refactor unit tests (#4039) 2022-12-22 15:25:20 -08:00
Timothy Mothra 55556af592
fix analysis issues: CA2000 (#4038) 2022-12-22 13:59:59 -08:00
Utkarsh Umesan Pillai f8f205757f
Remove unnecessary usings from OpenTelemetry Tests (#4029) 2022-12-20 21:07:24 -08:00
Utkarsh Umesan Pillai b138784df5
Remove unnecessary usings from instrumentation tests (#4028) 2022-12-20 19:45:14 -08:00
Utkarsh Umesan Pillai 39c7c60a8a
Remove unnecessary usings from exporters, extensions, and shim tests (#4027) 2022-12-20 19:12:40 -08:00
Utkarsh Umesan Pillai 3157b5ce12
Remove unnecessary using statements (#4023)
* Remove unnecessary using statements from docs, examples, benchmarks and stress tests
2022-12-20 11:20:15 -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 5b9cba7cbd
[repo] CI updates (#4016)
* Port some CI tweaks from contrib.

* Logging in integration tests.

* Test tweaks.

* Warning cleanup.

* Fix format.

* Comments.
2022-12-15 16:08:30 -08:00
Mikel Blanchard a44a58bb7e
[Hosting] Throw startup exceptions (#4006)
* Allow the hosting startup to throw for valid issues.

* CHANGELOG stub.

* CHANGELOG patch.

* Warning cleanup.

* Code review.
2022-12-14 13:19:12 -08:00
Mikel Blanchard 8d908b9d2b
[Traces] Support named options in SqlClient instrumentation (#3994)
* Introduce OpenTelemetry.DependencyInjection and refactor SDK.

* Update SqlClient instrumentation to use DependencyInjection package.

* Tweak.

* Manual merge fixes.

* Some refactoring.

* Renames.

* Bug fixes and refactoring.

* Cleanup and docs.

* More updates.

* More cleanup.

* API updates.

* Namespace tweaks.

* Refactoring and API changes.

* Example tweaks.

* Example cleanup.

* XML doc updates.

* XML doc updates.

* Bug fix.

* Test fixes.

* Example fixup.

* Test fixup.

* Test fixup.

* Example fixup.

* Test fixup.

* Test fixup.

* Test fixup.

* CHANGELOG patch.

* Add test project.

* Cleanup.

* Added configure tests.

* MeterProviderBuilder extensions tests.

* TracerProviderBuilder extensions tests

* Some README content.

* CHANGELOG patch.

* Doc updates.

* Example code fixes.

* Doc updates.

* Doc updates.

* Doc updates and cleanup.

* Doc updates.

* Skip ApiCompat on new project.

* API tweaks.

* Test fixes.

* XML doc improvements.

* Tweaks.

* Project file updates.

* Test fix.

* Project rename.

* Updated for new project name.

* Manual fixes for merge from main.

* More manual fixes for merge from main.

* Updates.

* Unit test.

* CHANGELOG patch.
2022-12-09 10:06:44 -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
Piotr Kiełkowicz f0f5158ba1
SdkOptionLimits - fix defaults (#3978) 2022-12-08 14:50:54 -08:00
Han Gao 589e891d62
Optimize diagnostic source event subscription to include isEnabledFilter (#3965) 2022-12-07 17:01:31 -08:00
Timothy Mothra 840434981b
Fix ConsoleExporter fails silently when exporting an `ActivityLink` without Tags. (#3932) 2022-12-07 14:48:27 -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
Timothy Mothra 6bcb70b1fe
Add `ImplicitUsings` to Common.props (#3959) 2022-12-02 15:01:27 -08:00
Timothy Mothra dfd1f25c95
Add `AnalysisLevel` to Common.props (#3960)
* add AnalysisLevel to Common.props

* fix CA2017
2022-12-02 12:42:56 -08:00
Timothy Mothra 39283c7327
create empty test project for Console Exporter (#3933) 2022-11-23 16:36:31 -08:00
Timothy Mothra 2f492b2fc0
fix W3CTraceContextTests integration test (#3938) 2022-11-23 15:59:47 -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
Utkarsh Umesan Pillai 82d3bacd68
Remove semVer prefix (#3929)
* Remove semVer prefix

* Use default instrumentation version as 1.0.0.0
2022-11-21 16:20:11 -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
Mikel Blanchard bf95a54901
Removed AddExporter API for 1.4 release. (#3908)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-11-17 12:30:37 -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
Michael Maxwell e0d87376f3
Update prometheus ports to the default 9464 (#3914)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-11-16 21:31:10 -05:00