mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
feat(diagnostics): harden ingestion and delivery
This commit is contained in:
57
services/diagnostics-api/wrangler.jsonc
Normal file
57
services/diagnostics-api/wrangler.jsonc
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||
"name": "vnidrop-diagnostics",
|
||||
"main": "src/index.ts",
|
||||
"compatibility_date": "2026-07-14",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"upload_source_maps": true,
|
||||
"observability": {
|
||||
"enabled": true,
|
||||
"head_sampling_rate": 0.1,
|
||||
},
|
||||
"triggers": {
|
||||
"crons": ["17 * * * *"],
|
||||
},
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
"database_name": "vnidrop-diagnostics",
|
||||
// Replace this placeholder with the ID returned by `wrangler d1 create`.
|
||||
"database_id": "00000000-0000-0000-0000-000000000000",
|
||||
"migrations_dir": "migrations",
|
||||
},
|
||||
],
|
||||
"r2_buckets": [
|
||||
{
|
||||
"binding": "BLOBS",
|
||||
"bucket_name": "vnidrop-diagnostics",
|
||||
},
|
||||
],
|
||||
"ratelimits": [
|
||||
{
|
||||
"name": "INSTALL_RATE_LIMITER",
|
||||
"namespace_id": "1001",
|
||||
"simple": {
|
||||
"limit": 30,
|
||||
"period": 60,
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "SOURCE_RATE_LIMITER",
|
||||
"namespace_id": "1002",
|
||||
"simple": {
|
||||
"limit": 120,
|
||||
"period": 60,
|
||||
},
|
||||
},
|
||||
],
|
||||
// Optional: bind Analytics Engine as `AE` when event volume justifies it.
|
||||
// "analytics_engine_datasets": [
|
||||
// { "binding": "AE", "dataset": "vnidrop_events" },
|
||||
// ],
|
||||
"vars": {
|
||||
"MAX_BODY_BYTES": "262144",
|
||||
"MAX_EVENTS_PER_BATCH": "50",
|
||||
"RETENTION_DAYS": "90",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user