From 8b1e6d35d78d0fb2aa1f6bfe57c556848e1425db Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 20 Dec 2024 13:20:51 +0200 Subject: [PATCH] Remove deprecated WithCollector --- v2/service/module/tracerprovider/tracerprovider.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/v2/service/module/tracerprovider/tracerprovider.go b/v2/service/module/tracerprovider/tracerprovider.go index 6dbe1b1..626874e 100644 --- a/v2/service/module/tracerprovider/tracerprovider.go +++ b/v2/service/module/tracerprovider/tracerprovider.go @@ -192,12 +192,6 @@ func WithSamplePercentage(percentage int) Opt { } } -// WithCollector is deprecated. Use WithGRPCExporter instead. -func WithCollector(host string, port int, credentials credentials.TransportCredentials) Opt { - slog.Warn("WithCollector is deprecated, use WithGRPCExporter instead") - return WithGRPCExporter(fmt.Sprintf("%s:%d", host, port), credentials) -} - // WithGRPCExporter sets gRPC collector endpoint for trace exporter. // Endpoint is "host:port" of the collector and you can set transport credentials to "insecure.NewCredentials()" // if secure connection is not required.