prometheus-net icon indicating copy to clipboard operation
prometheus-net copied to clipboard

Prometheus.DiagnosticSourceAdapter missing in .NET Framework build

Open hickford opened this issue 10 months ago • 2 comments

I'd like to use Prometheus.DiagnosticSourceAdapter but it's missing in the .NET Framework build

It appears to be compiled only on .NET https://github.com/prometheus-net/prometheus-net/blob/master/Prometheus/DiagnosticSourceAdapter.cs

What's the reason for this? It would be good to explain at https://github.com/prometheus-net/prometheus-net/blob/master/README.md#diagnosticsource-integration

hickford avatar Apr 11 '24 12:04 hickford

Use case: my .NET Framework app has System.Diagnostics.Metrics . I'm using NuGet package https://www.nuget.org/packages/System.Diagnostics.DiagnosticSource/

hickford avatar Apr 11 '24 13:04 hickford

The holds for the MeterAdapter: that would also work on .NET Framework by referencing the NuGet package Microsoft.Extensions.Diagnostics.

ibauersachs avatar May 08 '24 14:05 ibauersachs