Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Traces no longer working in 1.0.0-rc1 #2780

Closed
Kronos11 opened this issue Jul 26, 2023 · 6 comments
Closed

Manual Traces no longer working in 1.0.0-rc1 #2780

Kronos11 opened this issue Jul 26, 2023 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kronos11
Copy link
Contributor

Kronos11 commented Jul 26, 2023

Bug Report

After upgrading to 1.0.0-rc1 the additional sources are no longer being picked up by ActivitySources

Symptom

Describe the bug
custom ActivitySources are not being listened to after adding them to web.config using

<appSettings>
  <add key="OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES" value="ECDev.*" />
</appSettings>

Expected behavior
Expected that the Activity is created based on the ActivitySource started with "ECDev.Activity" for example.

Runtime environment (please complete the following information):

  • OpenTelemetry Automatic Instrumentation version: [1.0.0-rc1]
  • OS: [Microsoft Windows 11 Enterprise]
  • .NET version: [.NET Framework 4.6.2]

Additional context
See repro project here: https://github.com/Kronos11/OTelWebApplicationTest

Reproduce

Steps to reproduce the behavior:

  1. setup IIS Instrumentation using 1.0.0-rc1
  2. Attach an otel collector
  3. Traces not coming in from custom sources.

** Logs

[2023-07-26T16:14:11.572465300Z] [33616|27736] [info] OpenTelemetry CLR Profiler 1.0.0 on Windows (amd64)
[2023-07-26T16:14:11.572868000Z] [33616|27736] [info] JIT Inlining is enabled.
[2023-07-26T16:14:11.572939300Z] [33616|27736] [info] NGEN is disabled.
[2023-07-26T16:14:11.572967300Z] [33616|24808] [info] Initializing ReJIT request thread.
[2023-07-26T16:14:11.573095300Z] [33616|27736] [info] Profiler filepath: C:\Program Files\OpenTelemetry .NET AutoInstrumentation\win-x64\OpenTelemetry.AutoInstrumentation.Native.dll
[2023-07-26T16:14:11.573125300Z] [33616|27736] [info] Profiler attached.
[2023-07-26T16:14:11.590242900Z] [33616|27736] [info] COR library: mscorlib 4.0.0
[2023-07-26T16:14:13.933698000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:13.944663800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:14:14.123462200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:14.123527400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=0
[2023-07-26T16:14:14.123549100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=0
[2023-07-26T16:14:14.123570200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.1.1.3 to_version=4.2.0.0 previous_redirects=2
[2023-07-26T16:14:14.123590300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:14.123610500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=0
[2023-07-26T16:14:14.136541800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=1
[2023-07-26T16:14:14.136600800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=1
[2023-07-26T16:14:14.136622500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:14:14.136642600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:14:14.136662300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Encodings.Web] from_version=4.0.5.1 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:14.151159900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=2
[2023-07-26T16:14:14.151221800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=0
[2023-07-26T16:14:14.162044600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=3
[2023-07-26T16:14:14.174237900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=4
[2023-07-26T16:14:14.174297100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=3.0.3.0 to_version=7.0.0.1 previous_redirects=0
[2023-07-26T16:14:14.174319300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.3.1 to_version=7.0.0.0 previous_redirects=2
[2023-07-26T16:14:14.174379100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Buffers] from_version=4.0.2.0 to_version=4.0.3.0 previous_redirects=0
[2023-07-26T16:14:14.228201300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=5
[2023-07-26T16:14:14.313985400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=0
[2023-07-26T16:14:14.314045300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=1
[2023-07-26T16:14:14.314068600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=0
[2023-07-26T16:14:14.324752700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=2
[2023-07-26T16:14:14.324810200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=1
[2023-07-26T16:14:14.324831300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=7.0.0.0 to_version=7.0.0.3 previous_redirects=2
[2023-07-26T16:14:14.324853800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=1
[2023-07-26T16:14:14.330762100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=2
[2023-07-26T16:14:14.330816400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=3
[2023-07-26T16:14:14.339333300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=3
[2023-07-26T16:14:14.339402900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=1
[2023-07-26T16:14:14.393456400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=3
[2023-07-26T16:14:14.421770800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=3
[2023-07-26T16:14:14.421827000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=6
[2023-07-26T16:14:14.473901300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=7
[2023-07-26T16:14:14.509779900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Data.Common] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:14.509874500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.StackTrace] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=0
[2023-07-26T16:14:14.509910000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.Tracing] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:14.509933300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Globalization.Extensions] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=0
[2023-07-26T16:14:14.509951900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.IO.Compression] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:14.510042900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=4
[2023-07-26T16:14:14.510078700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Sockets] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:14.510107700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.ValueTuple] from_version=4.0.0.0 to_version=4.0.3.0 previous_redirects=0
[2023-07-26T16:14:14.510129200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.0.0 to_version=4.0.2.0 previous_redirects=2
[2023-07-26T16:14:14.510150500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.Serialization.Xml] from_version=4.0.0.0 to_version=4.1.3.0 previous_redirects=0
[2023-07-26T16:14:14.510170200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.Serialization.Primitives] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=0
[2023-07-26T16:14:14.510188600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Security.Cryptography.Algorithms] from_version=4.0.0.0 to_version=4.3.0.0 previous_redirects=0
[2023-07-26T16:14:14.510207000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Security.SecureString] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=0
[2023-07-26T16:14:14.510225400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Threading.Overlapped] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=0
[2023-07-26T16:14:14.510245600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Xml.XPath.XDocument] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=0
[2023-07-26T16:14:15.055125400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=8
[2023-07-26T16:14:15.055188700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.0.0 to_version=7.0.0.3 previous_redirects=4
[2023-07-26T16:14:15.066634700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=1
[2023-07-26T16:14:15.108281000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=5
[2023-07-26T16:14:15.646918800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=2
[2023-07-26T16:14:15.712918600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=6
[2023-07-26T16:14:15.723430900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=7
[2023-07-26T16:14:15.872716200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=4
[2023-07-26T16:14:15.872774600Z] [33616|27736] [error] RedirectAssemblyReferences: AssemblyRef [System.Diagnostics.DiagnosticSource] version=7.0.0.2 has a higher version than an earlier applied redirection to version=7.0.0.0
[2023-07-26T16:14:15.936903400Z] [33616|27736] [info] JITCompilationStarted: Startup hook registered in function_id=140726621615152 token=100688377 name=System.Web.Compilation.BuildManager.InvokePreStartInitMethods(), assembly_name=System.Web app_domain_id=140728222956688 domain_neutral=1
[2023-07-26T16:14:15.963609900Z] [33616|27736] [info] ModuleLoadFinished: OpenTelemetry.AutoInstrumentation.Loader loaded into AppDomain 2143761380000 [/LM/W3SVC/1/ROOT/WebApplicationTest-1-133348616519585626]
[2023-07-26T16:14:16.371367300Z] [33616|27736] [info] Rewriting PInvokes to native: C:\Program Files\OpenTelemetry .NET AutoInstrumentation\win-x64\OpenTelemetry.AutoInstrumentation.Native.dll
[2023-07-26T16:14:16.371576200Z] [33616|27736] [info] Rewriting pinvoke for: AddInstrumentations
[2023-07-26T16:14:16.371607800Z] [33616|27736] [info] Rewriting pinvoke for: AddDerivedInstrumentations
[2023-07-26T16:14:16.371631200Z] [33616|27736] [info] AssemblyLoadFinished: OpenTelemetry.AutoInstrumentation was loaded domain-neutral
[2023-07-26T16:14:16.385528200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=3.1.0.0 to_version=7.0.0.1 previous_redirects=4
[2023-07-26T16:14:16.385598000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Abstractions] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:16.385800400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:16.385828000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Google.Protobuf] from_version=3.19.4.0 to_version=3.23.3.0 previous_redirects=0
[2023-07-26T16:14:16.385851200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.DependencyInjection.Abstractions] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:16.385872800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=3.1.0.0 to_version=7.0.0.1 previous_redirects=5
[2023-07-26T16:14:16.401436500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:16.401542400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=3.1.0.0 to_version=7.0.0.1 previous_redirects=5
[2023-07-26T16:14:16.401581900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Abstractions] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:14:16.401612100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:14:16.401641600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.DependencyInjection.Abstractions] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:14:16.401672300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.DependencyInjection] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:14:16.401705900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=3.1.0.0 to_version=7.0.0.1 previous_redirects=6
[2023-07-26T16:14:16.401736800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Configuration] from_version=3.1.0.0 to_version=7.0.0.0 previous_redirects=0
[2023-07-26T16:15:05.098951400Z] [33616|34504] [info] ModuleLoadFinished: OpenTelemetry.AutoInstrumentation.Loader loaded into AppDomain 2124152970912 [/LM/W3SVC/1/ROOT/WebApplicationTest-2-133348617049263142]
[2023-07-26T16:15:37.483794500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=2
[2023-07-26T16:15:37.483892000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=5
[2023-07-26T16:15:37.483915600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=9
[2023-07-26T16:15:37.483936600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.1.1.3 to_version=4.2.0.0 previous_redirects=8
[2023-07-26T16:15:37.484003000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=3
[2023-07-26T16:15:37.484027800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=3
[2023-07-26T16:15:37.496776300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=10
[2023-07-26T16:15:37.496832500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=6
[2023-07-26T16:15:37.496853600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=4
[2023-07-26T16:15:37.496873600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=3
[2023-07-26T16:15:37.496894200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Encodings.Web] from_version=4.0.5.1 to_version=7.0.0.0 previous_redirects=1
[2023-07-26T16:15:37.512162900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=11
[2023-07-26T16:15:37.512223500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=3
[2023-07-26T16:15:37.534848600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=12
[2023-07-26T16:15:37.534904200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=3.0.3.0 to_version=7.0.0.1 previous_redirects=7
[2023-07-26T16:15:37.534925500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.3.1 to_version=7.0.0.0 previous_redirects=5
[2023-07-26T16:15:37.534943800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Buffers] from_version=4.0.2.0 to_version=4.0.3.0 previous_redirects=1
[2023-07-26T16:15:37.587819300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=13
[2023-07-26T16:15:37.665387900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=6
[2023-07-26T16:15:37.665443700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=8
[2023-07-26T16:15:37.665466300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=2
[2023-07-26T16:15:37.676577400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=9
[2023-07-26T16:15:37.676730000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=7
[2023-07-26T16:15:37.676774100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=7.0.0.0 to_version=7.0.0.3 previous_redirects=7
[2023-07-26T16:15:37.676812000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=4
[2023-07-26T16:15:37.683785100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=8
[2023-07-26T16:15:37.683916300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=10
[2023-07-26T16:15:37.689973100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=9
[2023-07-26T16:15:37.690020400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=3
[2023-07-26T16:15:37.742490900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=9
[2023-07-26T16:15:37.769434800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=8
[2023-07-26T16:15:37.769487400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=14
[2023-07-26T16:15:37.818076800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=15
[2023-07-26T16:15:38.377612900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=16
[2023-07-26T16:15:38.377761500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.0.0 to_version=7.0.0.3 previous_redirects=9
[2023-07-26T16:15:38.409411500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=10
[2023-07-26T16:15:38.969779600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=11
[2023-07-26T16:15:38.980666400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=12
[2023-07-26T16:15:39.128779700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=11
[2023-07-26T16:15:39.128833700Z] [33616|27736] [error] RedirectAssemblyReferences: AssemblyRef [System.Diagnostics.DiagnosticSource] version=7.0.0.2 has a higher version than an earlier applied redirection to version=7.0.0.0
[2023-07-26T16:15:39.166349800Z] [33616|27736] [info] ModuleLoadFinished: OpenTelemetry.AutoInstrumentation.Loader loaded into AppDomain 2124141142816 [/LM/W3SVC/1/ROOT/WebApplicationTest-3-133348617368537156]
[2023-07-26T16:17:34.423366000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=13
[2023-07-26T16:17:34.433944000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=14
[2023-07-26T16:17:34.616750400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=4
[2023-07-26T16:17:34.616832800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=10
[2023-07-26T16:17:34.616866500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=17
[2023-07-26T16:17:34.616899200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.1.1.3 to_version=4.2.0.0 previous_redirects=15
[2023-07-26T16:17:34.616930600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=6
[2023-07-26T16:17:34.616970400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=5
[2023-07-26T16:17:34.633590900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=18
[2023-07-26T16:17:34.633667900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=11
[2023-07-26T16:17:34.633698700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.4.0 to_version=7.0.0.0 previous_redirects=7
[2023-07-26T16:17:34.633728000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Bcl.AsyncInterfaces] from_version=1.0.0.0 to_version=7.0.0.0 previous_redirects=5
[2023-07-26T16:17:34.633757200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Encodings.Web] from_version=4.0.5.1 to_version=7.0.0.0 previous_redirects=2
[2023-07-26T16:17:34.652939000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=19
[2023-07-26T16:17:34.653057900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=4
[2023-07-26T16:17:34.664476300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=20
[2023-07-26T16:17:34.676359600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=21
[2023-07-26T16:17:34.676419700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=3.0.3.0 to_version=7.0.0.1 previous_redirects=12
[2023-07-26T16:17:34.676441300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.DiagnosticSource] from_version=4.0.3.1 to_version=7.0.0.0 previous_redirects=8
[2023-07-26T16:17:34.676460200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Buffers] from_version=4.0.2.0 to_version=4.0.3.0 previous_redirects=2
[2023-07-26T16:17:34.729363800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=22
[2023-07-26T16:17:34.818384900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=10
[2023-07-26T16:17:34.818470300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=13
[2023-07-26T16:17:34.818499100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=4
[2023-07-26T16:17:34.828616100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=14
[2023-07-26T16:17:34.828668900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=11
[2023-07-26T16:17:34.828690200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=7.0.0.0 to_version=7.0.0.3 previous_redirects=12
[2023-07-26T16:17:34.828712300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.1.0 to_version=4.0.2.0 previous_redirects=6
[2023-07-26T16:17:34.837907000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=12
[2023-07-26T16:17:34.837982800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=15
[2023-07-26T16:17:34.847596600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Options] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=13
[2023-07-26T16:17:34.847677800Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Configuration.Binder] from_version=7.0.0.0 to_version=7.0.0.4 previous_redirects=5
[2023-07-26T16:17:34.907437300Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=16
[2023-07-26T16:17:34.939110600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.1.2 to_version=7.0.0.3 previous_redirects=13
[2023-07-26T16:17:34.939172400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=23
[2023-07-26T16:17:34.987080900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=24
[2023-07-26T16:17:35.019827600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Data.Common] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:17:35.019889400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.StackTrace] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=1
[2023-07-26T16:17:35.019911500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Diagnostics.Tracing] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:17:35.019930900Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Globalization.Extensions] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=1
[2023-07-26T16:17:35.019948600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.IO.Compression] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:17:35.019966700Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=17
[2023-07-26T16:17:35.019984100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Sockets] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:17:35.020011500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.ValueTuple] from_version=4.0.0.0 to_version=4.0.3.0 previous_redirects=1
[2023-07-26T16:17:35.020032200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.InteropServices.RuntimeInformation] from_version=4.0.0.0 to_version=4.0.2.0 previous_redirects=7
[2023-07-26T16:17:35.020051400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.Serialization.Xml] from_version=4.0.0.0 to_version=4.1.3.0 previous_redirects=1
[2023-07-26T16:17:35.020069600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.Serialization.Primitives] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=1
[2023-07-26T16:17:35.020087200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Security.Cryptography.Algorithms] from_version=4.0.0.0 to_version=4.3.0.0 previous_redirects=1
[2023-07-26T16:17:35.020105000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Security.SecureString] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=1
[2023-07-26T16:17:35.020122500Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Threading.Overlapped] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=1
[2023-07-26T16:17:35.020142100Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Xml.XPath.XDocument] from_version=4.0.0.0 to_version=4.1.0.0 previous_redirects=1
[2023-07-26T16:17:35.594465200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Memory] from_version=4.0.1.1 to_version=4.0.1.2 previous_redirects=25
[2023-07-26T16:17:35.594525400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Text.Json] from_version=4.0.0.0 to_version=7.0.0.3 previous_redirects=14
[2023-07-26T16:17:35.607944200Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Runtime.CompilerServices.Unsafe] from_version=4.0.4.1 to_version=6.0.0.0 previous_redirects=5
[2023-07-26T16:17:35.636002000Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=18
[2023-07-26T16:17:36.352755600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=19
[2023-07-26T16:17:36.365959600Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [System.Net.Http] from_version=4.0.0.0 to_version=4.2.0.0 previous_redirects=20
[2023-07-26T16:17:36.714095400Z] [33616|27736] [info] RedirectAssemblyReferences: redirecting [Microsoft.Extensions.Logging.Abstractions] from_version=7.0.0.0 to_version=7.0.0.1 previous_redirects=16
[2023-07-26T16:17:36.714176200Z] [33616|27736] [error] RedirectAssemblyReferences: AssemblyRef [System.Diagnostics.DiagnosticSource] version=7.0.0.2 has a higher version than an earlier applied redirection to version=7.0.0.0

@pellared
Copy link
Member

pellared commented Jul 26, 2023

Quick glance (not tested)

From logs:

[2023-07-26T16:17:36.714176200Z] [33616|27736] [error] RedirectAssemblyReferences: AssemblyRef [System.Diagnostics.DiagnosticSource] version=7.0.0.2 has a higher version than an earlier applied redirection to version=7.0.0.0

I think this is the source of the problem that System.Diagnostics.DiagnosticSource is at version 7.0.0.2. Probably it comes from https://github.com/Kronos11/OTelWebApplicationTest/blob/9c9f2bdea15f4407f94c09b69012ec819f2ab1e5/WebApplicationTest/packages.config#L52

Can you change it to 7.0.0? Reference:

1. Add the `System.Diagnostics.DiagnosticSource` dependency to your project:
```xml
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
```

Was it exactly the same and working when you were testing the previous version of OpenTelemetry Automatic Instrumentation?

@Kronos11
Copy link
Contributor Author

Kronos11 commented Jul 26, 2023

Quick glance (not tested)

From logs:

[2023-07-26T16:17:36.714176200Z] [33616|27736] [error] RedirectAssemblyReferences: AssemblyRef [System.Diagnostics.DiagnosticSource] version=7.0.0.2 has a higher version than an earlier applied redirection to version=7.0.0.0

I think this is the source of the problem that System.Diagnostics.DiagnosticSource is at version 7.0.0.2. Probably it comes from https://github.com/Kronos11/OTelWebApplicationTest/blob/9c9f2bdea15f4407f94c09b69012ec819f2ab1e5/WebApplicationTest/packages.config#L52

Can you change it to 7.0.0? Reference:

1. Add the `System.Diagnostics.DiagnosticSource` dependency to your project:
```xml
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
```

Was it exactly the same and working when you were testing the previous version of OpenTelemetry Automatic Instrumentation?

It was exactly the same using otel auto instrumentation version 7.0.0 as well. I did downgrade to DiagnosticSource version 7.0.0 and removed the binding redirect and still see the same issue. I've updated the repo as well.

@pellared pellared added this to the 1.0.0-rc.2 milestone Jul 27, 2023
@pellared pellared added the bug Something isn't working label Jul 27, 2023
@lachmatt
Copy link
Contributor

@Kronos11
For the workaround suggested by @pellared, in order to downgrade, this reference should be fixed as well. After that, it should work.

@Kronos11
Copy link
Contributor Author

@Kronos11 For the workaround suggested by @pellared, in order to downgrade, this reference should be fixed as well. After that, it should work.

The workaround did work. Will the references work as expected for the 1.0.0 release? As this works without the exact version in 7.0.0

@Kielek
Copy link
Contributor

Kielek commented Jul 31, 2023

The workaround did work. Will the references work as expected for the 1.0.0 release? As this works without the exact version in 7.0.0

We are working on the potential fix right now.
I am not sure if we will be able to include it into 1.0.0-rc.2 release of some further patch.

@pjanotti
Copy link
Contributor

pjanotti commented Aug 2, 2023

Closed via #2794 - the fix will be in 1.0.0-rc.2

@pjanotti pjanotti closed this as completed Aug 2, 2023
@pjanotti pjanotti mentioned this issue Aug 2, 2023
5 tasks
Kielek added a commit to Kielek/opentelemetry-dotnet-instrumentation that referenced this issue Aug 3, 2023
Kielek added a commit to Kielek/opentelemetry-dotnet-instrumentation that referenced this issue Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

5 participants