File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 2525 "@types/node" : " ^15.6.1" ,
2626 "@types/promise-retry" : " ^1.1.3" ,
2727 "@types/shimmer" : " ^1.0.1" ,
28- "dd-trace" : " 0.33.2 " ,
28+ "dd-trace" : " 0.34.0 " ,
2929 "jest" : " ^27.0.1" ,
3030 "mock-fs" : " 4.14.0" ,
3131 "nock" : " 13.0.11" ,
Original file line number Diff line number Diff line change @@ -11,8 +11,11 @@ if (process.env.DD_TRACE_DISABLED_PLUGINS === undefined) {
1111}
1212
1313if ( getEnvValue ( "DD_TRACE_ENABLED" , "true" ) . toLowerCase ( ) === "true" ) {
14+ // Looks for the function local version of dd-trace first, before using
15+ // the version provided by the layer
16+ const path = require . resolve ( "dd-trace" , { paths : [ "/var/task/node_modules" , ...module . paths ] } ) ;
1417 // tslint:disable-next-line:no-var-requires
15- require ( "dd-trace" ) . init ( {
18+ require ( path ) . init ( {
1619 tags : {
1720 "_dd.origin" : "lambda" ,
1821 } ,
Original file line number Diff line number Diff line change @@ -1212,10 +1212,10 @@ data-urls@^2.0.0:
12121212 whatwg-mimetype "^2.3.0"
12131213 whatwg-url "^8.0.0"
12141214
1215- dd-trace@0.33.2 :
1216- version "0.33.2 "
1217- resolved "https://registry.yarnpkg.com/dd-trace/-/dd-trace-0.33.2 .tgz#a3a93f6a0ad190081fb21ddb039fb965618c7df3 "
1218- integrity sha512-PXn58Nj2Y/rnnj46cgKHhqBBHCRJfAj8HcOtBDp5K6OQbl1BYFRgX9j+xe39zZj+QE9wpRvWbp9A5xRFN2r72A ==
1215+ dd-trace@0.34.0 :
1216+ version "0.34.0 "
1217+ resolved "https://registry.yarnpkg.com/dd-trace/-/dd-trace-0.34.0 .tgz#0c93f6524c56fc4303f397db0e88b57fc916ad15 "
1218+ integrity sha512-X5pyS88NbHTcS8BcnoC79n/xiZdXjwMSAsEtnyRGteU8iYIBkpkSdmyxQdQB+843tLKK6/7Y9kR7qAz9yfAt2g ==
12191219 dependencies :
12201220 " @types/node" " ^10.12.18"
12211221 form-data "^3.0.0"
You can’t perform that action at this time.
0 commit comments