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

Support circular references in tags and better array formatting #659

Merged
merged 9 commits into from
Aug 30, 2019

Conversation

rishabh
Copy link
Contributor

@rishabh rishabh commented Aug 22, 2019

What does this PR do?

This PR removes depth when it comes to tags and instead detects circular references. This will allow us to get infinite visibility for objects-as-tags.

This PR also changes the way we format arrays. We now leverage JSON.stringify to nest arrays rather than flattening them.

Motivation

We want to ensure we can always get meaningful information from tags while at the same time ensuring readability.

Additional Notes

Please check the tests to see what the expected behaviour is, thanks!

@rishabh rishabh added enhancement New feature or request core labels Aug 22, 2019
@rishabh rishabh requested a review from a team as a code owner August 22, 2019 20:51
@rishabh
Copy link
Contributor Author

rishabh commented Aug 23, 2019

eslint should have the ability to detect unnecessary configuration comments.

packages/dd-trace/src/format.js Outdated Show resolved Hide resolved
packages/dd-trace/src/format.js Outdated Show resolved Hide resolved
packages/dd-trace/src/format.js Outdated Show resolved Hide resolved
packages/dd-trace/src/format.js Show resolved Hide resolved
packages/dd-trace/src/format.js Outdated Show resolved Hide resolved
packages/dd-trace/src/format.js Outdated Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #659 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
+ Coverage   96.22%   96.23%   +<.01%     
==========================================
  Files          94       94              
  Lines        3234     3240       +6     
==========================================
+ Hits         3112     3118       +6     
  Misses        122      122
Impacted Files Coverage Δ
packages/dd-trace/src/format.js 98.64% <100%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 403ac6e...be4ddad. Read the comment docs.

1 similar comment
@codecov-io
Copy link

codecov-io commented Aug 30, 2019

Codecov Report

Merging #659 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
+ Coverage   96.22%   96.23%   +<.01%     
==========================================
  Files          94       94              
  Lines        3234     3240       +6     
==========================================
+ Hits         3112     3118       +6     
  Misses        122      122
Impacted Files Coverage Δ
packages/dd-trace/src/format.js 98.64% <100%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 403ac6e...be4ddad. Read the comment docs.

@rochdev rochdev merged commit 6e432b4 into master Aug 30, 2019
@rochdev rochdev deleted the rish/support-circular-tags branch August 30, 2019 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants