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 — feat: add instrumentation to list methods by aravinsiva · Pull Request #239 · googleapis/python-bigquery

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

Conversation

@aravinsiva

@aravinsiva aravinsiva commented Aug 22, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

PR adds opentelemetry instrumentation to all methods that don't directly make api calls and instead use an HTTPIterator.,

Fixes ##221 🦕

Sorry, something went wrong.

Uh oh!

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

All reactions
aravinsiva and others added 30 commits August 1, 2020 17:41
@aravinsiva
testing first trace export
b13ad47
@aravinsiva
instrumention client.py
cacea7c
@aravinsiva
instrumenting job.py and adding documentation
63e9581
@aravinsiva
reconfiguring imports
719ed83
@aravinsiva
quick cleanup of unused variable
72f22b6
@aravinsiva
adding more attributes in module and limiting complexity of instrumen…
ff8171f
…tation
@aravinsiva
adding tests, nox and correct attribute additions in client & job
456b445
@aravinsiva
adding tests, nox and correct attribute additions in client & job (le…
f4aba6d
…ft out of last commit)
@aravinsiva
linting
e223657
@aravinsiva
reformatting noxfile.[y
78b8298
@aravinsiva
Merge branch 'master' into opentelemetry-tracing
88b1a57
@aravinsiva
Merge branch 'master' into opentelemetry-tracing
e0895c9
@aravinsiva
addressing suggested changes
95a35ad
@aravinsiva
Merge branch 'opentelemetry-tracing' of https://github.com/aravinsiva…
3bf4574
…/python-bigquery into opentelemetry-tracing
@aravinsiva
adding suggested changes
4dbb692
@aravinsiva
removing print statements
406f61a
@aravinsiva
setting same version across all OT [ackages and other reccommended ch…
c2b9add
…anges
@aravinsiva
suggested changes
d425909
@aravinsiva
fixing packages issue in nox and updating documentation
64ec5fd
@aravinsiva
fixing module install issue
73230dc
@aravinsiva
restructuring design for testing adding first layer of tests (some st…
ae04fc6
…ill failing)
@aravinsiva
adding reamining client tests and all job tests
ac56488
@aravinsiva
fixing linting issues
d4de926
@tswast
Merge branch 'master' into opentelemetry-tracing
2d8aeb3
@aravinsiva
fixing trace not defined issue
cd8e303
@aravinsiva
fixing lint issues
d8c601d
@aravinsiva
fixing documentation issues and python2 testing issue
2bcd106
@aravinsiva
linting and fixing coverage issues
f1de589
@tswast
Merge branch 'master' into opentelemetry-tracing
72a77d1
@aravinsiva
adding suggested changes
0c7b354
aravinsiva added 11 commits August 19, 2020 16:10
@aravinsiva
adding more tests for all job_ref parameters
59477ff
@aravinsiva
removing dependecny, ordering imports and other changes
0d15998
@aravinsiva
addressing Shawn concerns
d997175
@aravinsiva
adding test and suggested changes
61b5b85
@aravinsiva
adding opentelemetry to setup.py and other suggested changes
4d1dec1
@aravinsiva
adding reasoning for not adding to [all]
7704975
@aravinsiva
linting
839cd92
@aravinsiva
adding nested functions
55c322e
@aravinsiva
adding test
4f66ffb
@aravinsiva
adding Tim suggested changes
dd1e246
@aravinsiva
adding full tests
5b3a202
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 22, 2020
aravinsiva and others added 3 commits August 21, 2020 23:40
@aravinsiva
Merge branch 'opentelemetry-tracing' of https://github.com/aravinsiva…
9757812
…/python-bigquery into adding_telemetry_to_non_api_calls
@aravinsiva
Merge pull request #1 from aravinsiva/adding_telemetry_to_non_api_calls
b0ac6eb
Adding telemetry to non api calls
@aravinsiva
Merge branch 'opentelemetry-tracing' of https://github.com/aravinsiva…
c75f827
…/python-bigquery into adding_telemetry_to_non_api_calls
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Aug 22, 2020
aravinsiva added 2 commits August 23, 2020 23:04
@aravinsiva
Merge branch 'master' of https://github.com/aravinsiva/python-bigquery …
745775e
…into adding_telemetry_to_non_api_calls
@aravinsiva
linting and fixing missing test
9e087ff
sjbrunst
sjbrunst approved these changes Aug 24, 2020
View reviewed changes
Comment thread tests/unit/test_client.py
page = six.next(iterator.pages)

with mock.patch(
"google.cloud.bigquery.opentelemetry_tracing._get_final_span_attributes"

@sjbrunst sjbrunst Aug 24, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional comment: this is a really long string that is repeated many times in this file. It's probably a good idea to put it in a const string in your test client.

Since that would affect a bunch of other tests in this file, it would be best to do in a separate PR.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast tswast added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 24, 2020
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. labels Aug 24, 2020
@aravinsiva
Merge branch 'master' into adding_telemetry_to_non_api_calls
d858ef5
@tswast tswast added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 24, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 24, 2020
tswast
tswast approved these changes Aug 24, 2020
View reviewed changes
@tswast tswast changed the title feat: adding instrumentation to methods that don't directly call API feat: add instrumentation to list methods Aug 24, 2020
@tswast
tswast merged commit fa9f9ca into googleapis:master Aug 24, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Sep 22, 2020
@release-please
chore: release 1.28.0 (#238)
c75e9cd
🤖 I have created a release \*beep\* \*boop\* 
---
## [1.28.0](https://www.github.com/googleapis/python-bigquery/compare/v1.27.2...v1.28.0) (2020-09-22)


### Features

* add custom cell magic parser to handle complex `--params` values ([#213](https://www.github.com/googleapis/python-bigquery/issues/213)) ([dcfbac2](https://www.github.com/googleapis/python-bigquery/commit/dcfbac267fbf66d189b0cc7e76f4712122a74b7b))
* add instrumentation to list methods ([#239](https://www.github.com/googleapis/python-bigquery/issues/239)) ([fa9f9ca](https://www.github.com/googleapis/python-bigquery/commit/fa9f9ca491c3f9954287102c567ec483aa6151d4))
* add opentelemetry tracing ([#215](https://www.github.com/googleapis/python-bigquery/issues/215)) ([a04996c](https://www.github.com/googleapis/python-bigquery/commit/a04996c537e9d8847411fcbb1b05da5f175b339e))
* expose require_partition_filter for hive_partition ([#257](https://www.github.com/googleapis/python-bigquery/issues/257)) ([aa1613c](https://www.github.com/googleapis/python-bigquery/commit/aa1613c1bf48c7efb999cb8b8c422c80baf1950b))


### Bug Fixes

* fix dependency issue in fastavro ([#241](https://www.github.com/googleapis/python-bigquery/issues/241)) ([2874abf](https://www.github.com/googleapis/python-bigquery/commit/2874abf4827f1ea529519d4b138511d31f732a50))
* update minimum dependency versions ([#263](https://www.github.com/googleapis/python-bigquery/issues/263)) ([1be66ce](https://www.github.com/googleapis/python-bigquery/commit/1be66ce94a32b1f924bdda05d068c2977631af9e))
* validate job_config.source_format in load_table_from_dataframe ([#262](https://www.github.com/googleapis/python-bigquery/issues/262)) ([6160fee](https://www.github.com/googleapis/python-bigquery/commit/6160fee4b1a79b0ea9031cc18caf6322fe4c4084))


### Documentation

* recommend insert_rows_json to avoid call to tables.get ([#258](https://www.github.com/googleapis/python-bigquery/issues/258)) ([ae647eb](https://www.github.com/googleapis/python-bigquery/commit/ae647ebd68deff6e30ca2cffb5b7422c6de4940b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@release-please release-please Bot mentioned this pull request Jan 4, 2022
chore(main): release python-bigquery 1.27.1 #1097
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@tswast tswast tswast approved these changes
@sjbrunst sjbrunst sjbrunst approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

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

@aravinsiva @tswast @sjbrunst @yoshi-kokoro
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.