OpenTracing::Implementation::DataDog::SpanContext - Keep track of traces
use aliased OpenTracing::Implementation::DataDog::SpanContext; my $span_context = SpanContext->new( service_name => "MyFancyService", service_type => "web", resource_name => "/clients/{client_id}/contactdetails", ); # # please do not add parameter values in the resource, # use tags instead, like: # $span->set_tag( client_id => $request->query_params('client_id') )
my $span_context = SpanContext->new( service_name => "MyFancyService", resource_name => "/clients/{client_id}/contactdetails", baggage_items => { $key => $value, .. }, );
Creates a new SpanContext object;
To install OpenTracing::Implementation::DataDog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenTracing::Implementation::DataDog
CPAN shell
perl -MCPAN -e shell install OpenTracing::Implementation::DataDog
For more information on module installation, please visit the detailed CPAN module installation guide.