question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

domain neutral instrumentation fails in 1.17.0

See original GitHub issue

Describe the bug After upgrading from 1.16.2 to 1.17.0 per this issue, and re-enabling domain neutral instrumentaton, the tracing agent logs a warn: Method replacement found but the managed profiler has not yet been loaded into AppDomain and fails to capture traffic from domain neutral assemblies.

To Reproduce Steps to reproduce the behavior:

  1. From .NET tracer version 1.16.2 Install 1.17.0
  2. Add DD_TRACE_DOMAIN_NEUTRAL_INSTRUMENTATION as a System environment variable with value true
  3. Restart machine

Expected behavior domain neutral assemblies are captured in DD trace views

Runtime environment (please complete the following information):

  • Instrumentation mode: Automatic
  • Tracer version: 1.17.0
  • OS: Windows Server 2016 Datacenter
  • CLR: .NET Framework 4.7.2

Additional context

  • Was working fine in tracer version 1.16.2
  • We only have 1 site per application pool.
[w3wp.exe] 7036: [info] Detected environment variable DD_TRACE_DOMAIN_NEUTRAL_INSTRUMENTATION=true
[w3wp.exe] 3636: [info] ModuleLoadFinished: Datadog.Trace.ClrProfiler.Managed.Loader loaded into AppDomain 341937672 /LM/W3SVC/1/ROOT/xxxxxxx-1-132345695907704549
[w3wp.exe] 4840: [info] JITCompilationStarted: Startup hook registered in function_id=361337040 token=100688380 name=System.Web.Compilation.BuildManager.InvokePreStartInitMethods(), assembly_name=System.Web app_domain_id=1937404912 domain_neutral=1
[w3wp.exe] 3636: [info] AssemblyLoadFinished: Datadog.Trace.ClrProfiler.Managed v1.17.0 matched profiler version v1.17.0
[w3wp.exe] 3636: [info] AssemblyLoadFinished: Datadog.Trace.ClrProfiler.Managed was not loaded domain-neutral
[w3wp.exe] 3636: [warn] JITCompilationStarted skipping method: Method replacement found but the managed profiler has not yet been loaded into AppDomain with id=1937404912 function_id=648750164 token=100665474 caller_name=System.Data.Linq.SqlClient.SqlProvider.Execute() target_name=System.Data.Common.DbCommand.ExecuteReader()
[w3wp.exe] 3636: [warn] JITCompilationStarted skipping method: Method replacement found but the managed profiler has not yet been loaded into AppDomain with id=1937404912 function_id=648750164 token=100665474 caller_name=System.Data.Linq.SqlClient.SqlProvider.Execute() target_name=System.Data.Common.DbCommand.ExecuteReader()
[w3wp.exe] 3636: [warn] JITCompilationStarted skipping method: Method replacement found but the managed profiler has not yet been loaded into AppDomain with id=1937404912 function_id=648750164 token=100665474 caller_name=System.Data.Linq.SqlClient.SqlProvider.Execute() target_name=System.Data.Common.DbCommand.ExecuteReader()
[w3wp.exe] 3636: [warn] JITCompilationStarted skipping method: Method replacement found but the managed profiler has not yet been loaded into AppDomain with id=1937404912 function_id=648750164 token=100665474 caller_name=System.Data.Linq.SqlClient.SqlProvider.Execute() target_name=System.Data.Common.DbCommand.ExecuteNonQuery()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scownTownVcommented, Jun 8, 2020

@lucaspimentel do you have an ETA on the next release date?

1reaction
lucaspimentelcommented, Jun 1, 2020

@scownTownV: We recently found out that the flag DD_TRACE_DOMAIN_NEUTRAL_INSTRUMENTATION did not cover all intended cases. The fix (#738) should be ready for the next tracer release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET Agent is not capturing / sending spans to APM/ Elastic
When a profiler auto-instrumentation targets an assembly that is loaded domain-neutral, the assembly containing the instrumentation, Elastic.Apm ...
Read more >
Chapter 8. Tracing requests OpenShift Container Platform 4.8
Distributed tracing records the path of a request through the various services that make up an application. It is used to tie information...
Read more >
Bug listing with status UNCONFIRMED as at 2023/07/13 17 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >
MicroRNA156 conditions auxin sensitivity to enable growth ...
MicroRNAs (miRNAs) play diverse roles in plant development, but whether and how miRNAs participate in thermomorphogenesis remain ambiguous.
Read more >
Serverless OpenShift Container Platform 4.7
Release Notes for Red Hat OpenShift Serverless 1.17.0" Collapse section "1.11. ... Managing custom domain mappings by using the Knative CLI.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found