()
| 334 | } |
| 335 | |
| 336 | function isBigQueryMetricsEnabled() { |
| 337 | // BigQuery metrics are enabled for: |
| 338 | // 1. API customers (excluding Claude.ai subscribers and Bedrock/Vertex) |
| 339 | // 2. Claude for Enterprise (C4E) users |
| 340 | // 3. Claude for Teams users |
| 341 | const subscriptionType = getSubscriptionType() |
| 342 | const isC4EOrTeamUser = |
| 343 | isClaudeAISubscriber() && |
| 344 | (subscriptionType === 'enterprise' || subscriptionType === 'team') |
| 345 | |
| 346 | return is1PApiCustomer() || isC4EOrTeamUser |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * Initialize beta tracing - a separate code path for detailed debugging. |
no test coverage detected