diff --git a/internal/controller/controller.go b/internal/controller/controller.go index 3b3f96da..ada953b0 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -9,8 +9,6 @@ import ( "github.com/tklauser/numcpus" "go.opentelemetry.io/ebpf-profiler/host" - "go.opentelemetry.io/ebpf-profiler/hostmetadata" - "go.opentelemetry.io/ebpf-profiler/internal/helpers" "go.opentelemetry.io/ebpf-profiler/metrics" "go.opentelemetry.io/ebpf-profiler/reporter" "go.opentelemetry.io/ebpf-profiler/times" @@ -68,19 +66,6 @@ func (c *Controller) Start(ctx context.Context) error { return fmt.Errorf("failed to parse the included tracers: %w", err) } - metadataCollector := hostmetadata.NewCollector(c.config.CollAgentAddr) - metadataCollector.AddCustomData("os.type", "linux") - - kernelVersion, err := helpers.GetKernelVersion() - if err != nil { - return fmt.Errorf("failed to get Linux kernel version: %w", err) - } - // OTel semantic introduced in https://github.com/open-telemetry/semantic-conventions/issues/66 - metadataCollector.AddCustomData("os.kernel.release", kernelVersion) - - metadataCollector.AddCustomData("host.name", c.config.HostName) - metadataCollector.AddCustomData("host.ip", c.config.IPAddress) - err = c.reporter.Start(ctx) if err != nil { return fmt.Errorf("failed to start reporter: %w", err) @@ -88,9 +73,6 @@ func (c *Controller) Start(ctx context.Context) error { metrics.SetReporter(c.reporter) - // Now that set the initial host metadata, start a goroutine to keep sending updates regularly. - metadataCollector.StartMetadataCollection(ctx, c.reporter) - // Load the eBPF code and map definitions trc, err := tracer.NewTracer(ctx, &tracer.Config{ Reporter: c.reporter,