Commit ef272dc
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.
PiperOrigin-RevId: 8973708461 parent 1a3dd61 commit ef272dc
5 files changed
Lines changed: 420 additions & 150 deletions
File tree
- core/src
- main/java/com/google/adk/plugins/agentanalytics
- test/java/com/google/adk/plugins/agentanalytics
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
0 commit comments