Skip to content

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented May 5, 2022

What does this PR do?

Add all dns addresses as a new tag when option is set.

Motivation

This is a trade-off so that switching between all: true and all: false doesn't change the value of the dns.address tag by adding a new dns.addresses tag instead to store all the addresses while the former will continue to only store the first address.

See #2031 (comment)

@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #2038 (3ee4939) into master (658fde2) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2038      +/-   ##
==========================================
+ Coverage   92.87%   92.88%   +0.01%     
==========================================
  Files         203      203              
  Lines        8262     8266       +4     
==========================================
+ Hits         7673     7678       +5     
+ Misses        589      588       -1     
Impacted Files Coverage Δ
packages/datadog-plugin-dns/src/index.js 100.00% <100.00%> (ø)
packages/datadog-instrumentations/src/redis.js 92.18% <0.00%> (+1.56%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

span.setTag('dns.address', address)

if (Array.isArray(result)) {
const addresses = Array.isArray(result)
Copy link

@Meemaw Meemaw May 10, 2022

Choose a reason for hiding this comment

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

This Array.isArray(result) checks seems unnecessary.

@rochdev rochdev deleted the dns-addresses branch December 20, 2023 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants