@@ -91,7 +91,7 @@ def _check_config_and_environ_for_telemetry_flag(
91
91
"python_version" : f"{ platform .python_version ()} /{ platform .python_implementation ()} " ,
92
92
"distinct_id" : g_anonymous_id ,
93
93
"scrapegraphai_version" : VERSION ,
94
- "telemetry_version" : "0.0.2 " ,
94
+ "telemetry_version" : "0.0.3 " ,
95
95
}
96
96
97
97
@@ -156,7 +156,7 @@ def log_event(event: str, properties: Dict[str, any]):
156
156
send_event_json (event_json )
157
157
158
158
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 ):
160
160
properties = {
161
161
"graph_name" : graph_name ,
162
162
"source" : source ,
@@ -170,6 +170,7 @@ def log_graph_execution(graph_name: str, source: str, prompt:str, schema:dict, l
170
170
"error_node" : error_node ,
171
171
"exception" : exception ,
172
172
"total_tokens" : total_tokens ,
173
+ "is_library" : is_library
173
174
}
174
175
log_event ("graph_execution" , properties )
175
176
0 commit comments