Skip to Content

Lightstep

Lightstep  integration sends a span for every HTTP response (rather than pre-aggregated metrics).

Configuration

  • To send events to Lightstep, set type to lightstep
  • Set accessToken to an access token 
  • Set componentName to the name of a component for which the spans will be sent
  • Default tags for every span may be added by setting key-value pairs under tags
  • Optional: set enabled to false to disable the integration

The following tags are set on every span:

  • url - full URL of the request
  • host - hostname + port
  • method - HTTP method, e.g. GET
  • statusCode - status code, e.g. 200
  • responseTimeMs - time-to-first-byte of the response in milliseconds

Example

config: plugins: publish-metrics: - type: lightstep # LIGHTSTEP_ACCESS_TOKEN is an environment variable which contains the token accessToken: '{{ $env.LIGHTSTEP_ACCESS_TOKEN }}' component: artillery-tests tags: team: sre purpose: peak-load

Debugging

Set DEBUG=plugin:publish-metrics:lightstep when running your tests to print out helpful debugging messages when sending metrics to Lightstep.

DEBUG=plugin:publish-metrics:lightstep artillery run my-script.yaml
Last updated on