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

TykTechnologies / tyk / 9172 / 1
39%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 02 Jun 2020 10:51AM UTC
Files 86
Run time 5s
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

02 Jun 2020 10:41AM UTC coverage: 60.866% (+0.08%) from 60.784%
TYK_LOGLEVEL=info LATEST_GO=true

push

travis-ci

Tyk Bot
Load open tracing configuration options with environment variables (#3112)

<!-- Provide a general summary of your changes in the Title above -->

## Description
<!-- Describe your changes in detail -->
This refactors loading of configuration  with environment variables to load open tracing configurations for both zipkin and jaeger.
## Related Issue
<!-- This project only accepts pull requests related to open issues -->
<!-- If suggesting a new feature or change, please discuss it in an issue first -->
<!-- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!-- Please link to the issue here -->
fixes #3104

## Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
Opent tracing options are passed as `map[string]interface{}` this was hard to map to environment variables. This PR add support for custom configuration option loaders that are invoked after the default envconfig loader is complete allowing safe and sane passing of opentracing options as env vars.

Supported zipkin env vars
```
 TYK_GW_TRACER_OPTIONS_REPORTER_URL
 TYK_GW_TRACER_OPTIONS_REPORTER_BATCHSIZE
 TYK_GW_TRACER_OPTIONS_REPORTER_MAXBACKLOG
 TYK_GW_TRACER_OPTIONS_SAMPLER_NAME
 TYK_GW_TRACER_OPTIONS_SAMPLER_RATE
 TYK_GW_TRACER_OPTIONS_SAMPLER_SALT
 TYK_GW_TRACER_OPTIONS_SAMPLER_MOD
```
supported jaeger env vars
```
TYK_GW_TRACER_OPTIONS_SERVICENAME
TYK_GW_TRACER_OPTIONS_DISABLED
TYK_GW_TRACER_OPTIONS_RPCMETRICS
TYK_GW_TRACER_OPTIONS_TAGS
TYK_GW_TRACER_OPTIONS_SAMPLER_TYPE
TYK_GW_TRACER_OPTIONS_SAMPLER_PARAM
TYK_GW_TRACER_OPTIONS_SAMPLER_SAMPLINGSERVERURL
TYK_GW_TRACER_OPTIONS_SAMPLER_MAXOPERATIONS
TYK_GW_TRACER_OPTIONS_SAMPLER_SAMPLINGREFRESHINTERVAL
TYK_GW_TRACER_OPTIONS_REPORTER_QUEUESIZE
TYK_GW_TRACER_OPTIONS_REPORTER_BUFFERFLUSHINTERVAL
TYK_GW_TRACER_OPTIONS_REPORTER_LOGSPANS
TYK_GW_TRACER_OPTIONS_REPORTER_LOCALAGENTHOSTPORT
TYK_GW_TRACER_OPTIONS_REPORTER_COLLECTORENDPOINT
T... (continued)

11167 of 18347 relevant lines covered (60.87%)

147.56 hits per line

Source Files on job 9172.1 (TYK_LOGLEVEL=info LATEST_GO=true)
  • Tree
  • List 0
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7227
  • Travis Job 9172.1
  • 5385695d on github
  • Prev Job for TYK_LOGLEVEL=info LATEST_GO=true on release-2.9 (#9077.1)
  • Next Job for TYK_LOGLEVEL=info LATEST_GO=true on release-2.9 (#9195.1)
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