@@ -26,7 +26,7 @@ class InMemoryMetadata(Metadata):
2626class InMemoryTrackingEvent ():
2727 value : float | None = None
2828 data : dict [str , typing .Any ] = field (default_factory = dict )
29- context_attributes : dict [str , typing .Any ] = field (default_factory = dict )
29+ eval_context_attributes : dict [str , typing .Any ] = field (default_factory = dict )
3030
3131
3232
@@ -193,16 +193,16 @@ async def _resolve_async(
193193 return self ._resolve (flag_key , default_value , evaluation_context )
194194
195195 def track (self , tracking_event_name : str , evaluation_context : EvaluationContext | None = None , tracking_event_details : TrackingEventDetails | None = None ) -> None :
196- value , data , context_attributes = None , None , None
196+ value , data , eval_context_attributes = None , None , None
197197 if tracking_event_details is not None :
198198 value = tracking_event_details .value
199199 data = tracking_event_details .attributes
200200
201201 if evaluation_context is not None :
202- context_attributes = evaluation_context .attributes
202+ eval_context_attributes = evaluation_context .attributes
203203
204204 self ._tracking_events [tracking_event_name ] = InMemoryTrackingEvent (
205205 value = value ,
206206 data = data ,
207- context_attributes = context_attributes ,
207+ eval_context_attributes = eval_context_attributes ,
208208 )
0 commit comments