DataDog / dd-trace-dotnet

.NET Client Library for Datadog APM
https://docs.datadoghq.com/tracing/
Apache License 2.0
457 stars 141 forks source link

New ASP.NET Core Metrics #4468

Open justindbaur opened 1 year ago

justindbaur commented 1 year ago

Are you requesting automatic instrumentation for a framework or library? Please describe.

Is your feature request related to a problem? Please describe. New/Existing metrics are not being relayed to DataDog that come out of ASP.NET Core. The list of metrics I see produced by them are as follows:

Describe the solution you'd like As far as I can see, there are only mappings for 7 of these. I would love for it to automatically map some of these new ones.

Describe alternatives you've considered Make it possible to map custom metrics so that they don't just get continueed here. This could be done through an environment variable that takes a string in a similar format to how the dotnet-counter tool parses the --counter argument.

Additional context Metrics added in this PR.

andrewlock commented 1 year ago

Hi, we don't have explicit support for .NET 8 yet, and likely won't until it's released in November, but we'll make sure to add support for these metrics. Thanks!

justindbaur commented 1 year ago

Hi @andrewlock, thanks for the reply, I sort of figured that was the case, just didn't see any issue tracking the new metrics. Is it possible to track them as custom metrics for people who run previews? Or is there any plans for custom metrics whatsoever?

Leonardo-Ferreira commented 1 year ago

the collection of those definitely need to be configurable and not enabled by default... the agent is already too heavy in my opinion... I have alpine instances here with the API working on a memoryset of 80MB while the agent is freaking 200MB+

toftware commented 10 months ago

I don't think the metrics for .NET 7 is relayed either.

Isn't this related to the business model that you need to pay extra for those metrics?