mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Add otel support
This uses otel standard environment variables to configure tracing in the daemon. It also adds support for propagating trace contexts in the client and reading those from the API server. See https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ for details on otel environment variables. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -101,9 +101,9 @@ func TestNewClientWithOpsFromEnv(t *testing.T) {
|
||||
|
||||
if tc.envs["DOCKER_TLS_VERIFY"] != "" {
|
||||
// pedantic checking that this is handled correctly
|
||||
tr := client.client.Transport.(*http.Transport)
|
||||
assert.Assert(t, tr.TLSClientConfig != nil)
|
||||
assert.Check(t, is.Equal(tr.TLSClientConfig.InsecureSkipVerify, false))
|
||||
tlsConfig := client.tlsConfig()
|
||||
assert.Assert(t, tlsConfig != nil)
|
||||
assert.Check(t, is.Equal(tlsConfig.InsecureSkipVerify, false))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user