fflag

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	// FFs
	FlagCategory             = "Infra_Agent"
	FlagNameRegister         = "register_enabled"
	FlagParallelizeInventory = "parallelize_inventory_enabled"
	FlagProtocolV4           = "protocol_v4_enabled"
	FlagFullProcess          = "full_process_sampling"
	FlagDmRegisterDeprecated = "dm_register_deprecated"
	// Config
	CfgYmlRegisterEnabled        = "register_enabled"
	CfgYmlParallelizeInventory   = "inventory_queue_len"
	CfgValueParallelizeInventory = int64(100) // default value when no config provided by user and FF enabled
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cfg *config.Config, ffSetter feature_flags.Setter, logger log.Entry) *handler

NewHandler creates a new feature-flag cmd handler, handler not available at this time.

Types

type OHIEnabler

type OHIEnabler interface {
	EnableOHIFromFF(ctx context.Context, featureFlag string) error
	DisableOHIFromFF(featureFlag string) error
}

OHIEnabler enables or disables an OHI via cmd-channel feature flag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL