Skip to content

Conversation

@zoelandeyro
Copy link

Description

In our Kubernetes environment, we have observed that some tracing spans were missing Kubernetes metadata enrichment, particularly resource attributes required for compliance with our software taxonomy.
Currently, when the k8sattributesprocessor fails to find a pod based on the provided identifier, there is no explicit log message indicating this failure. This makes it difficult to debug issues related to missing metadata and to ensure that all observability signals are properly enriched and compliant with our taxonomy.

Justification for the Change:

  • Improved Debuggability: By explicitly logging when a pod cannot be found based on the identifier, operators can more easily diagnose and resolve issues related to missing Kubernetes metadata enrichment.
  • Operational Clarity: The lack of explicit logging for missing pods can lead to silent failures, false alarms in monitoring, and increased operational overhead.

Proposed Code Change: Update the processResource function in k8sattributesprocessor to add a debug log when a pod cannot be found for the given identifier.

Link to tracking issue

Fixes #45099

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 22, 2025

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: zoelandeyro / name: zlandeyro (4d9b4cf)

@github-actions github-actions bot added processor/k8sattributes k8s Attributes processor first-time contributor PRs made by new contributors labels Dec 22, 2025
@github-actions github-actions bot requested a review from odubajDT December 22, 2025 18:21
@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time contributor PRs made by new contributors processor/k8sattributes k8s Attributes processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[processor/k8sattributesprocessor] Improve Logging for Missing Pod Metadata in k8sattributesprocessor to Aid Debugging and Taxonomy Compliance

2 participants