mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-25 16:15:35 +00:00
add back tutorial_running() (#4534)
This commit is contained in:
parent
78216196d1
commit
16bd7d0625
@ -101,6 +101,14 @@ class Telemetry:
|
||||
logger.debug("Telemetry couldn't make a POST request to PostHog.", exc_info=e)
|
||||
|
||||
|
||||
def tutorial_running(tutorial_id: int):
|
||||
"""
|
||||
Can be called when a tutorial is executed so that the tutorial_id is used to identify the tutorial and send an event.
|
||||
:param tutorial_id: ID number of the tutorial
|
||||
"""
|
||||
send_event(event_name="Tutorial", event_properties={"tutorial.id": tutorial_id})
|
||||
|
||||
|
||||
def send_pipeline_event( # type: ignore
|
||||
pipeline: "Pipeline", # type: ignore
|
||||
query: Optional[str] = None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user