Skip to content

Commit cd2cff5

Browse files
authored
Tracer can be undefined - logzio-nodejs logger upgrade
Tracer can be undefined
2 parents 641d4c3 + 91eb23c commit cd2cff5

File tree

4 files changed

+46
-12
lines changed

4 files changed

+46
-12
lines changed

packages/logger/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@logzio-node-toolbox/logger",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "multi-functional logger",
55
"main": "dist/index.cjs",
66
"exports": {
@@ -33,7 +33,7 @@
3333
"json-colorizer": "^2.2.2",
3434
"json-stringify-safe": "5.0.1",
3535
"lodash": "4.17.21",
36-
"logzio-nodejs": "2.0.3",
36+
"logzio-nodejs": "^2.1.6",
3737
"rough-object-size": "1.0.1",
3838
"serialize-error": "^8.1.0"
3939
}

packages/tracer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@logzio-node-toolbox/tracer",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"description": "multi-functional trace",
55
"main": "dist/index.cjs",
66
"exports": {

packages/tracer/src/hapiHttpTracer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ export const hapiHttpTracer = ({ server, tracer, shouldIgnore, onStartSpan, onFi
22
server.ext({
33
type: 'onRequest',
44
method: (request, h) => {
5+
if (!tracer) return h.continue;
6+
57
try {
68
if (!shouldIgnore || !shouldIgnore(request.path)) {
79
const { path, raw, method, headers } = request;

yarn.lock

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3771,6 +3771,15 @@ aws4@^1.8.0:
37713771
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2"
37723772
integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==
37733773

3774+
3775+
version "1.6.0"
3776+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102"
3777+
integrity sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==
3778+
dependencies:
3779+
follow-redirects "^1.15.0"
3780+
form-data "^4.0.0"
3781+
proxy-from-env "^1.1.0"
3782+
37743783
babel-jest@^27.3.1, babel-jest@^27.5.1:
37753784
version "27.5.1"
37763785
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444"
@@ -5426,6 +5435,11 @@ flatted@^3.1.0:
54265435
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.0.tgz#a5d06b4a8b01e3a63771daa5cb7a1903e2e57067"
54275436
integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==
54285437

5438+
follow-redirects@^1.15.0:
5439+
version "1.15.4"
5440+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
5441+
integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==
5442+
54295443
forever-agent@~0.6.1:
54305444
version "0.6.1"
54315445
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
@@ -5440,6 +5454,15 @@ form-data@^3.0.0:
54405454
combined-stream "^1.0.8"
54415455
mime-types "^2.1.12"
54425456

5457+
form-data@^4.0.0:
5458+
version "4.0.0"
5459+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
5460+
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
5461+
dependencies:
5462+
asynckit "^0.4.0"
5463+
combined-stream "^1.0.8"
5464+
mime-types "^2.1.12"
5465+
54435466
form-data@~2.3.2:
54445467
version "2.3.3"
54455468
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
@@ -7334,16 +7357,15 @@ [email protected]:
73347357
request "^2.88.0"
73357358
request-promise "^4.2.2"
73367359

7337-
logzio-nodejs@2.0.3:
7338-
version "2.0.3"
7339-
resolved "https://registry.yarnpkg.com/logzio-nodejs/-/logzio-nodejs-2.0.3.tgz#f3b3844864b744ea904a092e0133d85c4644713a"
7340-
integrity sha512-gX/JqPXhaepfk6tbGDlAtMiXrWYiKRfCoDJT2LxYWno0Qq5yTKosH7PJK7Eo7kCFYRRI/nzWSb0csarBccNLaA==
7360+
logzio-nodejs@^2.1.6:
7361+
version "2.1.6"
7362+
resolved "https://registry.yarnpkg.com/logzio-nodejs/-/logzio-nodejs-2.1.6.tgz#7992c1d0972e3e1e69b3eb5fcbdfdb375335a3f3"
7363+
integrity sha512-I86ilOvSNcmC7K43/+YiNI9XJdq7Wa7tmybkXPhGfuEXC67Bk2OlAujM2HMwJ7J01x3o7TX1LVK9jeCJ7izmSg==
73417364
dependencies:
7365+
axios "1.6.0"
73427366
json-stringify-safe "5.0.1"
73437367
lodash.assign "4.2.0"
7344-
moment "^2.24.0"
7345-
request "^2.88.0"
7346-
request-promise "^4.2.4"
7368+
moment "2.29.4"
73477369

73487370
long@^2.4.0:
73497371
version "2.4.0"
@@ -7732,7 +7754,12 @@ modify-values@^1.0.0:
77327754
resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
77337755
integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
77347756

7735-
moment@^2.22.1, moment@^2.24.0:
7757+
7758+
version "2.29.4"
7759+
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
7760+
integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==
7761+
7762+
moment@^2.22.1:
77367763
version "2.27.0"
77377764
resolved "https://registry.yarnpkg.com/moment/-/moment-2.27.0.tgz#8bff4e3e26a236220dfe3e36de756b6ebaa0105d"
77387765
integrity sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==
@@ -8745,6 +8772,11 @@ proxy-addr@~2.0.5:
87458772
forwarded "~0.1.2"
87468773
ipaddr.js "1.9.1"
87478774

8775+
proxy-from-env@^1.1.0:
8776+
version "1.1.0"
8777+
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
8778+
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
8779+
87488780
psl@^1.1.28, psl@^1.1.33:
87498781
version "1.8.0"
87508782
resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"
@@ -9144,7 +9176,7 @@ [email protected]:
91449176
dependencies:
91459177
lodash "^4.17.15"
91469178

9147-
request-promise@^4.2.2, request-promise@^4.2.4:
9179+
request-promise@^4.2.2:
91489180
version "4.2.5"
91499181
resolved "https://registry.yarnpkg.com/request-promise/-/request-promise-4.2.5.tgz#186222c59ae512f3497dfe4d75a9c8461bd0053c"
91509182
integrity sha512-ZgnepCykFdmpq86fKGwqntyTiUrHycALuGggpyCZwMvGaZWgxW6yagT0FHkgo5LzYvOaCNvxYwWYIjevSH1EDg==

0 commit comments

Comments
 (0)