Skip to content

Commit

Permalink
feat: add local evaluation library header (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen authored Sep 8, 2022
1 parent 7217110 commit 513f61a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/amplitude_experiment/local/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .poller import Poller
from .evaluation.evaluation import evaluate
from ..variant import Variant
from ..version import __version__


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

0 comments on commit 513f61a

Please sign in to comment.