Skip to content

chore: add changeset for capture_trace_context - #896

Merged
DanielVisca merged 1 commit into
mainfrom
posthog/capture-trace-context-changeset
Aug 25, 2026
Merged

chore: add changeset for capture_trace_context#896
DanielVisca merged 1 commit into
mainfrom
posthog/capture-trace-context-changeset

Conversation

@DanielVisca

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

#894 merged without a changeset, so .sampo/changesets/ is empty and capture_trace_context won't be picked up by a release. This adds the missing changeset so the option actually ships.

minor, since it adds a new (opt-in, default-off) client option.

💚 How did you test it?

Changeset-only change, no code. Format and package key (pypi/posthog) match the changesets consumed by the v7.43.0 and v7.43.1 releases, and the file is in .sampo/changesets/ as RELEASING.md requires.

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes. — N/A, no code change
  • 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 — hand-written in the same format (sampo CLI unavailable in this environment)

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

  • Built with Claude Code (PostHog Desktop). Follow-up to feat: opt-in OTel trace/span IDs on regular capture() via capture_trace_context #894 after it was pointed out that the merge carried no changeset.
  • Bump choice: minor rather than patch — new public constructor option, backwards compatible. Matches the precedent of gallant-princess-kalma.md (minor for an added/changed behavior) over bold-firebringer-erika.md (patch for a bug fix).

Created with PostHog Desktop

PR #894 merged without a changeset, so Sampo has nothing pending and the option won't be published. Adds the missing minor changeset for the already-merged capture_trace_context option.

Generated-By: PostHog Desktop
Task-Id: 44c7be3e-4938-4f9a-bb80-89fd9d74db6d
@DanielVisca
DanielVisca marked this pull request as ready for review August 25, 2026 16:23
@DanielVisca
DanielVisca requested a review from a team as a code owner August 25, 2026 16:23
@DanielVisca
DanielVisca enabled auto-merge (squash) August 25, 2026 16:23
@greptile-apps

greptile-apps Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "chore: add changeset for capture_trace_c..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

posthog-python Compliance Report

Date: 2026-08-25 16:27:38 UTC
Duration: 256316ms

✅ All Tests Passed!

111/111 tests passed


Capture_V1 Tests

94/94 tests passed

View Details
Test Status Duration
Endpoint And Method.Targets V1 Endpoint 514ms
Endpoint And Method.Does Not Use Legacy Endpoints 511ms
Required Headers.Has Authorization Bearer Header 510ms
Required Headers.Has Content Type Json 510ms
Required Headers.Has Posthog Sdk Info Format 511ms
Required Headers.Has Posthog Attempt Header 510ms
Required Headers.Has Posthog Request Id 512ms
Required Headers.Has Posthog Request Timestamp 510ms
Required Headers.Has User Agent 509ms
Body Format.Body Has Created At And Batch 512ms
Body Format.No Api Key In Body 510ms
Body Format.No Sent At In Body 510ms
Event Format.Event Has Required Root Fields 510ms
Event Format.Event Uuid Is Valid 511ms
Event Format.Event Timestamp Is Rfc3339 510ms
Event Format.Distinct Id Is String 511ms
Event Format.Distinct Id At Root Not Properties 509ms
Event Format.Custom Properties Preserved 511ms
Event Format.Set Properties Preserved 510ms
Event Format.Set Once Properties Preserved 510ms
Event Format.Groups Properties Preserved 510ms
Event Format.Sdk Generates Uuid If Not Provided 510ms
Event Format.Event Has Required Root Fields Batch 513ms
Event Format.Event Uuid Is Valid Batch 513ms
Event Format.Event Timestamp Is Rfc3339 Batch 514ms
Event Format.Distinct Id Is String Batch 513ms
Event Format.Distinct Id At Root Not Properties Batch 515ms
Event Format.Custom Properties Preserved Batch 514ms
Event Format.Set Properties Preserved Batch 513ms
Event Format.Set Once Properties Preserved Batch 514ms
Event Format.Groups Properties Preserved Batch 514ms
Event Format.Sdk Generates Uuid If Not Provided Batch 515ms
Batch Behavior.Multiple Events In Single Batch 517ms
Batch Behavior.Batch Envelope Smoke 514ms
Batch Behavior.Flush With No Events Sends Nothing 507ms
Batch Behavior.Flush At Triggers Batch 1011ms
Batch Behavior.Created At Reflects Batch Creation Time 511ms
Deduplication.Generates Unique Uuids 519ms
Deduplication.Different Events Same Content Different Uuids 511ms
Deduplication.Preserves Uuid On Retry 6519ms
Deduplication.Preserves Timestamp On Retry 6521ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry 6524ms
Deduplication.No Duplicate Events In Batch 520ms
Header Behavior On Retry.Attempt Header Starts At One 511ms
Header Behavior On Retry.Attempt Header Increments On Retry 13522ms
Header Behavior On Retry.Request Id Preserved On Retry 6517ms
Header Behavior On Retry.Different Requests Have Different Request Ids 3022ms
Header Behavior On Retry.Request Timestamp Changes On Retry 6521ms
Response Format Validation.Success Response Has Uuid Keyed Results 511ms
Response Format Validation.Success Response Has Ok For Each Event 515ms
Response Format Validation.Success No Retry After When All Ok 515ms
Response Format Validation.Success Retry After Present When Retry Events 1517ms
Response Format Validation.Success No Retry After When Drop Only 514ms
Response Format Validation.Response Echoes Request Id 512ms
Retry Behavior.Retries On 408 6520ms
Retry Behavior.Retries On 500 6517ms
Retry Behavior.Retries On 503 8523ms
Retry Behavior.Retries On 504 6521ms
Retry Behavior.Retryable Errors Have Retry After 3518ms
Retry Behavior.Respects Retry After On Retryable Error 11518ms
Retry Behavior.Does Not Retry On 400 2516ms
Retry Behavior.Does Not Retry On 401 2514ms
Retry Behavior.Does Not Retry On 402 2513ms
Retry Behavior.Does Not Retry On 413 2514ms
Retry Behavior.Does Not Retry On 415 2515ms
Retry Behavior.Non Retryable Errors Have No Retry After 2514ms
Retry Behavior.Implements Backoff 22536ms
Retry Behavior.Max Retries Respected 22528ms
Partial Batch Handling.Handles 200 Full Success 2512ms
Partial Batch Handling.Handles 200 With All Ok 3521ms
Partial Batch Handling.Does Not Retry Dropped Events 3516ms
Partial Batch Handling.Does Not Retry Limited Events 3517ms
Partial Batch Handling.Prunes Ok Events On Partial Retry 6519ms
Partial Batch Handling.Prunes Dropped Events On Partial Retry 6521ms
Partial Batch Handling.Retries Only Retry Events From Partial 6519ms
Partial Batch Handling.Partial Retry Preserves Uuids 6524ms
Partial Batch Handling.Partial Retry Attempt Header Increments 6523ms
Partial Batch Handling.Partial Retry Request Id Preserved 6519ms
Partial Batch Handling.Respects Retry After On Partial 8525ms
Partial Batch Handling.Unknown Result Treated As Terminal 3516ms
Partial Batch Handling.Mixed Ok Drop Limited No Retry 3521ms
Compression.Sends Gzip Content Encoding 512ms
Compression.No Content Encoding When Disabled 510ms
Compression.Compressed Body Is Decompressible 512ms
Error Handling.Does Not Retry On Unknown 4Xx 2513ms
Event Options.Cookieless Mode Override 511ms
Event Options.Disable Skew Correction Override 511ms
Event Options.Process Person Profile Override 511ms
Event Options.Product Tour Id Override 510ms
Event Options.Unset Options Omitted 512ms
Event Options.Options Override In Batch 515ms
Geoip And Historical Migration.Geoip Disable Injected Into Properties 512ms
Geoip And Historical Migration.Historical Migration Set In Body 510ms
Geoip And Historical Migration.Historical Migration Absent By Default 511ms

Feature_Flags Tests

17/17 tests passed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id 12ms
Request Payload.Flags Request Uses V2 Query Param 10ms
Request Payload.Flags Request Hits Flags Path Not Decide 9ms
Request Payload.Flags Request Omits Authorization Header 7ms
Request Payload.Token In Flags Body Matches Init 8ms
Request Payload.Groups Round Trip 7ms
Request Payload.Groups Default To Empty Object 8ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False 7ms
Request Payload.Disable Geoip Omitted Defaults To False 8ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key 7ms
Request Lifecycle.No Flags Request On Init Alone 3ms
Request Lifecycle.No Flags Request On Normal Capture 508ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests 15ms
Request Lifecycle.Mock Response Value Is Returned To Caller 9ms
Retry Behavior.Retries Flags On 502 312ms
Retry Behavior.Retries Flags On 504 314ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event 511ms

@DanielVisca
DanielVisca merged commit 9a1d137 into main Aug 25, 2026
44 checks passed
@DanielVisca
DanielVisca deleted the posthog/capture-trace-context-changeset branch August 25, 2026 16:28
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