|
| 1 | +# Changelog — microsoft-agents-a365-observability-core |
| 2 | + |
| 3 | +All notable changes to this package will be documented in this file. |
| 4 | + |
| 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] |
| 44 | + |
| 45 | +### Breaking Changes |
| 46 | + |
| 47 | +- **`InvokeAgentDetails` renamed to `InvokeAgentScopeDetails`** — Now contains only scope-level config (`endpoint`). Agent identity (`AgentDetails`) is a separate parameter. `session_id` moved to `Request`. |
| 48 | +- **`InvokeAgentScope.start()`**: New signature `start(request, invoke_scope_details, agent_details, caller_details?, span_details?)`. `request` is required. |
| 49 | +- **`InferenceScope.start()`**: New signature `start(request, details, agent_details, user_details?, span_details?)`. `request` is required. |
| 50 | +- **`ExecuteToolScope.start()`**: New signature `start(request, details, agent_details, user_details?, span_details?)`. Same pattern as `InferenceScope`. |
| 51 | +- **`OutputScope.start()`**: New signature `start(request, response, agent_details, user_details?, span_details?)`. Same pattern. |
| 52 | +- **`CallerDetails` renamed to `UserDetails`** — Fields renamed: `caller_id` → `user_id`, `caller_upn` → `user_email`, `caller_name` → `user_name`, `caller_client_ip` → `user_client_ip`. |
| 53 | +- **`CallerDetails` is now a composite wrapper** — Groups `user_details: UserDetails` and `caller_agent_details: AgentDetails` for A2A scenarios. |
| 54 | +- **`TenantDetails` removed** — `tenant_id` is now on `AgentDetails.tenant_id`. Removed from all scope `start()` methods. |
| 55 | +- **`ExecutionType` enum removed** — Removed from `Request`. `GEN_AI_EXECUTION_TYPE_KEY` constant also removed. |
| 56 | +- **`AgentDetails` fields renamed** — `agent_auid` → `agentic_user_id`, `agent_upn` → `agentic_user_email`. `conversation_id` moved to `Request`. |
| 57 | +- **`Request` model updated** — Removed `execution_type`. Added `conversation_id`. `content` is now optional. |
| 58 | +- **`BaggageBuilder` methods renamed** — `agent_upn()` → `agentic_user_email()`, `agent_auid()` → `agentic_user_id()`, `caller_id()` → `user_id()`, `caller_name()` → `user_name()`, `caller_upn()` → `user_email()`, `caller_client_ip()` → `user_client_ip()`. |
| 59 | + |
| 60 | +### Added |
| 61 | + |
| 62 | +- **`SpanDetails`** — Groups `span_kind`, `parent_context`, `start_time`, `end_time` for scope construction. |
| 63 | +- **`UserDetails`** — Human caller identity with `user_id`, `user_email`, `user_name`, `user_client_ip`. |
| 64 | +- **`CallerDetails`** (new wrapper) — Groups `user_details` and `caller_agent_details` for A2A scenarios. |
| 65 | +- **`InvokeAgentScopeDetails`** — Scope-level config with `endpoint` only. |
| 66 | +- **`Request.conversation_id`** — Conversation ID field on the unified `Request` model. |
| 67 | +- **`ERROR_TYPE_CANCELLED`** constant — `"TaskCanceledException"`, used by `record_cancellation()`. |
| 68 | +- **`OutputScope`** now exported from `microsoft_agents_a365.observability.core`. |
0 commit comments