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] agent cannot load the probe #2484

Closed
ysj2018 opened this issue Nov 15, 2024 · 3 comments
Closed

[BUG] agent cannot load the probe #2484

ysj2018 opened this issue Nov 15, 2024 · 3 comments
Labels
bug Something isn't working community triage

Comments

@ysj2018
Copy link

ysj2018 commented Nov 15, 2024

APM Agent version

elastic_apm_profiler_1.30.0-win-x64.zip

Environment

Operating system and version:
windows 10 and Installed the built-in IIS components
./net framework 3.5(包含./net2.0\3.0)
./net framework 4.8 advanced services
.NET extensibility 3.5\4.8
ASP.NET 3.5\4.8

I compiled the same codebase using(It only includes an operation to access Baidu using HttpClient) .NET SDK versions 6.0.136, 5.0.408, and 3.1.426 respectively, for testing purposes

dotnet build
dotnet publish -c Release -o ./publish

1.I placed the compiled package in the specified physical path directory for the IIS website.
2.Started the application and it was accessible normally.
3.However, I added environment variables using web.config. The specific configuration is as follows:

4.After restarting IIS, the application was still accessible normally, but I found that the probe was not loaded. Are there any steps I did wrong? 5.I also tested configuring the above settings directly using system environment variables, but the probe still wasn't loaded. What could be the possible reasons?

I was hoping to see the probe being loaded, but after testing, I found that the application was functioning normally and I could access it through the port configured in IIS. However, there was no sign of the probe being loaded.

@ysj2018 ysj2018 added the bug Something isn't working label Nov 15, 2024
@ysj2018
Copy link
Author

ysj2018 commented Nov 15, 2024

?xml version="1.0" encoding="utf-8"?>


<system.webServer>
















</system.webServer>

@ysj2018
Copy link
Author

ysj2018 commented Nov 18, 2024

The parameters for the environmentVariable node that I configured in the web.config file are mainly as follows:
ELASTIC_APM_SERVICE_NAME=dotnettest
COR_ENABLE_PROFILING=1COR_PROFILER_PATH=E:\IIS\agent\elastic_apm_profiler.dll
ELASTIC_APM_PROFILER_HOME=E:\IIS\agent
ELASTIC_APM_PROFILER_INTEGRATIONS=E:\IIS\agent\integrations.yml
ELASTIC_APM_SERVER_URL=localhost:8200
ELASTIC_OTEL_LOG_LEVEL=trace
ELASTIC_OTEL_LOG_DIRECTORY=E:\IIS\agent\logs
ELASTIC_APM_APPLICATION_PACKAGES=E:\IIS\ddd\

@stevejgordon
Copy link
Contributor

Duplicate of #2485

@stevejgordon stevejgordon marked this as a duplicate of #2485 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community triage
Projects
None yet
Development

No branches or pull requests

2 participants