File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3333logger = get_logger (__name__ )
3434
3535
36- def trace_send_data (invocation_context : InvocationContext , llm_response : LlmResponse ):
36+ def upload_metrics (invocation_context : InvocationContext , llm_response : LlmResponse ):
3737 tracers = invocation_context .agent .tracers
3838 for tracer in tracers :
3939 for exporter in getattr (tracer , "exporters" , []):
4040 if getattr (exporter , "meter_uploader" , None ):
4141 exporter .meter_uploader .record (llm_response )
4242
4343
44+ def trace_send_data (): ...
45+
46+
4447def set_common_attributes (
4548 invocation_context : InvocationContext , current_span : _Span , ** kwargs
4649) -> None :
@@ -137,4 +140,4 @@ def trace_call_llm(
137140 ExtractorResponse .update_span (span , attr_name , response )
138141
139142 # Report meter
140- trace_send_data (invocation_context , llm_response )
143+ upload_metrics (invocation_context , llm_response )
You can’t perform that action at this time.
0 commit comments