Download the PHP package yoursurprisecom/monolog-dd-udp-handler without Composer
On this page you can find all versions of the php package yoursurprisecom/monolog-dd-udp-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoursurprisecom/monolog-dd-udp-handler
More information about yoursurprisecom/monolog-dd-udp-handler
Files in yoursurprisecom/monolog-dd-udp-handler
Package monolog-dd-udp-handler
Short Description Monolog Datadog UDP Handler
License MIT
Homepage https://github.com/YourSurpriseCom/monolog-dd-udp-handler
Informations about the package monolog-dd-udp-handler
Monolog Datadog UDP Handler
Overview
This Monolog handler will send the messages to the dd-log-proxy over UDP and the dd-log-proxy
will send the messages over TCP to the Datadog API.
Datadog Log Proxy
This handler is build to use in conjunction with the Datadog Log Proxy written in go. The proxy can be run as a container next to you application as a sidecar or as a standalone service.
One proxy for all applications
As this handler gather the information from the current trace, only one proxy is needed for all your applications. The logs will be connected to the correct trace and service.
Usage
Install the package using composer: composer require yoursurprisecom/monolog-dd-udp-handler
Simply create the handler with the proxy hostname and port, and push the handler into monolog:
Data flow
The data flow is as following:
Datadog
This handler uses the Datadog PHP ddtrace package to gather information about the current span and trace. Logs will be connected to the trace in the UI.
It will also create its own Datadog service log-proxy
with it own spans.
All versions of monolog-dd-udp-handler with dependencies
ext-json Version *
ext-sockets Version *
datadog/dd-trace Version >=0.94 <0.100 || ^1.0
monolog/monolog Version ^3.4