summaryrefslogtreecommitdiff
path: root/cmd/podman/run.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-18 22:01:14 +0100
committerGitHub <noreply@github.com>2019-02-18 22:01:14 +0100
commitc9b13133cdd9f59a000d40fce357c33919ef7032 (patch)
treebfa2e524b71757a514a02ef68661b46dca9a3dfe /cmd/podman/run.go
parente738ef16225395f5f5e4b93ba1a43ae9449ae11b (diff)
parent7141f972700ed454438d8539dd0bec79c0b61cf4 (diff)
downloadpodman-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/run.go')
-rw-r--r--cmd/podman/run.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go
index ff4c3b418..bea9b1743 100644
--- a/cmd/podman/run.go
+++ b/cmd/podman/run.go
@@ -12,6 +12,7 @@ import (
"github.com/containers/libpod/cmd/podman/libpodruntime"
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/pkg/rootless"
+ opentracing "github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
@@ -46,6 +47,11 @@ func init() {
}
func runCmd(c *cliconfig.RunValues) error {
+ if c.Bool("trace") {
+ span, _ := opentracing.StartSpanFromContext(Ctx, "runCmd")
+ defer span.Finish()
+ }
+
if err := createInit(&c.PodmanCommand); err != nil {
return err
}