Skip to content
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

FFM-2514 add function to convert various types to string #76

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

jcox250
Copy link
Contributor

@jcox250 jcox250 commented Apr 1, 2022

What

Tightens up string conversion around attribute values when we're posting metrics.

Why

Previously if you provided an int value for an attribute then it was being sent to the metrics service as an empty string

Testing

Made my golang-server-sample use this branch of the SDK and I could see that integer attributes values were now being received by the metrics service on my local ff-server

input interface{}
expected string
}{
"Given I input a string": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add some nils? check it handles it ok?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add a test for nils

Copy link
Contributor

@Andrew-Hayes Andrew-Hayes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

@jcox250 jcox250 merged commit c2f30af into main Apr 7, 2022
@jcox250 jcox250 deleted the FFM-2514 branch April 7, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants