Open antkmsft opened 6 months ago
One quick correction: The OpenTelemetry SDK is not a Microsoft SDK, it's owned by the Cloud Native Computing Foundation.
When I asked the OpenTelemetry team about delivering a DLL on Windows back in 2021, their answer was that Windows doesn't support C++ DLLs, only C DLLs. This is tied to the "C++ doesn't have a stable binary contract" problem. I don't know if their opinion has changed however.
The only reason that it can't be built as Win32 DLL is that one of its dependencies, the MS OpenTelemetry library, only supports being built as Static Lib on Win32.
But technically, it might be possible to produce Win32 DLL, while having Static Lib dependencies. Not exactly, but kind of how we do with the vendored uamqp-c library.
We may ask vcpkg team, what manifest magic do we need to use in order to have this enabled.
Or, ask MS OTel to enable building for
x64-windows
triplet.