feat: add Plug tracing header context#104
Merged
dustinbyrne merged 2 commits intomainfrom Apr 29, 2026
Merged
Conversation
Contributor
posthog-elixir Compliance ReportDate: 2026-04-28 17:20:19 UTC
|
| Test | Status | Duration |
|---|---|---|
| Request Payload.Request With Person Properties Device Id | ❌ | 7ms |
Failures
request_payload.request_with_person_properties_device_id
404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'
dustinbyrne
commented
Apr 27, 2026
Comment on lines
+39
to
+40
| @max_header_value_length 1000 | ||
| @control_chars_regex ~r/[\x{00}-\x{1F}\x{7F}-\x{9F}]/u |
Contributor
Author
There was a problem hiding this comment.
These are derived from how we're currently sanitizing tracing headers in Django
marandaneto
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
Propagate PostHog browser tracing context through the Elixir Plug integration so backend events and exception captures can be associated with the frontend distinct ID and session.
💚 How did you test it?
mix test test/posthog/integrations/plug_test.exsmix test📝 Checklist
If releasing new changes
sampo addto generate a changeset filereleaselabel to the PR