Description
Bug report
The primary issue is when Laravel Vapor with Octane ENABLED no root spans are created and only cache, db, curl, events, etc are included in the traces, and the most important laravel.request
root spans are missing.
When running on Laravel Vapor WITHOUT Octane enabled, root spans are created for incoming requests correctly.
My .env is as follows
# agent config
DD_AGENT_HOST=datadog-agent.local
DD_AUTOFINISH_SPANS=true
DD_TAGS=source:vapor
# unified service tagging
DD_SERVICE=laravel
DD_ENV=prod
# traces
DD_APM_ENABLED=true
DD_TRACE_GENERATE_ROOT_SPAN=false
DD_TRACE_AUTO_FLUSH_ENABLED=true
DD_TRACE_HEADER_TAGS=x-app-version
DD_TRACE_HTTP_CLIENT_SPLIT_BY_DOMAIN=true
DD_TRACE_HTTP_POST_DATA_PARAM_ALLOWED=*
DD_TRACE_CLIENT_IP_ENABLED=true
# logs
DD_LOGS_INJECTION=true
# profiling
DD_PROFILING_ENABLED=false
datadog-agent.local
is the host where the Datadog agent is setup and running
I have tried various combinations of DD_TRACE_GENERATE_ROOT_SPAN=true/false
and DD_TRACE_AUTO_FLUSH_ENABLED=true/false
, as well as leaving DD_AUTOFINISH_SPANS=true
out
As far as I'm aware, the request does not follow a regular Swoole/Roadrunner path and instead enters here https://github.com/laravel/vapor-core/blob/2.0/stubs/octaneRuntime.php
Any insight would be appreciated
Thanks in advance
PHP version
8.4.3
Tracer or profiler version
1.6.3
Installed extensions
No response
Output of phpinfo()
No response
Upgrading from
No response