Skip to content

Commit 6bd9ee4

Browse files
authored
Update references from Agent365 to Microsoft Agent 365
1 parent 0d808c8 commit 6bd9ee4

File tree

1 file changed

+7
-7
lines changed
  • libraries/microsoft-agents-a365-observability-extensions-openai/microsoft_agents_a365/observability/extensions/openai

1 file changed

+7
-7
lines changed

libraries/microsoft-agents-a365-observability-extensions-openai/microsoft_agents_a365/observability/extensions/openai/trace_instrumentor.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,40 @@
2222

2323
class OpenAIAgentsTraceInstrumentor(BaseInstrumentor):
2424
"""
25-
Custom Trace Processor for OpenAI Agents SDK using Agent365.
26-
Forwards OpenAI Agents SDK traces and spans to Agent365's tracing scopes.
25+
Custom Trace Processor for OpenAI Agents SDK using Microsoft Agent 365.
26+
Forwards OpenAI Agents SDK traces and spans to Microsoft Agent 365's tracing scopes.
2727
2828
```
2929
"""
3030

3131
def __init__(self):
3232
"""Initialize the OpenAIAgentsTraceInstrumentor.
33-
Raises: RuntimeError: If Agent365 is not configured.
33+
Raises: RuntimeError: If Microsoft Agent 365 is not configured.
3434
"""
3535
# Verify if Agent365 is configured
3636
Agent365_status = is_configured()
3737
if not Agent365_status:
3838
raise RuntimeError(
39-
"Agent365 is not configured yet. Please configure Agent365 before initializing this instrumentor."
39+
"Microsoft Agent 365 is not configured yet. Please configure Microsoft Agent 365 before initializing this instrumentor."
4040
)
4141
super().__init__()
4242

4343
def instrumentation_dependencies(self) -> Collection[str]:
4444
return _instruments
4545

4646
def _instrument(self, **kwargs: Any) -> None:
47-
"""Instruments the OpenAI Agents SDK with Agent365 tracing."""
47+
"""Instruments the OpenAI Agents SDK with Microsoft Agent 365 tracing."""
4848
tracer_name = kwargs["tracer_name"] if kwargs.get("tracer_name") else None
4949
tracer_version = kwargs["tracer_version"] if kwargs.get("tracer_version") else None
5050

51-
# Get the configured Agent365 Tracer
51+
# Get the configured Microsoft Agent 365 Tracer
5252
try:
5353
tracer = get_tracer(tracer_name, tracer_version)
5454
except Exception:
5555
# fallback
5656
tracer = optel_trace.get_tracer(tracer_name, tracer_version)
5757

58-
# Get the configured Agent365 Tracer Provider instance
58+
# Get the configured Microsoft Agent 365 Tracer Provider instance
5959
try:
6060
get_tracer_provider()
6161
except Exception:

0 commit comments

Comments
 (0)