mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
fix: Fix http empty headers error (#1710)
This commit is contained in:
@@ -161,5 +161,6 @@ class RemoteModelWorker(ModelWorker):
|
||||
def _get_trace_headers(self):
|
||||
span_id = root_tracer.get_current_span_id()
|
||||
headers = self.headers.copy()
|
||||
headers.update({DBGPT_TRACER_SPAN_ID: span_id})
|
||||
if span_id:
|
||||
headers.update({DBGPT_TRACER_SPAN_ID: span_id})
|
||||
return headers
|
||||
|
Reference in New Issue
Block a user