Skip to content

Commit 8335d13

Browse files
authored
Merge branch 'main' into dependabot/uv/requests-2.33.0
2 parents e8c769d + 23785d2 commit 8335d13

39 files changed

Lines changed: 2704 additions & 344 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
defaults:
8686
run:
8787
working-directory: ./
88+
env:
89+
PYTHONPATH: ${{ github.workspace }}/versioning/helper
8890

8991
strategy:
9092
matrix:

libraries/microsoft-agents-a365-notifications/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-notifications"

libraries/microsoft-agents-a365-observability-core/CHANGELOG.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,45 @@
22

33
All notable changes to this package will be documented in this file.
44

5-
## [Unreleased]
5+
## [0.3.0]
6+
7+
### Breaking Changes
8+
9+
- **New permission required: `Agent365.Observability.OtelWrite`** — The observability exporter now requires this scope as both a delegated and application permission on your agent blueprint. See [Upgrade Instructions](#upgrade-instructions-observability-permission-for-existing-agents) below.
10+
11+
---
12+
13+
### Upgrade Instructions: Observability Permission for Existing Agents
14+
15+
Existing agent blueprints need `Agent365.Observability.OtelWrite` granted as both a **delegated permission** and an **application permission**. Choose either option below.
16+
17+
#### Option A — Agent 365 CLI (requires both config files)
18+
19+
Requires `a365.config.json` and `a365.generated.config.json` in your config directory, a Global Administrator account, and [Agent 365 CLI v1.1.139-preview](https://www.nuget.org/packages/Microsoft.Agents.A365.DevTools.Cli/1.1.139-preview) or later.
20+
21+
```
22+
a365 setup admin --config-dir "<path-to-config-dir>"
23+
```
24+
25+
This grants all missing permissions including the new Observability scopes.
26+
27+
#### Option B — Entra Portal (no config files required)
28+
29+
Requires Global Administrator access to the blueprint app registration.
30+
31+
1. Go to **Entra portal** > **App registrations** > select your Blueprint app
32+
2. Go to **API permissions** > **Add a permission** > **APIs my organization uses** > search for `9b975845-388f-4429-889e-eab1ef63949c`
33+
3. Select **Delegated permissions** > check `Agent365.Observability.OtelWrite` > **Add permissions**
34+
4. Repeat step 2–3, this time select **Application permissions** > check `Agent365.Observability.OtelWrite` > **Add permissions**
35+
5. Click **Grant admin consent** and confirm
36+
37+
Both `Agent365.Observability.OtelWrite` (Delegated) and `Agent365.Observability.OtelWrite` (Application) should show **Granted** status.
38+
39+
> **Note:** If your agent is autonomous, you only need the **Application permission**. The delegated permission is required for agents that authenticate via a user session.
40+
41+
---
42+
43+
## [0.2.1.dev46]
644

745
### Breaking Changes
846

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class _Agent365Exporter(SpanExporter):
4646
Agent 365 span exporter for Agent 365:
4747
* Partitions spans by (tenantId, agentId)
4848
* Builds OTLP-like JSON: resourceSpans -> scopeSpans -> spans
49-
* POSTs per group to https://{endpoint}/maven/agent365/agents/{agentId}/traces?api-version=1
49+
* POSTs per group to https://{endpoint}/observability/tenants/{tenantId}/otlp/agents/{agentId}/traces?api-version=1
50+
* or, when use_s2s_endpoint is True, https://{endpoint}/observabilityService/tenants/{tenantId}/otlp/agents/{agentId}/traces?api-version=1
5051
* Adds Bearer token via token_resolver(agentId, tenantId)
5152
"""
5253

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ def build_export_url(
221221
The fully constructed export URL with path and query parameters.
222222
"""
223223
endpoint_path = (
224-
f"/observabilityService/tenants/{tenant_id}/agents/{agent_id}/traces"
224+
f"/observabilityService/tenants/{tenant_id}/otlp/agents/{agent_id}/traces"
225225
if use_s2s_endpoint
226-
else f"/observability/tenants/{tenant_id}/agents/{agent_id}/traces"
226+
else f"/observability/tenants/{tenant_id}/otlp/agents/{agent_id}/traces"
227227
)
228228

229229
parsed = urlparse(endpoint)

libraries/microsoft-agents-a365-observability-core/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-observability-core"

libraries/microsoft-agents-a365-observability-extensions-agentframework/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-observability-extensions-agent-framework"

libraries/microsoft-agents-a365-observability-extensions-langchain/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-observability-extensions-langchain"

libraries/microsoft-agents-a365-observability-extensions-openai/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-observability-extensions-openai"

libraries/microsoft-agents-a365-observability-extensions-semantickernel/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = ["setuptools>=68", "wheel", "tzdata", "tomlkit", "packaging"]
33
build-backend = "build_backend"
4-
backend-path = ["../../versioning/helper"]
54

65
[project]
76
name = "microsoft-agents-a365-observability-extensions-semantic-kernel"

0 commit comments

Comments
 (0)