-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(gapic): add OpenTelemetry T3 client method span wrapping in gapic_v1.method (D) #18274
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
Open
chalmerlowe
wants to merge
29
commits into
feat/otel-tracing-transport-logic
from
feat/otel-tracing-t3-method-spans
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bf90830
feat(gapic): add OpenTelemetry T3 client method span wrapping
chalmerlowe b654d82
chore(gapic): remove _is_tracing_supported dummy class variable
chalmerlowe 3017e38
test(gapic): achieve 100% branch and statement coverage for OTel T3 m…
chalmerlowe 46fd364
refactor(gapic): extract _extract_rpc_identity and add method_name to…
chalmerlowe afef29e
refactor(gapic): support custom tracer_provider and cache tracer in _…
chalmerlowe 017a13b
feat(gapic): gate T3 method spans for HTTP transports and streaming RPCs
chalmerlowe 5437b43
refactor(gapic): use span_context_manager to guarantee single wrapped…
chalmerlowe 39c3dfd
test(gapic): update and expand unit tests for T3 method tracing refac…
chalmerlowe c9713a5
refactor(gapic): simplify wrap_method with client_options and method_…
chalmerlowe 57a87ac
feat(gapic): add explicit trace parameter to wrap_method
chalmerlowe 4b7ff50
refactor(gapic): replace trace with is_streaming in wrap_method
chalmerlowe b59e8c1
Removes line from docstring
chalmerlowe da10b4c
Update docstring re: streaming methods.
chalmerlowe 41d98c5
Update comment re: streaming
chalmerlowe fb76ea6
refactor(gapic): refine exception handling for tracer resolution and …
chalmerlowe 5d103cc
refactor(gapic): document graceful bypass of otel errors and remove p…
chalmerlowe 8cecf5a
test(gapic): add rigorous assertions to negative and fallback tracing…
chalmerlowe fa25f3e
test(gapic): refactor and deduplicate otel unit tests using fixture a…
chalmerlowe f833167
feat(gapic): add gcp.client.* attributes to T3 method span
chalmerlowe 59941bd
test(gapic): use reusable constants for expected span attributes in o…
chalmerlowe 9a68e84
test(gapic): consolidate async otel tests into test_method_async and …
chalmerlowe 60e5416
ci: temporarily exclude sqlalchemy-bigquery from package shards
chalmerlowe 83e6aee
refactor(gapic): remove deferred gcp.client.* attributes
chalmerlowe f946661
feat(gapic): update rpc attributes to modern semconv
chalmerlowe 6917251
feat(gapic): record rpc.response.status_code on method spans
chalmerlowe 5229c8b
feat(gapic): extract and record gcp.errors attributes on method spans
chalmerlowe 0e4c0b1
fix(gapic): resolve _error_info and exception properties in _extract_…
chalmerlowe 7bd8db3
fix(gapic): resolve mypy union-attr errors in status code and error a…
chalmerlowe 9219e2d
test(gapic): achieve 100% test coverage for status code and error ext…
chalmerlowe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Note
The change to
get_package_shardsis only a temp work-around to deal with the fact that sqlalchemy-bigquery was causing failing tests in this PR that are unrelated to the PR changes.This will all be reverted prior to merge once we have a long-term solution in place for sqlalchemy-bigquery.