From 50da549d09efc28dbb6db0e3b3f9d93e61214821 Mon Sep 17 00:00:00 2001 From: Qingzhuo Zhen Date: Wed, 7 Sep 2022 19:53:45 -0700 Subject: [PATCH] feat: add local evaluation library header --- packages/node/src/local/fetcher.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node/src/local/fetcher.ts b/packages/node/src/local/fetcher.ts index 8f9fa18..88f4273 100644 --- a/packages/node/src/local/fetcher.ts +++ b/packages/node/src/local/fetcher.ts @@ -1,3 +1,4 @@ +import { version as PACKAGE_VERSION } from '../../gen/version'; import { LocalEvaluationDefaults } from '../types/config'; import { FlagConfig } from '../types/flag'; import { HttpClient } from '../types/transport'; @@ -36,6 +37,7 @@ export class FlagConfigFetcher { const endpoint = `${this.serverUrl}/sdk/rules?eval_mode=local`; const headers = { Authorization: `Api-Key ${this.apiKey}`, + 'X-Amp-Exp-Library': `experiment-node-server/${PACKAGE_VERSION}`, }; const body = null; this.logger.debug('[Experiment] Get flag configs');