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

[BUG] Auto-instrumentation using the profiler-based agent installation fails inside Docker containers since 1.23.0 #2383

Closed
stevejgordon opened this issue Jun 27, 2024 · 5 comments · Fixed by #2389
Labels
bug Something isn't working

Comments

@stevejgordon
Copy link
Contributor

When building a container image containing the profiler agent for auto-instrumentation of ASP.NET Core applications, the agent is no longer working. No logs appear from the profiler, suggesting that this fails extremely early when the CLR attempts to load the profiler. We see no obvious logs from the .NET runtime to identify the reason for the failure.

We need to identify what changed between 1.22.0 and 1.23.0 that may have caused this. No obvious changes were made to the managed profiler code.

@stevejgordon stevejgordon added the bug Something isn't working label Jun 27, 2024
@stevejgordon
Copy link
Contributor Author

stevejgordon commented Jun 28, 2024

I've included a sample that can be used to reproduce this by building images for various combinations of agent version and .NET runtime. The README contains details of the steps to use it.

@stevejgordon
Copy link
Contributor Author

After testing this in several combinations, the latest agent seems to work on a .NET 8.0 container.

Runtime Version Agent Version Working (Y/N)
8.0 1.27.3 Y
7.0 1.27.3 N
6.0 1.27.3 N
8.0 1.22.0 Y
7.0 1.22.0 Y
6.0 1.22.0 Y
6.0 1.23.0 N
6.0 Custom local build N

@stevejgordon
Copy link
Contributor Author

As yet untested in Linux outside of a container scenario.

@stevejgordon
Copy link
Contributor Author

On initial testing on a Debian 11 VM, 1.27.3 failed on .NET 6.0 and .NET 8.0. This is strange, as I had it working in a container. 1.22.0 seemed to work fine.

@stevejgordon
Copy link
Contributor Author

We have identified the root cause and hope to have a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant