Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

[DRAFT] feat: client side metrics handlers - #1189

Closed
daniel-sanche wants to merge 41 commits into
csm_2_instrumentationfrom
csm_3_handlers
Closed

[DRAFT] feat: client side metrics handlers#1189
daniel-sanche wants to merge 41 commits into
csm_2_instrumentationfrom
csm_3_handlers

Conversation

@daniel-sanche

@daniel-sanchedaniel-sanche commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

This PR builds off of #1187 to add handlers to the client-side metrics system, which can subscribe to the metrics stream, and export the results into different collection systems

TODO:


We add three handlers to the system:

  • GoogleCloudMetricsHandler: sends metrics to a private OpenTelemetry meter, and then periodically exports them to GCP. Built on top of OpenTelemetryMetricsHandler
  • OpenTelemetryMetricsHandler: sends metrics to the root MeterProvider, so the user can access the exported metrics for their own systems. This will be off by default, but can be added alongside GoogleCloudMetricsHandler if needed
  • _StdoutMetricsHandler: can print metrics to stdout as they arrive. Mostly for debugging (we can remove this if you don't think it's useful)

@product-auto-labelproduct-auto-labelBot added size: l Pull request size is large. api: bigtable Issues related to the googleapis/python-bigtable API. labels Aug 11, 2025
@product-auto-labelproduct-auto-labelBot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Oct 1, 2025
@daniel-sanche
daniel-sanche changed the base branch from csm_1_data_model to csm_2_instrumentationOctober 1, 2025 04:21
@product-auto-labelproduct-auto-labelBot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Oct 2, 2025
@product-auto-labelproduct-auto-labelBot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Oct 3, 2025
@parthea

Copy link
Copy Markdown
Contributor

Closing stale PRs to prepare for the code migration to google-cloud-python

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtableIssues related to the googleapis/python-bigtable API.size: xlPull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@daniel-sanche@parthea