forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-774] fix loading jaeger tracing config (TykTechnologies#3418)
* fix loading jaeger tracing config * fix typo * update yaml to v3 * fix and add config for jaeger * update TestLoadJaeger * update TestLoadZipkin * use jsondiff to compare configs * cleanup * add expected configs for tracers * add tests for env only config * update jaeger tests * cleanup test * update zipkin tests * reduce noise in sample files
- Loading branch information
Showing
18 changed files
with
423 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"tracing": { | ||
"name": "jaeger", | ||
"enabled": true, | ||
"options": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"tracing": { | ||
"name": "zipkin", | ||
"enabled": true, | ||
"options": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"baggage_restrictions": { | ||
"denyBaggageOnInitializationFailure": false, | ||
"hostPort": "", | ||
"refreshInterval": "0s" | ||
}, | ||
"disabled": false, | ||
"headers": { | ||
"TraceContextHeaderName": "", | ||
"jaegerBaggageHeader": "", | ||
"jaegerDebugHeader": "", | ||
"traceBaggageHeaderPrefix": "" | ||
}, | ||
"reporter": { | ||
"bufferflushinterval": "0s", | ||
"collectorEndpoint": "", | ||
"localAgentHostPort": "", | ||
"logSpans": false, | ||
"password": "", | ||
"queueSize": 0, | ||
"user": "" | ||
}, | ||
"rpc_metrics": false, | ||
"sampler": { | ||
"maxOperations": 0, | ||
"param": 0, | ||
"samplingRefreshInterval": "0s", | ||
"samplingServerURL": "", | ||
"type": "" | ||
}, | ||
"serviceName": "jaeger-test-service", | ||
"tags": [], | ||
"throttler": { | ||
"hostPort": "", | ||
"refreshInterval": "0s", | ||
"synchronousInitialization": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"reporter": { | ||
"batch_size": 10, | ||
"max_backlog": 20, | ||
"url": "http://example.com" | ||
}, | ||
"sampler": { | ||
"mod": 12, | ||
"name": "boundary", | ||
"rate": 10.1, | ||
"salt": 10 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"baggage_restrictions": { | ||
"denyBaggageOnInitializationFailure": false, | ||
"hostPort": "", | ||
"refreshInterval": "0s" | ||
}, | ||
"disabled": false, | ||
"headers": { | ||
"TraceContextHeaderName": "", | ||
"jaegerBaggageHeader": "", | ||
"jaegerDebugHeader": "", | ||
"traceBaggageHeaderPrefix": "" | ||
}, | ||
"reporter": { | ||
"bufferflushinterval": "0s", | ||
"collectorEndpoint": "", | ||
"localAgentHostPort": "jaeger:6831", | ||
"logSpans": true, | ||
"password": "", | ||
"queueSize": 0, | ||
"user": "" | ||
}, | ||
"rpc_metrics": false, | ||
"sampler": { | ||
"maxOperations": 0, | ||
"param": 1, | ||
"samplingRefreshInterval": "0s", | ||
"samplingServerURL": "", | ||
"type": "const" | ||
}, | ||
"serviceName": "tyk-gateway", | ||
"tags": [], | ||
"throttler": { | ||
"hostPort": "", | ||
"refreshInterval": "0s", | ||
"synchronousInitialization": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"reporter": { | ||
"batch_size": 0, | ||
"max_backlog": 0, | ||
"url": "http:localhost:9411/api/v2/spans" | ||
}, | ||
"sampler": { | ||
"mod": 0, | ||
"name": "", | ||
"rate": 0, | ||
"salt": 0 | ||
} | ||
} |
Oops, something went wrong.