Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ubi integration for agent
Browse files- RAG/bedrock_agent.py +0 -11
RAG/bedrock_agent.py
CHANGED
|
@@ -45,17 +45,6 @@ def now_rfc3339():
|
|
| 45 |
def send_otel_span(span):
|
| 46 |
try:
|
| 47 |
|
| 48 |
-
query_payload = {
|
| 49 |
-
"client_id": session_id,
|
| 50 |
-
"query_id": st.session_state["query_id"],
|
| 51 |
-
"application": "Semantic Search",
|
| 52 |
-
"query_response_hit_ids": doc_ids,
|
| 53 |
-
"timestamp": datetime.utcnow().isoformat() + "Z",
|
| 54 |
-
"user_query": json.dumps(hybrid_payload),
|
| 55 |
-
"query": query,
|
| 56 |
-
|
| 57 |
-
}
|
| 58 |
-
|
| 59 |
status = ubi.send_to_lambda(".otel-v1-apm-span-default", span)
|
| 60 |
|
| 61 |
if status == 202:
|
|
|
|
| 45 |
def send_otel_span(span):
|
| 46 |
try:
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
status = ubi.send_to_lambda(".otel-v1-apm-span-default", span)
|
| 49 |
|
| 50 |
if status == 202:
|