Skip to content

[processor/k8sattributes] introduce semconv compaint feature gate pair#45307

Merged
dmitryax merged 8 commits intoopen-telemetry:mainfrom
odubajDT:k8sattributes-semconv-gates
Feb 4, 2026
Merged

[processor/k8sattributes] introduce semconv compaint feature gate pair#45307
dmitryax merged 8 commits intoopen-telemetry:mainfrom
odubajDT:k8sattributes-semconv-gates

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
@ChrsMark
Copy link
Member

ChrsMark commented Feb 3, 2026

@open-telemetry/collector-contrib-approvers PTAL since this is the first component following the semconv migration logic defined by https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/semconv-feature-gates.md#proposed-mechanism.

It would be nice to have this merged soon so as to proceed with the component's stability efforts.

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

LGTM

@dmitryax dmitryax merged commit ee85f33 into open-telemetry:main Feb 4, 2026
208 checks passed
ChrsMark pushed a commit that referenced this pull request Feb 4, 2026
…45745)

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
#45718

follow-up of
#45307

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
ChrsMark pushed a commit that referenced this pull request Feb 4, 2026
…te to latest semconv (#45310)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

follow up of
#45307

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
ajimenez1503 pushed a commit to ajimenez1503/opentelemetry-collector-contrib that referenced this pull request Feb 4, 2026
open-telemetry#45307)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Introduce semantic conventions compliant feature gate pair for
k8sattributes processor

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#44693 Part of
open-telemetry#44589


<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
ajimenez1503 pushed a commit to ajimenez1503/opentelemetry-collector-contrib that referenced this pull request Feb 4, 2026
…pen-telemetry#45745)

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#45718

follow-up of
open-telemetry#45307

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
ajimenez1503 pushed a commit to ajimenez1503/opentelemetry-collector-contrib that referenced this pull request Feb 4, 2026
…te to latest semconv (open-telemetry#45310)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

follow up of
open-telemetry#45307

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[k8sattributes] Mature k8sattr.labelsAnnotationsSingular.allow feature gate

5 participants