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

Re-add AWS V3 Instrumentation #421

Merged
merged 9 commits into from
May 12, 2021
Merged

Conversation

willarmiros
Copy link
Contributor

Issue #, if available:
#294, #411

Description of changes:
This PR officially re-commits AWS SDK V3 instrumentation to the main branch of the repo. To summarize the changes, we have:

  1. Redesigned the instrumentation to entirely use the AWS SDK V3 middleware tools instead of monkey-patching
  2. Changed the publishing mechanism of the core package to exclude TS files and only include type declarations and transpiled JS code, as is best practice
  3. Updated the types used in our type declaration and instrumentation modules so that we minimize added dependencies while still able to keep the same TypeScript experience AWS SDK V3 customers expect

Generally, the changes in this PR have already been reviewed in #386, #416, and #417. The only additional changes are those mentioned in point 3.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

William Armiros and others added 7 commits April 13, 2021 14:37
* build core files to dist directory

* fixed unit tests

* updated workflows and readme

* try to fix windows

* fix ls

* slashes

* no more ls

* zstd decompress

* see what bin has

* removed rsync

* fixes

* added sh

* try xargs instead

* cleanups

* fixed publishing logic
* updated deps and type file

* removed type keyword added deps

* remove changes to js

* updated versions

* finished redesign of aws sdk v3 instrumentation

* refactored buildAttributes signature

* add compile back to workflow

* bumped tsd version instead

Co-authored-by: Trivikram Kamat <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented May 11, 2021

Codecov Report

Merging #421 (ba29b13) into master (b616b51) will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #421      +/-   ##
==========================================
+ Coverage   82.65%   82.71%   +0.05%     
==========================================
  Files          36       36              
  Lines        1718     1741      +23     
==========================================
+ Hits         1420     1440      +20     
- Misses        298      301       +3     
Impacted Files Coverage Δ
lib/middleware/sampling/rule_cache.js 89.47% <0.00%> (-4.28%) ⬇️
lib/middleware/sampling/rule_poller.js 31.25% <0.00%> (-1.01%) ⬇️
lib/middleware/mw_utils.js 59.09% <0.00%> (-0.91%) ⬇️
lib/middleware/sampling/default_sampler.js 15.78% <0.00%> (-0.88%) ⬇️
lib/logger.js 97.36% <0.00%> (-0.07%) ⬇️
lib/index.js 100.00% <0.00%> (ø)
lib/capture.js 78.68% <0.00%> (ø)
lib/context_utils.js 78.08% <0.00%> (ø)
lib/env/aws_lambda.js 92.98% <0.00%> (ø)
lib/patchers/aws_p.js 79.72% <0.00%> (ø)
... and 26 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 b616b51...ba29b13. Read the comment docs.

Copy link
Contributor

@lupengamzn lupengamzn left a comment

Choose a reason for hiding this comment

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

One minor comment, otherwise LGTM

packages/core/README.md Outdated Show resolved Hide resolved
@willarmiros willarmiros merged commit ac36598 into aws:master May 12, 2021
@willarmiros willarmiros deleted the aws-v3-support branch May 12, 2021 19:55
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.

3 participants