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

Global Datadog IIS Tracer kills PSU #3881

Closed
Omzig opened this issue Oct 8, 2024 · 5 comments
Closed

Global Datadog IIS Tracer kills PSU #3881

Omzig opened this issue Oct 8, 2024 · 5 comments
Labels
Area-AdminConsole This issue is related to the admin console. Area-WebServer This issue is related to the Kestrel web server or configuration. bug Something isn't working P1 - critical Bug is a showstopper and prevents the core functionality of the app. PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.

Comments

@Omzig
Copy link
Collaborator

Omzig commented Oct 8, 2024

Version

5.0.10

Severity

Critical

Environment

Nested IIS

Steps to Reproduce

  • install datadog
  • install datadog trace
  • Log in

image

datadog Doc: https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/dotnet-framework/?tab=windows

/WAS Environment settings

DD_LOGS_INJECTION=true
DD_RUNTIME_METRICS_ENABLED=true
DD_TRACE_DISABLED_ADONET_COMMAND_TYPES=CachingCommand
DD_TRACE_DEBUG=1
DD_TRACE_LOG_DIRECTORY=D:\DD_TRACER_LOGS
DD_TRACE_LOGFILE_RETENTION_DAYS=3
DD_PROFILING_ENABLED=true
COR_ENABLE_PROFILING=1
COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
CORECLR_ENABLE_PROFILING=1
CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}

/W3SVC Environment settings

DD_LOGS_INJECTION=true
DD_RUNTIME_METRICS_ENABLED=true
COR_ENABLE_PROFILING=1
COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
CORECLR_ENABLE_PROFILING=1
CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}

Expected behavior

200

Actual behavior

Could not load type 'Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.UserEvents.AuthenticationHttpContextExtensionsIntegration' from assembly 'Datadog.Trace, Version=3.3.1.0, Culture=neutral, PublicKeyToken=def86d061d0d2eeb'.

Additional Environment data

No response

Screenshots/Animations

No response

@Omzig Omzig added bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team. P1 - critical Bug is a showstopper and prevents the core functionality of the app. Area-AdminConsole This issue is related to the admin console. Area-WebServer This issue is related to the Kestrel web server or configuration. labels Oct 8, 2024
@Omzig Omzig changed the title Datadog APM kills PSU Datadog IIS Tracer kills PSU Oct 8, 2024
@Omzig Omzig changed the title Datadog IIS Tracer kills PSU Global Datadog IIS Tracer kills PSU Oct 8, 2024
@adamdriscoll
Copy link
Member

I'm happy to take a quick peak at this but it seems like a Datadog problem. I found a similar issue in their repo: DataDog/dd-trace-dotnet#429

@Omzig
Copy link
Collaborator Author

Omzig commented Oct 9, 2024

Created a bug here:

@kevingosse
Copy link

kevingosse commented Oct 11, 2024

The issue was caused by a custom AssemblyLoadContext injected by System.Management.Automation. We have a pending fix: DataDog/dd-trace-dotnet#6148

@adamdriscoll
Copy link
Member

@kevingosse Thanks you! I'll close this issue on our repo. @Omzig - Looks like a fix is coming and a workaround is mentioned on the DD repo.

@Omzig
Copy link
Collaborator Author

Omzig commented Oct 17, 2024

Hello,

Thank you for your patience! We have received an update from our engineering team:

To exclude the exclude the problematic processes from being instrumented, you can detach a CLR Profiler as it can be scoped by process name:

  • Excluding processes: DD_PROFILER_EXCLUDE_PROCESSES=app1.exe;app2.exe
  • Including processes: DD_PROFILER_PROCESSES=w3wp.exe

For example you could use:
• DD_PROFILER_EXCLUDE_PROCESSES=Universal.Server.exe

Additionally our team has let us know that there is a pending fix for a similar issue reported on Github, and this fix will be shipped with the next release, although I do not have the exact timeline for this release it should be coming soon.

If you still encounter any issues after setting the DD_PROFILER_EXCLUDE_PROCESSES variable, please let us know!

Best,
Jonathan G. | Technical Support Engineer | Datadog

We were able to bypass the datadog apm via a environment variable registry entry, i cannot find the datadog doc on it:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AdminConsole This issue is related to the admin console. Area-WebServer This issue is related to the Kestrel web server or configuration. bug Something isn't working P1 - critical Bug is a showstopper and prevents the core functionality of the app. PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.
Projects
None yet
Development

No branches or pull requests

3 participants