Skip to content

feat(deno): add lruMemoizer integration - #22453

Merged
isaacs merged 1 commit into
isaacs/deno-orchestrion-integrations-genericpoolfrom
isaacs/deno-orchestrion-integrations-lrumemoizer
Jul 24, 2026
Merged

feat(deno): add lruMemoizer integration#22453
isaacs merged 1 commit into
isaacs/deno-orchestrion-integrations-genericpoolfrom
isaacs/deno-orchestrion-integrations-lrumemoizer

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 18:26
@isaacs
isaacs requested review from JPeer264 and andreiborza and removed request for a team July 21, 2026 18:26
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch 2 times, most recently from 5da649b to ad82a2a Compare July 21, 2026 19:36
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from ad82a2a to ba29b3a Compare July 21, 2026 19:49
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from ba29b3a to a2c00be Compare July 21, 2026 21:43
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from a2c00be to e758510 Compare July 22, 2026 00:51
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from e758510 to a100fe7 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
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from a100fe7 to 9d37f38 Compare July 22, 2026 22:02
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.79 kB - -
@sentry/browser - with treeshaking flags 26.23 kB - -
@sentry/browser (incl. Tracing) 46.31 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.06 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.12 kB - -
@sentry/browser (incl. Tracing, Replay) 85.59 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.23 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.29 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.97 kB - -
@sentry/browser (incl. Feedback) 44.96 kB - -
@sentry/browser (incl. sendFeedback) 32.59 kB - -
@sentry/browser (incl. FeedbackAsync) 37.64 kB - -
@sentry/browser (incl. Metrics) 28.88 kB - -
@sentry/browser (incl. Logs) 29.11 kB - -
@sentry/browser (incl. Metrics & Logs) 29.8 kB - -
@sentry/react 29.59 kB - -
@sentry/react (incl. Tracing) 48.6 kB - -
@sentry/vue 33.22 kB - -
@sentry/vue (incl. Tracing) 48.28 kB - -
@sentry/svelte 27.81 kB - -
CDN Bundle 30.11 kB - -
CDN Bundle (incl. Tracing) 48.14 kB - -
CDN Bundle (incl. Logs, Metrics) 31.69 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.47 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.95 kB - -
CDN Bundle (incl. Tracing, Replay) 85.72 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.49 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.78 kB - -
CDN Bundle - uncompressed 89.77 kB - -
CDN Bundle (incl. Tracing) - uncompressed 144.84 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.48 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 148.82 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.24 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.08 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.04 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 277.78 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 281.74 kB - -
@sentry/nextjs (client) 51.13 kB - -
@sentry/sveltekit (client) 46.75 kB - -
@sentry/core/server 79.92 kB - -
@sentry/core/browser 51.9 kB - -
@sentry/node 124.4 kB - -
@sentry/node (incl. diagnostics channel injection) 168.41 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 74.66 kB +0.01% +1 B 🔺
@sentry/aws-serverless 84.13 kB - -
@sentry/cloudflare (withSentry) - minified 196.61 kB - -
@sentry/cloudflare (withSentry) 482.97 kB - -

View base workflow run

@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from 9d37f38 to cee6ad4 Compare July 23, 2026 14:29
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from cee6ad4 to 14acde5 Compare July 23, 2026 18:10
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch 2 times, most recently from 1414310 to 62951af Compare July 23, 2026 21:19
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from 62951af to f521481 Compare July 23, 2026 22:45
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-lrumemoizer branch from f521481 to 021f09a Compare July 23, 2026 22:47
Comment on lines +65 to +70
Deno.test('lru-memoizer 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('LruMemoizer'), `LruMemoizer 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 Deno integration test for LruMemoizer will fail on Deno versions older than 2.8.0 because it lacks a version guard before asserting the integration is present.
Severity: LOW

Suggested Fix

Add a version check at the beginning of the test to skip execution on Deno versions older than 2.8.0. Use the existing gte() version helper function, similar to the pattern found in packages/deno/test/deno-http.test.ts, to ensure the test only runs in compatible environments.

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-lru-memoizer/test.ts#L65-L70

Potential issue: The integration test for the LruMemoizer unconditionally asserts that
the `LruMemoizer` integration is included in the default integrations. However, the
production code only includes this integration on Deno versions 2.8.0 and newer, guarded
by the `MODULE_REGISTER_HOOKS_SUPPORTED` flag. Although the test title includes "(Deno
2.8.0+)", there is no corresponding version check in the test's implementation. This
will cause the test to fail if run on an older Deno version, for instance, if the CI
configuration is updated to test against a matrix of Deno versions or if a developer
runs it locally.

Also affects:

  • packages/deno/src/sdk.ts:82~84

Did we get this right? 👍 / 👎 to inform future reviews.

@isaacs
isaacs merged commit b001079 into develop Jul 24, 2026
60 checks passed
@isaacs
isaacs deleted the isaacs/deno-orchestrion-integrations-lrumemoizer branch July 24, 2026 01:22
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.

3 participants