Comments (5)
@PROFeNoM thanks for digging! I can see the traces in datadog UI with my local environment. I guess something is wrong with our agent in production.
I am closing and will re-open if I have more evidence.
Thanks again, much appreciated 👍
from dd-trace-php.
Hi @B-Galati,
Just to confirm, is it indeed that you don't receive any spans at all from automatic instrumentation?
When you say "traces are sent when they are going through our custom instrumentation", do you mean that automatic instrumentation spans are being sent and displayed on the Datadog UI only when using the code snippet you provided? (Thank you for providing the code snippet; it is always helpful.)
When using DD_TRACE_DEBUG=1, do you see the SymfonyIntegration loaded when receiving an HTTP request?
from dd-trace-php.
Just to confirm, is it indeed that you don't receive any spans at all from automatic instrumentation?
Exactly.
When you say "traces are sent when they are going through our custom instrumentation", do you mean that automatic instrumentation spans are being sent and displayed on the Datadog UI only when using the code snippet you provided? (Thank you for providing the code snippet; it is always helpful.)
Yes!
When using DD_TRACE_DEBUG=1, do you see the SymfonyIntegration loaded when receiving an HTTP request?
Yes, I can see it is always loaded ✔️
from dd-trace-php.
Okay, so far, I haven't been able to reproduce the issue on Symfony 6.3.
There is one thing that I want to make sure of. Looking at your phpinfo()
output, I can see:
datadog.trace.symfony_enabled => Off => Off
This shouldn't be the case. By any chance, haven't you disabled Symfony through the DD_TRACE_SYMFONY_ENABLED
environment variable or the datadog.trace.symfony_enabled
ini? This configuration is enabled by default.
Otherwise, at that point, since you confirmed through the debug logs that the Symfony Integration was indeed loaded and that I assume you didn't see any exceptions until it eventually flushed the trace, we can look at the agent logs for something.
You can even try with a basic controller - e.g., something along the:
<?php
declare(strict_types=1);
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController
{
#[Route('/basic_route')]
public function index()
{
return new Response('Hello world!');
}
}
The agent log level should be set in debug
mode by default. When making a request to this (or another) controller, can you see an associated agent log:
TRACE | DEBUG | (pkg/trace/writer/trace.go:242 in flush) | Serializing 1 tracer payloads.
An even more verbose mode is the trace level. If you look at this mode, do you see anything striking?
In the agent logs, we would first be looking at what's happening between the addSpans
and flush
function calls, i.e., between:
TRACE | TRACE | (pkg/trace/writer/trace.go:206 in addSpans) | Writer: handling new tracer payload with 7 spans:
and
TRACE | DEBUG | (pkg/trace/writer/trace.go:242 in flush) | Serializing 1 tracer payloads.
from dd-trace-php.
For anyone asking: the root was this config on our agent: DD_APM_IGNORE_RESOURCES=healthcheck,health,ping
from dd-trace-php.
Related Issues (20)
- [Bug]: Nested exceptions are not recorded in `Integration::setError()` HOT 2
- [Security] Medium Vulnerability rustix in tag 0.97.0 HOT 2
- [Bug]: ddappsec startup warnings HOT 9
- [Feature] CURL multi exec integration is lacking data in the APM view HOT 7
- [Bug]: PDO/PHPRedis client split by instance inconsistency HOT 1
- [Bug]: Segfault in dd_patched_zend_call_known_function HOT 3
- [Bug]: ddtrace overrides php error log permissions HOT 1
- [Documentation]: OTEL tracing HOT 8
- [Feature] Add JSON body items to http.request
- [Feature] Laravel Livewire 3 Support
- [Bug]: Standalone null Return Type for update_span_duration Causes Phan Parsing to Fail for PHP <8.2 HOT 1
- [Bug]: new operation `command_execution` HOT 3
- [Bug]: Memory leak in creating Tracer HOT 8
- [Bug]: 0.98.x tar.gz file size increased? HOT 1
- [Bug]: Bad signature error HOT 6
- [Feature] Error Tracking via logs HOT 2
- [Bug]: CLI PHP Processes do not stop and with Apache (mod_php) the connection is closed unexpectedly HOT 1
- [Bug]: Laravel Octane traces not showing in dashboard HOT 15
- [Bug]: Service name is always "laravelqueue" and can't be changed HOT 1
- [Feature] Missing instrumentation for batched AMQP publishing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-php.