Skip to content

Send collector data through the CA file and proxy - #281

Merged
unflxw merged 1 commit into
mainfrom
send-ca-file-and-proxy-to-collector
Aug 27, 2026
Merged

Send collector data through the CA file and proxy#281
unflxw merged 1 commit into
mainfrom
send-ca-file-and-proxy-to-collector

Conversation

@unflxw

@unflxw unflxw commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The OpenTelemetry exporters are built with an endpoint and nothing
else, so the ca_file_path and http_proxy options do not reach the
data sent to a collector. They do reach the data the agent sends, so a
proxy or a private certificate authority works in one mode and not the
other.

Each exporter now takes the certificate file, and a session carrying
the proxy when one is configured. They get a session each rather than
sharing one, because each exports from its own thread and a session is
not thread safe. Without a proxy they are left to build their own
session, which keeps the exporters' own credential provider working.

The same change for AppSignal for Ruby is in appsignal/appsignal-ruby#1596.

@backlog-helper

backlog-helper Bot commented Aug 27, 2026

Copy link
Copy Markdown

Hi @unflxw,

We've found some issues with your Pull Request.

  • This Pull Request is missing labels. Please add labels to help identify types of Pull Requests. - (More info)
  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@backlog-helper

Copy link
Copy Markdown

Hi @unflxw,

We've found new issues for this Pull Request. Please see the main comment on this issue for a list of all current warnings. This comment will not be updated to reflect resolved warnings.

  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@unflxw

unflxw commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Merging this one because it's fairly straight-forward. The Ruby one requires monkey-patching the OTLP exporters, so it's trickier and I'd like a review on that.

The OpenTelemetry exporters are built with an endpoint and nothing
else, so the `ca_file_path` and `http_proxy` options do not reach the
data sent to a collector. They do reach the data the agent sends, so a
proxy or a private certificate authority works in one mode and not the
other.

Each exporter now takes the certificate file, and a session carrying
the proxy when one is configured. They get a session each rather than
sharing one, because each exports from its own thread and a session is
not thread safe. Without a proxy they are left to build their own
session, which keeps the exporters' own credential provider working.
@unflxw
unflxw force-pushed the send-ca-file-and-proxy-to-collector branch from d6a988a to 13a8a2a Compare August 27, 2026 17:06
@unflxw
unflxw merged commit e1024a3 into main Aug 27, 2026
11 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.

1 participant