Skip to content

Native aot support #2786

Description

microsoft.applicationinsights\2.21.0\lib\netstandard2.0\Microsoft.ApplicationInsights.dll warning IL2104: Assembly 'Microsoft.ApplicationInsights' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries

I got some warning when I try to build for native aot, is it supported?

cc: Amaury Levé (@Evangelink)

Activity

  1. Yun-Ting commented on Jun 6, 2023

    @Yun-Ting
    Contributor

    Hi Marco Rossignoli (@MarcoRossignoli),

    The direction is to use OpenTelemetry as the future of telemetry instrumentation:
    https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-overview

    There are plans (check out: open-telemetry/opentelemetry-dotnet#3429)
    to make components in https://github.com/open-telemetry/opentelemetry-dotnet and https://github.com/open-telemetry/opentelemetry-dotnet-contrib AOT-compatible. And there is no plan to bring Application Insights to be AOT compatible.
    Thank you.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions