2017 © Pedro Peláez
 

library tracer

LightStep instrumentation API

image

lightstep/tracer

LightStep instrumentation API

  • Wednesday, October 26, 2016
  • by lightstep
  • Repository
  • 2 Watchers
  • 9 Stars
  • 9,219 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 15 Versions
  • 13070 % Grown

The README.md

lightstep-tracer-php

This instrumentation is no longer recommended. Please review documentation on setting up and configuring the OpenTelemetry PHP API and SDK for more information on using OpenTelemetry with PHP., (*1)

Latest Stable Version Circle CI MIT license, (*2)

The LightStep distributed tracing library for PHP., (*3)

Installation

composer require lightstep/tracer

The lightstep/tracer package is available here on packagist.org., (*4)

Getting started

<?php

require __DIR__ . '/vendor/autoload.php';

LightStep::initGlobalTracer('examples/trivial_process', '{your_access_token}');

$span = LightStep::startSpan("trivial/loop");
for ($i = 0; $i < 10; $i++) {
    $span->logEvent("loop_iteration", $i);
    echo "The current unix time is " . time() . "\n";
    usleep(1e5);
    $child = LightStep::startSpan("child_span", array(parent => $span));
    usleep(2e5);
    $child->logEvent("hello world");
    $child->finish();
    usleep(1e5);
}
$span->finish();

See lib/api.php for detailed API documentation., (*5)

Setting collector endpoint and port

You can override the default endpoint and port that spans are sent to by setting collector_host and collector_port options when initalizing the tracer., (*6)

For example when using the global initializer:, (*7)

LightStep::initGlobalTracer('examples/trivial_process', '{your_access_token}', [
    'collector_host' => '<FDQN or IP>',
    'collector_port' => '<port>'
]);

By default the the tracer sends trace data securely to the public LightStep satellites at collector.lightstep.com over port 443 using TLS., (*8)

Developer Setup

brew install composer
make install
make test

The Versions

26/10 2016

dev-master

9999999-dev

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

26/10 2016

1.0.59

1.0.59.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

26/10 2016

1.0.58

1.0.58.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

26/10 2016

dev-bc/update_tracer_tags

dev-bc/update_tracer_tags

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

17/06 2016

1.0.57

1.0.57.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

13/06 2016

1.0.56

1.0.56.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

11/06 2016

1.0.55

1.0.55.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

04/05 2016

1.0.54

1.0.54.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

04/05 2016

1.0.53

1.0.53.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

09/04 2016

1.0.52

1.0.52.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

15/03 2016

1.0.51

1.0.51.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

15/03 2016

1.0.49

1.0.49.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

11/03 2016

1.0.47

1.0.47.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

09/02 2016

1.0.46

1.0.46.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires

09/02 2016

1.0.45

1.0.45.0

LightStep instrumentation API

  Sources   Download

MIT

The Requires

 

The Development Requires