The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CGI::Application::Plugin::OpenTracing::DataDog - Simple CGI with DataDog tracing

VERSION

This is version 'v0.1.0'

SYNOPSIS

    package My::CGI::App;
    
    use base 'CGI::Application';
    use CGI::Application::Plugin::OpenTracing::DataDog
        default_resource_name => 'my/index.cgi'
    ;

DESCRIPTION

This module will make integrations for CGI::Application based services even more convenient for those using DataDog as backend.

ENVIRONMENT VARIABLES

OPENTRACING_IMLEMENTATION

Set this one explitly to NoOp to disable tracing. That is, the NoOp-Tracer is preventing code braakage but does not do much and certainly not send data across the network.

Use this as DevOps to disable tracing with DataDog.

This is opposite behavior compared to CGI::Application::Plugin::OpenTracing, where it explictely needs to be set to enable tracing with a specific tracer implememtatation and fall back to NoOp.

Setting this to anything else then NoOp or DataDog will cause compilation errors.

CAVEAT

At bootstrap the default_resource_name MUST be set to a non empty string. Not doing so will be considered as a breaking error.

SEE ALSO

OpenTracing::Implementation::DataDog

Sending traces to DataDog using Agent.

CGI::Application::Plugin::OpenTracing

Use OpenTracing in CGI Applications

OpenTracing::Manual::Instrumentation

For Application developers and Devops

AUTHOR

Theo van Hoesel <tvanhoesel@perceptyx.com>

COPYRIGHT AND LICENSE

'CGI::Application::Plugin::OpenTracing::DataDog' is Copyright (C) 2020, Perceptyx Inc

This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

This package is distributed in the hope that it will be useful, but it is provided "as is" and without any express or implied warranties.

For details, see the full text of the license in the file LICENSE.