Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify options, instrumentation for multiplexing #7257

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

shollyman
Copy link
Contributor

@shollyman shollyman commented Jan 13, 2023

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 a review from a team January 13, 2023 22:53
@shollyman shollyman requested a review from a team as a code owner 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
@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.

None yet

2 participants