Skip to content

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation#1131

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_897370846
Apr 15, 2026
Merged

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation#1131
copybara-service[bot] merged 1 commit intomainfrom
test_897370846

Conversation

@copybara-service
Copy link
Copy Markdown

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation

This change introduces per-invocation instances of BatchProcessor and TraceManager, managed by ConcurrentHashMaps keyed by invocation ID. This ensures that analytics and tracing data are isolated for each concurrent invocation. BatchProcessors and TraceManagers are created lazily on the first event for a given invocation and are cleaned up when the invocation completes.

@copybara-service copybara-service bot force-pushed the test_897370846 branch 7 times, most recently from 2b4f51d to ef272dc Compare April 15, 2026 17:20
This change introduces per-invocation instances of BatchProcessor and TraceManager, managed by ConcurrentHashMaps keyed by invocation ID. This ensures that analytics and tracing data are isolated for each concurrent invocation. BatchProcessors and TraceManagers are created lazily on the first event for a given invocation and are cleaned up when the invocation completes.

PiperOrigin-RevId: 900233194
@copybara-service copybara-service bot merged commit 629c390 into main Apr 15, 2026
@copybara-service copybara-service bot deleted the test_897370846 branch April 15, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant