dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.67k stars 419 forks source link

Consider enabling exemplars in template service defaults #5045

Open JamesNK opened 2 months ago

JamesNK commented 2 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

Metrics exemplars are off by default. opentelemetry-dotnet decided to do this because there is a small perf cost to collecting them.

In Aspire, exemplars are enabled locally via an env var that is set on .NET projects. However, this won't be applied after deployment.

Describe the solution you'd like

Enable exemplars in service defaults template. This would be some configuration of opentelemetry-dotnet.

Additional context

No response

joperezr commented 2 weeks ago

@JamesNK can you make sure this is in the right milestone?