Skip to content

Add "features" command to print documentation about all features #11998

Open
@yurishkuro

Description

@yurishkuro

Is your feature request related to a problem? Please describe.

Collector has the concept of feature gates. When running the help command one can see (some?) features in the --feature-gates flag, e.g.

--feature-gates flag Comma-delimited list of feature gate identifiers. Prefix with '-' to disable the feature. '+' or no prefix will enable the feature. (default -connector.spanmetrics.legacyMetricNames,-exporter.UsePullingBasedExporterQueueBatcher,-filter.filterlog.useOTTLBridge,-filter.filtermetric.useOTTLBridge,-filter.filterspan.useOTTLBridge,jaeger.sampling.includeDefaultOpStrategies,pkg.translator.prometheus.NormalizeName,-pkg.translator.prometheus.PermissiveLabelSanitization,-processor.tailsamplingprocessor.metricstatcountspanssampled,receiver.jaeger.DisableRemoteSampling,-service.noopTracerProvider,-service.profilesSupport,telemetry.UseLocalHostAsDefaultMetricsAddress,-telemetry.disableAddressFieldForInternalTelemetry,-telemetry.disableHighCardinalityMetrics,telemetry.useOtelWithSDKConfigurationForInternalTelemetry

This output is quite unreadable and does not expose any metadata about individual features.

Describe the solution you'd like

Create a features command that will print a summary of all features and their metadata. The command can optionally accept a specific feature ID to limit the output to just one feature.

Describe alternatives you've considered

There is a way to see the features via zpages extension http://localhost:55679/debug/featurez, but it's not always enabled and is overall a harder way to get to the same info than a CLI command.

zpages.WriteHTMLFeaturesTable(w, getFeaturesTableData())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions