Make System.Diagnostics.Metrics
available in net7.0
and earlier
#3090
Labels
System.Diagnostics.Metrics
available in net7.0
and earlier
#3090
Sentry DiagnosticSource integration
net6.0
and later at the momentSystem DiagnosticsMetrics integration
net8.0
and later at the momentAssuming we can bump the
System.Diagnostics.DiagnosticSource
version from4.5.0
to8.0.0
, I could a.src/Sentry.DiagnosticSource/Internal/DiagnosticsMetrics
folder containing the Metrics integration... include that in the root project fornet8.0
and later and then people could grab the Sentry.DiagnosticSource either if they wanted the DiagnosticSource integration for netstandard/netframework or if they wanted the Metrics integration fornet6.0
or below.I am wondering whether that might create a clash however. If someone was running
net6.0
and added a reference toSentry.DiagnosticSource
so that they could use the metrics integration... presumably their Sentry.nupkg would already include everything fromsrc/Sentry.DiagnosticSource/Internal/DiagnosticSource
but now so would the Sentry.DiagnosticSource.nupkg that they referred to as well.Seems like actually these would have to exist as separate packages then... So we'd need a new Sentry.DiagnosticSource.Metrics package that people could add if they're on net6.0 or below, and we just do the same trick for that that we've done already for Sentry.DiagnosticSource.
Originally posted by @jamescrosswell in #3052 (comment)
The text was updated successfully, but these errors were encountered: