Open dreamer2q opened 1 year ago
Sample Picture of Data View here, please take note of the key
!!!
hey, you need to opt into analytics:
new Ratelimit({
redis,
limiter: Ratelimit.fixedWindow(tokens, duration),
analytics: true // <-
});
hey, you need to opt into analytics:
new Ratelimit({ redis, limiter: Ratelimit.fixedWindow(tokens, duration), analytics: true // <- });
The analytics
default is true
, am I wrong?
It was true on accident, we have set it to false in the latest version, since we don't want to add any cost to our users by default what version are you on?
I will set analytics: true
and redeploy to see if working.
It was true on accident, we have set it to false in the latest version, since we don't want to add any cost to our users by default what version are you on?
package.json says "@upstash/ratelimit": "^0.4.2"
as well as yarn.lock
Thanks for your attention. Its working now~ closed.
Docs should follow the latest code as it suggests or whatever
It was true on accident, we have set it to false in the latest version, since we don't want to add any cost to our users by default what version are you on?
OMG I need to know how much cost it will increase? or I would consider altertives ...
The Github seems to experience an accident just now :(
it adds 1 command per limit invocation
it adds 1 command per limit invocation
So the usage is doubled if analytics enabled?
My Code as follows:
const limit = createRateLimit('search', 50, '1h'); // please note the key
/**
after that, deployed, and worked, but nothing in
Rate Limit Analytics
panel.I have checked the rawData, its working ~
It looks that the Panel not recoginized with what I set as an identifier~ Bad news.