diff --git a/src/server/adapters/context/contexts.ts b/src/server/adapters/context/contexts.ts index 02b4a68..dcfa70b 100644 --- a/src/server/adapters/context/contexts.ts +++ b/src/server/adapters/context/contexts.ts @@ -1,6 +1,6 @@ import { Context } from "./context"; -export interface LoggerContext { +export type LoggerContext = { correlationId: string; } diff --git a/src/server/adapters/logger/errorTracker.ts b/src/server/adapters/logger/errorTracker.ts index 7ef5f2f..33df251 100644 --- a/src/server/adapters/logger/errorTracker.ts +++ b/src/server/adapters/logger/errorTracker.ts @@ -64,7 +64,7 @@ const getSentry = ({ sentryDSN, environment, version }: SentryGetParams): ErrorT captureError: (error, { meta, context }): void => { withScope(scope => { if (meta) { - scope.setContext("Meta", meta); + scope.setContext("Meta", meta as Record); } if (context) {