Commit Graph

2154 Commits

Author SHA1 Message Date
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 928d77056c
Use IOptionsMonitor instead of IOptionsSnapshot. (#3662) 2022-09-14 14:25:37 -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
blouflashdb d99307da34
Improve internal logging of LoggerProvider configuration (#3647) 2022-09-13 17:19:36 -07:00
Mikel Blanchard bc82fdc732
XML comment cleanup for in-memory exporter extensions. (#3658) 2022-09-13 16:00:04 -07:00
Mikel Blanchard 11c804ac68
[Logs + Traces] Add named options support to ConsoleExporter builder extensions (#3657)
* Add named options support to console exporter tracer & logger provider builder extensions.

* CHANGELOG update.
2022-09-13 15:19:22 -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 872a52f529
Instrumentation cleanup. (#3641) 2022-09-08 13:00:40 -07: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
Jacky Shang db0918e9b6
Fix: Logs could be exported via ConsoleExporter after LoggerFactory is disposed #1848 (#3578) 2022-09-02 12:15:45 -04:00
Cijo Thomas 0447871d48
Minor fixes to metrics, prometheus examples (#3623) 2022-09-01 21:41:09 -07:00
Alan West c2f5e80b0d
Support UpDownCounter and ObservableUpDownCounter (#3606) 2022-09-01 21:17:37 -04:00
Utkarsh Umesan Pillai a37198c6d0
Update releasing doc (#3621) 2022-08-30 20:52:56 -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
Timothy Mothra 65b57df841
ignore config for live unit testing (#3587) 2022-08-30 14:51:40 -07:00
Vishwesh Bankwar c98a5a8fb9
[ASP.NET Core] Remove reflection for diagnostic source event payload (#3604) 2022-08-30 14:29:01 -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
Reiley Yang 372767ac6e
[InMemoryExporter] Throw ObjectDisposedException if Export happened after disposal (#3607)
* Throw ObjectDisposedException if InMemoryExporter.Export is called after Dispose

* changelog

* address comments

* remove wording
2022-08-26 11:33:29 -07:00
al-mac 4310e08afd
Fix ASP.NET Core ExceptionFilter prevents recording exception (#3475) 2022-08-24 14:28:19 -04:00
Utkarsh Umesan Pillai 968dc52eb3
Fix Histogram synchronization issue (#3534) 2022-08-23 15:00:34 -04:00
Tom Tan ad55478452
Fix comment/doc for TracerProvider.Default (#3584) 2022-08-23 11:20:27 -04:00
Utkarsh Umesan Pillai 9c61b89583
Minor updates to RELEASING doc (#3598) 2022-08-22 21:36:42 -04:00
Utkarsh Umesan Pillai 42374d9583
Update CHANGELOG for more changes (#3590) 2022-08-18 15:20:41 -07: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
Utkarsh Umesan Pillai 245c2b3e29
Update pack and publish to MyGet workflow (#3589) 2022-08-18 14:49:03 -07:00
Utkarsh Umesan Pillai 7ba136f2c5
Update CHANGELOG for 1.4.0-alpha.2 version (#3588) 2022-08-18 14:13:39 -07:00
Alan West cedd2c45b4
Update changelog (#3585) 2022-08-17 17:35:56 -07:00
Vishwesh Bankwar 7fd9cb34ab
Remove netstandard targets from asp.netcore instrumentation (#3567) 2022-08-17 17:26:35 -07:00
Alan West 7223ec0cbe
Add notice of update to DiagnosticSource 7.0.0 (#3581) 2022-08-17 11:57:12 -07:00
Tom Tan 28473bc465
Use runtime intrinsic to count leading zero (#3574)
* Use runtime intrinsics to count leading zero

* Fix using order

* Add correct guard for using

* Exclude non-applicable tests

* Revert "Exclude non-applicable tests"

This reverts commit 6991fec04a.
2022-08-16 09:50:11 -07:00
Yun-Ting Lin d1da1d66a3
GrpcNetClient Instrumentation to leverage native Activity Status. (#3569) 2022-08-12 13:06:26 -04:00