Skip to content

Commit ec1eb3f

Browse files
CopilotnikhilNava
andcommitted
Fix formatting: multi-line imports and remove trailing whitespace
Co-authored-by: nikhilNava <[email protected]>
1 parent b791932 commit ec1eb3f

File tree

1 file changed

+7
-3
lines changed
  • libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters

1 file changed

+7
-3
lines changed

libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters/agent365_exporter.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
1818
from opentelemetry.trace import StatusCode
1919

20-
from ..constants import GEN_AI_INPUT_MESSAGES_KEY, GEN_AI_OPERATION_NAME_KEY, INVOKE_AGENT_OPERATION_NAME
20+
from ..constants import (
21+
GEN_AI_INPUT_MESSAGES_KEY,
22+
GEN_AI_OPERATION_NAME_KEY,
23+
INVOKE_AGENT_OPERATION_NAME,
24+
)
2125
from .utils import (
2226
get_validated_domain_override,
2327
hex_span_id,
@@ -269,7 +273,7 @@ def _map_span(self, sp: ReadableSpan) -> dict[str, Any]:
269273

270274
# attributes
271275
attrs = dict(sp.attributes or {})
272-
276+
273277
# Suppress input messages if configured and current span is an InvokeAgent span
274278
if self._suppress_invoke_agent_input:
275279
# Check if current span is an InvokeAgent span by:
@@ -282,7 +286,7 @@ def _map_span(self, sp: ReadableSpan) -> dict[str, Any]:
282286
):
283287
# Remove input messages attribute
284288
attrs.pop(GEN_AI_INPUT_MESSAGES_KEY, None)
285-
289+
286290
# events
287291
events = []
288292
for ev in sp.events:

0 commit comments

Comments
 (0)