Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/gapic-generator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2286): Construct nox sessions with logging enabled.
GOOGLE_SDK_PYTHON_LOGGING_SCOPE: ${{ matrix.logging_scope }}
MATRIX_PYTHON: ${{ matrix.python }}
SHOWCASE_RAW_LOGS_OUTPUT_PATH: ${{ github.workspace }}/packages/gapic-generator/tests/system/raw_logs_output.json
run: |
cd packages/gapic-generator
nox -s ${{ matrix.target }}-${MATRIX_PYTHON}
Expand All @@ -149,6 +150,20 @@ jobs:
name: raw-spans-${{ matrix.target }}-${{ matrix.python }}${{ matrix.logging_scope && format('-{0}', matrix.logging_scope) || '' }}
path: packages/gapic-generator/tests/system/raw_spans_output.json
if-no-files-found: ignore
- name: Upload Raw Logs Artifact
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: raw-logs-${{ matrix.target }}-${{ matrix.python }}${{ matrix.logging_scope && format('-{0}', matrix.logging_scope) || '' }}
path: packages/gapic-generator/tests/system/raw_logs_output.json
if-no-files-found: ignore
- name: Upload Raw Logging Spans Artifact
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: raw-logging-spans-${{ matrix.target }}-${{ matrix.python }}${{ matrix.logging_scope && format('-{0}', matrix.logging_scope) || '' }}
path: packages/gapic-generator/tests/system/raw_logging_spans_output.json
if-no-files-found: ignore

showcase-canary:
needs: python_config
Expand Down Expand Up @@ -194,6 +209,7 @@ jobs:
env:
INSTALL_LOCAL_CORE: "true"
MATRIX_PYTHON: ${{ matrix.python }}
SHOWCASE_RAW_LOGS_OUTPUT_PATH: ${{ github.workspace }}/packages/gapic-generator/tests/system/raw_logs_output.json
run: |
cd packages/gapic-generator
nox -s ${{ matrix.target }}-${MATRIX_PYTHON}
Expand All @@ -204,6 +220,20 @@ jobs:
name: raw-spans-canary-${{ matrix.target }}-${{ matrix.python }}
path: packages/gapic-generator/tests/system/raw_spans_output.json
if-no-files-found: ignore
- name: Upload Raw Logs Artifact
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: raw-logs-canary-${{ matrix.target }}-${{ matrix.python }}
path: packages/gapic-generator/tests/system/raw_logs_output.json
if-no-files-found: ignore
- name: Upload Raw Logging Spans Artifact
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: raw-logging-spans-canary-${{ matrix.target }}-${{ matrix.python }}
path: packages/gapic-generator/tests/system/raw_logging_spans_output.json
if-no-files-found: ignore

showcase-mypy:
needs: python_config
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Feature ID,Feature Name,Tier,Attempt,Transport,Scenario,RPC Service,Logging Enabled,Tracing Enabled,Configured Logger Level,Tier Log Count,Total Log Count,Log Level,Logger Name,Message Prefix,Async Message Prefix,exc_info Present,rpc.system.name,rpc.response.status_code,rpc.method,url.full,httpRequest.requestMethod,httpRequest.requestUrl,httpRequest.status,error.type,Async error.type,gcp.errors.domain,gcp.errors.metadata.zone,status.message,Async status.message,exception.type,Async exception.type,exception.message,Async exception.message,exception.stacktrace,trace_id,span_id,Cloud Logging Trace Fields
F4.1,HTTP no logs emitted unless enabled,L4,N/A,HTTP/REST,Logging Off,Echo.Echo,False,False,DEBUG,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F4.2,HTTP L4 log emitted on low-level request failure,L4,0,HTTP/REST,Server Failure,Echo.Echo,True,False,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for http://localhost:7469/v1beta1/echo:echo (status=400),Transport attempt failed for http://localhost:7469/v1beta1/echo:echo (status=400),False,http,NOT SET,NOT SET,http://localhost:7469/v1beta1/echo:echo,POST,http://localhost:7469/v1beta1/echo:echo,400,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET
F4.3,HTTP no L4 log emitted on request success,L4,N/A,HTTP/REST,Happy Path,Echo.Echo,True,False,DEBUG,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F4.4,HTTP L4 log recorded in context of T4 span,L4,0,HTTP/REST,Active Trace,Echo.Echo,True,True,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for http://localhost:7469/v1beta1/echo:echo (status=400),Transport attempt failed for http://localhost:7469/v1beta1/echo:echo (status=400),False,http,NOT SET,NOT SET,http://localhost:7469/v1beta1/echo:echo,POST,http://localhost:7469/v1beta1/echo:echo,400,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,T3.trace_id,T4.span_id,MATCH_SPAN_CONTEXT
F4.5,HTTP L4 client timeout failure attributes,L4,0,HTTP/REST,Client Timeout,Echo.Block,True,False,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for http://localhost:7469/v1beta1/echo:block (status=ReadTimeout),Transport attempt failed for http://localhost:7469/v1beta1/echo:block (status=TimeoutError),False,http,NOT SET,NOT SET,http://localhost:7469/v1beta1/echo:block,POST,http://localhost:7469/v1beta1/echo:block,NOT SET,ReadTimeout,TimeoutError,NOT SET,NOT SET,*Read timed out*,*exceeded the configured timeout*,ReadTimeout,TimeoutError,*Read timed out*,*exceeded the configured timeout*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F4.6a,HTTP L4 logs for retries - Attempt 1,L4,0,HTTP/REST,Retry Recovery,SequenceService.AttemptSequence,True,False,DEBUG,2,2,DEBUG,google.api_core._observability,Transport attempt failed for http://localhost:7469/v1beta1/sequences/* (status=503),Transport attempt failed for http://localhost:7469/v1beta1/sequences/* (status=503),False,http,NOT SET,NOT SET,http://localhost:7469/v1beta1/sequences/*,POST,http://localhost:7469/v1beta1/sequences/*,503,503,503,NOT SET,NOT SET,Temporary glitch,Temporary glitch,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET
F4.6b,HTTP L4 logs for retries - Attempt 2,L4,1,HTTP/REST,Retry Recovery,SequenceService.AttemptSequence,True,False,DEBUG,2,2,DEBUG,google.api_core._observability,Transport attempt failed for http://localhost:7469/v1beta1/sequences/* (status=503),Transport attempt failed for http://localhost:7469/v1beta1/sequences/* (status=503),False,http,NOT SET,NOT SET,http://localhost:7469/v1beta1/sequences/*,POST,http://localhost:7469/v1beta1/sequences/*,503,503,503,NOT SET,NOT SET,Temporary glitch,Temporary glitch,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET,NOT SET
F4.7,gRPC no logs emitted unless enabled,L4,N/A,gRPC,Logging Off,Echo.Echo,False,False,DEBUG,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F4.8,gRPC L4 log emitted on low-level request failure,L4,0,gRPC,Server Failure,Echo.Echo,True,False,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for /google.showcase.v1beta1.Echo/Echo (status=INVALID_ARGUMENT),Transport attempt failed for /google.showcase.v1beta1.Echo/Echo (status=INVALID_ARGUMENT),False,grpc,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,_InactiveRpcError,AioRpcError,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F4.9,gRPC no L4 log emitted on request success,L4,N/A,gRPC,Happy Path,Echo.Echo,True,False,DEBUG,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F4.10,gRPC L4 log recorded in context of T4 span,L4,0,gRPC,Active Trace,Echo.Echo,True,True,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for /google.showcase.v1beta1.Echo/Echo (status=INVALID_ARGUMENT),Transport attempt failed for /google.showcase.v1beta1.Echo/Echo (status=INVALID_ARGUMENT),False,grpc,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,_InactiveRpcError,AioRpcError,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,T3.trace_id,T4.span_id,MATCH_SPAN_CONTEXT
F4.11,gRPC L4 client timeout failure attributes,L4,0,gRPC,Client Timeout,Echo.Block,True,False,DEBUG,1,2,DEBUG,google.api_core._observability,Transport attempt failed for /google.showcase.v1beta1.Echo/Block (status=DEADLINE_EXCEEDED),Transport attempt failed for /google.showcase.v1beta1.Echo/Block (status=DEADLINE_EXCEEDED),False,grpc,DEADLINE_EXCEEDED,google.showcase.v1beta1.Echo/Block,NOT SET,NOT SET,NOT SET,NOT SET,DEADLINE_EXCEEDED,DEADLINE_EXCEEDED,NOT SET,NOT SET,Deadline Exceeded,Deadline Exceeded,_InactiveRpcError,AioRpcError,*Deadline Exceeded*,*Deadline Exceeded*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F4.12a,gRPC L4 logs for retries - Attempt 1,L4,0,gRPC,Retry Recovery,SequenceService.AttemptSequence,True,False,DEBUG,2,2,DEBUG,google.api_core._observability,Transport attempt failed for /google.showcase.v1beta1.SequenceService/AttemptSequence (status=UNAVAILABLE),Transport attempt failed for /google.showcase.v1beta1.SequenceService/AttemptSequence (status=UNAVAILABLE),False,grpc,UNAVAILABLE,google.showcase.v1beta1.SequenceService/AttemptSequence,NOT SET,NOT SET,NOT SET,NOT SET,UNAVAILABLE,UNAVAILABLE,NOT SET,NOT SET,Temporary glitch,Temporary glitch,_InactiveRpcError,AioRpcError,*Temporary glitch*,*Temporary glitch*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F4.12b,gRPC L4 logs for retries - Attempt 2,L4,1,gRPC,Retry Recovery,SequenceService.AttemptSequence,True,False,DEBUG,2,2,DEBUG,google.api_core._observability,Transport attempt failed for /google.showcase.v1beta1.SequenceService/AttemptSequence (status=UNAVAILABLE),Transport attempt failed for /google.showcase.v1beta1.SequenceService/AttemptSequence (status=UNAVAILABLE),False,grpc,UNAVAILABLE,google.showcase.v1beta1.SequenceService/AttemptSequence,NOT SET,NOT SET,NOT SET,NOT SET,UNAVAILABLE,UNAVAILABLE,NOT SET,NOT SET,Temporary glitch,Temporary glitch,_InactiveRpcError,AioRpcError,*Temporary glitch*,*Temporary glitch*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.1,HTTP no L3 logs emitted unless enabled,L3,N/A,HTTP/REST,Logging Off,Echo.Echo,False,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.2,HTTP L3 log emitted on client-level failure,L3,0,HTTP/REST,Server Failure,Echo.Echo,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Echo: *,RPC failed for google.showcase.v1beta1.Echo/Echo: *,True,http,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,BadRequest,BadRequest,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.3,HTTP no L3 log emitted on request success,L3,N/A,HTTP/REST,Happy Path,Echo.Echo,True,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.4,HTTP L3 log recorded in context of T3 span,L3,0,HTTP/REST,Active Trace,Echo.Echo,True,True,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Echo: *,RPC failed for google.showcase.v1beta1.Echo/Echo: *,True,http,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,BadRequest,BadRequest,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,T3.trace_id,T3.span_id,MATCH_SPAN_CONTEXT
F5.5,HTTP L3 client timeout failure attributes,L3,0,HTTP/REST,Client Timeout,Echo.Block,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Block: *,RPC failed for google.showcase.v1beta1.Echo/Block: *,True,http,NOT SET,google.showcase.v1beta1.Echo/Block,NOT SET,NOT SET,NOT SET,NOT SET,ReadTimeout,TimeoutError,NOT SET,NOT SET,*Read timed out*,*exceeded the configured timeout*,ReadTimeout,TimeoutError,*Read timed out*,*exceeded the configured timeout*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.6,HTTP no L3 log emitted when retry succeeds,L3,N/A,HTTP/REST,Retry Recovery,SequenceService.AttemptSequence,True,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.7,HTTP single L3 log emitted when retries exhausted,L3,0,HTTP/REST,Retries Exhausted,SequenceService.AttemptSequence,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.SequenceService/AttemptSequence: *,RPC failed for google.showcase.v1beta1.SequenceService/AttemptSequence: *,True,http,UNAVAILABLE,google.showcase.v1beta1.SequenceService/AttemptSequence,NOT SET,NOT SET,NOT SET,NOT SET,503,503,NOT SET,NOT SET,Persistent outage,Persistent outage,RetryError,RetryError,*Persistent outage*,*Persistent outage*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.8,gRPC no L3 logs emitted unless enabled,L3,N/A,gRPC,Logging Off,Echo.Echo,False,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.9,gRPC L3 log emitted on client-level failure,L3,0,gRPC,Server Failure,Echo.Echo,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Echo: *,RPC failed for google.showcase.v1beta1.Echo/Echo: *,True,grpc,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,InvalidArgument,InvalidArgument,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.10,gRPC no L3 log emitted on request success,L3,N/A,gRPC,Happy Path,Echo.Echo,True,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.11,gRPC L3 log recorded in context of T3 span,L3,0,gRPC,Active Trace,Echo.Echo,True,True,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Echo: *,RPC failed for google.showcase.v1beta1.Echo/Echo: *,True,grpc,INVALID_ARGUMENT,google.showcase.v1beta1.Echo/Echo,NOT SET,NOT SET,NOT SET,NOT SET,INVALID_ARGUMENT_REASON,INVALID_ARGUMENT_REASON,showcase.googleapis.com,us-east1-a,Simulated unretryable invalid argument error.,Simulated unretryable invalid argument error.,InvalidArgument,InvalidArgument,*Simulated unretryable invalid argument error.*,*Simulated unretryable invalid argument error.*,<TRACEBACK>,T3.trace_id,T3.span_id,MATCH_SPAN_CONTEXT
F5.12,gRPC L3 client timeout failure attributes,L3,0,gRPC,Client Timeout,Echo.Block,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.Echo/Block: *,RPC failed for google.showcase.v1beta1.Echo/Block: *,True,grpc,DEADLINE_EXCEEDED,google.showcase.v1beta1.Echo/Block,NOT SET,NOT SET,NOT SET,NOT SET,DEADLINE_EXCEEDED,DEADLINE_EXCEEDED,NOT SET,NOT SET,Deadline Exceeded,Deadline Exceeded,DeadlineExceeded,DeadlineExceeded,*Deadline Exceeded*,*Deadline Exceeded*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
F5.13,gRPC no L3 log emitted when retry succeeds,L3,N/A,gRPC,Retry Recovery,SequenceService.AttemptSequence,True,False,WARNING,0,0,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
F5.14,gRPC single L3 log emitted when retries exhausted,L3,0,gRPC,Retries Exhausted,SequenceService.AttemptSequence,True,False,WARNING,1,1,WARNING,google.api_core._observability,RPC failed for google.showcase.v1beta1.SequenceService/AttemptSequence: *,RPC failed for google.showcase.v1beta1.SequenceService/AttemptSequence: *,True,grpc,UNAVAILABLE,google.showcase.v1beta1.SequenceService/AttemptSequence,NOT SET,NOT SET,NOT SET,NOT SET,UNAVAILABLE,UNAVAILABLE,NOT SET,NOT SET,Persistent outage,Persistent outage,RetryError,RetryError,*Persistent outage*,*Persistent outage*,<TRACEBACK>,NOT SET,NOT SET,NOT SET
Loading
Loading