-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add client_info to constructors for manual clients #7825
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.api: clouderrorreportingIssues related to the Error Reporting API.Issues related to the Error Reporting API.api: cloudresourcemanagerIssues related to the Resource Manager API.Issues related to the Resource Manager API.api: cloudtraceIssues related to the Cloud Trace API.Issues related to the Cloud Trace API.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.api: runtimeconfigIssues related to the Cloud Runtime Config API API.Issues related to the Cloud Runtime Config API API.api: spannerIssues related to the Spanner API.Issues related to the Spanner API.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.api: translationIssues related to the Cloud Translation API API.Issues related to the Cloud Translation API API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.api: clouderrorreportingIssues related to the Error Reporting API.Issues related to the Error Reporting API.api: cloudresourcemanagerIssues related to the Resource Manager API.Issues related to the Resource Manager API.api: cloudtraceIssues related to the Cloud Trace API.Issues related to the Cloud Trace API.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.api: runtimeconfigIssues related to the Cloud Runtime Config API API.Issues related to the Cloud Runtime Config API API.api: spannerIssues related to the Spanner API.Issues related to the Spanner API.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.api: translationIssues related to the Cloud Translation API API.Issues related to the Cloud Translation API API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
The
client_infoconstructor argument is the standard argument for changing user agent headers in GAPIC clients. Adding auser_agentprefix identifying an app or tool is required for many partners who use Google APIs.Handwritten clients should provide a similar
client_infoargument to the client constructor. See how this was done in BigQuery at #7806.Clients that need
client_info:client_infoto BigQuery constructor for user-amenable user agent headers #7806)**kwargs)user_agentargument already, but it's currently a no-op. Should mark that as deprecated. (Spanner: add client_info support to client. #7878)v3beta1is pure-autogen)I've heard requests for this feature in the Storage client, so I'd prioritize that one above the others, but we do need this feature across all clients.