diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-18 22:01:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 22:01:14 +0100 |
commit | c9b13133cdd9f59a000d40fce357c33919ef7032 (patch) | |
tree | bfa2e524b71757a514a02ef68661b46dca9a3dfe /cmd/podman/pull.go | |
parent | e738ef16225395f5f5e4b93ba1a43ae9449ae11b (diff) | |
parent | 7141f972700ed454438d8539dd0bec79c0b61cf4 (diff) | |
download | podman-c9b13133cdd9f59a000d40fce357c33919ef7032.tar.gz podman-c9b13133cdd9f59a000d40fce357c33919ef7032.tar.bz2 podman-c9b13133cdd9f59a000d40fce357c33919ef7032.zip |
Merge pull request #1692 from sjug/opentracing_clean
OpenTracing First Impl
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r-- | cmd/podman/pull.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go index 859228cbd..0065e975a 100644 --- a/cmd/podman/pull.go +++ b/cmd/podman/pull.go @@ -15,6 +15,7 @@ import ( "github.com/containers/libpod/libpod/common" image2 "github.com/containers/libpod/libpod/image" "github.com/containers/libpod/pkg/util" + opentracing "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -59,7 +60,13 @@ func init() { // pullCmd gets the data from the command line and calls pullImage // to copy an image from a registry to a local machine func pullCmd(c *cliconfig.PullValues) error { + if c.Bool("trace") { + span, _ := opentracing.StartSpanFromContext(Ctx, "pullCmd") + defer span.Finish() + } + runtime, err := adapter.GetRuntime(&c.PodmanCommand) + if err != nil { return errors.Wrapf(err, "could not get runtime") } |