Commit Graph

22 Commits

Author SHA1 Message Date
Mohammad Sadeq Sirjani c73a70d74a
Refactoring: Removing Unused Default Values and Unnecessary Timeout Field (#4418) 2023-05-02 17:05:59 -07:00
Yun-Ting Lin 849f8804f7
updated DroppedCount in BatchExportProcessor to use Volatile.Read() (#4302) 2023-03-14 12:17:59 -07:00
Yun-Ting Lin 2c7f746d85
updated shutdownDrainTarget in BatchExportProcessor to be thread-safe (#4294) 2023-03-13 18:47:47 -07:00
Timothy Mothra 6fa6700753
remove `ImplicitUsings disable` from projects (part 8) (#3993) 2022-12-08 14:26:54 -08: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
Mikel Blanchard 9858e3ace3
Logs: Add log record pooling (#3385)
* Add log record pooling.

* Tweak.

* Update CHANGELOG.

* Code review.

* Code review.

* Code review.

* Code review.

* Nit.

* Improvement.

* Code review.

* Make resize internal.

* Add more details to comments about write race.

* State buffering tests.

* Comments about buffering.

* Added code comments.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-06-30 09:33:09 -07:00
Mikel Blanchard ee11de90a3
SDK: Nullable annotations for base classes & batch + shims to enable compiler features (#3374)
* Nullable annotations and shims for SDK base classes & batch.

* Target updates.

* Remove System.Collections.Immutable ref.

* ApiCompat attribute exclusions.
2022-06-17 10:46:11 -07:00
Reiley Yang fd63991cdf
Make the SDK more forgiving for ObjectDisposedException (#3291) 2022-05-19 11:54:14 -07:00
Travis Illig 2a97920ff0
Fix IDE0090: 'new' expression can be simplified. (#3012)
* Set rule for new() usage.

* Fix IDE0090 "'new' expression can be simplified"
2022-03-10 08:57:53 -08:00
Michael Maxwell d7afc1bcb0
Simplify how to call `Guard` methods (#2894)
* try adding CallerArgumentExpression - errors

* remove nameof for null guard only available in net3+

* if null or empty

* if null or whitespace

* rest

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
2022-02-15 17:54:02 -08:00
Reiley Yang 1b8599b115
Swallow ObjectDisposedException (#2844) 2022-02-02 06:45:16 -08:00
Michael Maxwell 18d73c59f0
Make Guard method names more explicit (#2762)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-01-12 08:02:13 -08:00
Mikel Blanchard 770a367b39
Don't allocate a stopwatch if it isn't going to be used. (#2608)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-15 10:17:17 -08:00
Reiley Yang 68a1761be6
Improve Dispose (#2508) 2021-10-25 09:46:38 -07:00
Michael Maxwell 6e6afdbc36
Identified all exception throws in code base (#2416) 2021-10-18 10:29:54 -07:00
Michael Maxwell 032f22d61e
Log dropped telemetry item count on shutdown (#2331) 2021-09-21 12:48:30 -07:00
Mikel Blanchard 4f39a58048
ZipkinExporter Stuck Batch Fix (#1726)
* Fix batches growing indefinitely when ZipkinExporter can't make a connection. Fixed null activity events spamming when using SuppressInstrumentation.

* Tweaked DiagnosticSourceListener code.

* Warning fixup.

* Added Dispose to Batch<T>. BatchExportProcessor calls dispose on the Batch it creates.

* Code review.

* Code review.

* CHANGELOG updates.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-28 10:25:17 -08:00
Utkarsh Umesan Pillai e2a908e089
Added SimpleExporter and BatchExporter for Activity and LogRecord (#1622)
* Added SimpleExporter and BatchExporter for Activity and LogRecord

* Updated the .publicApi text files

* Updated the README to use SimpleActivityExportProcessor instead of SimpleExportProcessor<Activity>

* Updated CHANGELOG.md

* Updated CHANGELOG.md

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-06 11:59:19 -08:00
Utkarsh Umesan Pillai b247b3d70e
Added Activity.IsRecorded check for Export (#1574)
* Added Activity.IsRecorded check for Export

* Updated CHANGELOG.md

* Remove extra space

* Add unit tests to check for Activity.IsRecorded for ExportProcessor

* Updated CHANGELOG.md

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-17 20:51:54 -08:00
Utkarsh Umesan Pillai 7a67dd036a
Added Exporter type to Zipkin exporter options (#1504)
* Added Exporter type to Zipkin exporter options

* Removed unnecessary using statements

* Added header to the ZipkinExporterType.cs file

* Addressing PR changes

* Address PR comments

* Updated CHANGELOG.md

* Addressed PR comments

* Update src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>

* Update src/OpenTelemetry.Exporter.Zipkin/ZipkinExporterOptions.cs

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>

* Addressed PR comments

* Addressed PR comments

* Corrected spelling

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-12 18:22:36 -08:00
Austin Tan 7a039aa948
All files containing 'Throw new ArgumentOutOfRangeException' updated to use three-param ctor (#1455)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-04 01:30:30 -08:00
Reiley Yang 71bb3635f5
ILogger integration - part 3 (#1328)
* extract common part

* make process/exporter generic

* update dependencies

* update all the tests and docs

* clean up

* changelog

* update readme

* prevent LogRecord to be inherited

* simplify example

* simplify the code

* revert accidental change
2020-10-07 09:55:54 -07:00