|
22 | 22 |
|
23 | 23 | class OpenAIAgentsTraceInstrumentor(BaseInstrumentor): |
24 | 24 | """ |
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. |
27 | 27 |
|
28 | 28 | ``` |
29 | 29 | """ |
30 | 30 |
|
31 | 31 | def __init__(self): |
32 | 32 | """Initialize the OpenAIAgentsTraceInstrumentor. |
33 | | - Raises: RuntimeError: If Agent365 is not configured. |
| 33 | + Raises: RuntimeError: If Microsoft Agent 365 is not configured. |
34 | 34 | """ |
35 | 35 | # Verify if Agent365 is configured |
36 | 36 | Agent365_status = is_configured() |
37 | 37 | if not Agent365_status: |
38 | 38 | 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." |
40 | 40 | ) |
41 | 41 | super().__init__() |
42 | 42 |
|
43 | 43 | def instrumentation_dependencies(self) -> Collection[str]: |
44 | 44 | return _instruments |
45 | 45 |
|
46 | 46 | 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.""" |
48 | 48 | tracer_name = kwargs["tracer_name"] if kwargs.get("tracer_name") else None |
49 | 49 | tracer_version = kwargs["tracer_version"] if kwargs.get("tracer_version") else None |
50 | 50 |
|
51 | | - # Get the configured Agent365 Tracer |
| 51 | + # Get the configured Microsoft Agent 365 Tracer |
52 | 52 | try: |
53 | 53 | tracer = get_tracer(tracer_name, tracer_version) |
54 | 54 | except Exception: |
55 | 55 | # fallback |
56 | 56 | tracer = optel_trace.get_tracer(tracer_name, tracer_version) |
57 | 57 |
|
58 | | - # Get the configured Agent365 Tracer Provider instance |
| 58 | + # Get the configured Microsoft Agent 365 Tracer Provider instance |
59 | 59 | try: |
60 | 60 | get_tracer_provider() |
61 | 61 | except Exception: |
|
0 commit comments