Skip to content

Commit

Permalink
Simple fixes (jaegertracing#999)
Browse files Browse the repository at this point in the history
* Fix test error

Signed-off-by: Isaac Hier <[email protected]>

* go fmt

Signed-off-by: Isaac Hier <[email protected]>
  • Loading branch information
isaachier committed Sep 2, 2018
1 parent 704a300 commit 7bf49a0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/collector/app/builder/span_handler_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ func TestNewSpanHandlerBuilder(t *testing.T) {
)
require.NoError(t, err)
assert.NotNil(t, handler)
zipkin, jaeger := handler.BuildHandlers()
zipkin, jaeger, grpc := handler.BuildHandlers()
assert.NotNil(t, zipkin)
assert.NotNil(t, jaeger)
assert.NotNil(t, grpc)
}

func TestDefaultSpanFilter(t *testing.T) {
Expand Down
19 changes: 17 additions & 2 deletions cmd/collector/app/grpc_handler.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
// Copyright (c) 2018 The Jaeger Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package app

import (
"context"
"fmt"
"time"

"go.uber.org/zap"

"github.com/jaegertracing/jaeger/model"
"github.com/jaegertracing/jaeger/proto-gen/api_v2"
"go.uber.org/zap"
)

// GRPCHandler implements gRPC CollectorService.
Expand Down Expand Up @@ -39,7 +54,7 @@ func (g *GRPCHandler) GetTrace(ctx context.Context, req *api_v2.GetTraceRequest)
return &api_v2.GetTraceResponse{
Trace: &model.Trace{
Spans: []*model.Span{
&model.Span{
{
TraceID: model.TraceID{Low: 123},
SpanID: model.NewSpanID(456),
OperationName: "foo bar",
Expand Down

0 comments on commit 7bf49a0

Please sign in to comment.