Feature Flags

💡 Tip

The easiest way to run SigNoz is to use SigNoz Cloud - no installation, maintenance, or scaling needed.

New users get 30 days of unlimited access to all features. Click here to sign up.

Available Feature Flags

TIMESTAMP_SORT_FEATURE and DURATION_SORT_FEATURE are enabled by default.

  • TIMESTAMP_SORT_FEATURE: When this feature is enabled, then SigNoz creates a materialized view table to optimize sorting spans/traces by timestamp at cost of increasing storage by 40-50% of signoz_index_v2 table.

  • DURATION_SORT_FEATURE: When this feature is enabled, then SigNoz creates a projection over table to optimize sorting spans/traces by duration at cost of increasing storage by 40-50% of signoz_index_v2 table. This also speeds up loading of duration trace filters by upto 90%.

📝 Note

To toggle features, configs have to be added on both OTel Collector and Query Service

Adding configs to OTel collector

Features can be enabled or disabled via the arguments to OTel Collector with the --feature-gates flag.

Info

When using the --feature-gates flag, feature identifiers must be presented as a comma-delimited list. Feature identifiers prefixed with - will disable the feature, and prefixing with + or with no prefix will enable the feature.

To disable both DURATION_SORT_FEATURE and TIMESTAMP_SORT_FEATURE , you need to update the docker-compose.yaml file of SigNoz installation.

Replace this line in your file with below line:

command: ["--config=/etc/otel-collector-config.yaml", "--feature-gates=-DURATION_SORT_FEATURE,-TIMESTAMP_SORT_FEATURE"]

Adding configs to Query Service

We need to set environment variables to toggle features. Add new environment variables here to enable or disable features:

- DURATION_SORT_FEATURE=false
- TIMESTAMP_SORT_FEATURE=false

Was this page helpful?