CGI-Application-Plugin-OpenTracing-DataDog

 view release on metacpan or  search on metacpan

t/12_options_bootstrap.t  view on Meta::CPAN

        "MyTest::CGI::Application::Bootstrap",
        "default_service_type",
        "web",
        "default_resource_name",
        "",
        "default_service_name",
        "MyTest::Bootstrap",
        "default_service_type",
        "that_bootstrap",
        "default_resource_name",
        "that_fixed_endpoint.cgi",
        "bar",
        "2",
    ],
);

done_testing();



package MyTest::CGI::Application::Bootstrap;

t/12_options_import.t  view on Meta::CPAN

        "MyTest::CGI::Application::Import",
        "default_service_type",
        "web",
        "default_resource_name",
        "",
        "default_service_name",
        "MyTest::Import",
        "default_service_type",
        "this_import",
        "default_resource_name",
        "this_fixed_endpoint.cgi",
        "foo",
        "1",
    ],
);

done_testing();



package MyTest::CGI::Application::Import;
use base 'CGI::Application';
use CGI::Application::Plugin::OpenTracing::DataDog
    default_service_name    => 'MyTest::Import',
    default_service_type    => 'this_import',
    default_resource_name   => 'this_fixed_endpoint.cgi',
    foo                     => 1,
;

sub run_modes {
    start    => 'some_method_start',
}

sub some_method_start { return }


t/90_component.t  view on Meta::CPAN

            superhashof {
                'meta'             => {
                    'component'        => "CGI::Application",
                    'http.method'      => "GET",
                    'http.status_code' => 200,
                    'http.url'         => "http://localhost/test.cgi",
                    'run_method'       => "some_method_start",
                    'run_mode'         => "start",
                },
                'name'             => "cgi_application_request",
                'resource'         => "fake_endpoint.cgi",
                'service'          => "MyTest::CGI::Application::Fake",
                'type'             => "web",
            }
        ]],
        "Did send expected span data"
    )
    
};



done_testing();



package MyTest::CGI::Application::Fake;
use base 'CGI::Application';
use CGI::Application::Plugin::OpenTracing::DataDog
    default_resource_name => "fake_endpoint.cgi",
;

sub run_modes {
    start    => 'some_method_start',
}

sub some_method_start { return }

sub opentracing_bootstrap_options {
    client => {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.548 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )