Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ubi integration for agent
Browse files- RAG/bedrock_agent.py +0 -1
RAG/bedrock_agent.py
CHANGED
|
@@ -52,7 +52,6 @@ def send_otel_span(span):
|
|
| 52 |
else:
|
| 53 |
print("Lambda did not accept the request")
|
| 54 |
|
| 55 |
-
res = requests.post(OPENSEARCH_ENDPOINT, json=span, auth=OPENSEARCH_AUTH, timeout=3)
|
| 56 |
print(f"[OTEL SPAN] {span['name']} -> {res.status_code}")
|
| 57 |
except Exception as e:
|
| 58 |
print(f"[OTEL ERROR] {e}")
|
|
|
|
| 52 |
else:
|
| 53 |
print("Lambda did not accept the request")
|
| 54 |
|
|
|
|
| 55 |
print(f"[OTEL SPAN] {span['name']} -> {res.status_code}")
|
| 56 |
except Exception as e:
|
| 57 |
print(f"[OTEL ERROR] {e}")
|