We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fda925 commit d50d26dCopy full SHA for d50d26d
google/cloud/aiplatform/constants.py
@@ -75,3 +75,6 @@
75
"MOBILE_JETSON_LOW_LATENCY_1",
76
},
77
}
78
+
79
+# Used in constructing the requests user_agent header for metrics reporting.
80
+USER_AGENT_PRODUCT = "model-builder"
google/cloud/aiplatform/initializer.py
@@ -259,7 +259,8 @@ def create_client(
259
"google-cloud-aiplatform",
260
).version
261
client_info = gapic_v1.client_info.ClientInfo(
262
- gapic_version=gapic_version, user_agent=f"model-builder/{gapic_version}"
+ gapic_version=gapic_version,
263
+ user_agent=f"{constants.USER_AGENT_PRODUCT}/{gapic_version}",
264
)
265
266
kwargs = {
0 commit comments