Skip to content

Commit

Permalink
Bump generator version (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Nov 20, 2024
1 parent cf109c1 commit f41db14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/generator-adapter/generators/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ module.exports = class extends Generator<{rootPath: string}> {
const pkgJson = {
devDependencies: {
'@types/jest': '27.5.2',
'@types/node': '16.18.115',
nock: '13.5.4',
typescript: '5.5.4',
'@types/node': '16.18.119',
nock: '13.5.5',
typescript: '5.6.3',
},
dependencies: {
'@chainlink/external-adapter-framework': this.props.frameworkVersion,
Expand Down
4 changes: 2 additions & 2 deletions src/metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export const buildMetricsMiddleware = (
metrics.get('httpRequestsTotal').labels(labels).inc()

// Record response time of request through entire EA
metrics.get('httpRequestDurationSeconds').observe(res.getResponseTime() / 1000)
censorLogs(() => logger.debug(`Response time for ${feedId}: ${res.getResponseTime()}ms`))
metrics.get('httpRequestDurationSeconds').observe(res.elapsedTime / 1000)
censorLogs(() => logger.debug(`Response time for ${feedId}: ${res.elapsedTime}ms`))

const requestSize = Buffer.byteLength(JSON.stringify(req.body))
metrics.get('requestPayloadSize').observe(requestSize)
Expand Down

0 comments on commit f41db14

Please sign in to comment.