Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 37ae901

Browse files
committed
Use more specific method
1 parent 9fb51dc commit 37ae901

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/client-side-metrics/exporter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ export class CloudMonitoringExporter extends MetricExporter {
312312
try {
313313
const projectId = await this.client.getProjectId();
314314
const request = metricsToRequest(projectId, metrics);
315-
await this.client.createTimeSeries(request as ICreateTimeSeriesRequest);
315+
await this.client.createServiceTimeSeries(
316+
request as ICreateTimeSeriesRequest,
317+
);
316318
// The resultCallback typically accepts a value equal to {code: x}
317319
// for some value x along with other info. When the code is equal to 0
318320
// then the operation completed successfully. When the code is not equal

0 commit comments

Comments
 (0)