Skip to content

Python: setup_observability does not support Application Insights QuickPulse aka Live Metrics #2649

Closed

Description

In the Python SDK, the setup_observability() path does not take advantage of the Azure Monitor OTel distro's configure_azure_monitor call to wire up Application Insights, instead relying on creating the exporters manually. As such, it doesn't have the enable_live_metrics functionality, and so Live Metric (QuickPulse) telemetry is not emitted which breaks important functionality. It'd be great to get all the Agent insights without losing Live Metrics.

I've not yet found a workaround for this, but am continuing to hack away at it.

Activity

  1. added
    pythonUsage: [Issues, PRs], Target: Python
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Dec 5, 2025
  2. changed the title [-]setup_observability does not support Application Insights QuickPulse aka Live Metrics[/-] [+]Python: setup_observability does not support Application Insights QuickPulse aka Live Metrics[/+] on Dec 5, 2025
  3. added
    observabilityUsage: [Issues, PRs], Target: observability related features
    and removed
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Dec 5, 2025
  4. TaoChenOSU commented on Dec 10, 2025

    @TaoChenOSU
    Contributor

    Hi Brandon H (@brandonh-msft),

    Have you tried directly using configure_azure_monitor instead of relying on setup_observability?

  5. brandonh-msft commented on Dec 11, 2025

    @brandonh-msft
    Author

    Yes, in fact we were already using that approach in our codebase and then added AF, but we were not seeing Agent/Tool/etc-level telemetry until we added the call to setup_observability; these agent calls are what we're after in our telemetry.

  6. eavanvalkenburg commented on Dec 11, 2025

    @eavanvalkenburg
    Member

    I have opened a PR that makes that pattern the norm, including in samples. Since there is so much going on inside configure_azure_monitor that it isn't feasible to bring all that into our setup.

  7. TaoChenOSU commented on Dec 11, 2025

    @TaoChenOSU
    Contributor

    I think there is a gap we have to fill, which is enabling instrumentation on the code without setting up the Monitoring backends. Left comments in the PR.

  8. eavanvalkenburg commented on Dec 15, 2025

    @eavanvalkenburg
    Member

    Tao Chen (@TaoChenOSU) Brandon H (@brandonh-msft) the changes I made in #2782 make this explicit, we now have two different commands, one to enable the instrumentation, which would be used when you setup your otel providers in some other way (like with configure_azure_monitor), while the other configures providers for you, as well as enable instrumentation.

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

Metadata

Metadata

Labels

observabilityUsage: [Issues, PRs], Target: observability related featurespythonUsage: [Issues, PRs], Target: Python

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions