Skip to content

Commit f737735

Browse files
committed
yarn lint fix
1 parent c093805 commit f737735

File tree

2 files changed

+9
-5
lines changed
  • dev-packages/node-integration-tests/src
  • packages/node/src/integrations/tracing

2 files changed

+9
-5
lines changed

dev-packages/node-integration-tests/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ export function startExpressServerAndSendPortToRunner(app: Express, port: number
4141
* @param app Fastify app
4242
* @param port Port to start the app on.
4343
*/
44-
export function startFastifyServerAndSendPortToRunner(app: FastifyInstance, port: number | undefined = undefined): void {
45-
app.listen({port: port || 0}, (_err, address) => {
46-
44+
export function startFastifyServerAndSendPortToRunner(
45+
app: FastifyInstance,
46+
port: number | undefined = undefined,
47+
): void {
48+
app.listen({ port: port || 0 }, (_err, address) => {
4749
// Fastify's address (string): http://[::1]:59752, etc.
4850
const addressPort = address.slice(address.lastIndexOf(':') + 1);
49-
51+
5052
// eslint-disable-next-line no-console
5153
console.log(`{"port":${port || addressPort}}`);
5254
});

packages/node/src/integrations/tracing/fastify.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export function setupFastifyErrorHandler(fastify: Fastify): void {
8080

8181
// Taken from Otel Fastify instrumentation:
8282
// https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-fastify/src/instrumentation.ts#L94-L96
83-
const routeName = reqWithRouteInfo.routeOptions ? reqWithRouteInfo.routeOptions.url : reqWithRouteInfo.routerPath;
83+
const routeName = reqWithRouteInfo.routeOptions
84+
? reqWithRouteInfo.routeOptions.url
85+
: reqWithRouteInfo.routerPath;
8486

8587
const method = reqWithRouteInfo.routeOptions?.method || 'GET';
8688

0 commit comments

Comments
 (0)