Documentation
¶
Index ¶
- func DeleteInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string) error
- func EnsureInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string, ...) error
- func IsOperatorInstalled(ctx context.Context, disc discovery.DiscoveryInterface) (bool, string, error)
- type InstrumentationConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteInstrumentation ¶
func DeleteInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string) error
DeleteInstrumentation removes the Instrumentation CR from the namespace.
func EnsureInstrumentation ¶
func EnsureInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string, cfg InstrumentationConfig) error
EnsureInstrumentation creates or updates an Instrumentation CR in the given namespace.
func IsOperatorInstalled ¶
func IsOperatorInstalled(ctx context.Context, disc discovery.DiscoveryInterface) (bool, string, error)
IsOperatorInstalled checks whether the OpenTelemetry Operator is present by looking for the Instrumentation CRD via the discovery API.
Types ¶
Click to show internal directories.
Click to hide internal directories.