diff --git a/internal/collector/config.go b/internal/collector/config.go index f9fb59af9d..06ae6d9392 100644 --- a/internal/collector/config.go +++ b/internal/collector/config.go @@ -88,7 +88,6 @@ func (c *Config) ToYAML() (string, error) { func NewConfig(spec *v1beta1.InstrumentationSpec) *Config { config := &Config{ Exporters: map[ComponentID]any{ - // TODO: Do we want a DebugExporter outside of development? // https://pkg.go.dev/go.opentelemetry.io/collector/exporter/debugexporter#section-readme DebugExporter: map[string]any{"verbosity": "detailed"}, }, diff --git a/internal/collector/instance.go b/internal/collector/instance.go index 43936a82d5..3affe78888 100644 --- a/internal/collector/instance.go +++ b/internal/collector/instance.go @@ -103,7 +103,7 @@ func AddToPod( Value: sqlQueryPassword, }, }, - + Resources: spec.Resources, SecurityContext: initialize.RestrictedSecurityContext(), VolumeMounts: append(volumeMounts, configVolumeMount), } diff --git a/internal/collector/postgres_logs_transforms.yaml b/internal/collector/postgres_logs_transforms.yaml index c247cd378d..f397b996e8 100644 --- a/internal/collector/postgres_logs_transforms.yaml +++ b/internal/collector/postgres_logs_transforms.yaml @@ -161,7 +161,6 @@ # https://github.com/open-telemetry/semantic-conventions/blob/v1.29.0/docs/attributes-registry/db.md - set(attributes["db.namespace"], body["dbname"]) where IsString(body["dbname"]) - set(attributes["db.response.status_code"], body["state_code"]) where IsString(body["state_code"]) - # TODO(benjb): discuss db.query.summary, db.query.text # Postgres is multiprocess so some client/backend details align here. #