Skip to content

Commit 513f61a

Browse files
authored
feat: add local evaluation library header (#16)
1 parent 7217110 commit 513f61a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/amplitude_experiment/local/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .poller import Poller
1010
from .evaluation.evaluation import evaluate
1111
from ..variant import Variant
12+
from ..version import __version__
1213

1314

1415
class LocalEvaluationClient:
@@ -78,7 +79,8 @@ def __do_rules(self):
7879
conn = self._connection_pool.acquire()
7980
headers = {
8081
'Authorization': f"Api-Key {self.api_key}",
81-
'Content-Type': 'application/json;charset=utf-8'
82+
'Content-Type': 'application/json;charset=utf-8',
83+
'X-Amp-Exp-Library': f"experiment-python-server/{__version__}"
8284
}
8385
body = None
8486
self.logger.debug('[Experiment] Get flag configs')

0 commit comments

Comments
 (0)