Skip to content

feat(redis): Add cache logic for redis-4 #12429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 11, 2024
Merged

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jun 10, 2024

Follow-up as cache logic for ioredis was already added.

return createClient().connect();
}

let client;
Copy link
Member

Choose a reason for hiding this comment

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

l: Can we rename this (and the method below) to e.g. redisClient? Can be a bit confusing otherwise as we also have a sentry client :)


const spanDescription = safeKey.join(', ');

span.updateName(spanDescription.length > 1024 ? `${spanDescription.substring(0, 1024)}...` : spanDescription);
Copy link
Member

Choose a reason for hiding this comment

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

BTW, I just remembered we have a truncate method in utils, we should probably use this here!

@s1gr1d s1gr1d force-pushed the sig/add-redis-4-integration branch from 8f338e4 to 38ef208 Compare June 10, 2024 09:29
@@ -17,6 +20,7 @@ import {
getCacheOperation,
shouldConsiderForCache,
} from '../../utils/redisCache';
import { truncate } from '@sentry/utils/src';
Copy link
Member

Choose a reason for hiding this comment

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

this import is not correct, should not have the /src part (this probably comes from the editor...)

Copy link
Contributor

github-actions bot commented Jun 10, 2024

size-limit report 📦

Path Size
@sentry/browser 22 KB (0%)
@sentry/browser (incl. Tracing) 33.19 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.92 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.24 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.99 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.1 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 86.94 KB (+0.01% 🔺)
@sentry/browser (incl. metrics) 26.19 KB (0%)
@sentry/browser (incl. Feedback) 38.17 KB (0%)
@sentry/browser (incl. sendFeedback) 26.59 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.15 KB (0%)
@sentry/react 24.77 KB (0%)
@sentry/react (incl. Tracing) 36.24 KB (0%)
@sentry/vue 26.01 KB (0%)
@sentry/vue (incl. Tracing) 35.04 KB (0%)
@sentry/svelte 22.14 KB (0%)
CDN Bundle 23.36 KB (0%)
CDN Bundle (incl. Tracing) 34.87 KB (0%)
CDN Bundle (incl. Tracing, Replay) 68.98 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.11 KB (+0.01% 🔺)
CDN Bundle - uncompressed 68.63 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.22 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.66 KB (+0.02% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.13 KB (+0.01% 🔺)
@sentry/nextjs (client) 35.59 KB (0%)
@sentry/sveltekit (client) 33.83 KB (0%)
@sentry/node 131.38 KB (+1.22% 🔺)
@sentry/node - without tracing 92.55 KB (0%)
@sentry/aws-serverless 117.62 KB (0%)

@s1gr1d s1gr1d merged commit ce6fbcd into develop Jun 11, 2024
110 checks passed
@s1gr1d s1gr1d deleted the sig/add-redis-4-integration branch June 11, 2024 06:57
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.

2 participants