# Monitoring agentic activity in your enterprise

> Track agentic activity in your enterprise to ensure continued compliance.

- 网址：https://funcoding.ai/agents/github-copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/monitor-agentic-activity/
- 来源：GitHub Copilot 官方文档原文（英文），CC-BY-4.0 许可，同步于 2026-11-25
- 官方原文：https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/monitor-agentic-activity

---
## Viewing active and recent agentic sessions in your enterprise

1. Navigate to your enterprise. For example, from the [Enterprises](https://github.com/settings/enterprises?ref_product=ghec&ref_type=engagement&ref_style=text) page on GitHub.com.

1. At the top of the page, click **copilot AI controls**.
1. Towards the top of the page, in the "Agent sessions" section, you will see the three most recent agent sessions in your enterprise. To view all agent sessions from the last 24 hours, click **View all**.
1. To filter agent sessions, click the search bar at the top of the list, then press <kbd>Space</kbd>. From the dropdown menu that appears, select your filter criteria. For a list of available filters, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/reference/enterprise-administrators/agent-session-filters/).

## Tracking agentic activity in your enterprise through the audit log

Track agentic activity on GitHub or through streaming to an external destination.

### Viewing agentic activity in the audit log on GitHub

1. Navigate to your enterprise. For example, from the [Enterprises](https://github.com/settings/enterprises?ref_product=ghec&ref_type=engagement&ref_style=text) page on GitHub.com.

1. At the top of the page, click **copilot AI controls**.
1. At the bottom of the page, click log **Audit logs**.

### Streaming agentic activity from the audit log

<div class="callout callout-note">

This feature is in public preview. It is only available for enterprises that use Enterprise Managed Users on GitHub.com or GitHub Enterprise Cloud with data residency.

</div>

To enable streaming for Copilot agent session events and configure a streaming destination from your enterprise audit log settings, see [AUTOTITLE](https://docs.github.com/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise#enabling-audit-log-streaming-of-copilot-agent-session-events).

You can stream to any supported destination, including Microsoft Agent 365, which lets you review Copilot agent activity alongside your other agents in Microsoft Agent 365.

In addition to streaming, you can also retrieve Copilot usage data through the REST API. See [AUTOTITLE](https://docs.github.com/rest/copilot/copilot-usage-metrics#get-copilot-usage-records-for-an-enterprise).

## Enabling OpenTelemetry

OpenTelemetry (OTel) is an open source observability framework. It provides a standard way to collect telemetry events and metrics and export them to compatible observability tools.

When you enable OTel monitoring, you can send data from users' Copilot clients to an OTel-compatible backend. This lets you analyze agent sessions and understand agent usage across your enterprise.

To attribute agent activity to a user without collecting prompts, responses, or tool content, enable the `identity` capture class in enterprise managed settings:

```json
{
  "telemetry": {
    "enabled": true,
    "endpoint": "https://otel-collector.example.com",
    "protocol": "http/protobuf",
    "capture": {
      "identity": true
    }
  }
}
```

This configuration adds the authenticated Copilot account name, local operating-system account, and machine name to OTel data. Every capture class defaults to `false`. You can independently enable additional classes when an audit or investigation requires prompt, response, tool, or raw policy content.

In VS Code, identity capture works for both local and Agent Host sessions. The five independent content capture classes require Agent Host; the local agent harness uses the legacy all-or-nothing `captureContent` setting.

<div class="callout callout-warning">

Additional capture classes can include source code, file contents, prompts, commands, tool results, MCP identifiers, and workspace or user-profile paths. Enable only the classes required for your use case, and send the data to an approved collector.

</div>

For the complete schema and the data controlled by each field, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/reference/enterprise-administrators/enterprise-managed-settings/#telemetry). For more information about the exported data, see [AUTOTITLE](https://funcoding.ai/agents/github-copilot/concepts/enterprise/opentelemetry/).
