googleapis / googleapis/google-cloud-swift

sidekick: swift refactor telemetry headers to gax

Open
#437 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
26
Forks
10
Avg merge
12h 56m
Merged PRs (30d)
211

Description

The generated code should initialize the `GoogleCloudGax.HTTPClient` with the right `x-goog-api-client` header, and then the generated code can avoid setting it in each call.

----

nit: would it make sense to configure this once for the GoogleCloudGax.HTTPClient rather than need to generate it on every single RPC method stub?

_Originally posted by @chingor13 in https://github.com/googleapis/librarian/pull/6820#discussion_r3591704690_

Contributor guide

Open the contributing guide

Research direction

Start by locating the generated GoogleCloudGax.HTTPClient initialization and the generated RPC method stubs that currently set the x-goog-api-client header. Trace how the client and headers are configured, then verify that the header is initialized once on the client and is no longer set separately for each RPC method.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.