-
Notifications
You must be signed in to change notification settings - Fork 707
[release/9.5] Update Microsoft.Extensions.AI packages, use content env var #11726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 11726Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 11726" |
|
Do we need this in the community toolkit as well? cc @aaronpowell |
Our last release bumped MEAI to 9.9.0, I'm not too bothered on the |
|
There is no product toolkit code that sets the property so no changes should be required: https://github.com/search?q=repo%3ACommunityToolkit%2FAspire+EnableSensitiveData&type=code |
|
Low risk, fixing a new feature. Approved for 9.5.1 |
Backport of #11670 to release/9.5
/cc @JamesNK @copilot
Customer Impact
Just after 9.5 locked down
Microsoft.Extensions.AIwas updated to use theOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTenv var to decide the default value ofEnableSensitiveData. This property controls whether MEAI includes message content in GenAI telemetry.Unfortunately Aspire AI integrations overwrites MEAI's
EnableSensitiveDataproperty. That means its set to what the user set (good) or back to its default of false (bad, we lose the env var default).The end result is users have to manually enable sensitive data in local dev environment instead of it automatically being enabled.
Fixes in this PR:
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT. Because of layering of the current code, it was simpler to continue to overwrite MEAI'sEnableSensitiveDataproperty, but now the new value is a sensible default based on the env var.Microsoft.Extensions.AIto version that looks forOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT. That means if someone has a reference to MEAI via our packages, but is creating the client themselves, then they'll get a consistent experience.The goal here is to make GenAI telemetry "just work" in local development without any additional configuration.
Testing
Manual testing
Risk
Low
Regression?
No