Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

* [CHANGE] **BREAKING CHANGE** Removed `v2` block encoding and compactor component. [#6273](https://github.com/grafana/tempo/pull/6273) (@joe-elliott)
This includes the removal of the following CLI commands which were `v2` specific: `list block`, `list index`, `view index`, `gen index`, `gen bloom`.
* [CHANGE] **BREAKING CHANGE** Sets the `all` target to be 3.0 compatible and removes the `scalable-single-binary` target [#6283](https://github.com/grafana/tempo/pull/6283) (@joe-elliott)

# v2.10.0-rc.0

Expand Down
2 changes: 1 addition & 1 deletion cmd/tempo/app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ func TestApp_RunStop(t *testing.T) {
// #nosec G107 -- nosemgrep: tainted-url-host
_, httpErr := http.Get(healthCheckURL)
return httpErr != nil
}, 30*time.Second, 1*time.Second)
}, 60*time.Second, 1*time.Second)
}
19 changes: 6 additions & 13 deletions cmd/tempo/app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@
LiveStore string = "live-store"

// composite targets
SingleBinary string = "all"
SingleBinary3_0 string = "all-3.0"
ScalableSingleBinary string = "scalable-single-binary"
SingleBinary string = "all"

// ring names
ringIngester string = "ingester"
Expand All @@ -97,9 +95,8 @@
ringLiveStore string = "live-store"
)

// IsSingleBinary returns true if the target is SingleBinary or SingleBinary3_0
func IsSingleBinary(target string) bool {
return target == SingleBinary || target == SingleBinary3_0
return target == SingleBinary
}

func (t *App) initServer() (services.Service, error) {
Expand Down Expand Up @@ -368,8 +365,8 @@
queryRangeHandler := t.HTTPAuthMiddleware.Wrap(http.HandlerFunc(t.generator.QueryRangeHandler))
t.Server.HTTPRouter().Handle(path.Join(api.PathPrefixGenerator, addHTTPAPIPrefix(&t.cfg, api.PathMetricsQueryRange)), queryRangeHandler)

if t.cfg.Target != SingleBinary3_0 { // conflicts with livestore, only in single binary 3.0 mode. this will go away once SingleBinary3_0 -> SingleBinary
tempopb.RegisterMetricsGeneratorServer(t.Server.GRPC(), t.generator)
if !IsSingleBinary(t.cfg.Target) {
tempopb.RegisterMetricsGeneratorServer(t.Server.GRPC(), t.generator) // todo: this can be removed before 3.0 but needs to exist as long as we have any deployments anywhere on the traditional arch

Check notice on line 369 in cmd/tempo/app/modules.go

View workflow job for this annotation

GitHub Actions / Coverage Annotations

Uncovered lines

Lines 368-369 are not covered by tests
}

return t.generator, nil
Expand Down Expand Up @@ -606,7 +603,7 @@
func (t *App) initStore() (services.Service, error) {
// the only component that needs a functioning tempodb pool are the queriers. all other components will just spin up
// hundreds of never used pool goroutines. set pool size to 0 here to avoid that.
if t.cfg.Target != Querier && !IsSingleBinary(t.cfg.Target) && t.cfg.Target != ScalableSingleBinary {
if t.cfg.Target != Querier && !IsSingleBinary(t.cfg.Target) {
t.cfg.StorageConfig.Trace.Pool.MaxWorkers = 0
t.cfg.StorageConfig.Trace.Pool.QueueDepth = 0
}
Expand Down Expand Up @@ -837,8 +834,6 @@
mm.RegisterModule(LiveStore, t.initLiveStore)

mm.RegisterModule(SingleBinary, nil)
mm.RegisterModule(ScalableSingleBinary, nil)
mm.RegisterModule(SingleBinary3_0, nil)

deps := map[string][]string{
// InternalServer: nil,
Expand Down Expand Up @@ -871,9 +866,7 @@
LiveStore: {Common, MemberlistKV, PartitionRing},

// composite targets
SingleBinary: {QueryFrontend, Querier, Ingester, Distributor, MetricsGenerator},
SingleBinary3_0: {BackendScheduler, BackendWorker, QueryFrontend, Querier, Distributor, MetricsGenerator, BlockBuilder, LiveStore}, // TODO: when we cut 3.0 remove SingleBinary and replace with this
ScalableSingleBinary: {SingleBinary},
SingleBinary: {BackendScheduler, BackendWorker, QueryFrontend, Querier, Distributor, MetricsGenerator, BlockBuilder, LiveStore},
}

for mod, targets := range deps {
Expand Down
2 changes: 1 addition & 1 deletion example/docker-compose/debug/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
tempo:
image: grafana/tempo-debug:latest
command: [ "-target=all-3.0", "-config.file=/etc/tempo.yaml" ]
command: [ "-target=all", "-config.file=/etc/tempo.yaml" ]
volumes:
- ./tempo.yaml:/etc/tempo.yaml
- ./tempo-data:/var/tempo
Expand Down
2 changes: 1 addition & 1 deletion example/docker-compose/multitenant/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml", "-target=all-3.0"]
command: [ "-config.file=/etc/tempo.yaml", "-target=all"]
volumes:
- ./tempo.yaml:/etc/tempo.yaml
- ./tempo-data:/var/tempo
Expand Down
2 changes: 1 addition & 1 deletion example/docker-compose/single-binary/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: grafana/tempo:latest
depends_on:
- redpanda
command: "-target=all-3.0 -config.file=/etc/tempo.yaml"
command: "-target=all -config.file=/etc/tempo.yaml"
restart: always
volumes:
- ./tempo.yaml:/etc/tempo.yaml
Expand Down
2 changes: 1 addition & 1 deletion integration/util/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
)

func NewTempoAllInOne(rp e2e.ReadinessProbe) *e2e.HTTPService {
args := []string{"-config.file=" + filepath.Join(e2e.ContainerSharedDir, tempoConfigFile), "-target=all-3.0"}
args := []string{"-config.file=" + filepath.Join(e2e.ContainerSharedDir, tempoConfigFile), "-target=all"}

s := e2e.NewHTTPService(
"tempo",
Expand Down
Loading