-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathwrangler-template.toml
More file actions
47 lines (39 loc) · 1.57 KB
/
wrangler-template.toml
File metadata and controls
47 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name = "proxy"
main = "src/index.ts"
compatibility_date = "2025-08-15"
compatibility_flags = ["nodejs_compat"]
kv_namespaces = [
# Configure this id to map to the id returned from
# wrangler kv:namespace create ai-proxy
{ binding = "ai_proxy", id = "<YOUR_KV_ID>" },
]
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["PrometheusMetricAggregator"] # Array of new classes
[[migrations]]
tag = "v2" # Migration identifier. This should be unique for each migration entry
deleted_classes = ["PrometheusMetricAggregator"] # Array of deleted class names
[observability.logs]
enabled = true
head_sampling_rate = 0.2
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
[vars]
# You should not need to edit this
BRAINTRUST_APP_URL = "https://www.braintrust.dev"
METRICS_LICENSE_KEY="<YOUR_METRICS_LICENSE_KEY>"
BILLING_TELEMETRY_URL="https://api.braintrust.dev/billing/telemetry/ingest"
[env.staging.vars]
BRAINTRUST_APP_URL = "https://www.braintrust.dev"
METRICS_LICENSE_KEY="<YOUR_METRICS_LICENSE_KEY>"
BILLING_TELEMETRY_URL="https://api.braintrust.dev/billing/telemetry/ingest"
[env.staging]
kv_namespaces = [
# Configure this id to map to the id returned from
# wrangler kv:namespace create ai-proxy
{ binding = "ai_proxy", id = "<YOUR_KV_ID>" },
]
[env.staging.observability]
enabled = true
head_sampling_rate = 1.0 # Sample 100% of staging logs.