You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 17ffcb1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters/agent365_exporter.py
Copy file name to clipboardExpand all lines: libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters/utils.py
+44-3Lines changed: 44 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,35 @@
14
14
fromopentelemetry.traceimportSpanKind, StatusCode
15
15
16
16
from ..constantsimport (
17
+
CHAT_OPERATION_NAME,
17
18
ENABLE_A365_OBSERVABILITY_EXPORTER,
19
+
EXECUTE_TOOL_OPERATION_NAME,
18
20
GEN_AI_AGENT_ID_KEY,
21
+
GEN_AI_OPERATION_NAME_KEY,
22
+
INVOKE_AGENT_OPERATION_NAME,
23
+
OUTPUT_MESSAGES_OPERATION_NAME,
19
24
TENANT_ID_KEY,
20
25
)
26
+
from ..inference_operation_typeimportInferenceOperationType
21
27
22
28
logger=logging.getLogger(__name__)
23
29
24
30
# Maximum allowed span size in bytes (250KB)
25
31
MAX_SPAN_SIZE_BYTES=250*1024
26
32
33
+
# Operation names that identify a span as eligible for export to the Agent 365
34
+
# observability ingest service. Only spans whose gen_ai.operation.name matches
35
+
# one of these values are included; all other spans are filtered out.
0 commit comments