Skip to content

Upgrade OpenTelemetry components from v0.122.0 to v0.125.0 #3489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ptodev
Copy link
Contributor

@ptodev ptodev commented May 2, 2025

PR Description

Routine update for the next Alloy release.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

Copy link
Contributor

github-actions bot commented May 2, 2025

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why the sizer and retry_on_failure differences occur. Those parameters do have default values in the upstream collector.

Copy link
Contributor

@wildum wildum May 8, 2025

Choose a reason for hiding this comment

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

The reason is that the defaults are not set upstream at this level, they are only set within the protocol. See: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/loadbalancingexporter/factory.go#L42

Copy link
Contributor Author

@ptodev ptodev May 9, 2025

Choose a reason for hiding this comment

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

But Alloy's LB exporter doesn't set defaults for sending_queue. So I can't explain to myself why the converter thinks Alloy doesn't use the 0 values.

@ptodev ptodev force-pushed the ptodev/update-otel branch 4 times, most recently from 6cf8d81 to 6fedcc8 Compare May 16, 2025 10:39
@ptodev ptodev force-pushed the ptodev/update-otel branch 6 times, most recently from b7e5133 to 22ba0b7 Compare May 19, 2025 15:55
@ptodev ptodev marked this pull request as ready for review May 19, 2025 16:25
@ptodev ptodev requested review from a team and clayton-cornell as code owners May 19, 2025 16:25
- [`otelcol.connector.spanmetrics`] Moving the start timestamp (and last seen timestamp) from the resourceMetrics level to the individual metrics level.
- [`otelcol.processor.k8sattributes`] Add option to configure automatic resource attributes - with annotation prefix.
Implements [Specify resource attributes using Kubernetes annotations](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/non-normative/k8s-attributes.md#specify-resource-attributes-using-kubernetes-annotations).
This will ensure that each metric has its own accurate start and last seen timestamps, regardless of its relationship to other spans.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line in the right place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. Why would it not be?

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't it belong to the spanmetrics changelog on 107?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you mean? It is from v0.124.0.

}
if len(c.Encoding) > 0 {
result.Encoding = c.Encoding
}
Copy link
Contributor

Choose a reason for hiding this comment

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

If the block is not nil, should we pass through and potentially use the deprecated field defaults?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. The intent here is to always use the block's explicit or default values if the block is explicitly defined. That way we could document it in a simple way - if the block exists, use the block values. It shouldn't matter if the defaults or if the explicit values are used.

Copy link
Contributor

Choose a reason for hiding this comment

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

The current behavior appears to fall through and use the default value of the deprecated fields if the provided values are len 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I see! Those are not the deprecated field defaults. Those are the defaults to use if neither the deprecated nor the "new" field has a non-empty value. I added comments to make this more clear. The confusion comes from the name of the deprecatedArg struct... but I don't know what else to call it?

@ptodev ptodev force-pushed the ptodev/update-otel branch from e5bde2d to 2d69c27 Compare May 20, 2025 13:11
Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

A few suggestions and comments - most are formatting related to align with the formatting changes in #3583

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label May 20, 2025
@ptodev ptodev force-pushed the ptodev/update-otel branch 4 times, most recently from 2b523a9 to 60a7718 Compare May 21, 2025 14:30
Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Doc look OK.

Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Doc look OK. Approving for docs.

@ptodev ptodev force-pushed the ptodev/update-otel branch from 4b92e1a to f475e97 Compare May 21, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants