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

include peer service configurations in telemetry payload #3056

Merged
merged 9 commits into from
Aug 17, 2023

Conversation

wconti27
Copy link
Contributor

Adds the new peer service configurations to telemetry data

@wconti27 wconti27 requested a review from a team August 17, 2023 13:51
@github-actions github-actions bot added the core Involves Datadog core libraries label Aug 17, 2023
Copy link
Member

@ivoanjo ivoanjo left a 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.

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

👍 LGTM

spec/datadog/core/telemetry/collector_spec.rb Outdated Show resolved Hide resolved
spec/datadog/core/telemetry/collector_spec.rb Outdated Show resolved Hide resolved
}
peer_service_mapping_str = ''
Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

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

@marcotc marcotc merged commit d4d3cc9 into master Aug 17, 2023
203 checks passed
@marcotc marcotc deleted the conti/add-new-telemetry-configurations branch August 17, 2023 19:46
@github-actions github-actions bot added this to the 1.14.0 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants