PostHog / PostHog/posthog-unity
Implement tracing headers
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9
- Forks
- 5
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 8
Description
Summary
Implement canonical PostHog tracing headers behavior for the Unity SDK.
Expected behavior
When tracing headers are enabled for an allowlisted host, outgoing requests include:
X-POSTHOG-DISTINCT-IDX-POSTHOG-SESSION-ID
The SDK should not inject these headers for non-allowlisted hosts.
Spec
https://github.com/PostHog/sdk-specs/blob/main/acceptance/private/tracing-headers.feature
Notes
This should take into account Unity networking APIs and supported platform constraints.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked tracing-headers acceptance feature first, then inspect the Unity networking APIs used for outgoing requests and the allowlist configuration. Done means enabled tracing adds both specified headers only for allowlisted hosts, while non-allowlisted requests remain unchanged across supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- api, game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100