MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / OpenTelemetryLogsEnabled

Function OpenTelemetryLogsEnabled

internal/collector/util.go:42–48  ·  view source on GitHub ↗
(
	ctx context.Context,
	object T,
)

Source from the content-addressed store, hash-verified

40}
41
42func OpenTelemetryLogsEnabled[T CrunchyCRD](
43 ctx context.Context,
44 object T,
45) bool {
46 return OpenTelemetrySpecPresent(object) &&
47 feature.Enabled(ctx, feature.OpenTelemetryLogs)
48}
49
50func OpenTelemetryMetricsEnabled[T CrunchyCRD](
51 ctx context.Context,

Callers 15

patroniLogSizeMethod · 0.92
configmapFunction · 0.92
statefulsetMethod · 0.92
clusterINIFunction · 0.92
EnablePatroniLoggingFunction · 0.85
EnablePgBouncerLoggingFunction · 0.85
PostgreSQLParametersFunction · 0.85
EnablePostgresLoggingFunction · 0.85

Calls 2

EnabledFunction · 0.92
OpenTelemetrySpecPresentFunction · 0.85

Tested by

no test coverage detected