-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdk + otlp] Add log processor factory overload #4916
Merged
utpilla
merged 37 commits into
open-telemetry:main
from
CodeBlanch:otlp-logs-options-di
Nov 22, 2023
Merged
Changes from 10 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
8fa8315
WIP supporting options through DI.
CodeBlanch 7890043
Fix up public api files.
CodeBlanch d5fe070
Fixes.
CodeBlanch 31d362d
merge main
Yun-Ting 5384937
api files
Yun-Ting 594897c
fix issue about null
Yun-Ting 8a61c5a
added some unit tests
Yun-Ting 65e23e1
Merge branch 'main' into otlp-logs-options-di
Yun-Ting f0eb125
changelog and small fixes
Yun-Ting 0ecadec
Merge branch 'main' into otlp-logs-options-di
Yun-Ting 7f042e7
CHANGELOG tweak.
CodeBlanch 5ba7042
XML comment tweak.
CodeBlanch a2e935e
CHANGELOG tweak.
CodeBlanch fd2d4b4
Support named options.
CodeBlanch 7ad1594
Doc updates.
CodeBlanch 0b024df
Lint.
CodeBlanch afea760
Tweaks and nullable decorations.
CodeBlanch 8cd1574
Lint.
CodeBlanch cb1da67
Code review.
CodeBlanch 6fc8cca
Tweaks.
CodeBlanch 9f8d737
Merge branch 'main' into otlp-logs-options-di
Yun-Ting 97e31a2
Bug fixes and tests.
CodeBlanch 7ebbff6
Merge branch 'otlp-logs-options-di' of https://github.com/CodeBlanch/…
CodeBlanch f43b8ad
Merge remote-tracking branch 'upstream/main' into otlp-logs-options-di
CodeBlanch 6dc6f04
addressed comment
Yun-Ting 3b00b5f
A bit of cleanup.
CodeBlanch 5b987c8
Merge branch 'main' into otlp-logs-options-di
Yun-Ting 9f46d13
Merge branch 'otlp-logs-options-di' of https://github.com/CodeBlanch/…
Yun-Ting fcd2dff
add test paths for optional name
Yun-Ting a505998
Merge branch 'main' into otlp-logs-options-di
Yun-Ting 810ac75
Merge branch 'main' into otlp-logs-options-di
Yun-Ting ae4d3f8
Test refactor.
CodeBlanch 87f6405
Test tweaks.
CodeBlanch d8dece2
Merge from main.
CodeBlanch a65af27
Merge from main.
CodeBlanch 532101f
README tweaks.
CodeBlanch 3477837
Merge branch 'main' into otlp-logs-options-di
Yun-Ting File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/.publicApi/Stable/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#nullable enable | ||
OpenTelemetry.Exporter.OtlpLogExporter | ||
OpenTelemetry.Exporter.OtlpLogExporter.OtlpLogExporter(OpenTelemetry.Exporter.OtlpExporterOptions options) -> void | ||
override OpenTelemetry.Exporter.OtlpLogExporter.Export(in OpenTelemetry.Batch<OpenTelemetry.Logs.LogRecord> logRecordBatch) -> OpenTelemetry.ExportResult | ||
OpenTelemetry.Exporter.OtlpLogExporter.OtlpLogExporter(OpenTelemetry.Exporter.OtlpExporterOptions! options) -> void | ||
override OpenTelemetry.Exporter.OtlpLogExporter.Export(in OpenTelemetry.Batch<OpenTelemetry.Logs.LogRecord!> logRecordBatch) -> OpenTelemetry.ExportResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From end user perspective: This scenario of enabling IConfiguration/SdkLimitOptions/BatchOptions will only be possible when they have the servicecollection already available like in ASP.NET Core apps. Unlike in case of tracing/metrics where they can call ConfigureServices extension. Is my understanding correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically I would expect only host users (AspNetCore or generic host) to care about deep IConfiguration integration. But it is also available for manual scenarios too if users want it.
Here is how you would do it manually for traces & logs:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a test to validate this scenario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see:
opentelemetry-dotnet/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs
Line 1297 in a505998