Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Update Aspire AI integrations with telemetry changes #4518

Description

@JamesNK

This PR - microsoft/aspire#11237 - changes Aspire's AI model integrations to use Microsoft.Extensions.AI for telemetry instead of using telemetry built into underlying libraries, e.g. OpenAI, Azure Interference.

Documentation should be updated to reflect new behavior:

An important note is telemetry will only be recorded if used via Microsoft.Extension.AI's IChatClient

Changes to make:

  • Show how to configure integration to return IChatClient and have sample calls of using IChatClient
    • Add UseChatClient() to configuration
    • Inject IChatClient
    • Call chat client method
  • Discuss that telemetry is only enabled by default when IChatClient is used. MEAI records telemetry to Experimental.Microsoft.Extensions.AI activity source and meter.
  • Mention the new EnableSensitiveTelemetryData setting which can be used to include sensitive message content in telemetry
  • Discuss that underlying library's telemetry can still be manually by adding activity and meter to OTEL configuration

cc @eerhardt @sebastienros


Associated WorkItem - 487970

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.area-docs

Type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions