GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: Add Custom OpenTelemetry Exporter in for Service Metrics by lszinv · Pull Request #1273 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@lszinv

@lszinv lszinv commented Dec 17, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This change adds an implementation for an OpenTelemetry exporter to send the following service metrics that are already present in the Go and Java clients:

  • operation_latencies
  • operation_count
  • attempt_latencies
  • attempt_count
  • gfe_latency
  • gfe_missing_header_count

Files added to a metrics folder in /google/cloud/spanner_v1/metrics

  • metrics_exporter.py - The definition for the exporter
  • constants.py - Constant values such as metric and label names to be used by both the exporter and eventual implementing code.

Based on regular client Google Cloud Monitoring exporter found here

note: CLA not signed yet, as there's a settings issue. Will have it submitted soon.
note2: Linter runs with no issues, currently working on generating code coverage report to verify full coverage.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lszinv
lszinv requested review from a team December 17, 2024 03:13
@google-cla

google-cla Bot commented Dec 17, 2024

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@blunderbuss-gcf blunderbuss-gcf Bot assigned harshachinta Dec 17, 2024
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/python-spanner API. labels Dec 17, 2024
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@rahul2393 rahul2393 assigned rahul2393 and unassigned harshachinta Dec 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@lszinv
chore: Add Custom OpenTelemetry Exporter in for Service Metrics
2e0acea
rahul2393
rahul2393 suggested changes Jan 2, 2025
View reviewed changes
Comment thread google/cloud/spanner_v1/metrics/constants.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_v1/metrics/metrics_exporter.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

rahul2393 and others added 2 commits January 2, 2025 11:51
@rahul2393
Merge branch 'main' into lsz/GSO-11/Exporter
4e6b15a
@lszinv
Updated copyright dates to 2025
98e576a
@lszinv
lszinv requested a review from rahul2393 January 3, 2025 18:01
rahul2393
rahul2393 approved these changes Jan 3, 2025
View reviewed changes
rahul2393 and others added 2 commits January 4, 2025 00:04
@rahul2393
Merge branch 'main' into lsz/GSO-11/Exporter
8db4159
@lszinv
Merge branch 'main' into lsz/GSO-11/Exporter
0ad036f
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 8, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 8, 2025
@rahul2393
rahul2393 merged commit 04a11a6 into googleapis:main Jan 8, 2025
aakashanandg pushed a commit to aakashanandg/python-spanner that referenced this pull request Jan 8, 2025
@lszinv @rahul2393 @aakashanandg
chore: Add Custom OpenTelemetry Exporter in for Service Metrics (goog…
fa8ae71
…leapis#1273)

* chore: Add Custom OpenTelemetry Exporter in for Service Metrics

* Updated copyright dates to 2025

---------

Co-authored-by: rahul2393 <[email protected]>
olavloite added a commit that referenced this pull request Jan 9, 2025
@aakashanandg @olavloite
@gcf-owl-bot @lszinv @rahul2393
fix: update retry strategy for mutation calls to handle aborted trans…
0887eb4
…actions (#1279)

* fix: update retry strategy for mutation calls to handle aborted transactions

* test: add mock server test for aborted batch

* chore(python): Update the python version in docs presubmit to use 3.10 (#1281)

Source-Link: googleapis/synthtool@de3def6
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:a1c5112b81d645f5bbc4d4bbc99d7dcb5089a52216c0e3fb1203a0eeabadd7d5

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix:Refactoring existing retry logic for aborted transactions and clean up redundant code

* fix: fixed linting errors

* feat: support GRAPH and pipe syntax in dbapi (#1285)

Recognize GRAPH and pipe syntax queries as valid queries
in dbapi.

* chore: Add Custom OpenTelemetry Exporter in for Service Metrics (#1273)

* chore: Add Custom OpenTelemetry Exporter in for Service Metrics

* Updated copyright dates to 2025

---------

Co-authored-by: rahul2393 <[email protected]>

* fix: removing retry logic for RST_STREAM errors from _retry_on_aborted_exception handler

---------

Co-authored-by: Knut Olav Løite <[email protected]>
Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Lester Szeto <[email protected]>
Co-authored-by: rahul2393 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@rahul2393 rahul2393 rahul2393 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@rahul2393 rahul2393

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@lszinv @rahul2393 @yoshi-kokoro @harshachinta
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.