Skip to content

Commit 87a4a69

Browse files
committed
refactor(telemetry): update function signatures to ignore unused parameters
Signed-off-by: André Silva <[email protected]>
1 parent dffbe65 commit 87a4a69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/pkg/telemetry/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func BuildTraceProvider(ctx context.Context, logger *logger.Logger, svc string,
104104
}
105105

106106
// BuildConnectOptions is a helper to build connect options based on telemetry configurations
107-
func BuildConnectOptions(cfg Config) ([]connect.HandlerOption, error) {
107+
func BuildConnectOptions(_ Config) ([]connect.HandlerOption, error) {
108108
options := []connect.HandlerOption{}
109109

110110
// Always add interceptor - autoexport will handle whether traces are enabled
@@ -138,7 +138,7 @@ func buildMetricReader(ctx context.Context, cfg Config) (metric.Reader, error) {
138138
}
139139

140140
// buildDefaultMetricReader provides the default metric reader
141-
func buildDefaultMetricReader(ctx context.Context) (metric.Reader, error) {
141+
func buildDefaultMetricReader(_ context.Context) (metric.Reader, error) {
142142
p, err := prometheus.New()
143143
if err != nil {
144144
return nil, fmt.Errorf("unable to create default metric reader: %w", err)

0 commit comments

Comments
 (0)