Skip to content

Conversation

@GSVarsha
Copy link
Contributor

Autotrace webhook:

Python <= 3.11:

2025-11-20 05:04:24,241: 1 DEBUG instana: uwsgi hooks: decorators not available: likely not running under uWSGI

Reason:
uwsgi module not available for import hence, hitting the line here

Warning

uwsgi hooks not used/applied

Python >= 3.12:

2025-11-20 04:54:51,053: 1 DEBUG instana: uwsgi hooks: Running under uWSGI but decorators not available

Reason:
uwsgi has no attribute "opt" (Check out the card under Issue Links for the exact error message) hence, hitting the line here

Warning

uwsgi hooks still not used/applied

Inference:

Since in either case the uwsgi hooks are not really used and the fact that the automatic fork detection mechanism is robust enough to handle uwsgi worker forks without explicit hooks, we can safely remove the uwsgi hooks.

2025-11-20 04:54:52,031: 1 DEBUG instana: Agent is ready. Getting to work.
2025-11-20 04:57:43,365: 12 DEBUG instana: Flask(blinker): Applying flask before/after instrumentation funcs
2025-11-20 04:57:43,589: 12 DEBUG instana: Fork detected; Handling like a pro...
2025-11-20 04:57:43,590: 12 DEBUG instana: State machine being reset. Will start a new announce cycle.
2025-11-20 04:57:43,598: 12 DEBUG instana: Instana host agent found on 10.17.93.217:42699
2025-11-20 04:57:43,598: 12 DEBUG instana: Attempting to make an announcement to the agent on 10.17.93.217:42699
2025-11-20 04:57:43,612: 12 DEBUG instana: Starting Host Collector
2025-11-20 04:57:43,612: 12 DEBUG instana: BaseCollector.start: launching collection thread
2025-11-20 04:57:43,614: 12 INFO instana: Instana host agent available. We're in business. Announced PID: 12 (true PID: 1296454)
2025-11-20 04:57:43,615: 12 DEBUG instana: Announced PID: 12 (true PID: 1296454). Waiting for Agent Ready...
[pid: 12|app: 0|req: 1/1] 127.0.0.1 () {28 vars in 303 bytes} [Thu Nov 20 04:57:43 2025] GET /users/ => generated 1545 bytes in 265 msecs (HTTP/1.1 200) 8 headers in 315 bytes (1 switches on core 0)
2025-11-20 04:57:44,619: 12 DEBUG instana: Agent is ready. Getting to work.
2025-11-20 04:57:44,735: 12 DEBUG instana: Reporting 2 spans

@GSVarsha GSVarsha added this to the H2-2025 milestone Nov 20, 2025
@GSVarsha GSVarsha self-assigned this Nov 20, 2025
@sonarqubecloud
Copy link

@GSVarsha GSVarsha marked this pull request as ready for review November 20, 2025 08:52
@GSVarsha GSVarsha requested a review from a team as a code owner November 20, 2025 08:52
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants