-
Notifications
You must be signed in to change notification settings - Fork 307
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
Allow overriding the Part B "name" field value in GenevaLogExporter #1367
Conversation
I can add test coverage / changelog. Just wanted to make sure this PR is something that can be considered, as the issue was closed as by design. But as you can see, this PR does not contradict Common Schema, it just enables a huge codebase to be migrated over to Open Telemetry |
src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #1367 +/- ##
===========================================
- Coverage 73.91% 58.09% -15.83%
===========================================
Files 267 29 -238
Lines 9615 3028 -6587
===========================================
- Hits 7107 1759 -5348
+ Misses 2508 1269 -1239
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/OpenTelemetry.Exporter.Geneva/MsgPackExporter/MsgPackLogExporter.cs
Outdated
Show resolved
Hide resolved
…ying "name". Only allow string values for "name" Add test coverage
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.
The direction and logic look good to me.
I'm slightly concerned about perf since we're adding more string comparisons in a loop (which all customers will have to pay for). But I think that's a separate issue which we should tackle outside of this PR.
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.
LGTM
Fixes #1186
Changes
Allow overriding the "name" field in the Geneva Log Exporter
This allows big codebases to be migrated to OpenTelemetry while still maintaining back-compatibility of the emitted logs