PostHog / PostHog/posthog-unity

Implement tracing headers

Open
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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-ID
  • X-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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.