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 c373f79
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 @@ -21,7 +21,7 @@ import (
"github.com/weaveworks/common/httpgrpc/server"

querier_stats "github.com/grafana/tempo/modules/querier/stats"
"github.com/grafana/tempo/pkg/tenant"
"github.com/grafana/dskit/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 @@ -19,7 +19,7 @@ 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/dskit/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 @@ -23,7 +23,7 @@ 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/dskit/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 @@ -25,7 +25,7 @@ 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/dskit/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 c373f79

Please sign in to comment.