Conversation
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
| @@ -0,0 +1,45 @@ | |||
| // Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. | |||
| // SPDX-License-Identifier: MIT | |||
| import { deepStrictEqual, strictEqual } from "node:assert/strict"; | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| }; | ||
|
|
||
| const openTelemetryProtocolMetricsMiddleware = (opts = {}) => { | ||
| const { namespace, captureColdStartMetric, captureOnErrorMetric } = { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| @@ -0,0 +1,100 @@ | |||
| // Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. | |||
| // SPDX-License-Identifier: MIT | |||
| import { deepStrictEqual, strictEqual } from "node:assert/strict"; | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| import { deepStrictEqual, strictEqual } from "node:assert/strict"; | ||
| import { test } from "node:test"; | ||
|
|
||
| import middy from "../core/index.js"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| import { test } from "node:test"; | ||
|
|
||
| import middy from "../core/index.js"; | ||
| import { initLogger, initMetrics } from "./index.js"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| import middy from "../core/index.js"; | ||
| import { initLogger, initMetrics } from "./index.js"; | ||
| import { MockExporter } from "./MockExporter.js"; | ||
| import { StdoutExporter } from "./StdoutExporter.js"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| const hrTime = [1740000000, 500000000]; | ||
| test.mock.method(process, "hrtime", () => hrTime); | ||
|
|
||
| const defaultContext = { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
| @@ -0,0 +1,57 @@ | |||
| // Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. | |||
| // SPDX-License-Identifier: MIT | |||
| import { hrtime, stderr, stdout } from "node:process"; | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
All sec headers will apply to all responses Signed-off-by: will Farrell <[email protected]>
Signed-off-by: will Farrell <[email protected]>
See #1520