-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add strong typing to common event properties #834
Add strong typing to common event properties #834
Conversation
Test app U.I. in a separate PR.
#833 should be approved before merging this |
target.getPropertyConfigurator().setEventProperty("myNullString", (String) null); | ||
target.getPropertyConfigurator().setEventProperty("myTrue", true); | ||
target.getPropertyConfigurator().setEventProperty("myFalse", false); | ||
target.getPropertyConfigurator().setEventProperty("myLong", 123); |
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.
Use a real long value between 2^32 and 2^64-1 for long type
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.
Using 2^64 -1 then ;)
target.getPropertyConfigurator().setEventProperty("myLong", 123); | ||
target.getPropertyConfigurator().setEventProperty("myDate", new Date(456)); | ||
target.getPropertyConfigurator().setEventProperty("myNullDate", (Date) null); | ||
target.getPropertyConfigurator().setEventProperty("myDouble", -3.14); |
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 case for scientific notation of double like "1.2345e" would be great
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.
Another method has a simple double so will just change this one
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 my comments
Test app U.I. in a separate PR.