Skip to content

Commit

Permalink
Use tenant package from dskit
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Apr 1, 2022
1 parent 5ec70c9 commit b0d34c2
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 269 deletions.
2 changes: 1 addition & 1 deletion modules/frontend/transport/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (

"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/tenant"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/httpgrpc/server"

querier_stats "github.com/grafana/tempo/modules/querier/stats"
"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/tempo/pkg/util"
util_log "github.com/grafana/tempo/pkg/util/log"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/frontend/v1/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/tenant"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/grafana/tempo/modules/frontend/v1/frontendv1pb"
"github.com/grafana/tempo/modules/querier/stats"
"github.com/grafana/tempo/pkg/scheduler/queue"
"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/tempo/pkg/util"
"github.com/grafana/tempo/pkg/util/httpgrpcutil"
"github.com/grafana/tempo/pkg/validation"
Expand Down
2 changes: 1 addition & 1 deletion modules/frontend/v2/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/grpcclient"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/tenant"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
Expand All @@ -23,7 +24,6 @@ import (

"github.com/grafana/tempo/modules/frontend/v2/frontendv2pb"
"github.com/grafana/tempo/modules/querier/stats"
"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/tempo/pkg/util/httpgrpcutil"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/go-kit/log/level"
"github.com/grafana/dskit/grpcclient"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/tenant"
otgrpc "github.com/opentracing-contrib/go-grpc"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
Expand All @@ -25,7 +26,6 @@ import (
"github.com/grafana/tempo/modules/frontend/v2/frontendv2pb"
"github.com/grafana/tempo/pkg/scheduler/queue"
"github.com/grafana/tempo/pkg/scheduler/schedulerpb"
"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/tempo/pkg/util"
"github.com/grafana/tempo/pkg/util/httpgrpcutil"
"github.com/grafana/tempo/pkg/validation"
Expand Down
158 changes: 0 additions & 158 deletions pkg/tenant/resolver.go

This file was deleted.

105 changes: 0 additions & 105 deletions pkg/tenant/tenant.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/util/log/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
kitlog "github.com/go-kit/log"
"github.com/weaveworks/common/tracing"

"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/dskit/tenant"
)

// WithUserID returns a Logger that has information about the current user in
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/spanlogger/spanlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/opentracing/opentracing-go/ext"
otlog "github.com/opentracing/opentracing-go/log"

"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/dskit/tenant"
util_log "github.com/grafana/tempo/pkg/util/log"
)

Expand Down

0 comments on commit b0d34c2

Please sign in to comment.