Skip to content

feat(deno): add hapi integration - #22462

Merged
isaacs merged 1 commit into
developfrom
isaacs/deno-orchestrion-integrations-hapi
Jul 24, 2026
Merged

feat(deno): add hapi integration#22462
isaacs merged 1 commit into
developfrom
isaacs/deno-orchestrion-integrations-hapi

Conversation

@isaacs

@isaacs isaacs commented Jul 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@isaacs
isaacs requested a review from a team as a code owner July 21, 2026 19:40
@isaacs
isaacs requested review from JPeer264 and andreiborza and removed request for a team July 21, 2026 19:40
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from 6b79404 to 519f13a Compare July 21, 2026 19:49
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from 519f13a to 4298281 Compare July 21, 2026 21:43
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from 4298281 to 37ffb67 Compare July 22, 2026 00:51
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from 37ffb67 to 0460096 Compare July 22, 2026 14:42
@isaacs
isaacs requested review from a team as code owners July 22, 2026 14:42
@isaacs
isaacs requested review from chargome, msonnb and mydea and removed request for a team July 22, 2026 14:42
Comment thread dev-packages/deno-integration-tests/suites/orchestrion-hapi/test.ts
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch 2 times, most recently from 8767f9b to d3446ae Compare July 23, 2026 14:29
Comment thread dev-packages/deno-integration-tests/suites/orchestrion-hapi/test.ts
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from d3446ae to 8af9b45 Compare July 23, 2026 18:10
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch 2 times, most recently from 1499dd4 to 1500427 Compare July 23, 2026 21:19
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch 2 times, most recently from 3428b52 to f18c9dd Compare July 23, 2026 22:47
Base automatically changed from isaacs/deno-orchestrion-integrations-express to develop July 24, 2026 01:22
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from f18c9dd to ff453d1 Compare July 24, 2026 01:25
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-hapi branch from ff453d1 to 1cece51 Compare July 24, 2026 14:31
Comment on lines +57 to +62
Deno.test('hapi instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Hapi'), `Hapi should be in defaults, got ${names.join(', ')}`);
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The Hapi integration test will fail when run on Deno versions older than 2.8.0 because it doesn't conditionally check for the integration's presence.
Severity: LOW

Suggested Fix

Conditionally skip the test on Deno versions less than 2.8.0. This can be achieved by using the ignore property in Deno.test based on a version check, similar to how the integration itself is conditionally included.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: dev-packages/deno-integration-tests/suites/orchestrion-hapi/test.ts#L57-L62

Potential issue: The test for Hapi instrumentation in `orchestrion-hapi/test.ts` asserts
that the `Hapi` integration is included in the default integrations. However, the
integration is only added when the `MODULE_REGISTER_HOOKS_SUPPORTED` flag is true, which
requires Deno version 2.8.0 or greater. The test itself is not conditionally executed
based on the Deno version. Consequently, if the test suite is run on a Deno version
older than 2.8.0, the test will fail because it incorrectly expects the `Hapi`
integration to be present.

@isaacs
isaacs merged commit 56e5e6d into develop Jul 24, 2026
60 checks passed
@isaacs
isaacs deleted the isaacs/deno-orchestrion-integrations-hapi branch July 24, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants