shim: Move pprof server to plugin

Makes the pprof server a plugin and also gates by the `shim_tracing`
build tag (like otel is).
With this change, `net/http` is no longer a dependency in the shim.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2024-10-02 23:12:29 +00:00
parent b2681dfbdb
commit b85909cd4c
4 changed files with 91 additions and 34 deletions

View File

@@ -18,4 +18,7 @@
package main
import _ "github.com/containerd/containerd/v2/pkg/tracing/plugin"
import (
_ "github.com/containerd/containerd/v2/internal/pprof"
_ "github.com/containerd/containerd/v2/pkg/tracing/plugin"
)