Skip to content

chore: Update Sentry license attribution#647

Merged
marandaneto merged 1 commit into
mainfrom
chore/update-sentry-license-attribution
Jun 3, 2026
Merged

chore: Update Sentry license attribution#647
marandaneto merged 1 commit into
mainfrom
chore/update-sentry-license-attribution

Conversation

@marandaneto
Copy link
Copy Markdown
Member

💡 Motivation and Context

Correct Sentry attribution in files that include code derived from getsentry/sentry-python and make the associated MIT license notice clearer.

💚 How did you test it?

Not run (license/comment-only change).

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran sampo add to generate a changeset file

@marandaneto marandaneto requested a review from a team as a code owner June 3, 2026 19:48
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 3, 2026

Prompt To Fix All With AI
Fix the following 2 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 2
posthog/exception_utils.py:1-4
**Removal of specific source reference reduces attribution precision.** The old comment `# copied and adapted from https://github.com/getsentry/sentry-python/blob/269d96d6e9821122fbff280e6a26956e5ed03c0b/sentry_sdk/utils.py#L689` pointed to the exact commit and function that was adapted. The new header links only to the top-level license file, which is less useful for future maintainers who need to compare diffs or track upstream changes. Consider retaining the per-function source URL alongside the new license header.

### Issue 2 of 2
LICENSE:48
The file is missing a trailing newline after the final `SOFTWARE.` line — the diff shows `\ No newline at end of file`. Most POSIX tooling and text editors expect a newline at the end of text files; adding one here would keep the file consistent with the rest of the repository.

Reviews (1): Last reviewed commit: "chore: update sentry license attribution" | Re-trigger Greptile

Comment on lines +1 to 4
# Portions of this file are derived from getsentry/sentry-python
# Copyright (c) 2018 Functional Software, Inc. dba Sentry
# Licensed under the MIT License: https://github.com/getsentry/sentry-python/blob/master/LICENSE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Removal of specific source reference reduces attribution precision. The old comment # copied and adapted from https://github.com/getsentry/sentry-python/blob/269d96d6e9821122fbff280e6a26956e5ed03c0b/sentry_sdk/utils.py#L689 pointed to the exact commit and function that was adapted. The new header links only to the top-level license file, which is less useful for future maintainers who need to compare diffs or track upstream changes. Consider retaining the per-function source URL alongside the new license header.

Prompt To Fix With AI
This is a comment left during a code review.
Path: posthog/exception_utils.py
Line: 1-4

Comment:
**Removal of specific source reference reduces attribution precision.** The old comment `# copied and adapted from https://github.com/getsentry/sentry-python/blob/269d96d6e9821122fbff280e6a26956e5ed03c0b/sentry_sdk/utils.py#L689` pointed to the exact commit and function that was adapted. The new header links only to the top-level license file, which is less useful for future maintainers who need to compare diffs or track upstream changes. Consider retaining the per-function source URL alongside the new license header.

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment thread LICENSE
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE. No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 The file is missing a trailing newline after the final SOFTWARE. line — the diff shows \ No newline at end of file. Most POSIX tooling and text editors expect a newline at the end of text files; adding one here would keep the file consistent with the rest of the repository.

Prompt To Fix With AI
This is a comment left during a code review.
Path: LICENSE
Line: 48

Comment:
The file is missing a trailing newline after the final `SOFTWARE.` line — the diff shows `\ No newline at end of file`. Most POSIX tooling and text editors expect a newline at the end of text files; adding one here would keep the file consistent with the rest of the repository.

How can I resolve this? If you propose a fix, please make it concise.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

posthog-python Compliance Report

Date: 2026-06-03 19:52:34 UTC
Duration: 176127ms

✅ All Tests Passed!

45/45 tests passed


Capture Tests

29/29 tests passed

View Details
Test Status Duration
Format Validation.Event Has Required Fields 517ms
Format Validation.Event Has Uuid 1507ms
Format Validation.Event Has Lib Properties 1508ms
Format Validation.Distinct Id Is String 1507ms
Format Validation.Token Is Present 1507ms
Format Validation.Custom Properties Preserved 1507ms
Format Validation.Event Has Timestamp 1507ms
Retry Behavior.Retries On 503 9519ms
Retry Behavior.Does Not Retry On 400 3506ms
Retry Behavior.Does Not Retry On 401 3507ms
Retry Behavior.Respects Retry After Header 9514ms
Retry Behavior.Implements Backoff 23528ms
Retry Behavior.Retries On 500 7506ms
Retry Behavior.Retries On 502 7514ms
Retry Behavior.Retries On 504 7510ms
Retry Behavior.Max Retries Respected 23531ms
Deduplication.Generates Unique Uuids 1498ms
Deduplication.Preserves Uuid On Retry 7516ms
Deduplication.Preserves Uuid And Timestamp On Retry 14515ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry 7514ms
Deduplication.No Duplicate Events In Batch 1505ms
Deduplication.Different Events Have Different Uuids 1507ms
Compression.Sends Gzip When Enabled 1507ms
Batch Format.Uses Proper Batch Structure 1508ms
Batch Format.Flush With No Events Sends Nothing 1005ms
Batch Format.Multiple Events Batched Together 1505ms
Error Handling.Does Not Retry On 403 3510ms
Error Handling.Does Not Retry On 413 3508ms
Error Handling.Retries On 408 7512ms

Feature_Flags Tests

16/16 tests passed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id 1005ms
Request Payload.Flags Request Uses V2 Query Param 1007ms
Request Payload.Flags Request Hits Flags Path Not Decide 1007ms
Request Payload.Flags Request Omits Authorization Header 1007ms
Request Payload.Token In Flags Body Matches Init 1007ms
Request Payload.Groups Round Trip 1007ms
Request Payload.Groups Default To Empty Object 1007ms
Request Payload.Person Properties Distinct Id Auto Populated When Caller Omits It 1007ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False 1007ms
Request Payload.Disable Geoip Omitted Defaults To False 1007ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key 1006ms
Request Lifecycle.No Flags Request On Init Alone 504ms
Request Lifecycle.No Flags Request On Normal Capture 1507ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests 1011ms
Request Lifecycle.Mock Response Value Is Returned To Caller 1003ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event 1510ms

@marandaneto marandaneto changed the title Update Sentry license attribution chore: Update Sentry license attribution Jun 3, 2026
@marandaneto marandaneto enabled auto-merge (squash) June 3, 2026 19:54
@marandaneto marandaneto merged commit a91ca2b into main Jun 3, 2026
29 of 30 checks passed
@marandaneto marandaneto deleted the chore/update-sentry-license-attribution branch June 3, 2026 19:59
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