Cline rules
.clinerules/metrics.mdCline rules
Quality
54/100
Scores the file, not the repository.Length
284 words
5 headings · 2 code blocksRepository
0
— · pushed 0 days agoLast changed
2 days ago
First indexed 2 days ago.1# Metrics23## Brief overview45The proxy collects per-request metrics using Cloudflare Analytics Engine. Metrics collection is gated by the `LOG_METRICS` environment variable.67## Enabling metrics89Set `LOG_METRICS = "true"` in `wrangler.toml` or via environment variable. When disabled (default), no metrics are collected or written.1011```toml12[vars]13LOG_METRICS = "true"14```1516## Collected metrics1718| Metric | Type | Description |19|--------|------|-------------|20| `requestId` | string | Unique request identifier |21| `model` | string | Resolved model ID |22| `provider` | string | Provider name (nvidia, openrouter, etc.) |23| `isStream` | boolean | Whether the request was streaming |24| `upstreamLatencyMs` | number | Time to first byte from upstream |25| `totalProxyMs` | number | Total time spent in the proxy |26| `ttftMs` | number | Time to first token (streaming only) |27| `generationTimeMs` | number | Generation time in ms (streaming only) |28| `tokensPerSecond` | number | Estimated tokens per second |29| `promptTokens` | number | Prompt tokens (non-streaming only) |30| `completionTokens` | number | Completion tokens (non-streaming only) |31| `totalTokens` | number | Total tokens (non-streaming only) |32| `finishReason` | string | Finish reason from upstream |33| `upstreamStatus` | number | HTTP status from upstream |34| `errorType` | string | Error type if the request failed |35| `errorMessage` | string | Error message if the request failed |3637## Implementation3839Metrics are collected via the `MetricsCollector` class in `metrics/metrics-collector.ts`. The `writeMetrics()` method checks `LOG_METRICS === 'true'` before writing to Analytics Engine.4041```typescript42// metrics/metrics-collector.ts43private writeMetrics(metrics: RequestMetrics): void {44 if (this.env.LOG_METRICS !== 'true') {45 return46 }4748 logger.info('[METRICS]', JSON.stringify(metrics))4950 this.env.ANALYTICS.writeDataPoint({51 // ... Analytics Engine data point52 })53}54```55
Also in sosan/proxy-llms
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| sosan/proxy-llms.clinerules/development-workflow.md · 0 | Cline rules | setuptestarchagent-behaviour | 78/100 | 2 days ago | |
| sosan/proxy-llms.clinerules/project-overview.md · 0 | Cline rules | testarch | 52/100 | 2 days ago | |
| sosan/proxy-llms.clinerules/routing-pattern.md · 0 | Cline rules | stylearchdo-not | 65/100 | 2 days ago | |
| sosan/proxy-llms.clinerules/security.md · 0 | Cline rules | setupstylearchsecurity+1 | 80/100 | 2 days ago | |
| sosan/proxy-llms.clinerules/typescript.md · 0 | Cline rules | stylearchtypesdo-not | 69/100 | 2 days ago | |
| sosan/proxy-llmsCLAUDE.md · 0 | CLAUDE.md | setupteststylesecurity+3 | 81/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
