From 7c943f96adf24d2a2969a81d8df41f43f2882c14 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 9 Feb 2022 09:48:12 +0200 Subject: Add new relic agent --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/index.ts b/src/index.ts index af61d0f..d1abded 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +import "newrelic" import { App } from "@tinyhttp/app" import { logger } from "@tinyhttp/logger" import { json } from "milliparsec" @@ -42,7 +43,7 @@ app } const apiTimeHandle = hrtime() - const { name: sourceFile } = tmp.fileSync() as { name: string } + const { name: sourceFile } = tmp.fileSync(undefined) as { name: string } fs.writeFileSync(sourceFile, body.source) const executionTimeHandle = hrtime() const result = await interpretFile(sourceFile) -- cgit v1.3