| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Results 📊✅ 98741 passed | ⏭️ 6806 skipped | Total: 105547 | Pass Rate: 93.55% | Execution Time: 351m 23s 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2561 uncovered lines. @@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.55% 89.56% +0.01%
==========================================
Files 193 193 —
Lines 24514 24520 +6
Branches 8674 8676 +2
==========================================
+ Hits 21952 21959 +7
- Misses 2562 2561 -1
- Partials 1402 1401 -1Generated by Codecov Action |
Sorry, something went wrong.
|
|
||
|
|
||
| @scopemethod | ||
| def set_attributes(attributes: "dict[str, Any]") -> None: |
There was a problem hiding this comment.
The type on set_attribute() is broader then Scope.set_attribute() as well
Sorry, something went wrong.
There was a problem hiding this comment.
yup just mirrored set_attribute here
Sorry, something went wrong.
### Description Streamed spans have both a `set_attribute` as well as a `set_attributes` API. On the top level, for setting attributes on the scope, we only have `set_attribute`. This is a bit confusing. Align the two APIs by adding the missing top-level `set_attributes`. See also [dev docs](https://develop.sentry.dev/sdk/foundations/state-management/scopes/attributes/#python). #### Issues <!-- * resolves: getsentry#1234 * resolves: LIN-1234 --> #### Reminders - Please add tests to validate your changes, and lint your code using `uv run ruff`. - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr)
| Back | FazBrowse Home | New Git URL |
Description
Streamed spans have both a set_attribute as well as a set_attributes API.
On the top level, for setting attributes on the scope, we only have set_attribute. This is a bit confusing.
Align the two APIs by adding the missing top-level set_attributes.
See also dev docs.
Issues
Reminders