Skip to content

feat(transport): add SENTRY_LINK_CURL option - #1954

Merged
jpnurmi merged 12 commits into
masterfrom
jpnurmi/feat/curl-link-option
Aug 7, 2026
Merged

jpnurmi merged 12 commits into
masterfrom
jpnurmi/feat/curl-link-option

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 4, 2026 •

Copy link
Copy Markdown
Collaborator

Add SENTRY_LINK_CURL CMake option (inspired by SENTRY_LINK_PTHREAD) to choose whether the curl transport links libcurl directly or resolves it at runtime with dlopen/dlsym. Keep direct linking enabled by default.

The linked and runtime-loaded paths use the same curl call table, so the request logic remains shared.

If the runtime dependency is not satisfied:

[sentry] WARN failed to load libcurl: libcurl.so.4: cannot open shared object file: No such file or directory
[sentry] WARN failed to initialize transport
[sentry] WARN `sentry_init` failed

See:

@github-actions

github-actions Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 6d59bb4

Comment thread CHANGELOG.md Resolved
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/curl-link-option branch from 3cac460 to 36eed70 Compare August 4, 2026 19:39
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/curl-link-option branch from 36eed70 to 4ff5953 Compare August 4, 2026 19:50
Add SENTRY_LINK_CURL to choose whether the curl transport links libcurl
directly, resolves it at runtime with dlopen/dlsym, or uses the default
behavior. Keep the default behavior on direct linking in this change.

The linked and runtime-loaded paths use the same curl call table, so the
request logic remains shared.

See: #1852
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/curl-link-option branch from 4ff5953 to 227693c Compare August 4, 2026 19:53
Comment thread CMakeLists.txt Resolved
@codecov

codecov Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.76190% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.99%. Comparing base (f2f784c) to head (6d59bb4).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1954      +/-   ##
==========================================
+ Coverage   75.93%   75.99%   +0.05%     
==========================================
  Files          94       94              
  Lines       22161    22180      +19     
  Branches     3936     3937       +1     
==========================================
+ Hits        16829    16855      +26     
+ Misses       4445     4440       -5     
+ Partials      887      885       -2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@limbonaut limbonaut 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.

Partially reviewed, I'll give it another look in a bit!

Comment thread README.md Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9413592. Configure here.

This reverts commit cb49750.

@limbonaut limbonaut 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.

Looks good!

@jpnurmi
jpnurmi merged commit 1baaf49 into master Aug 7, 2026
62 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/feat/curl-link-option branch August 7, 2026 07:51
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
sentry-native 0.16.2

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.

- [ ] `resource` blocks have been checked for updates.
<details>
  <summary>release notes</summary>
  <pre>**Features**:

- Add `sentry_scope_remove_fingerprint` to remove a fingerprint set on a scope, matching the global `sentry_remove_fingerprint`. ([#1932](getsentry/sentry-native#1932))
- Add `sentry_options_set_before_send_feedback` to filter or enrich user feedback. Feedback does not go through `before_send`. ([#1923](getsentry/sentry-native#1923))
- Unix: Add `SENTRY_LINK_CURL` to control whether the curl transport links `libcurl` directly, loads it dynamically at runtime, or uses the default behavior. ([#1954](getsentry/sentry-native#1954))

**Fixes**:

- Name `sentry-logs` and `sentry-metrics` telemetry batcher threads so they can be identified in debuggers, profilers, and crash reports. ([#1937](getsentry/sentry-native#1937))
- Linux: close descriptor `0` on failed module file mapping when that descriptor was returned by `open`, avoiding a file descriptor leak. ([#1924](getsentry/sentry-native#1924))
- `sentry_attachment_set_filename`, `sentry_attachment_set_type`, and `sentry_attachment_set_content_type` now flush the scope, so changes applied after `sentry_attach_file`/`sentry_attach_bytes` also apply to hard-crash events instead of only to normal events. ([#1934](getsentry/sentry-native#1934))
- Crashpad: fix a crash when calling `sentry_init` before C++ dynamic initializers have run. ([#1930](getsentry/sentry-native#1930), [mini_chromium#8](getsentry/mini_chromium#8))
- Reduce the size of native-generated minidumps on Windows ([#1929](https://github.com/getsentry/sentry-native/pull/1929))</pre>
  <p>View the full release notes at <a href="https://github.com/getsentry/sentry-native/releases/tag/0.16.2">https://github.com/getsentry/sentry-native/releases/tag/0.16.2</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!16247
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