Commit Graph

2044 Commits

Author SHA1 Message Date
Mikel Blanchard 5be8226861
[logs-branch] Port circular reference fix for LoggerProvider + IConfiguration for ExportLogRecordProcessorOptions (#3814)
* Fix circular reference issue in LoggerProvider buildup.

* Support loading ExportLogRecordProcessorOptions envvars from IConfiguration.
2022-10-25 10:00:14 -07:00
Mikel Blanchard 2f4cd5b454
[logs-branch] Apply Resource dependency injection pattern to LoggerProvider (#3813)
* Apply resource dependency injection changes to LoggerProvider.

* CHANGELOG update.

* Test update.

* CHANGELOG patch.
2022-10-24 15:09:10 -07:00
Mikel Blanchard 2f6e7e3a2b
[logs-branch] Support loading OtlpLogExporter envvars from IConfiguration (#3812)
* Apply configuration pattern to OtlpLogExporter paths.

* CHANGELOG patch.
2022-10-24 14:36:46 -07:00
Mikel Blanchard aba8a6980d
[logs-branch] Merge from main into main-logs (#3809)
* [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>

* clarify that Prometheus HttpListner is not for production at this moment (#3737)

* [HttpClient] Export spans corresponding to retries (#3732)

* Minor update to OTLP readme (#3739)

* Nit fixes to prometheus readme

* Add minor clarification about OTLP logs

* Update workflow (#3741)

* Minor improvement to log message (#3742)

* [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.

* [Zipkin] Support loading envvars from IConfiguration (#3759)

* Support loading envvars from IConfiguration in Zipkin exporter.

* CHANGELOG patch.

* SqlClient Instrumentation to leverage native Activity Status. (#3751)

* [Metrics] Update default buckets for Explicit Bucket Histogram from spec (#3722)

* [Logs] Fix: Respect AttributeValueLengthLimit when building otlp LogRecord data (#3684)

* Respect SdkConfiguration.AttributeValueLengthLimit so otlp data points are not rejected by monitoring tools

* Respect maxAttributeCount and use OtlpKeyValueTransformer in AddStringAttribute and in AddIntAttribute

* Extend CHANGELOG.md

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>

* Bump actions/setup-dotnet from 3.0.1 to 3.0.2 (#3764)

Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Repo] Attempting to stabilize the API Compatibility CI job (#3766)

* Attempting to stablize the API Compatibility CI.

* Tweak.

* More logging.

* Increase build logging level for api compat ci job.

* Tweak.

* Tweak.

* Revert extra logging in ci job.

* Switched some logging back to debug.

* Adding MinMax to Histograms (#2735)

* Logging state during building of TracerProvider (#3746)

* [HttpClient] Add unit tests for `RecordException` case (#3761)

* Add a separate example project for Logs redaction (#3744)

* Update CHANGELOG for 1.4.0-beta.2 release (#3772)

* [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.

* [SqlClient] Add support for Filter expression (#3743)

* [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>

* Remove Env from CI `DOTNET_MULTILEVEL_LOOKUP = 1` (#3779)

* Link to .NET docs about different ports (#3704)

* Update DS to rc2 (#3781)

* ConsoleLogExporter to output full exception (#3784)

* [ASP.NET Core] Add back netstandard2.0 and 2.1 targets (#3755)

* [HttpClient] Add back netstandard2.0 target (#3787)

* Add back netstandard2.0 target

* changelog

* public api files

* Bump System.Text.Json version due to CVE-2021-26701 (#3789)

* Auto-generated Semantic Conventions (#2069)

* [SDK] Support dependency injection in ResourceBuilder and load envvars from IConfiguration (#3782)

* Add Vishwesh as an Approver (#3783)

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>

* Move more SDK docs to docs folder (#3794)

* [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>

* [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>

* Add MinMax to console and doc additions (#3795)

* Mark private and internal classes as sealed (#3799)

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>

* Move more docs to docs folder (#3801)

* [ASP.NET Core] Update enrich callbacks to use specific type. (#3749)

* [Http] Update enrich callbacks for http (#3792)

* [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>

* Fix circular reference issue building up tracer provider. (#3803)

* [SDK] Add some missing nullable annotations (#3796)

* Added some missing nullable annotations in SDK.

* Handle null span names in SamplingParameters.

* Warning cleanup.

* Warning cleanup.

* Added link to issue in comment.

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

* Guard.Range now uses invariant culture for error message (#3778)

Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>

* Fix circular reference issue building up meter provider. (#3806)

Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>

* Add missing end of code block backticks (#3807)

* More doc tweaks (#3805)

* More doc tweaks

* remove draft staatus

* Update grpc client enrich callbacks (#3804)

* Port refactor from main-logs branch. (#3808)

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>

* Merge fixes.

* Merge fixes.

* Merge fix.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Vishwesh Bankwar <vishweshbankwar@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
Co-authored-by: Yun-Ting Lin <yunl@microsoft.com>
Co-authored-by: Sebastian Schoder Moreno <35150382+schoder-moreno@users.noreply.github.com>
Co-authored-by: Jonathan Wilhelm <Jonathan.wilhelm@sage.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Maxwell <micmax@microsoft.com>
Co-authored-by: ggoel <gaurav.goel111@gmail.com>
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
Co-authored-by: Pavel Steinl <pavel.steinl@gmail.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: aristotelos <arisvd@gmail.com>
Co-authored-by: Joao Grassi <joao@joaograssi.com>
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: benhall_io <3179852+benbhall@users.noreply.github.com>
2022-10-24 13:55:49 -07:00
Mikel Blanchard 4defde921a
[Logs-branch] More spec-compliant handling of SeverityText (#3774)
* More spec compliant handling of SeverityText.

* Update public api files.

* Fix warning.

* Unit tests.

* Test fix.

* Code review.
2022-10-21 09:26:19 -07:00
Mikel Blanchard 5e908f2b69
[Logs-branch] More spec-compliant handling of InstrumentationScope (#3762)
* More spec-compliant handling of InstrumentationScope in logging.

* Added throw behavior comment.

* Code review.
2022-10-17 12:12:12 -07:00
Mikel Blanchard 741966832a
Add a fast path for LogRecordAttributeList used as TState to ILogger.Log. (#3750) 2022-10-11 13:37:57 -07:00
Mikel Blanchard 9aebae2d90
[Logs-branch] Port scope buffering fix to logs branch (#3736)
* [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>

* Update log scope buffering fix for new api.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-10-06 09:54:06 -07:00
Mikel Blanchard 9c3f53f4c7 Merge branch 'main-before-scope-fix' into main-logs 2022-10-05 13:58:21 -07:00
Mikel Blanchard ad5b53ef4f
[Logs-branch] Serilog activity enricher (#3721)
* Implement Serilog Activity enricher

* Removed unnecessary using directive and removed semicolon from the `PublicAPI.Unshipped.txt` file

* `ParentSpanId` is ignored when the value is `default`

* added documentation about the Activity Enricher

* Public API updates.

* README updates.

* Add an option for including TraceState.

Co-authored-by: Wilson Rivera <mr.wilson.rivera@gmail.com>
2022-10-05 13:55:58 -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
Reiley Yang 6b38ed77f6
Reduce InternalsVisibleTo (#3726) 2022-10-04 15:16:59 -07:00
Piotr Kiełkowicz a8c222ab54
[Exporter.Prometheus] PrometheusSerializerTests - typo fixes (#3715) 2022-10-04 14:43:25 -07:00
dependabot[bot] 92fb3b345d
Bump actions/setup-dotnet from 3.0.0 to 3.0.1 (#3725)
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-04 12:17:10 -07:00
Mikel Blanchard 92c1afdfc7
Update the library authro guidance on the hosting registration extensions. (#3719) 2022-10-03 10:19:06 -07:00
Mikel Blanchard f73e453db8
[Logs-branch] Add LoggerProvider spec changes (#3707)
* Added back removed projects.

* Added back API changes.

* Updated logger artifacts to be public in API.

* Added back SDK changes.

* Revert global.json changes.

* Added LoggerProvider extensions.

* Fix up Serilog + EventSource projects.

* CHANGELOG stubs.

* Add back ConsoleExporter changes.

* CHANGELOG stub.

* Added back InMemoryExporter changes.

* Added back OtlpExporter changes.

* Added back docs changes.

* Add back examples changes.

* Benchmark fixes.

* Benchmark fixes.

* Add back OtlpExporter test changes.

* Logs stress test fixes.

* Added back test changes.

* Expose more of the new API in SDK.

* Updates for LogRecord.Severity being made public.

* Run workflows for any branch starting with "main". (#3708)

* Revert breaking changes.

* Suppress a breaking change warning.

* Patch CHANGELOGs.

* Add back OpenTelemetryLoggerOptions.ConfigureResource.

* [Repo] ApiCompat updates (#3716)

* Tweaks.

* Updated batch log processor envvar keys from spec.
2022-09-30 14:39:19 -07:00
Mikel Blanchard 897abe333a
[Repo] ApiCompat updates (#3716) 2022-09-30 12:18:36 -07:00
Piotr Kiełkowicz 9809cf60c4
[Exporter,Prometheus] Fix PrometheusCollectionManagerTests (#3714) 2022-09-30 10:17:48 -04:00
Utkarsh Umesan Pillai 31eb92c45a
Fix folder name (#3713) 2022-09-30 00:08:01 -04:00
Utkarsh Umesan Pillai 6b7cc222dc
Update CHANGELOG for 1.4.0-beta.1 release (#3711) 2022-09-29 17:30:59 -07:00
Vishwesh Bankwar c40effd449
fix broken instrumentation (#3709) 2022-09-29 14:47:03 -07:00
dependabot[bot] 79ccb27ff6
Bump actions/setup-dotnet from 2 to 3.0.0 (#3706)
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 2 to 3.0.0.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v2...v3.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
2022-09-29 13:56:21 -07:00
Mikel Blanchard a93f7138b1
Run workflows for any branch starting with "main". (#3708) 2022-09-29 12:04:43 -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
Alan West 4938c35e16
Trigger pack and publish when release is created (#3638) 2022-09-28 16:58:37 -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
dependabot[bot] ed0450ef0e
Bump actions/stale from 5 to 6 (#3692)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 6.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-22 13:50:15 -07: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
Piotr Kiełkowicz 988a27be05
exportor -> exporter (#3678) 2022-09-20 00:40:58 -07:00
dependabot[bot] a6bdf63be7
Bump codecov/codecov-action from 3.1.0 to 3.1.1 (#3676)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-09-19 18:09:30 -07:00
Omar Boukli-Hacene f45206ba0e
Fix ConsoleActivityExporter output alignment (#3674) 2022-09-19 15:08:15 -04:00
Alan West 3d03426694
HttpClient instrumentation: Clarify drop of support for .NET 5 and prior (#3675) 2022-09-19 14:22:35 -04: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 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