Expose OpenTelemetry configuration settings in admin interface #564
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Administrators need control over OpenTelemetry instrumentation to manage Application Insights costs, comply with privacy requirements, and optimize telemetry collection across environments.
Changes
Configuration Settings (8 exposed)
simplechat-prod)always_on,traceidratio,parentbased_*)Implementation
functions_appinsights.py- Reads settings and applies as environment variables beforeconfigure_azure_monitor()route_frontend_admin_settings.py- Form handling with validation (sampler arg range check)admin_settings.html- New "OpenTelemetry Configuration" section with dropdowns and tooltipsconfig.py- Version bump to 0.229.099Documentation
docs/features/OPENTELEMETRY_CONFIGURATION.md- Technical reference with use cases, cost optimization strategiesdocs/features/OPENTELEMETRY_QUICK_REFERENCE.md- Quick setup scenarios (production, dev, privacy-focused, external metrics)functional_tests/test_otel_settings.py- 8 tests covering validation, mappings, scenariosExample Configurations
Production (90% cost reduction):
Privacy-focused (no DB query capture):
Settings persist in Cosmos DB, applied at startup. Application restart required for changes to take effect.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.