Skip to content

feat: Part 2 - Expose knobs for OTel v0.158.0 upgrade - #6876

Open
blewis12 wants to merge 11 commits into
mainfrom
part-two-expose-knobs-for-otel-v0.158.0-upgrade
Open

feat: Part 2 - Expose knobs for OTel v0.158.0 upgrade#6876
blewis12 wants to merge 11 commits into
mainfrom
part-two-expose-knobs-for-otel-v0.158.0-upgrade

Conversation

@blewis12

@blewis12 blewis12 commented Aug 13, 2026

Copy link
Copy Markdown
Member

Brief description of Pull Request

Exposes some config now available upstream with the v0.153.0 -> v0.158 contrib bump

This PR covers a handful of components, there will be a couple other follow up PR's covering other components as well, I just didn't want to have one massive PR and break things out into reviewable chunks

Pull Request Details

otelcol.processor.k8sattributes => exposes pod_delete_grace_period. This PR also fixes the converter, which wasn't mapping watch_sync_period

otelcol.connector.spanmetrics => exposes glob on the dimension block

otelcol.exporter.file => exposes the compression_params block

otelcol.receiver.awscloudwatch => exposes initial_lookback on the logs block

otelcol.receiver.googlecloudpubsub / otelcol.exporter.googlecloudpubsub => expose universe_domain on both

shared tls block => exposes include_insecure_cipher_suites, which allows cipher_suites to select suites Go considers insecure. It lives on TLSSetting, so it reaches every component with a client or server tls block, and is documented in the two shared doc snippets.

PR Checklist

  • Documentation added
  • Tests updated
  • Config converters updated
  • This pull request was substantially generated with AI assistance (see the GenAI policy)

Comment thread docs/sources/reference/components/otelcol/otelcol.exporter.file.md
Comment thread docs/sources/reference/components/otelcol/otelcol.exporter.file.md
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

💻 Deploy preview available (feat: Part 2 - Expose knobs for OTel v0.158.0 upgrade):

@blewis12
blewis12 marked this pull request as ready for review August 13, 2026 14:23
@blewis12
blewis12 requested review from a team and clayton-cornell as code owners August 13, 2026 14:23
Comment thread internal/component/otelcol/processor/k8sattributes/k8sattributes.go Outdated
}
}

func TestUniverseDomain(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So we add a bunch of these small tests in this pr.

Ideally we would have one or more test covering all setting for a component and not just these small specialized tests for properties that was just added, since we miss coverage for basically everything else. WDYT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah that's a good point, I was trying to keep it specific to these changes but makes sense to have tests grouped together

@blewis12
blewis12 force-pushed the part-two-expose-knobs-for-otel-v0.158.0-upgrade branch from 3c50a8b to 765e005 Compare August 14, 2026 14:40

if args.AggregationTemporality == AggregationTemporalityDelta && args.TimestampCacheSize <= 0 {
return fmt.Errorf("invalid metric_timestamp_cache_size: %v, the cache size should be positive", args.TimestampCacheSize)
cfg, err := args.Convert()

@blewis12 blewis12 Aug 14, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we can actually just delegate to the upstream validation here, instead of duplicating it here - it's a pattern we use elsewhere in otel components in alloy

| `project` | `string` | Google Cloud Platform project identifier. | Fetch from credentials | no |
| `timeout` | `Duration` | Timeout for calls to the Pub/Sub API. | `"12s"` | no |
| `universe_domain` | `string` | Universe domain for the Pub/Sub service. Set to support Sovereign Cloud regions. | `"googleapis.com"` | no |
| `user_agent` | `string` | Override the user agent string on requests to Cloud Monitoring. This only applies to metrics. Specify `{{version}}` to include the application version number. | `"opentelemetry-collector-contrib {{version}}"` | no |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
| `user_agent` | `string` | Override the user agent string on requests to Cloud Monitoring. This only applies to metrics. Specify `{{version}}` to include the application version number. | `"opentelemetry-collector-contrib {{version}}"` | no |
| `user_agent` | `string` | Override the user agent string used for Pub/Sub requests. Specify `{{version}}` to include the application version number. | `"opentelemetry-collector-contrib {{version}}"` | no |

Remove the Cloud Monitoring ref and the implication that this is metrics-only. (this is based on a Claude analysis which finds that it's referencing the wrong backend, and that stating metrics only implies a signal specific behaviour that the component does not expose)

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.

3 participants