Skip to content

Commit ad07b20

Browse files
Merge pull request #56 from comicrelief/fix_iopipe
Fix iopipe
2 parents 2f29e20 + ccf0f4e commit ad07b20

4 files changed

Lines changed: 45 additions & 62 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
]
4343
},
4444
"dependencies": {
45-
"@iopipe/iopipe": "1.15.0",
45+
"@iopipe/iopipe": "1.15.1",
4646
"@iopipe/profiler": "2.1.2",
47-
"@iopipe/trace": "1.4.1",
47+
"@iopipe/trace": "1.5.1",
4848
"alai": "1.0.3",
4949
"async": "2.6.3",
5050
"aws-sdk": "2.493.0",

src/Service/Logger.service.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Winston from 'winston';
22
import Raven from 'raven';
3-
import { label, metric } from '@iopipe/iopipe';
43

54
import DependencyAwareClass from '../DependencyInjection/DependencyAware.class';
65
import DependencyInjection from '../DependencyInjection/DependencyInjection.class';
@@ -114,7 +113,7 @@ export default class LoggerService extends DependencyAwareClass {
114113
*/
115114
label(descriptor, silent = false) {
116115
if (typeof process.env.IOPIPE_TOKEN === 'string' && process.env.IOPIPE_TOKEN !== 'undefined') {
117-
label(descriptor);
116+
this.getContainer().getContext().iopipe.label(descriptor);
118117
}
119118

120119
if (silent === false) {
@@ -130,7 +129,7 @@ export default class LoggerService extends DependencyAwareClass {
130129
*/
131130
metric(descriptor, stat, silent = false) {
132131
if (typeof process.env.IOPIPE_TOKEN === 'string' && process.env.IOPIPE_TOKEN !== 'undefined') {
133-
metric(descriptor, stat);
132+
this.getContainer().getContext().iopipe.metric(descriptor, stat);
134133
}
135134

136135
if (silent === false) {

src/Service/Timer.service.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { mark } from '@iopipe/iopipe';
2-
31
import DependencyAwareClass from '../DependencyInjection/DependencyAware.class';
42
import DependencyInjection from '../DependencyInjection/DependencyInjection.class';
53
import { DEFINITIONS } from '../Config/Dependencies';
@@ -25,7 +23,7 @@ export default class TimerService extends DependencyAwareClass {
2523
this.timers[identifier] = new Date().getTime();
2624

2725
if (typeof process.env.IOPIPE_TOKEN === 'string' && process.env.IOPIPE_TOKEN !== 'undefined') {
28-
mark.start(identifier);
26+
this.getContainer().getContext().iopipe.mark.start(identifier);
2927
}
3028
}
3129

@@ -41,7 +39,7 @@ export default class TimerService extends DependencyAwareClass {
4139
}
4240

4341
if (typeof process.env.IOPIPE_TOKEN === 'string' && process.env.IOPIPE_TOKEN !== 'undefined') {
44-
mark.end(identifier);
42+
this.getContainer().getContext().iopipe.mark.end(identifier);
4543
}
4644
}
4745
}

yarn.lock

Lines changed: 39 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@
110110
lodash "^4.2.0"
111111
to-fast-properties "^2.0.0"
112112

113-
"@iopipe/config@^1.4.1":
114-
version "1.4.1"
115-
resolved "https://registry.yarnpkg.com/@iopipe/config/-/config-1.4.1.tgz#0a80dd9fece853768401e646320620a2308a6987"
116-
integrity sha512-jV9d1JRGPfZwKg7zg/BvqY9NDLBbw7pVQveCoqBwEFQjL1mG1dfZ8YPMzNJ1C4yRbcupIfF8NxeU/1EeAxMxYQ==
113+
"@iopipe/config@^1.4.2":
114+
version "1.4.2"
115+
resolved "https://registry.yarnpkg.com/@iopipe/config/-/config-1.4.2.tgz#791d7e3132b70e8d710fb2f1a383a99532671e7a"
116+
integrity sha512-tfojIkxLTnW69GRIfKceuJpWRnMJ82u5649akg7lYwQi1jzYGZqy+RonOci+kPHWr5o0+LFTh9c0MJqW1f/Rcw==
117117
dependencies:
118118
"@iopipe/event-info" "^1.3.1"
119-
"@iopipe/profiler" "^2.1.0"
119+
"@iopipe/profiler" "^2.1.2"
120120
"@iopipe/trace" "^1.4.1"
121121

122-
"@iopipe/core@^1.19.0":
122+
"@iopipe/core@^1.19.1":
123123
version "1.19.1"
124124
resolved "https://registry.yarnpkg.com/@iopipe/core/-/core-1.19.1.tgz#19da388f0c900f4551915c71993b4c1269979970"
125125
integrity sha512-JyEcARVnE+TMYodEu9jV61CpWGqmBaAqfvUWX1m5ot1kzbXDS5gvnD/opYsNRteALluiLcb42TRxlEuPCTmijQ==
@@ -136,15 +136,15 @@
136136
flat "^4.0.0"
137137
lodash.get "^4.4.2"
138138

139-
"@iopipe/iopipe@1.15.0":
140-
version "1.15.0"
141-
resolved "https://registry.yarnpkg.com/@iopipe/iopipe/-/iopipe-1.15.0.tgz#231729a4141e09ed241d0d62a2b5d1e629c0bae4"
142-
integrity sha512-WaGDpoInvopGQh/8RegQm+viLW7KIY+hUFinlmHMnoNApSQEjSSRWWs8rHM4n1AACQrvOYo/G9TSs9K89s2YaA==
139+
"@iopipe/iopipe@1.15.1":
140+
version "1.15.1"
141+
resolved "https://registry.yarnpkg.com/@iopipe/iopipe/-/iopipe-1.15.1.tgz#d8f84b6dbf4ff92a0ff8aca38dd707fd9fb4c5ac"
142+
integrity sha512-LIJPA1+Ggqa0SU0Rqr3qnWehhtBSNVq50q8zfhwYKjzQNSE5uJg6DTFpEnnKOid0vvOixDIhJmpmQjAwb/0ogA==
143143
dependencies:
144-
"@iopipe/config" "^1.4.1"
145-
"@iopipe/core" "^1.19.0"
144+
"@iopipe/config" "^1.4.2"
145+
"@iopipe/core" "^1.19.1"
146146

147-
"@iopipe/profiler@2.1.2", "@iopipe/profiler@^2.1.0":
147+
"@iopipe/profiler@2.1.2", "@iopipe/profiler@^2.1.2":
148148
version "2.1.2"
149149
resolved "https://registry.yarnpkg.com/@iopipe/profiler/-/profiler-2.1.2.tgz#8d17a175450827caf110b410796c776a18bc1e18"
150150
integrity sha512-crrdK1Ywftn4qn2Heq7Eq3i6THdZtF+5O3RAUqf+w4rk1xyDNvDMiINejBvPVEa/jLlbpU0kqnYK5JsExG2YHw==
@@ -153,7 +153,20 @@
153153
lodash.get "^4.4.2"
154154
simple-get "^3.0.3"
155155

156-
"@iopipe/trace@1.4.1", "@iopipe/trace@^1.4.1":
156+
"@iopipe/trace@1.5.1":
157+
version "1.5.1"
158+
resolved "https://registry.yarnpkg.com/@iopipe/trace/-/trace-1.5.1.tgz#a8332c9747f35ffd3b05d7ffe27464ce675f6d2e"
159+
integrity sha512-egKW72exXGMucc0RTNpV5lw13UBa4i++lgYwqBM5RI3yBI9LfwwuBlBzeJacPbswv+tXKEwFj+JbSzdvYMnNng==
160+
dependencies:
161+
flat "^4.0.0"
162+
isarray "^2.0.4"
163+
lodash.pickby "^4.6.0"
164+
performance-node "^0"
165+
semver "^6.3.0"
166+
shimmer "^1.2.1"
167+
uuid "^3.2.1"
168+
169+
"@iopipe/trace@^1.4.1":
157170
version "1.4.1"
158171
resolved "https://registry.yarnpkg.com/@iopipe/trace/-/trace-1.4.1.tgz#dd773b0bf33e563940e13b37d1b6b818e331f001"
159172
integrity sha512-9QBkTSfLPDV22dJeCP+pIT8Qg6bLel61nezZyn8lB3wOoktp41FcCK/xrWqwNSWORGYMNwVwKs506cyxK6lrLg==
@@ -2291,7 +2304,7 @@ debug@^3.1.0, debug@^3.2.5, debug@^3.2.6:
22912304
dependencies:
22922305
ms "^2.1.1"
22932306

2294-
debuglog@*, debuglog@^1.0.1:
2307+
debuglog@^1.0.1:
22952308
version "1.0.1"
22962309
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
22972310
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -3843,7 +3856,7 @@ import-lazy@^2.1.0:
38433856
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
38443857
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=
38453858

3846-
imurmurhash@*, imurmurhash@^0.1.4:
3859+
imurmurhash@^0.1.4:
38473860
version "0.1.4"
38483861
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
38493862
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -4585,7 +4598,7 @@ libnpm@^3.0.0:
45854598
read-package-json "^2.0.13"
45864599
stringify-package "^1.0.0"
45874600

4588-
libnpmaccess@*, libnpmaccess@^3.0.1:
4601+
libnpmaccess@^3.0.1:
45894602
version "3.0.1"
45904603
resolved "https://registry.yarnpkg.com/libnpmaccess/-/libnpmaccess-3.0.1.tgz#5b3a9de621f293d425191aa2e779102f84167fa8"
45914604
integrity sha512-RlZ7PNarCBt+XbnP7R6PoVgOq9t+kou5rvhaInoNibhPO7eMlRfS0B8yjatgn2yaHIwWNyoJDolC/6Lc5L/IQA==
@@ -4614,7 +4627,7 @@ libnpmhook@^5.0.2:
46144627
get-stream "^4.0.0"
46154628
npm-registry-fetch "^3.8.0"
46164629

4617-
libnpmorg@*, libnpmorg@^1.0.0:
4630+
libnpmorg@^1.0.0:
46184631
version "1.0.0"
46194632
resolved "https://registry.yarnpkg.com/libnpmorg/-/libnpmorg-1.0.0.tgz#979b868c48ba28c5820e3bb9d9e73c883c16a232"
46204633
integrity sha512-o+4eVJBoDGMgRwh2lJY0a8pRV2c/tQM/SxlqXezjcAg26Qe9jigYVs+Xk0vvlYDWCDhP0g74J8UwWeAgsB7gGw==
@@ -4648,7 +4661,7 @@ libnpmsearch@^2.0.0, libnpmsearch@^2.0.1:
46484661
get-stream "^4.0.0"
46494662
npm-registry-fetch "^3.8.0"
46504663

4651-
libnpmteam@*, libnpmteam@^1.0.1:
4664+
libnpmteam@^1.0.1:
46524665
version "1.0.1"
46534666
resolved "https://registry.yarnpkg.com/libnpmteam/-/libnpmteam-1.0.1.tgz#ff704b1b6c06ea674b3b1101ac3e305f5114f213"
46544667
integrity sha512-gDdrflKFCX7TNwOMX1snWojCoDE5LoRWcfOC0C/fqF7mBq8Uz9zWAX4B2RllYETNO7pBupBaSyBDkTAC15cAMg==
@@ -4742,11 +4755,6 @@ lockfile@^1.0.4:
47424755
dependencies:
47434756
signal-exit "^3.0.2"
47444757

4745-
lodash._baseindexof@*:
4746-
version "3.1.0"
4747-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
4748-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
4749-
47504758
lodash._baseuniq@~4.6.0:
47514759
version "4.6.0"
47524760
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -4755,33 +4763,11 @@ lodash._baseuniq@~4.6.0:
47554763
lodash._createset "~4.0.0"
47564764
lodash._root "~3.0.0"
47574765

4758-
lodash._bindcallback@*:
4759-
version "3.0.1"
4760-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
4761-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
4762-
4763-
lodash._cacheindexof@*:
4764-
version "3.0.2"
4765-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
4766-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
4767-
4768-
lodash._createcache@*:
4769-
version "3.1.2"
4770-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
4771-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
4772-
dependencies:
4773-
lodash._getnative "^3.0.0"
4774-
47754766
lodash._createset@~4.0.0:
47764767
version "4.0.3"
47774768
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
47784769
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
47794770

4780-
lodash._getnative@*, lodash._getnative@^3.0.0:
4781-
version "3.9.1"
4782-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
4783-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
4784-
47854771
lodash._root@~3.0.0:
47864772
version "3.0.1"
47874773
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
@@ -4847,11 +4833,6 @@ lodash.pickby@^4.6.0:
48474833
resolved "https://registry.yarnpkg.com/lodash.pickby/-/lodash.pickby-4.6.0.tgz#7dea21d8c18d7703a27c704c15d3b84a67e33aff"
48484834
integrity sha1-feoh2MGNdwOifHBMFdO4SmfjOv8=
48494835

4850-
lodash.restparam@*:
4851-
version "3.6.1"
4852-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
4853-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
4854-
48554836
lodash.set@^4.3.2:
48564837
version "4.3.2"
48574838
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
@@ -5514,7 +5495,7 @@ npm-pick-manifest@^2.2.3:
55145495
npm-package-arg "^6.0.0"
55155496
semver "^5.4.1"
55165497

5517-
npm-profile@*, npm-profile@^4.0.1:
5498+
npm-profile@^4.0.1:
55185499
version "4.0.1"
55195500
resolved "https://registry.yarnpkg.com/npm-profile/-/npm-profile-4.0.1.tgz#d350f7a5e6b60691c7168fbb8392c3603583f5aa"
55205501
integrity sha512-NQ1I/1Q7YRtHZXkcuU1/IyHeLy6pd+ScKg4+DQHdfsm769TGq6HPrkbuNJVJS4zwE+0mvvmeULzQdWn2L2EsVA==
@@ -6170,7 +6151,7 @@ pathval@^1.1.0:
61706151
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
61716152
integrity sha1-uULm1L3mUwBe9rcTYd74cn0GReA=
61726153

6173-
performance-node@^0.2.0:
6154+
performance-node@^0, performance-node@^0.2.0:
61746155
version "0.2.0"
61756156
resolved "https://registry.yarnpkg.com/performance-node/-/performance-node-0.2.0.tgz#03abf74ac0c455f333be505165dacab9110ef5b3"
61766157
integrity sha1-A6v3SsDEVfMzvlBRZdrKuREO9bM=
@@ -6981,6 +6962,11 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.2:
69816962
resolved "https://registry.yarnpkg.com/semver/-/semver-6.2.0.tgz#4d813d9590aaf8a9192693d6c85b9344de5901db"
69826963
integrity sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A==
69836964

6965+
semver@^6.3.0:
6966+
version "6.3.0"
6967+
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
6968+
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
6969+
69846970
semver@~5.3.0:
69856971
version "5.3.0"
69866972
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"

0 commit comments

Comments
 (0)