Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed May 20, 2022
1 parent 53fe457 commit 44bff03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions e2e-test-server/endtoendserver/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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())
}
2 changes: 1 addition & 1 deletion e2e-test-server/endtoendserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44bff03

Please sign in to comment.