From 44bff03b9609494300e1e10bcd401722daf46d50 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Fri, 20 May 2022 19:45:24 +0000 Subject: [PATCH] fix naming --- e2e-test-server/endtoendserver/scenarios.go | 10 +++++----- e2e-test-server/endtoendserver/server.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e-test-server/endtoendserver/scenarios.go b/e2e-test-server/endtoendserver/scenarios.go index 4991bafbf..91663789f 100644 --- a/e2e-test-server/endtoendserver/scenarios.go +++ b/e2e-test-server/endtoendserver/scenarios.go @@ -57,7 +57,7 @@ func (*healthHandler) handle(ctx context.Context, req request, tracerProvider *s } func (*healthHandler) tracerProvider() (*sdktrace.TracerProvider, error) { - return newTraceProvider(resource.Empty()) + return newTracerProvider(resource.Empty()) } // basicTraceHandler creates a basic trace and returns an OK response. @@ -81,7 +81,7 @@ func (*basicTraceHandler) handle(ctx context.Context, req request, tracerProvide } func (*basicTraceHandler) tracerProvider() (*sdktrace.TracerProvider, error) { - return newTraceProvider(resource.Empty()) + return newTracerProvider(resource.Empty()) } // complexTraceHandler creates a complex trace and returns an OK response. @@ -125,7 +125,7 @@ func (*complexTraceHandler) handle(ctx context.Context, req request, tracerProvi } func (*complexTraceHandler) tracerProvider() (*sdktrace.TracerProvider, error) { - return newTraceProvider(resource.Empty()) + return newTracerProvider(resource.Empty()) } // detectResourceHandler creates a basic trace with resource info and returns an OK response. @@ -157,7 +157,7 @@ func (*detectResourceHandler) tracerProvider() (*sdktrace.TracerProvider, error) if err != nil { return nil, err } - return newTraceProvider(res) + return newTracerProvider(res) } // unimplementedHandler returns an UNIMPLEMENTED response without creating any traces. @@ -169,5 +169,5 @@ func (*unimplementedHandler) handle(ctx context.Context, req request, tracerProv } func (*unimplementedHandler) tracerProvider() (*sdktrace.TracerProvider, error) { - return newTraceProvider(resource.Empty()) + return newTracerProvider(resource.Empty()) } diff --git a/e2e-test-server/endtoendserver/server.go b/e2e-test-server/endtoendserver/server.go index e9d47d069..d0ea98d69 100644 --- a/e2e-test-server/endtoendserver/server.go +++ b/e2e-test-server/endtoendserver/server.go @@ -137,7 +137,7 @@ func (s *Server) respond(ctx context.Context, testID string, res *response) erro return err } -func newTraceProvider(res *resource.Resource) (*sdktrace.TracerProvider, error) { +func newTracerProvider(res *resource.Resource) (*sdktrace.TracerProvider, error) { exporter, err := texporter.New(texporter.WithProjectID(projectID)) if err != nil { return nil, err