settings

package
v0.0.0-...-e30bb8d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MutexProfiling enables mutex profiling. It defaults to false.
	MutexProfiling = &cli.BoolFlag{
		Name:    "mutex-profiling",
		Usage:   "MutexProfiling enables mutex profiling",
		EnvVars: []string{"MUTEX_PROFILING"},
		Value:   false,
	}

	// NoCPUProfiling collecting the CPU profiles is disabled.
	NoCPUProfiling = &cli.BoolFlag{
		Name:    "no-cpu-profiling",
		Usage:   "When true, collecting the CPU profiles is disabled",
		EnvVars: []string{"NO_CPU_PROFILING"},
		Value:   false,
	}

	// NoAllocProfiling collecting the allocation profiles is disabled.
	NoAllocProfiling = &cli.BoolFlag{
		Name:    "no-alloc-profiling",
		Usage:   "When true, collecting the allocation profiles is disabled",
		EnvVars: []string{"NO_ALLOC_PROFILING"},
		Value:   false,
	}

	// NoHeapProfiling collecting the heap profiles is disabled.
	NoHeapProfiling = &cli.BoolFlag{
		Name:    "no-heap-profiling",
		Usage:   "When true, collecting the heap profiles is disabled.",
		EnvVars: []string{"NO_HEAP_PROFILING"},
		Value:   false,
	}

	// NoGoroutineProfiling collecting the goroutine profiles is disabled.
	NoGoroutineProfiling = &cli.BoolFlag{
		Name:    "no-goroutine-profiling",
		Usage:   "When true, collecting the goroutine profiles is disabled.",
		EnvVars: []string{"NO_GOROUTINE_PROFILING"},
		Value:   false,
	}

	// AllocForceGC forces garbage collection before the collection of each heap
	// profile collected to produce the allocation profile. This increases the
	// accuracy of allocation profiling. It defaults to false.
	AllocForceGC = &cli.BoolFlag{
		Name: "alloc-force-gc",
		Usage: "AllocForceGC forces garbage collection before the collection " +
			"of each heap profile collected to produce the allocation profile. " +
			"This increases the accuracy of allocation profiling",
		EnvVars: []string{"ALLOC_FORCE_GC"},
		Value:   false,
	}

	// EnableOCTelemetry sends all telemetries via OpenCensus exporter, which
	// can be viewed in Cloud Trace and Cloud Monitoring.
	EnableOCTelemetry = &cli.BoolFlag{
		Name: "enable-oc-telemetry",
		Usage: "When true, the agent sends all telemetries via OpenCensus exporter, " +
			"which can be viewed in Cloud Trace and Cloud Monitoring.",
		EnvVars: []string{"ENABLE_OC_TELEMETRY"},
		Value:   false,
	}
)

region Profiling

View Source
var FractionOfTraces = &cli.Float64Flag{
	Name:    "fraction-of-traces",
	Usage:   "Specifies probability whether a trace should be sampled and exported",
	EnvVars: []string{"FRACTION_OF_TRACES"},
	Value:   0.1,
}

FractionOfTraces specifies probability whether a trace should be sampled and exported.

View Source
var InstanceID = &cli.StringFlag{
	Name:    "instance",
	Usage:   "instance ID, for example: dev, stage or production",
	EnvVars: []string{"INSTANCE_ID"},
	Value:   "dev",
}

InstanceID specifies instance ID.

View Source
var LogLevel = &cli.StringFlag{
	Name:    "log-level",
	Usage:   "logging level",
	EnvVars: []string{"LOG_LEVEL"},
	Value:   logging.Info.String(),
}

LogLevel specifies logging level.

View Source
var ProjectID = &cli.StringFlag{
	Name:    "project-id",
	Usage:   "google cloud platform project id",
	EnvVars: []string{"PROJECT_ID"},
}

ProjectID is a Google cloud platform project ID.

View Source
var ServiceName = &cli.StringFlag{
	Name:    "service-name",
	Usage:   "own microservice name",
	EnvVars: []string{"SERVICE_NAME"},
}

ServiceName specifies own service name.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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