Title: datadog integration
Last modified: February 7, 2022

---

# datadog integration

 *  [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/datadog-integration/)
 * hey Pierre,
    have a quick question about datadog integration. I integrated metrics,
   traces and events, along with agent that is installed on the server. the agent
   collects logs & metrics that the decalog plugins does not : sql, redis, apache,
   nginx data. problem is the server data from the agent and data coming from decalog
   are not colerated, or in other words, they are not in context one with each other.
   almost like they come from different servers.. any idea or maybe a tutorial to
   make them work in context?
 * thank you !

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/datadog-integration/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/datadog-integration/page/2/?output_format=md)

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15337617)
 * Hi [@freshuk](https://wordpress.org/support/users/freshuk/) !
 * > data coming from decalog are not colerated
 * Could you elaborate more on this? I imagine you’re speaking of the Datadog UI,
   can you take screenshot for how it is, and tell me how you would like it should
   be?
 * Thanks 😉
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15338861)
 * Hi,
    What I mean is, all logs, metrics and traces decalog ships to datadog are
   all correlated one with each other, but the agent which is installed on the server
   also sends logs and metrics and they are all in the infrastructure menu of datadog
   while all the decalog data is under apm. So the situation is its the same server,
   from which data is being sent from decalog plugin and from datadog agent, but
   the data is not “talking” one to each other.. Sorry if I am not clear enough,
   I am pretty new to datadog and to apm.
 * BTW can we somehow load the decalog plugin before wordpress to catch all errors
   that can accur?
    Thank you!
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15403009)
 * Hello [@freshuk](https://wordpress.org/support/users/freshuk/) !
    Sorry for this(
   so, so,…) late answer. Did you manage to visualize the events, traces and metrics
   as you want in DataDog?
 * > BTW can we somehow load the decalog plugin before wordpress to catch all errors
   > that can accur?
 * Unfortunately no. WordPress architecture is designed like that 🙁
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15403059)
 * Hey Pierre,
    thank you for the reply! the logs/metrics/traces that are flowing
   from decalog are fine, but they are not in “context” with the logs/metrics/traces
   from the server itself (where the agent is installed).. for example, i have apache,
   mysql and infra data flowing from the server to datadog, and i can’t seem to 
   make it “integrate” with decalog data, i asked their support to help, maybe they
   will explain it to me.
 * a quick question, in new relic we have this nitty wordpress related tab that 
   shows slow queries, slow plugins, api calls (external services) metrics and everything
   that is related to wordpress.
    do you know how to visualise something similar
   on datadog with the decalog traces/metrics/logs? I can’t seem to find any plugin
   related metric or information that can help me understand which plugins or services
   of wordpress are problematic.
 * and lastly, i have this php profiler plugin ([https://wordpress.org/plugins/code-profiler/](https://wordpress.org/plugins/code-profiler/))
   
   and i shows decalog with high execution time, is it normal? does it affect performance?
   [https://snipboard.io/DL26fM.jpg](https://snipboard.io/DL26fM.jpg)
 * thank you !
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15403103)
 * I’m not an expert about DD, but I think you can “join” events, traces and metrics
   via the instance name.
    Maybe could you start a new conversation here: [https://github.com/Pierre-Lannoy/wp-decalog/discussions](https://github.com/Pierre-Lannoy/wp-decalog/discussions)
   I know some users of DecaLog intensively use DD…
 * Regarding NewRelic, you can’t simulate exactly that with DecaLog (DecaLog is 
   not a profiler), but if you want more events/metrics/traces about:
    – API calls:
   install Traffic plugin – sessions: install Sessions plugin – application passwords:
   install Keys Master plugin – mails: install MailArchiver plugin – OPcache: install
   OPcache manager – etc… ([https://perfops.one](https://perfops.one))
 * For the high execution time, it’s not normal. On my poor’s test servers, with
   20 active loggers, it take less than 300ms.
    Where is “located” this time? In
   the main span or in the shutdown one?
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15407366)
 * hey there
    have you thought about combining traffic+session+key masterwords+ 
   opcache into decalog? as in everybody are trying to reduce numbers of plugins
   these days, and it would be awesome to have the whole package in decalog:)
 * as for the the profiler, I don’t know where it is located, to create a profile
   i can select “frontend or backend”, the above screenshot i provided is from the
   backend.
    i just ran it another time, this time on “frontend”, and got this: 
   [https://snipboard.io/G2JSN6.jpg](https://snipboard.io/G2JSN6.jpg) still decalog
   is high. when i run it to profile the “backend”, i get this [https://snipboard.io/DL26fM.jpg](https://snipboard.io/DL26fM.jpg)
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15421801)
 * Hello [@freshuk](https://wordpress.org/support/users/freshuk/) !
 * > have you thought about combining traffic+session+key masterwords+ opcache into
   > decalog?
 * No, for to reasons:
    – many users of one or two plugins don’t want others – putting
   all features in one plugin is more or less the same thing as having several plugins
   with a subset of features (in term of performances)
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15421822)
 * Regarding your profiling session, is the plugin you’re using indicates, in which“
   sequence” is located time? DecaLog make many things in “shutdown” sequence (which
   is “invisible” to the user because page is already rendered and sent).
    Can you
   show me traces to see where it come from?
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15421882)
 * I am not sure i know how to find the traces for it..will try to figure it out
   and update.
    btw, i have this apache error that is decalog related, wonder if
   it can help? this error shows every few minutes: [https://snipboard.io/71O9Ek.jpg](https://snipboard.io/71O9Ek.jpg)
 *     ```
       [Thu Mar 03 12:02:57.023984 2022] [proxy_fcgi:error] [pid 3667973:tid 140143334086400] [client 147.182.131.77:0] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp_parse_auth_cookie() in /home/zarizcoi/domains/xxxxx/public_html/wp-includes/user.php:3219
       Stack trace:
       #0 /home/zarizcoi/domains/xxxx/public_html/wp-content/plugins/decalog/includes/features/class-dtracer.php(479): wp_get_session_token()
       #1 /home/zarizcoi/domains/xxxxx/public_html/wp-content/plugins/decalog/includes/features/class-dtracer.php(544): Decalog\\Plugin\\Feature\\DTracer->wordpress_data()
       #2 /home/zarizcoi/domains/xxxx/public_html/wp-content/plugins/decalog/includes/features/class-dtracer.php(524): Decalog\\Plugin\\Feature\\DTracer->before_close()
       #3 /home/zarizcoi/domains/xxxxx/public_html/wp-content/plugins/decalog/includes/handlers/class-abstracttracinghandler.php(429): Decalog\\Plugin\\Feature\\DTracer->traces()
       #4 /home/zarizcoi/domains/xxxx/public_html/wp-includes/class-wp-hook.php(305): Decalog\\Handler\\AbstractTracingHandler->close()
       #5 /home/zarizcoi/domains/fre...'
       ```
   
    -  This reply was modified 4 years, 3 months ago by [freshuk](https://wordpress.org/support/users/freshuk/).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15421893)
 * I would like to say traces in DecaLog (DecaLog can traces execution). It will
   allow to tell if something is going wrong with your site… (from an execution 
   time point of view).
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15421944)
 * i searched decalog on the datadog profiler: [https://snipboard.io/2k3IFr.jpg](https://snipboard.io/2k3IFr.jpg)
   
   indeed it looks like it’s at shutdown, right?
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15423830)
 * Yes, it is 🙂
    So, it is pretty “normal” (even if it’s a little high). Can you
   share some infos about you server conf (cpu/ram/…) and you traffic?
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15423875)
 * Hey, thanks for replying.
    The dedicated server is: 24 cpu x AMD EPYC 7F52 16-
   Core 75GB of ram Traffic is around 6-8k unique user sessions / day. The “heaviest”
   traffic we have though, is the 3d party integrations (rest api) for every incoming
   order (crm, wms, drivers routing solution, various analytics/insights solutions
   etc) and the apple + android mobile native apps use the api also constantly and
   elastic search for frontend & backend indexing. (each of them has around 2-4k
   daily sessions in traffic also) and disaster recovery full live replication to
   a mirror server.
    -  This reply was modified 4 years, 3 months ago by [freshuk](https://wordpress.org/support/users/freshuk/).
    -  This reply was modified 4 years, 3 months ago by [freshuk](https://wordpress.org/support/users/freshuk/).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15423885)
 * Wow! Nice conf 🙂
    If all these processes are on the same machine, it could be“
   normal”. Nevertheless, I think it could be optimized from a WP point of view.
   Are you using object-caching (Redis, Memcached, APCu)?
 *  Thread Starter [freshuk](https://wordpress.org/support/users/freshuk/)
 * (@freshuk)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/datadog-integration/#post-15423906)
 * Thanks!
    All those indeed are on the same machine. We use redis, yes. And lately
   I enabled also the APCu to see if things can improve, but I think there is no
   difference whether its on / off.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/datadog-integration/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/datadog-integration/page/2/?output_format=md)

The topic ‘datadog integration’ is closed to new replies.

 * ![](https://ps.w.org/decalog/assets/icon-256x256.png?rev=2168815)
 * [DecaLog](https://wordpress.org/plugins/decalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/decalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/decalog/)
 * [Active Topics](https://wordpress.org/support/plugin/decalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/decalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/decalog/reviews/)

## Tags

 * [customization](https://wordpress.org/support/topic-tag/customization/)

 * 19 replies
 * 3 participants
 * Last reply from: [nileshpatidar1908](https://wordpress.org/support/users/nileshpatidar1908/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/datadog-integration/page/2/#post-15756230)
 * Status: not resolved