Skip to content

Commit

Permalink
Merge pull request #471 from elisasre/chore/remove_deprecations
Browse files Browse the repository at this point in the history
Remove deprecated WithCollector
  • Loading branch information
rofafor authored Dec 20, 2024
2 parents 6474bec + 8b1e6d3 commit 5da14bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions v2/service/module/tracerprovider/tracerprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5da14bf

Please sign in to comment.