open-telemetry / opentelemetry-dotnet

The OpenTelemetry .NET Client
https://opentelemetry.io
Apache License 2.0
3.17k stars 752 forks source link

Is it possible to use OpenTelemetry in NET Framework based applications? #1956

Closed ZedZipDev closed 3 years ago

ZedZipDev commented 3 years ago

I'd like to use the OpenTelemetry in my WCF Service, WinForms applications. All of them are NET F 4.5 based. Is it possible to use? What are restrictions and limitations?

cijothomas commented 3 years ago

If the app is using a supported versions of .NET (https://github.com/open-telemetry/opentelemetry-dotnet#supported-net-versions), then it is possible to use. For .NET Framework, the minimum supported version is .NET452, so i your app is .NET45, then its not supported.

cijothomas commented 3 years ago

There is an instrumentation for WCF in the contrib repo, which would be helpful, (but only if app is running .net452 minimum) https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Contrib.Instrumentation.Wcf

ZedZipDev commented 3 years ago

Ok, thank you. It is not a problem for me to rebuild my apps with NET 4.6