Skip to content

OpenTelemetry Protocol Support#1524

Draft
willfarrell wants to merge 20 commits intomainfrom
feature/otel
Draft

OpenTelemetry Protocol Support#1524
willfarrell wants to merge 20 commits intomainfrom
feature/otel

Conversation

@willfarrell
Copy link
Member

See #1520

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

Unused imports deepStrictEqual, strictEqual.
};

const openTelemetryProtocolMetricsMiddleware = (opts = {}) => {
const { namespace, captureColdStartMetric, captureOnErrorMetric } = {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable captureColdStartMetric.
@@ -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

Unused import strictEqual.
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

Unused import middy.
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

Unused import initMetrics.
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

Unused import StdoutExporter.
const hrTime = [1740000000, 500000000];
test.mock.method(process, "hrtime", () => hrTime);

const defaultContext = {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable defaultContext.
@@ -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

Unused import hrtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant