You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: make api method logging session-scoped (#2347)
Updates `log_adapter` to optionally store API method names in a
`Session` instance instead of the global list. This improves label
accuracy when running tests in parallel.
- Updates `Session` to initialize `_api_methods` list and lock.
- Updates `log_adapter.add_api_method` and `get_and_reset_api_methods`
to handle session-scoped logging.
- Updates `log_adapter.method_logger` and `property_logger` to identify
the session from arguments.
- Propagates `session` through `start_query_with_client` and its callers
to ensure labels are correctly associated with the session.
---
*PR created automatically by Jules for task
[6421369828766099756](https://jules.google.com/task/6421369828766099756)
started by @tswast*
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Tim Swena <[email protected]>
0 commit comments