GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(api_core): add method-level terminal error logging in _GapicCallable by chalmerlowe · Pull Request #19012 · googleapis/google-cloud-python Conversation
Contributor
SummaryAdds Tier 3 (method-level) terminal error and cancellation logging in
Bug: b/479827845 Verification
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Code ReviewThis pull request introduces structured error and cancellation logging for GAPIC method calls in both synchronous and asynchronous contexts. It adds
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+333
to
+364
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If try: error_logging_enabled = client_logging.is_error_logging_enabled( self._client_options ) if span is None and not error_logging_enabled: return error_attrs = _observability.build_telemetry_error_attributes( exc, include_exception=error_logging_enabled ) status_code = error_attrs.get("rpc.response.status_code", "") is_cancelled = status_code in ("CANCELLED", "CancelledError") or isinstance( exc, asyncio.CancelledError ) if is_cancelled: error_attrs["rpc.response.status_code"] = "CANCELLED" # Enrich active Tier 3 method span if span is not None: for k, v in error_attrs.items(): if not k.startswith("exception."): span.set_attribute(k, v) # Emit L2/L3 Terminal Method Error Log if error_logging_enabled: self._emit_method_error_log( exc, span, error_attrs, is_cancelled, logger=logger ) except Exception as e: logger.warning("Failed to report method error: %s", e) References
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Comment on lines
+287
to
+294
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mutating the
Suggested change
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in ca5d711 — updated
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
chalmerlowe
force-pushed
the
feat/otel-logging-m3-s5-method-error-logging
branch
from
6389b5c to
ca5d711
Compare
chalmerlowe
force-pushed
the
feat/otel-logging-m3-s5-method-error-logging
branch
from
ca5d711 to
e489dd7
Compare
chalmerlowe
force-pushed
the
feat/otel-logging-m3-s4-http-attempt-logging
branch
from
5aea0b9 to
a82e931
Compare
This branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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 01402503 — 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. |