Skip to content

Commit 7a1eea1

Browse files
committed
chore: add docstring for track method
Signed-off-by: Danju Visvanathan <danju.visvanathan@gmail.com>
1 parent 9bb8a5a commit 7a1eea1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

openfeature/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,13 @@ def remove_handler(self, event: ProviderEvent, handler: EventHandler) -> None:
957957
_event_support.remove_client_handler(self, event, handler)
958958

959959
def track(self, tracking_event_name: str, evaluation_context: EvaluationContext | None = None, tracking_event_details: TrackingEventDetails | None = None) -> None:
960+
"""
961+
Tracks the occurrence of a particular action or application state.
962+
963+
:param tracking_event_name: the name of the tracking event
964+
:param evaluation_context: the evaluation context
965+
:param tracking_event_details: Optional data relevant to the tracking event
966+
"""
960967
provider = self.provider
961968
if not hasattr(provider, "track"):
962969
return

0 commit comments

Comments
 (0)