-
Notifications
You must be signed in to change notification settings - Fork 293
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
[ExporterGeneva]Remove ConvertToJson option #514
[ExporterGeneva]Remove ConvertToJson option #514
Conversation
Fix B3 propagator is not case insensitive #3149
Fix issue- #3149
Fix B3 propagator is not case insensitive #3149
Codecov Report
@@ Coverage Diff @@
## main #514 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 167 167
Lines 5099 5097 -2
=====================================
+ Misses 5099 5097 -2
|
case string vs: | ||
break; | ||
default: | ||
throw new ArgumentException($"Type: {entry.Value.GetType()} is not supported. Only bool, byte, sbyte, short, ushort, int, uint, long, ulong, float, double, and string are the supported types for PrepopulatedFields values."); |
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.
would this throw NullReferenceException if value is 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.
Is this addressed?
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.
case string vs: | ||
break; | ||
default: | ||
throw new ArgumentException($"Type: {entry.Value.GetType()} is not supported. Only bool, byte, sbyte, short, ushort, int, uint, long, ulong, float, double, and string are the supported types for PrepopulatedFields values."); |
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.
"for PrepopulatedFields values" can be removed since this is self-explanatory.
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.
Is this addressed?
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.
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 with minor suggestions.
Add a unit test for this. |
Remove Internal function ConvertToJson as this is no longer needed
There is no existing Unit test for this file. I have to see that add unit test is hard for me.;), Can you help approve or give some suggestion for this, Thank you so much! |
You're right! Currently, there is no dedicated test class for this file. However, you could still add a unit test in |
Update Unit test
Update unit test
test/OpenTelemetry.Exporter.Geneva.Tests/GenevaTraceExporterTests.cs
Outdated
Show resolved
Hide resolved
Remove unnecessary test
[ExporterGeneva]Remove ConvertToJson option
Fix issue with #395
Changes
Remove ConvertToJson option