Changing the route that we need for the GCP telemetry

Signed-off-by: armandocomellas1 <cgarmando@google.com>
This commit is contained in:
armandocomellas1
2024-02-16 16:31:08 -06:00
parent 7ae4cf6d13
commit ddd963a940
+3 -3
View File
@@ -33,7 +33,7 @@ export class GcpClient implements GcpApi {
headers: {
Accept: '*/*',
Authorization: `Bearer ${await this.getToken()}`,
'X-Goog-Api-Client': `backstage/cloudbuild/${version}`,
'X-Goog-Api-Client': `backstage/gcpprojects/${version}`,
},
});
@@ -52,7 +52,7 @@ export class GcpClient implements GcpApi {
const response = await fetch(url, {
headers: {
Authorization: `Bearer ${await this.getToken()}`,
'X-Goog-Api-Client': `backstage/cloudbuild/${version}`,
'X-Goog-Api-Client': `backstage/gcpprojects/${version}`,
},
});
@@ -79,7 +79,7 @@ export class GcpClient implements GcpApi {
headers: {
Accept: '*/*',
Authorization: `Bearer ${await this.getToken()}`,
'X-Goog-Api-Client': `backstage/cloudbuild/${version}`,
'X-Goog-Api-Client': `backstage/gcpprojects/${version}`,
},
body: JSON.stringify(newProject),
});