⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@dsessler7
Copy link
Collaborator

…set.

Minor refactoring of some collector code.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?

We want to move to the newest version of the opentelemetry-collector-contrib, however, there was a change with the resourcedetection processor where having zero detectors set results in zero "successes" which results in a failure, killing the collector:
open-telemetry/opentelemetry-collector-contrib@50cd2e8

We therefore need to change our code so that we only add the resourcedetection processor if we have detectors set.

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

We only add the resourcedetection processor to collector pipelines if there are detectors set in the postgrescluster/pgadmin manifests. Allows us to move to otel v0.144.0.

Other Information:

logfile string,
) {
var spec *v1beta1.InstrumentationLogsSpec
if inCluster != nil && inCluster.Spec.Instrumentation != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ Same question as above.

outConfig *Config,
) {
var spec *v1beta1.InstrumentationLogsSpec
if inCluster != nil && inCluster.Spec.Instrumentation != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ Same here.

@dsessler7 dsessler7 requested a review from tjmoore4 January 27, 2026 01:03
…set.

Minor refactoring of some collector code.
Add/adjust tests for different otel detector configs.
@dsessler7 dsessler7 force-pushed the otel-resource-detection-fix branch from b7417f6 to 85629a9 Compare January 27, 2026 20:57
@dsessler7 dsessler7 merged commit fcde592 into CrunchyData:main Jan 27, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants