From a2484718bc77216446ab732b113a93340a1a17df Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Tue, 18 Jun 2024 10:41:39 -0700 Subject: [PATCH] fix: add client type when calling create metadata client --- .../client-sdk-nodejs/src/internal/storage-control-client.ts | 2 +- packages/client-sdk-web/src/internal/storage-control-client.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client-sdk-nodejs/src/internal/storage-control-client.ts b/packages/client-sdk-nodejs/src/internal/storage-control-client.ts index c1abde6de..4194ff5c7 100644 --- a/packages/client-sdk-nodejs/src/internal/storage-control-client.ts +++ b/packages/client-sdk-nodejs/src/internal/storage-control-client.ts @@ -28,7 +28,7 @@ export class StorageControlClient { this.cacheServiceErrorMapper = new CacheServiceErrorMapper(false); const headers = [ new Header('Authorization', props.credentialProvider.getAuthToken()), - new Header('Agent', `nodejs:${version}`), + new Header('Agent', `nodejs:cache:${version}`), ]; this.interceptors = [ new HeaderInterceptorProvider(headers).createHeadersInterceptor(), diff --git a/packages/client-sdk-web/src/internal/storage-control-client.ts b/packages/client-sdk-web/src/internal/storage-control-client.ts index 9179eb2fe..e09bdf9d4 100644 --- a/packages/client-sdk-web/src/internal/storage-control-client.ts +++ b/packages/client-sdk-web/src/internal/storage-control-client.ts @@ -52,6 +52,7 @@ export class StorageControlClient< this.clientMetadataProvider = new ClientMetadataProvider({ authToken: props.credentialProvider.getAuthToken(), + clientType: 'store', }); this.clientWrapper = new control.ScsControlClient( // Note: all web SDK requests are routed to a `web.` subdomain to allow us flexibility on the server