Skip to content

Commit fc22aae

Browse files
pontemontiJohan Broberg
andauthored
Fix "Agent365" references to be "Agent 365" instead (#51)
* Revise HOW_TO_SET_A_VERSION for Microsoft Agent 365 Updated the document to reflect the Microsoft branding for the Agent 365 Python SDK and made minor formatting adjustments. * Fix docstring casing for agent365 exporter check * Fix typo in Agent365Exporter class docstring * Update module docstring and copyright notice * Refactor docstring and comments in setup_utils.py Updated the module docstring and improved comments for clarity. * Update comment to reflect Microsoft branding * Update SDK name in __init__.py comment * Fix comment formatting in tracer_instrumentor.py * Update comment for Microsoft Agent 365 SDK * Update references from Agent365 to Microsoft Agent 365 * Update error message for telemetry configuration * Update error message for telemetry configuration * Update documentation for Agent 365 Telemetry Solution * Update test description for Agent365 SDK * Restore copyright and license headers in conftest.py * Refactor test_wrapper_langchain.py with updates * Update comments to reflect Microsoft Agent 365 * Update Agent365 config description for clarity * Update documentation for Microsoft Agent 365 SDK * Refactor test_execute_tool_scope.py for clarity * Update comment to specify Microsoft Agent 365 * Update print statement for test alignment message * Reformat test_invoke_agent_scope.py with consistent style * Update comment to reflect correct service name * Refactor test_wrapper_semantic_kernel.py structure * Update copyright notice in integration tests * Update integration test header for Agent 365 SDK * Fix formatting --------- Co-authored-by: Johan Broberg <johanb@microsoft.com>
1 parent 5a91e95 commit fc22aae

File tree

27 files changed

+49
-46
lines changed

27 files changed

+49
-46
lines changed

HOW_TO_SET_A_VERSION.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# How to Set a Version
22

3-
This document describes how to manage versioning for the Agent365 Python SDK, whether you're creating development builds or official releases.
3+
This document describes how to manage versioning for the Microsoft Agent 365 Python SDK, whether you're creating development builds or official releases.
44

55
## Branch Strategy
66

@@ -381,3 +381,4 @@ If you encounter issues with versioning:
381381
2. Verify your Git setup with `git log` and `git describe`
382382
3. Check CI logs for version calculation errors
383383
4. Open an issue with version output and Git status
384+

libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

3-
# Agent365 Python SDK for OpenTelemetry tracing.
3+
# Microsoft Agent 365 Python SDK for OpenTelemetry tracing.
44

55
from .agent_details import AgentDetails
66
from .config import (

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
class Agent365Exporter(SpanExporter):
3939
"""
40-
Agent365 span exporter for Agent365:
40+
Agent 365 span exporter for Agent 365:
4141
* Partitions spans by (tenantId, agentId)
4242
* Builds OTLP-like JSON: resourceSpans -> scopeSpans -> spans
4343
* POSTs per group to https://{endpoint}/maven/agent365/agents/{agentId}/traces?api-version=1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def partition_by_identity(
6666

6767

6868
def is_agent365_exporter_enabled() -> bool:
69-
"""Check if agent365 exporter is enabled."""
69+
"""Check if Agent 365 exporter is enabled."""
7070
# Check environment variable
7171
enable_exporter = os.getenv(ENABLE_A365_OBSERVABILITY_EXPORTER, "").lower()
7272
return (enable_exporter) in ("true", "1", "yes", "on")

libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

3-
# Middleware components for Agent365 SDK.
3+
# Middleware components for Microsoft Agent 365 SDK.
44

55
from .baggage_builder import BaggageBuilder
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AgentFrameworkInstrumentor(BaseInstrumentor):
2828
def __init__(self):
2929
if not is_configured():
3030
raise RuntimeError(
31-
"Agent365 (or your telemetry config) is not initialized. Configure it before instrumenting."
31+
"Microsoft Agent 365 (or your telemetry config) is not initialized. Configure it before instrumenting."
3232
)
3333
super().__init__()
3434

libraries/microsoft-agents-a365-observability-extensions-langchain/microsoft_agents_a365/observability/extensions/langchain/tracer_instrumentor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _instrument(self, **kwargs: Any) -> None:
4848
tracer_name: str | None = kwargs.get("tracer_name")
4949
tracer_version: str | None = kwargs.get("tracer_version")
5050

51-
# Prefer the Agent365 tracer; fall back to OpenTelemetry’s default if needed.
51+
# Prefer the Agent 365 tracer; fall back to OpenTelemetry’s default if needed.
5252
try:
5353
tracer = get_tracer(tracer_name, tracer_version)
5454
except Exception:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

33
"""
4-
Wraps the OpenAI Agents SDK tracer to integrate with our Agent365 Telemetry Solution.
4+
Wraps the OpenAI Agents SDK tracer to integrate with the Microsoft Agent 365 Telemetry Solution.
55
"""
66

77
from .trace_instrumentor import OpenAIAgentsTraceInstrumentor

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:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SemanticKernelInstrumentor(BaseInstrumentor):
2828
def __init__(self):
2929
if not is_configured():
3030
raise RuntimeError(
31-
"Agent365 (or your telemetry config) is not initialized. Configure it before instrumenting."
31+
"Microsoft Agent 365 (or your telemetry config) is not initialized. Configure it before instrumenting."
3232
)
3333
super().__init__()
3434

0 commit comments

Comments
 (0)