-
Notifications
You must be signed in to change notification settings - Fork 786
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
[integration test] otlp log exporter #4854
[integration test] otlp log exporter #4854
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4854 +/- ##
==========================================
- Coverage 83.96% 83.93% -0.03%
==========================================
Files 293 293
Lines 12021 12023 +2
==========================================
- Hits 10093 10092 -1
- Misses 1928 1931 +3
|
…ub.com/vishweshbankwar/opentelemetry-dotnet into vibankwa/add-otlp-log-integration-test
…ub.com/vishweshbankwar/opentelemetry-dotnet into vibankwa/add-otlp-log-integration-test
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporterHelperExtensions.cs
Outdated
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/IntegrationTests.cs
Outdated
Show resolved
Hide resolved
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.
Couple nits but LGTM
var otlpExporter = new OtlpLogExporter(exporterOptions); | ||
BaseExporter<LogRecord> otlpExporter = new OtlpLogExporter(exporterOptions); | ||
|
||
if (configureExporterInstance != null) |
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.
nit: Simplify this by using configureExporterInstance?.Invoke(otlpExporter)
.
var otlpExporter = new OtlpLogExporter(exporterOptions); | ||
BaseExporter<LogRecord> otlpExporter = new OtlpLogExporter(exporterOptions); | ||
|
||
if (configureExporterInstance != null) |
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.
Add a comment that this option is only used by tests.
Adds integration test for otlp log exporter + some refactoring to enable testing + minor fix for example