-
Notifications
You must be signed in to change notification settings - Fork 143
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
APM Tracing in .NET Native AOT apps #5509
Comments
There are two distinct scenarios to support:
We are actively working on supporting automatic instrumentation on NativeAOT, but it is a huge undertaking, requiring to rewrite the core of our instrumentation engine. We might reach the status of closed beta by the end of the quarter (June), but I can't make any promise at this point. As a stop-gap measure, I believe custom instrumentation should mostly work with NativeAOT, even though we don't actively support it. I tried publishing a simple app, and interestingly I only got the |
Thank you for the quick reply! I should have time to try it again without Is there any thought of splitting those up into 2 packages? Something like |
You're correct @kevingosse, by only using |
Is it possible to enable built-in OTEL metrics with DataDog for NativeAOT? |
Hi, @zlangner. The default build option is tiered compilation, but you have the option to also have your assemblies trimmed; perform much (but not all) of the JIT native compilation ahead of time so that when deployed, IL will be small; and/or single assembly deployment. For example, Ready to Run, Profile Guided Optimization, and Crossgen2 can convert much of the IL to native at build time. For a short-lived app, start-up time and memory footprint are important. .NET 8 gives you the ability to customize the GC, too, for example, limit the managed heap size and thus Working Set memory. @kevingosse, do you know if there are DD limitations/incompatibilities with those? Best, Tom |
Any updates on a timeline for this work? Is this the place I should go to check on status? @kevingosse |
I'm using .NET8 in a custom image running on AWS Lambda. In its current state I have logs and APM traces going to datadog using Datadog.Trace v2.50.0. This has been working great so far.
In order to get faster run time, I'm exploring using Native AOT. The first and only hurdle I hit was using Datadog.Trace. After removing this package I was able to update the app to use Native AOT and the result is that it's about 10x faster. However, I do like the visibility that I get with APM so I'd like to have it back.
I did try to use Datadog.Trace.Trimming with Datadog.Trace but it didn't seem to matter. The error I got while publishing the app was:
This app does not reference or use
Microsoft.AspNetCore.Http.Abstractions
so I suspect it's coming from Datadog.Trace.Is there any plan to support Native AOT compiled dotnet apps in the future?
The text was updated successfully, but these errors were encountered: