open-telemetry / opentelemetry-dotnet-contrib

This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
https://opentelemetry.io
Apache License 2.0
461 stars 276 forks source link

Error 1022 when instrumenting This example #272

Closed jwarfieldpwny closed 1 year ago

jwarfieldpwny commented 2 years ago

Hello,

I have been trying for some time to instrument a WCF application. After not getting much success I finally decided to download the example here and attempt to simply run that. An associate recommended posting here for assistance.

In every instance I run in to the same issue, I am unable to get any spans emitted (verified with Zpages) and I receive the same error in the logs

.NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{B4C89B0F-9908-4F73-9F59-0D77C5A06874}'. HRESULT: 0x80040154. Process ID (decimal): 12024. Message ID: [0x2504].

I have tried to identify this CLSID and been unable to find its origination point. As expected from the HRESULT there is no COM Object registered with the CLSID.

Enviornment:

.NET Framework 4.6.2. IIS Express - 10.022489.1000 Windows 10 Enterprise Edition V-21H2

Any assistance would be greatly appreciated.

pjanotti commented 2 years ago

@jwarfieldpwny the CLSID above is for https://github.com/signalfx/signalfx-dotnet-tracing are you trying to use it in conjunction with OpenTelemetry instrumentation?

The error 0x80040154 indicates that the expected profiler was not installed. It seems a setup error if you set COR_ENABLE_PROFILING=0 you won't see the same error but also the tracer won't be loaded. I am not sure of what you are trying to achieve, could you give a small description of your scenario or small repro?

reyang commented 2 years ago

@jwarfieldpwny is this an issue while trying to use auto-instrumentation?

Kielek commented 1 year ago

@jwarfieldpwny, I am closing issue as we do not have any feedback from your side.

Please reopen/comment if we can help you.