Commit Graph

17 Commits

Author SHA1 Message Date
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 39c7c60a8a
Remove unnecessary usings from exporters, extensions, and shim tests (#4027) 2022-12-20 19:12:40 -08:00
Alan West f1992d9363
Refactor OTLP mock collector test (#3849) 2022-11-04 18:20:55 -04:00
Alan West a3867bde73
Validate OTLP exporter continues to export after RpcException (#3788) 2022-10-25 15:46:06 -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
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 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
Vishwesh Bankwar 135fa9c7e9
netcoreapp3_1 code cleanup (#3551) 2022-08-05 09:04:20 -07:00
Timothy Mothra a1cdb28eaa
refactor test exporters, use instead `DelegatingTestExporter` (#3486) 2022-08-02 13:10:11 -07:00
Mikel Blanchard bea9b608d5
OTLP Exporter: Integration test improvements (#3094) 2022-03-29 15:13:50 -07:00
Mikel Blanchard de4441124e
Add integration test for OtlpMetricExporter. (#3092)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-03-25 08:41:29 -07:00
Travis Illig 7b19794de3
Fix IDE0001: Name can be simplified. (#3011) 2022-03-10 07:39:27 -08:00
Tom Kerkhove 1191a2a3da
feat: Fail fast when insecure channel is not configured for .NET Core 3.1 with gRPC (#2691)
* feat: Fail fast when unsecure channel is not configured for .NET Core 3.1

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* NotSupportedException -> InvalidOperationException

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code quality

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use static class, instead of base class

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Revert change

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Add missing file header

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code linting

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove redundant check

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix build errors after rebase

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use previous build directives

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog with latest RC

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Check for version, instead of build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Align tests

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change error message

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change comment

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change test name

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* Change test name

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>

* fix: Build integration test image with SDK of specified .NET version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* revert: Build in 6.0 due to language version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use version check instead of build directive

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix formatting

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix check on version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Remove flaky test

* Incorporate @pellared's feedback

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Change code style

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Code review remarks

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update changelog

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

* Update changelog

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

Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-12-16 16:57:05 -08:00
Robert Pająk f5b0ea3826
Add HTTP protocol test case to OTLP exporter integration tests (#2692) 2021-11-29 16:02:22 -08:00
Cijo Thomas 19cf0c97bf
Remove grpc class options from OTLPExporter. Make Endpoint Uri for all frameworks (#1789)
* Remove grpc class options from OTLPExporter. Make Endpoint Uri

* readme changes

* more comment.
2021-02-04 16:25:49 -08:00
Alan West e04581969b
Rename OtlpExporter -> OtlpTraceExporter (#1667)
* Rename OtlpExporter -> OtlpTraceExporter

* Update PublicAPI

* Update comment

* Update netstandard2.1 PublicAPI

* rename

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-26 12:52:13 -08:00
Alan West 23859041ce
Add OTLP exporter integration test (#1671)
* Add OTLP exporter integration test

* Fix typo

* Move DelegatingTestExporter to shared location

* Fix build

* Fix build part 2

* Fix build part 3 - third time's the charm right?

* Fix build part 4 - third time's not the charm.

* Fix TargetFrameworks for OTLP exporter project and add explanation

* Set switch allowing for insecure GrpcChannel for netcoreapp3.1

* Learning to spell is a life-long process

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-13 21:03:31 -08:00