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
Mikel Blanchard
0604ecf346
[Traces] Made ctor on BatchExportActivityProcessorOptions accepting IConfiguration internal ( #3902 )
2022-11-15 15:29:30 -05: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
a758c60cf4
fix tests ( #3906 )
2022-11-15 13:32:11 -05:00
Mikel Blanchard
f770047d97
[Sql Instrumentation] Unify exposed public API ( #3900 )
...
* Unify public api exposed in sql instrumentation package.
* CHANGELOG patch.
* Code review.
* README updates.
* README tweaks.
2022-11-14 14:33:55 -08:00
Mikel Blanchard
018dc9cc49
Cleaned up notes. ( #3899 )
2022-11-14 10:21:33 -08:00
Mikel Blanchard
ddcff7de3c
[Logs] Support dependency injection in ResourceBuilder and load envvars from IConfiguration ( #3889 )
...
* Fixed logging resource builder not being attached to IServiceProvider.
* CHANGELOG patch.
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
2022-11-11 11:49:44 -08:00
Vishwesh Bankwar
b5e50b2878
[ASP.NET Core] Clear logging for testing scenarios ( #3810 )
2022-11-11 13:50:12 -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
dependabot[bot]
a8b72df614
Bump Microsoft.Data.SqlClient ( #3882 )
2022-11-09 19:18:08 -05:00
Cijo Thomas
85da882bbd
Upgrade DS to 7.0 stable ( #3875 )
2022-11-08 12:13:54 -05:00
Mikel Blanchard
51f6cb7675
Tweak AddExporter to work better with Options API. ( #3870 )
...
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-11-08 11:46:53 -05:00
Alan West
f1992d9363
Refactor OTLP mock collector test ( #3849 )
2022-11-04 18:20:55 -04:00
Cijo Thomas
be78372696
Minor perf tweaks in Metrics ( #3867 )
2022-11-04 12:40:24 -04:00
Cijo Thomas
91607e7d77
More performance improvement when views are used ( #3864 )
2022-11-04 09:40:07 -04: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
Cijo Thomas
c15493106a
Add benchmark numbers and remove invalid case ( #3848 )
2022-10-31 16:16:31 -04:00
Vishwesh Bankwar
131b350d95
add net7.0 to test and docs project ( #3842 )
2022-10-28 16:58:56 -04: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
Michael Maxwell
1a65aec968
Limit character set according to spec ( #3821 )
2022-10-27 20:55:05 -07:00
Cijo Thomas
2c6dc2659b
Add net70 to benchmarks ( #3824 )
2022-10-26 18:55:46 -04:00
Cijo Thomas
88c1864cb7
Histogram MinMax API fixes ( #3822 )
2022-10-26 12:35:07 -04:00
Cijo Thomas
004c3f6a1f
Rename AggregationType to better reflect intent ( #3820 )
2022-10-25 18:43:01 -04:00
Alan West
a3867bde73
Validate OTLP exporter continues to export after RpcException ( #3788 )
2022-10-25 15:46:06 -04:00
Vishwesh Bankwar
732f199676
Update grpc client enrich callbacks ( #3804 )
2022-10-24 12:41:54 -04:00
Mikel Blanchard
0804334de7
Fix circular reference issue building up meter provider. ( #3806 )
...
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
2022-10-21 14:34:04 -07:00
Mikel Blanchard
9b8702e3dc
Fix circular reference issue building up tracer provider. ( #3803 )
2022-10-21 13:10:46 -07:00
Mikel Blanchard
32650555d4
[SDK] Support dependency injection in the GetDefaultResource API ( #3798 )
...
* Support dependency injection in the GetDefaultResource API.
* CHANGELOG patch.
* Test tweaks.
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-10-21 12:33:38 -07:00
Vishwesh Bankwar
d21e609f00
[Http] Update enrich callbacks for http ( #3792 )
2022-10-21 11:34:17 -07:00
Vishwesh Bankwar
0c31fb9702
[ASP.NET Core] Update enrich callbacks to use specific type. ( #3749 )
2022-10-21 13:26:41 -04:00
Jonathan Wilhelm
f963f9dcf6
[Logs] UnitTest: LogRecord attribute limits ( #3758 )
...
* Unittest for LogRecord attribute limits
* Remove maxValueLength from LogRecordExtensions.AddIntAttribute.
Change requested from https://github.com/open-telemetry/opentelemetry-dotnet/pull/3684#discussion_r995164277
* Pr commits addressed
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2022-10-20 10:36:11 -07:00
Mikel Blanchard
6fae370b26
[Prometheus AspNetCore] Support named options in pipeline extensions ( #3780 )
...
* Support named options in Prometheus AspNetCore pipeline extensions.
* Patch CHANGELOG.
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2022-10-20 10:11:35 -07:00
Mikel Blanchard
cedda83469
[SDK] Support dependency injection in ResourceBuilder and load envvars from IConfiguration ( #3782 )
2022-10-19 15:14:07 -04:00
Mikel Blanchard
423999223a
[SDK, Jaeger, Zipkin, & Otlp] Support loading envvars for BatchExportActivityProcessorOptions from IConfiguration ( #3776 )
...
* Support loading envvars for ExportActivityProcessorOptions & BatchExportActivityProcessorOptions from IConfiguration.
* Update src/OpenTelemetry/CHANGELOG.md
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
* Patch CHANGELOG.
* Unit test.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
2022-10-18 10:27:06 -07:00
Pavel Steinl
3f53be6369
[SqlClient] Add support for Filter expression ( #3743 )
2022-10-18 09:56:57 -04:00
Mikel Blanchard
1a2103ddc1
[SDK + Otlp] Support loading envvars from IConfiguration ( #3760 )
...
* Updated Otlp Trace & Metrics exporters to load envvars from IConfiguration.
* Patch CHANGELOGs.
* Fix up otlp log exporter for SdkOptions changes.
* Revert SdkOptions public api.
* Restore tests.
* Fix benchmarks.
* SdkLimitOptions IConfiguration test.
* OtlpExporterOptions IConfiguration test.
* MetricReaderOptions IConfiguration test.
* Bug fix.
* Nit.
2022-10-17 16:12:34 -07:00
Vishwesh Bankwar
0feebf3145
[HttpClient] Add unit tests for `RecordException` case ( #3761 )
2022-10-14 18:00:53 -04:00
Michael Maxwell
8db45a3af6
Adding MinMax to Histograms ( #2735 )
2022-10-14 17:00:07 -04:00
Sebastian Schoder Moreno
73f8d3cb01
[Metrics] Update default buckets for Explicit Bucket Histogram from spec ( #3722 )
2022-10-12 17:02:23 -07:00
Yun-Ting Lin
ee9b892d32
SqlClient Instrumentation to leverage native Activity Status. ( #3751 )
2022-10-12 15:42:35 -04:00
Mikel Blanchard
e8af2a036d
[Zipkin] Support loading envvars from IConfiguration ( #3759 )
...
* Support loading envvars from IConfiguration in Zipkin exporter.
* CHANGELOG patch.
2022-10-12 10:52:48 -07:00
Mikel Blanchard
f191e846d3
[SDK + Jaeger] Support loading environment variables from IConfiguration in Traces & Metrics ( #3720 )
...
* Support retrieval of environment variables through IConfiguration in SDK.
* Update Jaeger to load environment variables through IConfiguration.
* Warning fix.
* CHANGELOG patch.
* Bug fixes.
* Warning cleanup.
* Code review.
2022-10-12 09:56:07 -07:00
Vishwesh Bankwar
3671e550fb
[HttpClient] Export spans corresponding to retries ( #3732 )
2022-10-07 13:08:55 -04:00
Mikel Blanchard
7f71283c0b
[Logs] Fix buffered log scopes being reused ( #3731 )
...
* Fix buffered log scopes being reused.
* CHANGELOG update.
* Test fixes.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-10-05 13:42:33 -07:00
Vishwesh Bankwar
d42f171d13
[HttpClient] Unit test for retries ( #3730 )
2022-10-05 15:49:00 -04:00
Piotr Kiełkowicz
e826f9d233
[Exporter.PrometheusAspNetCore] update Public API ( #3717 )
...
* Refactor prometheus exporter options.
2022-10-05 09:20:48 -07:00
Piotr Kiełkowicz
a8c222ab54
[Exporter.Prometheus] PrometheusSerializerTests - typo fixes ( #3715 )
2022-10-04 14:43:25 -07:00
Piotr Kiełkowicz
9809cf60c4
[Exporter,Prometheus] Fix PrometheusCollectionManagerTests ( #3714 )
2022-09-30 10:17:48 -04:00
Mikel Blanchard
7fd3783371
[Logs] Revert logging API additions ( #3702 )
...
* Revert logging API additions.
* Cleanup.
* Cleanup.
* CHANGELOG update.
* Bug fix.
2022-09-28 17:18:38 -07:00
Vishwesh Bankwar
d10f1f945d
Unit test to validate spans in http redirect ( #3699 )
2022-09-27 17:51: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
84762870dd
Update aspnetcore benchmark results ( #3688 )
2022-09-22 13:16:06 -04:00
Piotr Kiełkowicz
3158d38bbd
[Exporter.Prometheus] Execute all tests in all supported frameworks ( #3680 )
2022-09-22 11:40:04 -04:00
Vishwesh Bankwar
74412f0b19
[ASP.NET Core] Enable diagnostic source events using explicit names ( #3519 )
2022-09-21 11:54:34 -07:00
Timothy Mothra
78e38423d7
improve eventsource tests - part 1 ( #3586 )
2022-09-16 19:22:22 -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
Mikel Blanchard
960908cb69
[Traces] Support named options in gRPC instrumentation ( #3665 )
...
* Support named options in grpc instrumentation.
* CHANGELOG update.
2022-09-14 17:40:53 -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
Mikel Blanchard
ef46e827a7
Support named options in the logger provider builder AddExporter API. ( #3660 )
2022-09-14 11:02:13 -07:00
Vishwesh Bankwar
faf5bb5dfb
Update aspnetcore instrumentation benchmarks ( #3642 )
2022-09-14 13:42:10 -04:00
Reiley Yang
e68abc8136
Output EOF following the OpenMetrics exposition recommendation ( #3654 )
...
* Output EOF following the OpenMetrics exposition recommendation
* update test case
* changelog
2022-09-14 10:08:42 -07:00
Mikel Blanchard
3a8f139e8e
Support named options in the tracer provider builder AddExporter API. ( #3659 )
2022-09-14 09:35:49 -07:00
Mikel Blanchard
cb2eeb5621
[Traces] Add named options support to JaegerExporter builder extensions ( #3656 )
...
* Add named options support to jaeger provider builder extensions.
* CHANGELOG update.
* Code review.
2022-09-13 14:51:58 -07:00
Mikel Blanchard
a87f8f7373
[Traces] Add named options support to ZipkinExporter builder extensions ( #3655 )
...
* Add named options support to zipkin provider builder extensions.
* CHANGELOG update.
2022-09-13 14:22:04 -07:00
Mikel Blanchard
b4ade26eae
[Traces] Add named options support to OtlpTraceExporter builder extensions ( #3653 )
...
* Add named options support to otlp trace provider builder extensions.
* CHANGELOG update.
2022-09-13 13:22:05 -07:00
Reiley Yang
6ea078ea2d
Support Prometheus UNIT metadata ( #3651 )
...
* support Prometheus UNIT metadata
* changelog
2022-09-13 11:25:24 -07:00
Mikel Blanchard
de98eb7725
[Logs] Add named options support to OtlpLogExporter builder extensions. ( #3652 )
...
* Add named options support to otlp log provider builder extensions.
* CHANGELOG update.
2022-09-13 10:19:15 -07:00
Mikel Blanchard
79d8714cb3
[Metrics] Clean up repo exporters to use new DI patterns ( #3648 )
...
* Clean up metric exporters to use new DI patterns.
* Support named options with in-memory exporter build-up.
* Support named options in ConsoleExporter metrics extensions.
* Support named options in OtlpExporter metrics extensions.
* Support named options in PrometheusExporter AspNetCore metrics extensions.
* Support named options in PrometheusExporter HttpListener metrics extensions.
* CHANGELOG updates.
* Unit tests.
2022-09-12 17:41:51 -07:00
Mikel Blanchard
6ff512cf60
[Metrics] Improve dependency injection support in meter provider build-up using SDK ( #3646 )
...
* Mirror TracerProviderBuilder dependency injection API onto MeterProviderBuilder.
* Nullable annotations.
* Warning cleanup.
* Warning cleanup.
* Public API updates.
* Warning cleanup.
* Public API updates.
* CHANGELOG updates.
* Warning cleanup.
* Fixes.
* Tests.
2022-09-12 13:22:51 -07:00
Dawid Szmigielski
cea14d3d36
Change StatusCode to 200 when no metrics are collected ( #3643 )
2022-09-11 00:56:29 -04:00
Mikel Blanchard
fb6463d25c
[Traces + Logs] Clean up repo exporters to use new DI patterns ( #3640 )
...
* Clean up trace & log exporters to use new DI patterns.
* Doc updates.
* Updates.
* Updates.
2022-09-08 12:08:25 -07:00
Mikel Blanchard
5208ec0586
[Logs] Sync up logger provider build-up scenarios with tracer provider ( #3596 )
...
* Since up logger provider build-up scenarios with tracer provider.
* CHANGELOG update.
* Code review.
2022-09-07 14:22:37 -07:00
Michael Maxwell
9c3d1b11f8
Binary search for large bucket count histograms ( #3252 )
...
* Binary search for large bucket count histograms
* Update CHANGELOG.md
* netcoreapp3.1 was complaining
* ci rerun
* ci rerun
* Update MetricTestData.cs
* use 400 buckets
* Update ExplicitBucketHistogramConfiguration.cs
Binary search for large bucket count histograms
Update CHANGELOG.md
netcoreapp3.1 was complaining
ci rerun
ci rerun
Update MetricTestData.cs
use 400 buckets
* separate nan part
* Address PR comments
- Remove conversion to float from `FindHistogramBucketIndexBinary`
- Make `DefaultHistogramCountForBinarySearch` a `const` instead of a `static readonly`
* update to 140
* remove double.nan from invalid hist bounds
* Refactor and perf to histogram bucket index find
Thanks to @CodeBlanch !!
* fine tune bound limit to switch to binary search
* included benchmark results in comment
* new bench result
* histogram stress test update
* fix changelog
* spacing fix
* sealed bucket class
* ci
* double.negative infinity
* update order of operations
when testing with large MaxValue this would end up having same value bounds
* remove stress test change
* ci
* Add histogram binary mode tests
* ci
* pr review changes
* allocated column - hist benchmark
* CI
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-09-02 11:02:00 -07:00
Alan West
c2f5e80b0d
Support UpDownCounter and ObservableUpDownCounter ( #3606 )
2022-09-01 21:17:37 -04:00
Alan West
46e6c8a06d
Move common Prometheus exporter tests to their own project ( #3618 )
...
* Move common Prometheus exporter tests to their own project
* Skip test for net462
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
2022-08-30 15:35:38 -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
Cijo Thomas
f4b27df779
Improve Sampler tests to validate initial tags and links are passed ( #3615 )
2022-08-30 16:59:57 -04:00
Cijo Thomas
b082922cc8
Benchmarks for sampler accessing and modifying tracestate ( #3613 )
2022-08-30 11:56:50 -04:00
Cijo Thomas
b54cc80b67
Add support for samplers to modify Tracestate ( #3610 )
2022-08-29 19:28:18 -04:00
Mikel Blanchard
e6d39b8b14
[Tracing] Improve dependency injection support in tracing build-up using SDK ( #3533 )
...
* TracerBuilder depedency injection improvements.
* Fixes and API updates.
* Update skipped test.
* Tweak.
* Tweaks.
* Test fix.
* Turn on options in TracerProviderBuilderBase.
* Updated CHANGELOGs.
* Added XML comments to AddOpenTelemetryTracing methods.
* Tweaks.
* Added export helpers and restored removed API from hosting library so that there is no breakage during upgrades.
* Export extension tweaks.
* Tweak.
* Tracer builder improvements.
* Fix hosting multiple configurations test.
* Cleanup.
* Cleanup and fixes.
* Added "UseOpenTelemetry" extensions.
* Cleanup.
* Code review.
* Code review.
* Rename SDK extension "Configure" and restore "Add" in the hosting lib.
* Doc clarification.
* Some test coverage.
* README updates.
* Fix double dispose of TracerProvider when using Sdk.CreateTracerProviderBuilder.
* AddExporter tests.
* More test coverage.
* More test coverage.
* Code review.
2022-08-29 13:14:24 -07:00
Cijo Thomas
8700d5dd9b
Update test and other tools versions ( #3611 )
2022-08-28 13:09:24 -04:00
Mikel Blanchard
28c0bccca8
[InMemoryExporter] Include original stack trace in ObjectDisposedException ( #3609 )
...
* InMemoryExporter dispose tweaks.
* Use Shutdown instead of ForceFlush.
* Fix another flaky test.
* Test fix.
* Test cleanup.
2022-08-26 13:46:33 -07:00
al-mac
4310e08afd
Fix ASP.NET Core ExceptionFilter prevents recording exception ( #3475 )
2022-08-24 14:28:19 -04:00
Mikel Blanchard
409b61d5f0
[Trace Exporters] Remove enumeration helper and use new net7 enumeration APIs ( #3580 )
...
* Remove enumeration helper and use new net7 enumeration APIs.
* Bug fixes.
* Add note.
* Don't use list pools in OTLP exporter. Implement drop counts.
* Added asserts for drop counts in span limits test.
* Added issue link to skip text.
* Populate DroppedAttributesCount on links & events.
* Code review.
* Code review.
* Added CHANGELOG note about dropped counts.
2022-08-18 15:02:10 -07:00
Vishwesh Bankwar
7fd9cb34ab
Remove netstandard targets from asp.netcore instrumentation ( #3567 )
2022-08-17 17:26:35 -07:00
Yun-Ting Lin
d1da1d66a3
GrpcNetClient Instrumentation to leverage native Activity Status. ( #3569 )
2022-08-12 13:06:26 -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
361912efa7
Refactor w3tracecontext integration test ( #3563 )
2022-08-08 17:04:41 -07:00
Mikel Blanchard
952c3b17fc
[Logs] Support dependency injection in logging build-up ( #3504 )
...
* Support dependency injection in logging. Add AddOpenTelemetryEventSourceLogEmitter extension.
* CHANGELOG update.
* Bug fixes and a test.
* More fixes and more tests.
* Tweak comments for clarity.
* Added OpenTelemetryLoggerOptions.Services xml detail remarks.
* More tests.
* More tests.
* Test fix.
* More tests.
* Tests and fixes.
* Warning cleanup.
* Added resource test.
* Smooth out multiple resource configurations.
* Resource chaining fix.
* Remove throw for additional SetResourceBuilder calls.
* Warning fixes.
* Moved OpenTelemetryEventSourceLogEmitter extension to OpenTelemetryLoggerOptions.
* Tweaks.
* Switched from static to builder pattern.
* Tweaks.
* More tests.
* Fix CHANGELOG for release.
* Tweaks.
* Test updates.
* Added a detached configuration option.
* Prevent double registration to be consistent with tracer builder pattern.
* API review.
* Warning cleanup.
* Build fixes.
* Test fix.
2022-08-05 17:56:04 -07:00
Reiley Yang
ce99d444b0
Exponential Bucket Histogram - part 9 ( #3553 )
2022-08-05 13:29:04 -07:00
Mikel Blanchard
58ee541cff
[net7-main] Fixes to get solution building in VS ( #3552 )
...
* Fixes to get solution building in VS with net7 changes.
* More fixes + some code review.
* CONTRIBUTING update.
* Attempting to fix integration tests.
* Attempting to fix integration tests.
* Attempt to fix integration tests.
* Attempt to fix integration tests.
2022-08-05 10:49:06 -07:00
Vishwesh Bankwar
135fa9c7e9
netcoreapp3_1 code cleanup ( #3551 )
2022-08-05 09:04:20 -07:00
Vishwesh Bankwar
668b07335b
Clean up netcoreapp3.1 and add net7.0 to tests ( #3543 )
2022-08-04 20:21:55 -07:00
Timothy Mothra
aba6eafb8f
improve code coverage: `BaseExporter`, `BaseProcessor`, `PooledList`, `SamplingResult`, `SimpleExportProcessor`, `TracerProviderExtensions`, `MathHelper`, and `WildcardHelper` ( #3476 )
2022-08-04 16:05:00 -07:00
Alan West
a789bc0259
Merge net7.0 to main ( #3539 )
2022-08-04 10:25:21 -07:00
Alan West
2b6a3b0958
Update protos to v0.19.0 ( #3535 )
...
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-08-03 19:50:08 -07:00
Cijo Thomas
21d185a7d8
Add stress test to traces ( #3527 )
2022-08-03 18:13:44 -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
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
Cijo Thomas
fc315f3f7e
Nit cleanup ( #3518 )
2022-08-02 20:29:55 -07:00
Paulo Janotti
3929727675
Fix OpenTracing shim under legacy AspNetCore activities ( #3506 )
2022-08-02 17:38:10 -07:00
Reiley Yang
27658f058c
Improve PrometheusHttpListener options ( #3521 )
2022-08-02 15:39:41 -07:00
Timothy Mothra
a1cdb28eaa
refactor test exporters, use instead `DelegatingTestExporter` ( #3486 )
2022-08-02 13:10:11 -07:00
Reiley Yang
8d5d3d6ee8
Dust off Prometheus Exporters ( #3507 )
2022-08-01 10:33:00 -07:00
Yun-Ting Lin
084244ccae
[Prometheus] Remove shared project and move the shared code under listener project ( #3503 )
2022-07-29 17:16:20 -07:00
Reiley Yang
f21afc8ce9
Exponential Bucket Histogram - part 8 ( #3505 )
2022-07-29 16:26:28 -07:00
Timothy Mothra
cb6b7a82ce
improve test coverage: OpenTelemetry.Api `CallerArgumentExpressionAttribute` ( #3362 )
2022-07-29 14:10:12 -07:00
liangli
82e041c27c
fix: replace all newtonsoft.json usages ( #3478 )
2022-07-28 19:12:28 -07:00
Yun-Ting Lin
cd6043bbf7
[Prometheus] Split up projects based on hosting mechanism. ( #3430 )
2022-07-28 16:02:53 -07:00
Mikel Blanchard
2b1e75d7e9
[Logs] Add extension for registering OpenTelemetryLoggerProvider with ILoggingBuilder ( #3489 )
2022-07-28 13:11:02 -07:00
Piotr Kiełkowicz
f089ec75bd
EnvironmentVariableHelper support for boolean ( #3457 )
2022-07-28 09:30:33 -07:00
Alan West
c1f376ac8b
OTLP exporter support for limiting activity tags, events, and links ( #3376 )
2022-07-28 07:48:21 -07:00
Reiley Yang
25cfa1721f
Exponential Bucket Histogram - part 7 ( #3499 )
...
* hammer out the upper/lower bound of scale
* comment
2022-07-27 16:21:55 -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
f9ed3047b6
Minor fixes to Stress Tests ( #3496 )
2022-07-27 14:52:46 -07:00
Reiley Yang
44ac86cb74
Exponential Bucket Histogram - part 6 ( #3494 )
2022-07-26 16:23:31 -07:00
Reiley Yang
6f2b1a0b34
Exponential Bucket Histogram - part 5 ( #3482 )
2022-07-25 10:16:21 -07:00
Reiley Yang
720cbdd2f8
Exponential Bucket Histogram - part 4 ( #3477 )
...
* cover integer overflow
* seal
* static
2022-07-22 16:59:52 -07:00
Mikel Blanchard
bfabe9bc26
[Logs] OpenTelemetry.Extensions.EventSource extensions project ( #3454 )
...
* Add OpenTelemetryEventSourceLogEmitter.
* Project rename.
* Started tests.
* Added behavior comment in example.
* Add --prerelease in READMEs.
* Example tweaks.
* Test improvements.
* Added activity_id/related_activity_id test.
* Warning cleanup.
2022-07-22 15:40:39 -07:00