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

feat(plugin-dns): add lookup patches #424

Merged
merged 3 commits into from
Oct 16, 2019

Conversation

OlivierAlbertini
Copy link
Member

Which problem is this PR solving?

  • ref: #423 (in progress)

Short description of the changes

  • add docs
  • add example
  • add patch for lookup (include promise as well)
  • add tests

@OlivierAlbertini OlivierAlbertini force-pushed the feature/plugin-dns branch 3 times, most recently from c3a61ad to e255799 Compare October 13, 2019 16:13
@codecov-io
Copy link

codecov-io commented Oct 13, 2019

Codecov Report

Merging #424 into master will decrease coverage by 0.47%.
The diff coverage is 90.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
- Coverage   95.84%   95.37%   -0.48%     
==========================================
  Files         108      118      +10     
  Lines        5315     5919     +604     
  Branches      431      500      +69     
==========================================
+ Hits         5094     5645     +551     
- Misses        221      274      +53
Impacted Files Coverage Δ
.../opentelemetry-plugin-dns/test/utils/assertSpan.ts 100% <100%> (ø)
...try-plugin-dns/test/functionals/dns-enable.test.ts 100% <100%> (ø)
...entelemetry-plugin-dns/src/enums/AttributeNames.ts 100% <100%> (ø)
...ry-plugin-dns/test/functionals/dns-disable.test.ts 100% <100%> (ø)
...kages/opentelemetry-plugin-dns/test/utils/utils.ts 33.33% <33.33%> (ø)
packages/opentelemetry-plugin-dns/src/utils.ts 70% <70%> (ø)
...in-dns/test/integrations/dnspromise-lookup.test.ts 90.82% <90.82%> (ø)
...ry-plugin-dns/test/integrations/dns-lookup.test.ts 94.16% <94.16%> (ø)
packages/opentelemetry-plugin-dns/src/dns.ts 97.22% <97.22%> (ø)
...elemetry-plugin-dns/test/functionals/utils.test.ts 98.82% <98.82%> (ø)
... and 12 more

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 ddf43ff...e029569. Read the comment docs.

@OlivierAlbertini OlivierAlbertini force-pushed the feature/plugin-dns branch 5 times, most recently from 4546635 to 43a07ff Compare October 13, 2019 18:15
ref: #423
add docs
add example
include promise patch for lookup

Signed-off-by: Olivier Albertini <[email protected]>
Copy link
Member

@vmarchaud vmarchaud left a comment

Choose a reason for hiding this comment

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

LGTM ! 👍

) => {
const { code, message, name } = err;
const attributes = {
[AttributeNames.DNS_ERROR_MESSAGE]: message,
Copy link
Member

Choose a reason for hiding this comment

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

is message a limited set of of possible values or unlimited (e.g. has some unique identifier in it or something)? If it's the latter it should probably go onto the span as an event

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe we have a limited set. I'm also not sure if people will use this tag for filtering (Pretty sure, they won't for Jaeger since you need to have an exact match). Perhaps we could create an another PR since we could change also http/https plugins as well if we want to create an event instead.

@mayurkale22 mayurkale22 requested a review from markwolff October 14, 2019 18:31
Copy link
Member

@mayurkale22 mayurkale22 left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@mayurkale22 mayurkale22 merged commit 502f9e4 into open-telemetry:master Oct 16, 2019
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
…y#424)

Without this, spans created in the lambda function are not part of the
same trace as the handler span.

Co-authored-by: Valentin Marchaud <[email protected]>
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.

6 participants