Skip to content

fix: const-correctness of read-only APIs - #2277

Merged
jpnurmi merged 1 commit into
v1from
jpnurmi/fix/const
Nov 5, 2026
Merged

jpnurmi merged 1 commit into
v1from
jpnurmi/fix/const

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

The following read-only APIs should allow callers holding a const pointer without any ugly const-casts:

  • sentry_options_get_shutdown_timeout
  • sentry_options_get_transfer_timeout
  • sentry_options_get_max_spans
  • sentry_options_get_traces_sample_rate
  • sentry_span_iter_headers
  • sentry_transaction_iter_headers

The following read-only APIs should allow callers holding a const
pointer without any ugly const-casts:

- `sentry_options_get_shutdown_timeout`,
- `sentry_options_get_transfer_timeout`,
- `sentry_options_get_max_spans`,
- `sentry_options_get_traces_sample_rate`,
- `sentry_span_iter_headers`, and
- `sentry_transaction_iter_headers`
@jpnurmi
jpnurmi added this pull request to stack #2279 November 5, 2026 10:28
@jpnurmi jpnurmi added the v1 Targets 1.0 (v1 branch) label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.01%. Comparing base (c6f5f1c) to head (afd13d6).

Additional details and impacted files
@@            Coverage Diff             @@
##               v1    #2277      +/-   ##
==========================================
+ Coverage   75.83%   76.01%   +0.17%     
==========================================
  Files         105      105              
  Lines       30364    30364              
  Branches     5649     5649              
==========================================
+ Hits        23028    23081      +53     
+ Misses       5937     5881      -56     
- Partials     1399     1402       +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi merged commit dc31789 into v1 Nov 5, 2026
70 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/const branch November 5, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 Targets 1.0 (v1 branch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants