Skip to content

refactor: simplify options, instrumentation for multiplexing#7257

Merged
gcf-merge-on-green[bot] merged 3 commits into
googleapis:mainfrom
shollyman:pooltime
Jan 18, 2023
Merged

refactor: simplify options, instrumentation for multiplexing#7257
gcf-merge-on-green[bot] merged 3 commits into
googleapis:mainfrom
shollyman:pooltime

Conversation

@shollyman

@shollyman shollyman commented Jan 13, 2023

Copy link
Copy Markdown
Contributor

This PR consolidates where in managedwriter that options apply by moving the destinationTable inside of streamSettings.

This PR also make changes to how instrumentation works. Currently, we retain a long-lived context on the the ManagedStream and that's used for both connection management and to attach tag context to instrumentation reporting (e.g. to tag metrics with the appropriate keys). With this change, connection-oriented metrics no longer tag with the writer tags (stream ID, data origin). We also remove the stream's keys from the default views the package exposes for these metrics.

When we cut over to connections and pools, the context retained on the ManagedStream will only used for metrics tagging, and thus will come from the parent context setup elsewhere (namely the pool context).

Towards: #7103

@shollyman shollyman requested review from a team and prash-mi January 13, 2023 22:53
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Jan 13, 2023
@shollyman shollyman requested review from alvarowolfx and removed request for prash-mi January 18, 2023 01:24
Comment thread bigquery/storage/managedwriter/instrumentation.go Outdated
Comment thread bigquery/storage/managedwriter/integration_test.go Outdated
@shollyman shollyman added the automerge Merge the pull request once unit tests and other checks pass. label Jan 18, 2023
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 9018b83 into googleapis:main Jan 18, 2023
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants