Skip to content

Commit a4c8929

Browse files
committed
refactor: rename buildOtlpExporter to buildGrpcTraceExporter for clarity
Signed-off-by: André Silva <[email protected]>
1 parent 424e64b commit a4c8929

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/pkg/telemetry/builder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func BuildTraceProvider(ctx context.Context, logger *logger.Logger, svc string,
8686
return nil
8787
}
8888

89-
exporter, err := buildOtlpExporter(ctx, cfg.CollectorConfig)
89+
exporter, err := buildGrpcTraceExporter(ctx, cfg.CollectorConfig)
9090
if err != nil {
9191
return err
9292
}
@@ -238,8 +238,8 @@ func buildMetricReader(ctx context.Context, cfg Config) (metric.Reader, error) {
238238
return metric.NewPeriodicReader(otelExporter), nil
239239
}
240240

241-
// buildOtlpExporter is a helper to build grpc backed otlp trace exporter
242-
func buildOtlpExporter(ctx context.Context, cfg CollectorConfig) (*otlptrace.Exporter, error) {
241+
// buildGrpcTraceExporter is a helper to build grpc backed otlp trace exporter
242+
func buildGrpcTraceExporter(ctx context.Context, cfg CollectorConfig) (*otlptrace.Exporter, error) {
243243
transportCredentials, err := buildTransportCredentials(ctx, cfg)
244244
if err != nil {
245245
return nil, fmt.Errorf("metric export would not build transport credentials: %w", err)

0 commit comments

Comments
 (0)