consts

package
v1.0.160 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 29

Documentation

Index

Constants

View Source
const (
	CurrentNamespaceEnvVar      = "CURRENT_NS"
	OdigosVersionEnvVarName     = "ODIGOS_VERSION"
	OdigosTierEnvVarName        = "ODIGOS_TIER"
	DefaultOdigosNamespace      = "odigos-system"
	OdigosConfigurationName     = "odigos-config"
	OdigosEffectiveConfigName   = "effective-config"
	OdigosConfigurationFileName = "config.yaml"
	OTLPPort                    = 4317
	OTLPHttpPort                = 4318
	PprofOdigosPort             = 6060

	// Deprecated: Sources are used to mark workloads for instrumentation.
	OdigosInstrumentationLabel = "odigos-instrumentation"

	// Deprecated: Sources are used to mark workloads for instrumentation.
	InstrumentationEnabled = "enabled"

	// Deprecated: Sources are used to mark workloads for instrumentation.
	InstrumentationDisabled = "disabled"

	// Deprecated: reported name is set via the Source CR.
	OdigosReportedNameAnnotation = "odigos.io/reported-name"
	RolloutTriggerAnnotation     = "rollout-trigger"

	// GatewayMaxConnectionAge and GatewayMaxConnectionAgeGrace are the default values for the gateway collector.
	GatewayMaxConnectionAge      = "15s"
	GatewayMaxConnectionAgeGrace = "2s"

	// Used to store the original value of the environment variable in the pod manifest.
	// This is used to restore the original value when an instrumentation is removed
	// or odigos is uninstalled.
	// Should only be used for environment variables that are modified by odigos.
	ManifestEnvOriginalValAnnotation = "odigos.io/manifest-env-original-val"

	// Used to label instrumentation instances by the corresponding
	// instrumented app for better query performance.
	InstrumentedAppNameLabel = "instrumented-app"

	// CRD types
	InstrumentationConfig   = "InstrumentationConfig"
	InstrumentationInstance = "InstrumentationInstance"
	Destination             = "Destination"
)

Variables

View Source
var (
	OtelLogsExporter            = "OTEL_LOGS_EXPORTER"
	OtelMetricsExporter         = "OTEL_METRICS_EXPORTER"
	OtelTracesExporter          = "OTEL_TRACES_EXPORTER"
	OtelExporterEndpointEnvName = "OTEL_EXPORTER_OTLP_ENDPOINT"
	// Python related ones
	OtelPythonConfiguratorEnvName      = "OTEL_PYTHON_CONFIGURATOR"
	OtelPythonOSSConfiguratorEnvValue  = "odigos-python-configurator"
	OtelPythonEBPFConfiguratorEnvValue = "ebpf"
	OpampServerHostEnvName             = "ODIGOS_OPAMP_SERVER_HOST"
	OpAMPPort                          = 4320
)

Agents related consts

View Source
var (
	ErrorPodsNotFound = errors.New("could not find a ready pod")
)

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