0.164.0
🛑 Breaking changes 🛑
-
auto-instrumentation: Update the default .NET auto-instrumentation image to 1.20.0, which drops support for .NET 8 and .NET 9. (#5962)
Both frameworks reached end of support upstream.
Workloads that run on .NET 8 or .NET 9 can keep the previous version by setting
spec.dotnet.imagein the Instrumentation resource to
ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-dotnet:1.19.1. -
collector: The OpenTelemetryCollector v1alpha1 API version is no longer served. Use v1beta1 instead. (#5037)
Clients and tooling that explicitly use the v1alpha1 API version will receive a 404 error.
All manifests must be updated to useapiVersion: opentelemetry.io/v1beta1.
Existing objects that were stored in etcd asv1alpha1need to be migrated tov1beta1.
On Kubernetes 1.30+, the built-in StorageVersionMigration feature handles this automatically.
On older Kubernetes versions, manually trigger migration by reading and re-writing each object,
for example:kubectl get otelcol -A -o json | kubectl apply -f -.
As a temporary workaround, v1alpha1 can be re-enabled by editing the CRD directly:
kubectl patch crd opentelemetrycollectors.opentelemetry.io --type=json -p='[{"op":"replace","path":"/spec/versions/0/served","value":true}]'.
This change will be reverted on the next operator upgrade.
💡 Enhancements 💡
target allocator: Add theoperator.targetallocator.targetsremainingattributesfeature gate to record theopentelemetry_allocator_targets_remainingmetric per job and namespace. (#4637)
When the gate is enabled, the operator passes--feature-gates=targetallocator.targetsremainingattributesto the target allocator,
which then records the metric withjob.nameandk8s.namespace.nameattributes instead of a single total.
k8s.namespace.nameis taken from the__meta_kubernetes_namespacelabel and is omitted for targets that do not have it.
The target allocator now accepts a--feature-gatesflag.
🧰 Bug fixes 🧰
-
collector: Applyspec.revisionHistoryLimitto the collector DaemonSet in daemonset mode. (#5889) -
auto-instrumentation: Skip Python injection, including the init container, when theinstrumentation.opentelemetry.io/otel-python-platformannotation value is not supported. (#5892)
The operator added an init container that rancp -r "" /otel-auto-instrumentation-python, which failed
and stopped the pod from starting. -
target allocator: Fix/debug/targetwriting both the Bad Request and Unknown Target pages whentarget_hashis not a number. (#5896) -
target allocator: Applyspec.dnsPolicyof the TargetAllocator resource to the target allocator pod. (#5951) -
target allocator: Applyspec.hostPIDof the TargetAllocator resource to the target allocator pod. (#5961) -
target allocator: Applyspec.sessionAffinityandspec.sessionAffinityConfigof the TargetAllocator resource to the target allocator Service. (#5965) -
collector: Update an existing Ingress whenspec.ingress.ingressClassNamechanges. (#5890) -
auto-instrumentation: Applyspec.imagePullPolicyto the Java extension init containers. (#5893) -
opamp: Add the volumes fromspec.volumesof an OpAMPBridge to the bridge deployment. (#5895) -
target allocator: Fix the_linkvalue returned by/jobs/{job}/targets, which pointed to a/debugpath that does not exist and returned 404. (#5897)