@@ -91,7 +91,7 @@ def _check_config_and_environ_for_telemetry_flag(
9191 "python_version" : f"{ platform .python_version ()} /{ platform .python_implementation ()} " ,
9292 "distinct_id" : g_anonymous_id ,
9393 "scrapegraphai_version" : VERSION ,
94- "telemetry_version" : "0.0.1 " ,
94+ "telemetry_version" : "0.0.3 " ,
9595}
9696
9797
@@ -156,7 +156,7 @@ def log_event(event: str, properties: Dict[str, any]):
156156 send_event_json (event_json )
157157
158158
159- def log_graph_execution (graph_name : str , source : str , prompt :str , schema :dict , llm_model : str , embedder_model : str , source_type : str , execution_time : float , response : dict = None , error_node : str = None , exception : str = None , total_tokens : int = None ):
159+ def log_graph_execution (graph_name : str , source : str , prompt :str , schema :dict , llm_model : str , embedder_model : str , source_type : str , execution_time : float , response : dict = None , error_node : str = None , exception : str = None , total_tokens : int = None , is_library = True ):
160160 properties = {
161161 "graph_name" : graph_name ,
162162 "source" : source ,
@@ -170,6 +170,7 @@ def log_graph_execution(graph_name: str, source: str, prompt:str, schema:dict, l
170170 "error_node" : error_node ,
171171 "exception" : exception ,
172172 "total_tokens" : total_tokens ,
173+ "is_library" : is_library
173174 }
174175 log_event ("graph_execution" , properties )
175176
0 commit comments