Skip to content

Commit 68f874e

Browse files
chore(ff): remove unused SMART_TRACE_DETAIL feature flag (#7527)
1 parent 54a82b1 commit 68f874e

File tree

21 files changed

+10
-387
lines changed

21 files changed

+10
-387
lines changed

ee/query-service/app/api/api.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ func (ah *APIHandler) RegisterRoutes(router *mux.Router, am *baseapp.AuthMiddlew
162162
router.HandleFunc("/api/v1/invite/{token}", am.OpenAccess(ah.getInvite)).Methods(http.MethodGet)
163163
router.HandleFunc("/api/v1/register", am.OpenAccess(ah.registerUser)).Methods(http.MethodPost)
164164
router.HandleFunc("/api/v1/login", am.OpenAccess(ah.loginUser)).Methods(http.MethodPost)
165-
router.HandleFunc("/api/v1/traces/{traceId}", am.ViewAccess(ah.searchTraces)).Methods(http.MethodGet)
166165

167166
// PAT APIs
168167
router.HandleFunc("/api/v1/pats", am.AdminAccess(ah.createPAT)).Methods(http.MethodPost)

ee/query-service/app/api/traces.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

ee/query-service/app/db/reader.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"github.com/SigNoz/signoz/pkg/cache"
99
"github.com/SigNoz/signoz/pkg/prometheus"
1010
basechr "github.com/SigNoz/signoz/pkg/query-service/app/clickhouseReader"
11-
"github.com/SigNoz/signoz/pkg/query-service/interfaces"
1211
"github.com/SigNoz/signoz/pkg/sqlstore"
1312
"github.com/SigNoz/signoz/pkg/telemetrystore"
1413
)
@@ -23,14 +22,13 @@ func NewDataConnector(
2322
sqlDB sqlstore.SQLStore,
2423
telemetryStore telemetrystore.TelemetryStore,
2524
prometheus prometheus.Prometheus,
26-
lm interfaces.FeatureLookup,
2725
cluster string,
2826
useLogsNewSchema bool,
2927
useTraceNewSchema bool,
3028
fluxIntervalForTraceDetail time.Duration,
3129
cache cache.Cache,
3230
) *ClickhouseReader {
33-
chReader := basechr.NewReader(sqlDB, telemetryStore, prometheus, lm, cluster, useLogsNewSchema, useTraceNewSchema, fluxIntervalForTraceDetail, cache)
31+
chReader := basechr.NewReader(sqlDB, telemetryStore, prometheus, cluster, useLogsNewSchema, useTraceNewSchema, fluxIntervalForTraceDetail, cache)
3432
return &ClickhouseReader{
3533
conn: telemetryStore.ClickhouseDB(),
3634
appdb: sqlDB,

ee/query-service/app/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ func NewServer(serverOptions *ServerOptions) (*Server, error) {
142142
serverOptions.SigNoz.SQLStore,
143143
serverOptions.SigNoz.TelemetryStore,
144144
serverOptions.SigNoz.Prometheus,
145-
lm,
146145
serverOptions.Cluster,
147146
serverOptions.UseLogsNewSchema,
148147
serverOptions.UseTraceNewSchema,

ee/query-service/model/plans.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ var BasicPlan = basemodel.FeatureSet{
5252
UsageLimit: -1,
5353
Route: "",
5454
},
55-
basemodel.Feature{
56-
Name: basemodel.SmartTraceDetail,
57-
Active: false,
58-
Usage: 0,
59-
UsageLimit: -1,
60-
Route: "",
61-
},
6255
basemodel.Feature{
6356
Name: basemodel.CustomMetricsFunction,
6457
Active: false,
@@ -181,13 +174,6 @@ var ProPlan = basemodel.FeatureSet{
181174
UsageLimit: -1,
182175
Route: "",
183176
},
184-
basemodel.Feature{
185-
Name: basemodel.SmartTraceDetail,
186-
Active: true,
187-
Usage: 0,
188-
UsageLimit: -1,
189-
Route: "",
190-
},
191177
basemodel.Feature{
192178
Name: basemodel.CustomMetricsFunction,
193179
Active: true,
@@ -310,13 +296,6 @@ var EnterprisePlan = basemodel.FeatureSet{
310296
UsageLimit: -1,
311297
Route: "",
312298
},
313-
basemodel.Feature{
314-
Name: basemodel.SmartTraceDetail,
315-
Active: true,
316-
Usage: 0,
317-
UsageLimit: -1,
318-
Route: "",
319-
},
320299
basemodel.Feature{
321300
Name: basemodel.CustomMetricsFunction,
322301
Active: true,

frontend/src/constants/features.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export enum FeatureKeys {
1010
ALERT_CHANNEL_MSTEAMS = 'ALERT_CHANNEL_MSTEAMS',
1111
DurationSort = 'DurationSort',
1212
TimestampSort = 'TimestampSort',
13-
SMART_TRACE_DETAIL = 'SMART_TRACE_DETAIL',
1413
CUSTOM_METRICS_FUNCTION = 'CUSTOM_METRICS_FUNCTION',
1514
QUERY_BUILDER_PANELS = 'QUERY_BUILDER_PANELS',
1615
QUERY_BUILDER_ALERTS = 'QUERY_BUILDER_ALERTS',

frontend/src/tests/test-utils.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,6 @@ export function getAppContextMock(
200200
usage_limit: -1,
201201
route: '',
202202
},
203-
{
204-
name: FeatureKeys.SMART_TRACE_DETAIL,
205-
active: true,
206-
usage: 0,
207-
usage_limit: -1,
208-
route: '',
209-
},
210203
{
211204
name: FeatureKeys.CUSTOM_METRICS_FUNCTION,
212205
active: true,

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ require (
7777
gopkg.in/segmentio/analytics-go.v3 v3.1.0
7878
gopkg.in/yaml.v2 v2.4.0
7979
gopkg.in/yaml.v3 v3.0.1
80-
honnef.co/go/tools v0.0.1-2020.1.4
8180
k8s.io/apimachinery v0.31.3
8281
)
8382

@@ -89,7 +88,6 @@ require (
8988
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 // indirect
9089
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
9190
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
92-
github.com/BurntSushi/toml v0.3.1 // indirect
9391
github.com/ClickHouse/ch-go v0.61.5 // indirect
9492
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b // indirect
9593
github.com/andybalholm/brotli v1.1.1 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJ
8383
github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE=
8484
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU=
8585
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
86-
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
8786
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
8887
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
8988
github.com/ClickHouse/ch-go v0.61.5 h1:zwR8QbYI0tsMiEcze/uIMK+Tz1D3XZXLdNrlaOpeEI4=
@@ -1653,7 +1652,6 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh
16531652
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
16541653
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
16551654
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
1656-
honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
16571655
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
16581656
k8s.io/api v0.31.3 h1:umzm5o8lFbdN/hIXbrK9oRpOproJO62CV1zqxXrLgk8=
16591657
k8s.io/api v0.31.3/go.mod h1:UJrkIp9pnMOI9K2nlL6vwpxRzzEX5sWgn8kGQe92kCE=

0 commit comments

Comments
 (0)