Repository navigation
Conversation
cy-yun
force-pushed
the
feat/observability-t1-config
branch
from
August 25, 2026 20:47
2a16e32 to
14bda98
Compare
cy-yun
marked this pull request as draft
August 25, 2026 21:04
cy-yun
force-pushed
the
feat/observability-t1-config
branch
3 times, most recently
from
August 25, 2026 21:44
92de944 to
6c40ebc
Compare
cy-yun
marked this pull request as ready for review
August 26, 2026 08:16
bshaffer
reviewed
Aug 26, 2026
This comment was marked as resolved.
This comment was marked as resolved.
This was referenced Aug 28, 2026
cy-yun
force-pushed
the
feat/observability-t1-config
branch
4 times, most recently
from
August 31, 2026 21:23
77f7ce0 to
48af3f8
Compare
cy-yun
force-pushed
the
feat/observability-t1-config
branch
6 times, most recently
from
September 4, 2026 21:20
c42b831 to
7c957e0
Compare
cy-yun
force-pushed
the
feat/observability-t1-config
branch
2 times, most recently
from
September 9, 2026 21:39
3d74452 to
fd43fa5
Compare
cy-yun
force-pushed
the
feat/observability-t1-config
branch
10 times, most recently
from
September 15, 2026 21:27
003f22e to
1c174c6
Compare
cy-yun
force-pushed
the
feat/observability-t1-config
branch
2 times, most recently
from
September 16, 2026 23:45
24db6c4 to
bba8086
Compare
cy-yun
force-pushed
the
feat/observability-t1-config
branch
4 times, most recently
from
September 22, 2026 01:18
7e0227d to
9803817
Compare
…ClientOptions - Align OpenTelemetry semantic conventions with v1.39 (server.address, server.port, rpc.system.name, rpc.response.status_code) - Remove unreleased deprecated RPC_SYSTEM constant in favor of canonical RPC_SYSTEM_NAME - Extract traceTransportOperation helper in TelemetryTrait to DRY transport operation tracing - Explicitly record exceptions as span events via recordException() - Add comprehensive docblocks explaining openTelemetryTracerProvider in ClientOptions
… and auth handler reconfiguration - Synchronously detach OTel scope in TracingMiddleware to avoid leaking context across unawaited async calls - Activate OTel span scope during promise wait() execution so retry delays and subsequent attempts inherit Client Request span context - Activate and detach scope around transport operations in TelemetryTrait::traceTransportOperation - Support reconfiguring TracerProviderInterface on already-wrapped AuthHttpHandler instances in CredentialsWrapper - Modernize array destructuring syntax in GapicClientTrait - Remove internal taxonomy shorthand from TracingMiddleware docblock - Add unit test coverage for promise wait/cancellation scope lifecycles and AuthHttpHandler reconfiguration
Decouple T5 spans (RetryDelay, RequestMarshaling, ResponseUnmarshaling, and AuthenticationRefresh) to focus the PR strictly on configuration/gating, T3 (Client Request), and T4 (Network Request).
…s and unused attributes
cy-yun
force-pushed
the
feat/observability-t1-config
branch
from
September 28, 2026 20:58
7fa2649 to
c907afa
Compare
Contributor
|
Added some suggestions here: cy-yun#1 |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR implements foundational Phase 1 Telemetry & Tracing infrastructure in
google-gax-phpfor Google Cloud PHP client libraries observability.Following cross-language project guidance, this PR is strictly focused on configuration/gating, Client Request (T3), and Network Request (T4) tracing. T5 internal operation spans (RetryDelay, RequestMarshaling, ResponseUnmarshaling, and AuthenticationRefresh) are decoupled and deferred to a follow-up PR.
Key Changes
1. Configuration & Feature Gating (
TelemetryConfiguration)Google\ApiCore\Telemetry\TelemetryConfigurationto parseGOOGLE_SDK_PHP_TRACING_ENABLED.GOOGLE_SDK_PHP_TRACING_ENABLED=falsedisables all tracing regardless of code settings.GOOGLE_SDK_PHP_TRACING_ENABLED=trueenables discovery viaGlobals::tracerProvider()(if present).$options['openTelemetryTracerProvider']passed viaClientOptions.2. Client Request Tracing (
TracingMiddleware)Google\ApiCore\Middleware\TracingMiddlewareto wrap API calls in a top-level Client Request span (T3).rpc.system.name,rpc.method,server.address, andserver.port.3. Low-Level Network Tracing (
GrpcTransport)GrpcTransport::startUnaryCall()withSpanKind::CLIENT.rpc.system.name="grpc",rpc.method,server.address,server.port,rpc.response.status_code).4. Client Options & Traits
openTelemetryTracerProvidergetter/setter toClientOptions.GapicClientTraitandClientOptionsTrait.SpanAttributes.5. Dependency Management
open-telemetry/api: ^1.8exclusively toGax/composer.json.CoreorAuth.