Documentation ¶
Index ¶
- func FilterRelevantSdk(instrumentationConfig *v1alpha1.InstrumentationConfig, ...) (*protobufs.AgentConfigFile, error)
- func GetWorkloadInstrumentationConfig(ctx context.Context, kubeClient client.Client, configObjectName string, ...) (*v1alpha1.InstrumentationConfig, error)
- func InstrumentationLibrariesRemoteConfigToOpamp(remoteConfigInstrumentationLibraries []RemoteConfigInstrumentationLibrary) (*protobufs.AgentConfigFile, string, error)
- func SdkRemoteConfigToOpamp(remoteConfigSdk *RemoteConfigSdk) (*protobufs.AgentConfigFile, string, error)
- type ConfigSectionName
- type RemoteConfigInstrumentationLibrary
- type RemoteConfigInstrumentationLibraryTraces
- type RemoteConfigSdk
- type TraceSignalGeneralConfig
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 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"` }
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"` }
Click to show internal directories.
Click to hide internal directories.