Commit Graph

154 Commits

Author SHA1 Message Date
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 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
Timothy Mothra 804c448d2e
add nullable enable to Common.props and disable in projects. (#3964) 2022-12-05 15:33:57 -08:00
Cijo Thomas 85da882bbd
Upgrade DS to 7.0 stable (#3875) 2022-11-08 12:13:54 -05:00
Alan West f1992d9363
Refactor OTLP mock collector test (#3849) 2022-11-04 18:20:55 -04:00
Vishwesh Bankwar 131b350d95
add net7.0 to test and docs project (#3842) 2022-10-28 16:58:56 -04:00
Alan West a3867bde73
Validate OTLP exporter continues to export after RpcException (#3788) 2022-10-25 15:46:06 -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 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 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
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
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
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
Alan West c2f5e80b0d
Support UpDownCounter and ObservableUpDownCounter (#3606) 2022-09-01 21:17:37 -04:00
Cijo Thomas 8700d5dd9b
Update test and other tools versions (#3611) 2022-08-28 13:09:24 -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
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
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
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 8dd0743174
Merge branch 'main' into net7.0 2022-08-03 11:46:27 -07:00
Timothy Mothra a1cdb28eaa
refactor test exporters, use instead `DelegatingTestExporter` (#3486) 2022-08-02 13:10:11 -07:00
Alan West c1f376ac8b
OTLP exporter support for limiting activity tags, events, and links (#3376) 2022-07-28 07:48:21 -07:00
Piotr Kiełkowicz d93606ea71 typo fixes (#3459) 2022-07-20 07:31:43 -07:00
Reiley Yang 2e334df8ae
Dedupe IsPackable (#3398) 2022-06-22 19:05:47 -07:00
Alan West c07917913c
Fix OTLP test (#3357)
* Show that test is not doing what you might think it does

* More asserts the merrier

* Show this little test that it has potential
2022-06-09 13:53:05 -07:00
Alan West d84f0edf77
Use DiagnosticSource 7.0 and drop netcoreapp3.1 target (#3351)
* Remove AspNetCore 3.1 test app

* Remove netcoreapp3.1 target from projects

* Bump to DiagnosticSource 7.0.0-preview.4.22229.4

* Enable CI on net7.0 branch

* Remove trailing space
2022-06-07 20:46:15 -07:00
Alan West 4e6d073672
Exporting tags consistently (#3281) 2022-05-26 18:55:54 -07:00
Piotr Kiełkowicz 8aa1778b43
Refactor string extensions (#3306) 2022-05-25 11:13:40 -07:00
Alan West d983cb1270
Handle null values in array attributes (#3273) 2022-05-13 12:17:09 -07:00
Alan West e7f06afd51
OTLP exporter: Standardize handling of attributes (#3262) 2022-05-11 11:19:29 -07:00
Alan West dff199603d
Fix handling of OTLP ArrayValue attributes (#3238)
* Fix handling of OTLP ArrayValue attributes

* Update changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-05-02 15:13:44 -07:00
Cijo Thomas 1bdb512c5b
OTLP LogExporter to add LoggerCategory as attribute (#3221) 2022-04-26 13:41:20 -07:00
Cijo Thomas 0868872c1a
Remove NET5.0 target from OTLP Exporters (#3226) 2022-04-22 12:09:47 -07:00
Cijo Thomas b4267c7784
OTLP LogExporter to enable ParseStateValues by default (#3186) 2022-04-20 19:37:48 -07:00
Cijo Thomas 052b10a4df
Remove net461 from jaeger zipkin and otlp exporters (#3194) 2022-04-15 12:41:01 -07:00
Alan West 73cc937209
Public setter for MetricReaderOptions.PeriodicExportingMetricReaderOptions (#3184) 2022-04-14 19:10:10 -07:00
Cijo Thomas c926c02307
OTLP LogExporter to special case {OriginalFormat} to populate body (#3182) 2022-04-14 13:58:19 -07:00
Cijo Thomas 903cf1ee31
OTLP Tests - Minor improvements (#3180) 2022-04-14 10:09:02 -07:00
Cijo Thomas 02301b6236
Minor tweak to OTLP LogExporter tests (#3178) 2022-04-13 22:56:47 -07:00
Cijo Thomas a9d15c05b4
Fix severity mapping for OTLP Log Exporter (#3177) 2022-04-13 22:31:03 -07:00
Alan West 40b779cea6
Update OpenTelemetry protos to v0.16.0 (#3160)
* Update proto files to v0.16.0

* Replace InstrumentationLibrary with InstrumentationScope

* Add TODO

* Update changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-04-12 17:45:32 -07:00
Alan West 89a740e20a
MetricReader TemporalityPreference (#3153) 2022-04-12 13:00:04 -07:00
Travis Illig d294140a33
Add VS Code recommended spell check extension (#3127) 2022-04-06 08:35:38 -07:00
Paulo Janotti 398d469190
Fix default URL for OTLP Trace/Metrics for http/protobuf (#3098) 2022-04-04 21:42:56 -07:00
Travis Illig 7ed97be908
Fix analyzers (#3053) 2022-04-01 07:46:32 -07:00