Skip to content

Conversation

@odubajDT
Copy link
Contributor

@odubajDT odubajDT commented Jan 9, 2026

Description

Introduce semantic conventions compliant feature gate pair for k8sattributes processor

Link to tracking issue

Fixes #44693 Part of #44589

Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank's @odubajDT . I think we should wait for open-telemetry/opentelemetry-collector#14273 to ensure we indeed follow the decided feature gate schema.

@mx-psi
Copy link
Member

mx-psi commented Jan 26, 2026

open-telemetry/opentelemetry-collector/pull/14273 is on the merge queue :)

@ChrsMark ChrsMark requested a review from mx-psi January 28, 2026 08:50
Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Tested that manually with several combinations and seems to work as expected:

command:
  extraArgs:
    #- --feature-gates=+processor.k8sattributes.EmitV1K8sConventions,+processor.k8sattributes.DontEmitV0K8sConventions # should emit v1 -> OK
    #- --feature-gates=+processor.k8sattributes.EmitV1K8sConventions,-processor.k8sattributes.DontEmitV0K8sConventions # should emit both -> OK
    #- --feature-gates=-processor.k8sattributes.EmitV1K8sConventions,+processor.k8sattributes.DontEmitV0K8sConventions # should error -> OK
    - --feature-gates=processor.k8sattributes.EmitV1K8sConventions # should emit both -> OK

@dmitryax @TylerHelmuth @fatsheep9146 @mx-psi PTAL

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT force-pushed the k8sattributes-semconv-gates branch from 5de4a2b to 941624a Compare January 29, 2026 09:26
@odubajDT odubajDT requested a review from ChrsMark January 29, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

processor/k8sattributes k8s Attributes processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[k8sattributes] Mature k8sattr.labelsAnnotationsSingular.allow feature gate

3 participants