-
Notifications
You must be signed in to change notification settings - Fork 374
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
include peer service configurations in telemetry payload #3056
Conversation
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.
Hey @wconti27, mind adding tests to collector_spec.rb
as well? It's rather trivial, but I think it helps make sure we don't accidentally break stuff during refactoring.
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
} | ||
peer_service_mapping_str = '' |
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.
Do you need this value to be an empty string, instead of nil
?
I ask because nil
will remove it from the Hash, reducing the payload size needed to be flushed.
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.
Also, it would make it slightly simpler to write this, given we don't have to initialize peer_service_mapping_str
anymore if we are ok with nil
.
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.
Other tracers include the empty string since it makes it easier to recognize if the configuration is actually supported
Adds the new peer service configurations to telemetry data