Skip to content

Update opentelemetry to 1.45.0 - #70357

Open
twangboy wants to merge 4 commits into
3008.xfrom
fix/dependabot/opentelemetry
Open

twangboy wants to merge 4 commits into
3008.xfrom
fix/dependabot/opentelemetry

Conversation

@twangboy

@twangboy twangboy commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Update opentelemetry to 1.45.0

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy added this to the Argon v3008.5 milestone Oct 6, 2026
@twangboy twangboy self-assigned this Oct 6, 2026
@twangboy
twangboy requested a review from a team as a code owner October 6, 2026 22:05
@charzl

charzl commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

CI failed due to libyaml, plz check

@twangboy
twangboy force-pushed the fix/dependabot/opentelemetry branch from d29e124 to 8ab01b8 Compare October 20, 2026 19:54

@charzl charzl left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Change looks good to me, just some minor:

opentelemetry-exporter-otlp-proto-http 1.45.0 defaults to a urllib3 transport (via the new opentelemetry-exporter-http-transport) unless a requests.Session is passed. Salt doesn't pass one, so OTLP/HTTP no longer honours HTTP(S)_PROXY.

Could we either pass session=requests.Session() in salt/utils/metrics.py and salt/utils/tracing.py to keep the old behaviour, or document the change? A test that sets HTTP_PROXY and asserts the export goes through it would catch this.

Tests that use the real exporters
The existing tracing/metrics tests use in-memory or console exporters, so they'd still pass if an exporter broke. It would be good to add:

  • A functional test that sends spans and metrics over OTLP/HTTP to a local receiver and decodes the request.
  • Kick off a stress test to monitor prometheus works as expected?

@dwoz

dwoz commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@twangboy needs rebase

opentelemetry-exporter-otlp-proto-http 1.45.0 builds a urllib3
transport unless it is given a requests.Session, and that transport
ignores the HTTP_PROXY and HTTPS_PROXY environment variables. Salt
passed no session, so tracing and metrics exports stopped going
through the configured proxy after the upgrade.

Pass a requests.Session to the otlp-http span and metric exporters so
the requests transport is used, as it was before 1.45.0.

Add unit tests that the session is passed, and a functional test that
sends spans and metrics over OTLP/HTTP to a local receiver, decodes
the request, and checks the export is routed through HTTP_PROXY.

This branch was previously deployed

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

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants