DataDog / dd-trace-php

Datadog PHP Clients
https://docs.datadoghq.com/tracing/setup/php
Other
496 stars 155 forks source link

Unable to activate Trace Search & Analytics #460

Closed funkjedi closed 5 years ago

funkjedi commented 5 years ago

Hitting a wall trying to get Trace Search & Analytics activated. Tried every permutation of configurations I've been able to find to no avail.

Appreciate any ideas anyone might have.

--

Environment vars injected via nginx

fastcgi_param DD_TRACE_ENABLED true;
fastcgi_param DD_TRACE_ANALYTICS_ENABLED true;
fastcgi_param DD_LARAVEL_ANALYTICS_ENABLED true;
fastcgi_param DD_LARAVEL_ANALYTICS_SAMPLE_RATE 1.0;
fastcgi_param DD_APM_ANALYZED_SPANS "laravel|laravel.request=1";

Agent config

apm_config:
  enabled: true
  analyzed_spans:
    laravel|laravel.request: 1
labbati commented 5 years ago

Hi @funkjedi thanks for the patience, I totally had missed this message.

You don't need Agent config at all and for Environment vars injected via nginx this is enough to have laravel analytics enabled.

fastcgi_param DD_TRACE_ANALYTICS_ENABLED true;

If this is not working please share:

soi we can investigate

funkjedi commented 5 years ago

It's a little puzzling but starting Monday the Trace Search & Analytics was all of a sudden activated. Stranger yet it contains all the trace data for the last 2 weeks.

Seems to activated right after the delays issue was resolved. Probably just a coincidence but whatever the reason we're all golden now.