• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 6932

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2019 12:31PM UTC
Jobs 1
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6932

push

travis-ci

buger
add opentracing support (#2384)

Looks good!

This  adds initial support for opentracing in the api gateway.

## requirements

For this feature to work properly we need an opentracing server implementation.
Please see the options available and  support status

Tracer | Supported 
-------|--------------
jaeger | :white_check_mark:
[zipkin](https://github.com/openzipkin/zipkin-go) | :white_check_mark:
[Datadog](https://github.com/DataDog/dd-opentracing-go) | :heavy_multiplication_x:
[Instana](https://github.com/instana/go-sensor/blob/master/README.md) | :heavy_multiplication_x:
[LightStep](https://github.com/lightstep/lightstep-tracer-go) | :heavy_multiplication_x:


# Configuring

A new configuration option has been added to the tyk config.

```json
    "tracing": {
        "name": "$tracer_name",
        "enabled": true,
        "options": {}
    }
```

`$tracer_name` is the name of the tracer to use. This can be one of the tracers
 supported (see support table), for example `jaeger`

 `enabled` if true then opentracing is enabled in the gateway, defaults to false.

 `options`: arbitrary json object used to initialize a tracer. Each tracer requires different setting to initialize so the shape of the will vary based on the support implementation of the tracer.

 This is how it looks like, when you enable `jaeger` tracer.

```json
    "tracing": {
        "name": "jaeger",
        "enabled": true,
        "options": {
            "serviceName": "tyk-gateway",
            "disabled": false,
            "rpc_metrics": false,
            "tags": null,
            "sampler": {
                "type": "const",
                "param": 1,
                "samplingServerURL": "",
                "maxOperations": 0,
                "samplingRefreshInterval": 0
            },
            "reporter": {
                "queueSize": 0,
                "BufferFlushInterval": 0,
                "logSpans": tru... (continued)
Jobs
ID Job ID Ran Files Coverage
2 6932.2 (LATEST_GO=true) 15 Jul 2019 12:31PM UTC 0
Travis Job 6932.2
Source Files on build 6932
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6932
  • 5b372d3c on github
  • Prev Build on master (#6927)
  • Next Build on master (#6933)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc