Update jaeger dependencies
This commit is contained in:
parent
4e9166759d
commit
d0ed814669
5 changed files with 53 additions and 20 deletions
4
go.mod
4
go.mod
|
@ -79,8 +79,8 @@ require (
|
||||||
github.com/stvp/go-udp-testing v0.0.0-20171104055251-c4434f09ec13
|
github.com/stvp/go-udp-testing v0.0.0-20171104055251-c4434f09ec13
|
||||||
github.com/tinylib/msgp v1.0.2 // indirect
|
github.com/tinylib/msgp v1.0.2 // indirect
|
||||||
github.com/transip/gotransip v5.8.2+incompatible // indirect
|
github.com/transip/gotransip v5.8.2+incompatible // indirect
|
||||||
github.com/uber/jaeger-client-go v2.16.0+incompatible
|
github.com/uber/jaeger-client-go v2.19.0+incompatible
|
||||||
github.com/uber/jaeger-lib v2.0.0+incompatible
|
github.com/uber/jaeger-lib v2.2.0+incompatible
|
||||||
github.com/unrolled/render v1.0.1
|
github.com/unrolled/render v1.0.1
|
||||||
github.com/unrolled/secure v1.0.4
|
github.com/unrolled/secure v1.0.4
|
||||||
github.com/vdemeester/shakers v0.1.0
|
github.com/vdemeester/shakers v0.1.0
|
||||||
|
|
8
go.sum
8
go.sum
|
@ -481,10 +481,10 @@ github.com/transip/gotransip v5.8.2+incompatible h1:aNJhw/w/3QBqFcHAIPz1ytoK5Fex
|
||||||
github.com/transip/gotransip v5.8.2+incompatible/go.mod h1:uacMoJVmrfOcscM4Bi5NVg708b7c6rz2oDTWqa7i2Ic=
|
github.com/transip/gotransip v5.8.2+incompatible/go.mod h1:uacMoJVmrfOcscM4Bi5NVg708b7c6rz2oDTWqa7i2Ic=
|
||||||
github.com/uber-go/atomic v1.3.2 h1:Azu9lPBWRNKzYXSIwRfgRuDuS0YKsK4NFhiQv98gkxo=
|
github.com/uber-go/atomic v1.3.2 h1:Azu9lPBWRNKzYXSIwRfgRuDuS0YKsK4NFhiQv98gkxo=
|
||||||
github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g=
|
github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g=
|
||||||
github.com/uber/jaeger-client-go v2.16.0+incompatible h1:Q2Pp6v3QYiocMxomCaJuwQGFt7E53bPYqEgug/AoBtY=
|
github.com/uber/jaeger-client-go v2.19.0+incompatible h1:pbwbYfHUoaase0oPQOdZ1GcaUjImYGimUXSQ/+8+Z8Q=
|
||||||
github.com/uber/jaeger-client-go v2.16.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
|
github.com/uber/jaeger-client-go v2.19.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
|
||||||
github.com/uber/jaeger-lib v2.0.0+incompatible h1:iMSCV0rmXEogjNWPh2D0xk9YVKvrtGoHJNe9ebLu/pw=
|
github.com/uber/jaeger-lib v2.2.0+incompatible h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=
|
||||||
github.com/uber/jaeger-lib v2.0.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
||||||
github.com/ugorji/go v0.0.0-20171019201919-bdcc60b419d1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
|
github.com/ugorji/go v0.0.0-20171019201919-bdcc60b419d1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
|
||||||
github.com/unrolled/render v1.0.1 h1:VDDnQQVfBMsOsp3VaCJszSO0nkBIVEYoPWeRThk9spY=
|
github.com/unrolled/render v1.0.1 h1:VDDnQQVfBMsOsp3VaCJszSO0nkBIVEYoPWeRThk9spY=
|
||||||
github.com/unrolled/render v1.0.1/go.mod h1:gN9T0NhL4Bfbwu8ann7Ry/TGHYfosul+J0obPf6NBdM=
|
github.com/unrolled/render v1.0.1/go.mod h1:gN9T0NhL4Bfbwu8ann7Ry/TGHYfosul+J0obPf6NBdM=
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
samplingParam = 1.0
|
samplingParam = 1.0
|
||||||
samplingServerURL = "http://{{.IP}}:5778/sampling"
|
samplingServerURL = "http://{{.IP}}:5778/sampling"
|
||||||
localAgentHostPort = "{{.IP}}:6831"
|
localAgentHostPort = "{{.IP}}:6831"
|
||||||
|
traceContextHeaderName = "{{.TraceContextHeaderName}}"
|
||||||
|
|
||||||
[providers.file]
|
[providers.file]
|
||||||
filename = "{{ .SelfFilename }}"
|
filename = "{{ .SelfFilename }}"
|
||||||
|
|
|
@ -6,7 +6,7 @@ zipkin:
|
||||||
ports:
|
ports:
|
||||||
- 9411:9411
|
- 9411:9411
|
||||||
jaeger:
|
jaeger:
|
||||||
image: jaegertracing/all-in-one:1.12
|
image: jaegertracing/all-in-one:1.14
|
||||||
environment:
|
environment:
|
||||||
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
|
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
|
||||||
ports:
|
ports:
|
||||||
|
@ -18,4 +18,4 @@ jaeger:
|
||||||
- "14268:14268"
|
- "14268:14268"
|
||||||
- "9411:9411"
|
- "9411:9411"
|
||||||
whoami:
|
whoami:
|
||||||
image: containous/whoami
|
image: containous/whoami
|
||||||
|
|
|
@ -18,9 +18,10 @@ type TracingSuite struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type TracingTemplate struct {
|
type TracingTemplate struct {
|
||||||
WhoAmiIP string
|
WhoAmiIP string
|
||||||
WhoAmiPort int
|
WhoAmiPort int
|
||||||
IP string
|
IP string
|
||||||
|
TraceContextHeaderName string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *TracingSuite) SetUpSuite(c *check.C) {
|
func (s *TracingSuite) SetUpSuite(c *check.C) {
|
||||||
|
@ -157,9 +158,10 @@ func (s *TracingSuite) TestJaegerRateLimit(c *check.C) {
|
||||||
s.startJaeger(c)
|
s.startJaeger(c)
|
||||||
defer s.composeProject.Stop(c, "jaeger")
|
defer s.composeProject.Stop(c, "jaeger")
|
||||||
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
||||||
WhoAmiIP: s.WhoAmiIP,
|
WhoAmiIP: s.WhoAmiIP,
|
||||||
WhoAmiPort: s.WhoAmiPort,
|
WhoAmiPort: s.WhoAmiPort,
|
||||||
IP: s.IP,
|
IP: s.IP,
|
||||||
|
TraceContextHeaderName: "uber-trace-id",
|
||||||
})
|
})
|
||||||
defer os.Remove(file)
|
defer os.Remove(file)
|
||||||
|
|
||||||
|
@ -206,9 +208,10 @@ func (s *TracingSuite) TestJaegerRetry(c *check.C) {
|
||||||
s.startJaeger(c)
|
s.startJaeger(c)
|
||||||
defer s.composeProject.Stop(c, "jaeger")
|
defer s.composeProject.Stop(c, "jaeger")
|
||||||
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
||||||
WhoAmiIP: s.WhoAmiIP,
|
WhoAmiIP: s.WhoAmiIP,
|
||||||
WhoAmiPort: 81,
|
WhoAmiPort: 81,
|
||||||
IP: s.IP,
|
IP: s.IP,
|
||||||
|
TraceContextHeaderName: "uber-trace-id",
|
||||||
})
|
})
|
||||||
defer os.Remove(file)
|
defer os.Remove(file)
|
||||||
|
|
||||||
|
@ -233,9 +236,38 @@ func (s *TracingSuite) TestJaegerAuth(c *check.C) {
|
||||||
s.startJaeger(c)
|
s.startJaeger(c)
|
||||||
defer s.composeProject.Stop(c, "jaeger")
|
defer s.composeProject.Stop(c, "jaeger")
|
||||||
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
||||||
WhoAmiIP: s.WhoAmiIP,
|
WhoAmiIP: s.WhoAmiIP,
|
||||||
WhoAmiPort: s.WhoAmiPort,
|
WhoAmiPort: s.WhoAmiPort,
|
||||||
IP: s.IP,
|
IP: s.IP,
|
||||||
|
TraceContextHeaderName: "uber-trace-id",
|
||||||
|
})
|
||||||
|
defer os.Remove(file)
|
||||||
|
|
||||||
|
cmd, display := s.traefikCmd(withConfigFile(file))
|
||||||
|
defer display(c)
|
||||||
|
err := cmd.Start()
|
||||||
|
c.Assert(err, checker.IsNil)
|
||||||
|
defer cmd.Process.Kill()
|
||||||
|
|
||||||
|
// wait for traefik
|
||||||
|
err = try.GetRequest("http://127.0.0.1:8080/api/rawdata", time.Second, try.BodyContains("basic-auth"))
|
||||||
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
|
err = try.GetRequest("http://127.0.0.1:8000/auth", 500*time.Millisecond, try.StatusCodeIs(http.StatusUnauthorized))
|
||||||
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
|
err = try.GetRequest("http://"+s.IP+":16686/api/traces?service=tracing", 20*time.Second, try.BodyContains("EntryPoint web", "basic-auth@file"))
|
||||||
|
c.Assert(err, checker.IsNil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TracingSuite) TestJaegerCustomHeader(c *check.C) {
|
||||||
|
s.startJaeger(c)
|
||||||
|
defer s.composeProject.Stop(c, "jaeger")
|
||||||
|
file := s.adaptFile(c, "fixtures/tracing/simple-jaeger.toml", TracingTemplate{
|
||||||
|
WhoAmiIP: s.WhoAmiIP,
|
||||||
|
WhoAmiPort: s.WhoAmiPort,
|
||||||
|
IP: s.IP,
|
||||||
|
TraceContextHeaderName: "powpow",
|
||||||
})
|
})
|
||||||
defer os.Remove(file)
|
defer os.Remove(file)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue