configsections

package
v1.0.123 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterRelevantSdk added in v1.0.99

func FilterRelevantSdk(instrumentationConfig *v1alpha1.InstrumentationConfig, programmingLanguage string) (*protobufs.AgentConfigFile, error)

func GetWorkloadInstrumentationConfig added in v1.0.99

func GetWorkloadInstrumentationConfig(ctx context.Context, kubeClient client.Client, configObjectName string, ns string) (*v1alpha1.InstrumentationConfig, error)

func InstrumentationLibrariesRemoteConfigToOpamp

func InstrumentationLibrariesRemoteConfigToOpamp(remoteConfigInstrumentationLibraries []RemoteConfigInstrumentationLibrary) (*protobufs.AgentConfigFile, string, error)

func SdkRemoteConfigToOpamp

func SdkRemoteConfigToOpamp(remoteConfigSdk *RemoteConfigSdk) (*protobufs.AgentConfigFile, string, error)

Types

type ConfigSectionName

type ConfigSectionName string
const (
	RemoteConfigSdkConfigSectionName                      ConfigSectionName = "SDK"
	RemoteConfigInstrumentationLibrariesConfigSectionName ConfigSectionName = "InstrumentationLibraries"
)

type RemoteConfigInstrumentationLibrary

type RemoteConfigInstrumentationLibrary struct {
	Name   string                                   `json:"name"`
	Traces RemoteConfigInstrumentationLibraryTraces `json:"traces"`
}

func CalcInstrumentationLibrariesRemoteConfig

func CalcInstrumentationLibrariesRemoteConfig(ctx context.Context, kubeClient client.Client, configObjectName string, ns string) ([]RemoteConfigInstrumentationLibrary, error)

type RemoteConfigInstrumentationLibraryTraces

type RemoteConfigInstrumentationLibraryTraces struct {
	Enabled *bool `json:"enabled,omitempty"`
}

type RemoteConfigSdk

type RemoteConfigSdk struct {
	RemoteResourceAttributes []configresolvers.ResourceAttribute `json:"remoteResourceAttributes"`

	// general configuration for trace signals in the SDK level.
	TraceSignal TraceSignalGeneralConfig `json:"traceSignal"`
}

func CalcSdkRemoteConfig

func CalcSdkRemoteConfig(remoteResourceAttributes []configresolvers.ResourceAttribute, tracesEnabled bool) *RemoteConfigSdk

type TraceSignalGeneralConfig

type TraceSignalGeneralConfig struct {

	// reflects if the trace signals is enabled for this SDK.
	// if false, the SDK should not produce any traces.
	// this is to spare computation on the agent in case the receiver is not setup to receive traces.
	Enabled bool `json:"enabled"`

	// by using this value, one can choose the behavior for instrumentation libraries
	// for which there is no explicit configuration.
	// one can set this value to true to allow all instrumentation libraries to produce traces, unless explicitly disabled.
	// one can set this value to false to disable all instrumentation libraries, unless explicitly enabled.
	DefaultEnabledValue bool `json:"defaultEnabledValue"`
}

Jump to

Keyboard shortcuts

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