Repository navigation
Conversation
This was referenced Oct 7, 2026
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 8, 2026 00:08
e129027 to
4fd8597
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 00:08
44123ba to
956c711
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 16:25
c4baadb to
a1ba868
Compare
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
2 times, most recently
from
October 8, 2026 18:13
0674184 to
aeeb756
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 18:13
a1ba868 to
6e21be6
Compare
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 8, 2026 21:12
aeeb756 to
bd1bc05
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 21:12
6e21be6 to
3fbfd0e
Compare
dustinbyrne
approved these changes
Oct 8, 2026
Contributor
There was a problem hiding this comment.
ok, glad to see we're retaining $lib and $lib_version as queryable properties. from my standpoint, that was my main concern.
worth a look from @PostHog/mcp-analytics given the $lib overwrite is part of their SDK specification: https://github.com/PostHog/sdk-specs/blob/f238b169dee7897dd55074061f600a2fa8bb4925/openspec/specs/mcp-analytics/spec.md#L529-L543
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 8, 2026 22:54
bd1bc05 to
d0562f4
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 22:54
3fbfd0e to
4194471
Compare
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 8, 2026 23:40
d0562f4 to
171af6b
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 8, 2026 23:40
4194471 to
307bb9e
Compare
lucasheriques
approved these changes
Oct 9, 2026
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
2 times, most recently
from
October 10, 2026 03:19
ec37610 to
5718a37
Compare
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 10, 2026 23:35
bba9730 to
bdf67ef
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 10, 2026 23:35
5718a37 to
796579a
Compare
MCP instrumentation relabeled the whole client, so the app's own events and flag requests reported posthog-python-mcp. Capture v1 takes $lib from the per-request PostHog-Sdk-Info header, which is now always posthog-python.
eli-r-ph
force-pushed
the
v1-capture-migration-docs
branch
from
October 11, 2026 20:17
bdf67ef to
893844b
Compare
eli-r-ph
force-pushed
the
v1-sdk-identity
branch
from
October 11, 2026 20:17
796579a to
21207f7
Compare
This branch has not been deployed
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
Stacked on #1030. Capture v1 sets
$libfrom a per-request header, so one client has one identity. In 7.x, MCP instrumentation relabeled the whole client asposthog-python-mcp, so every event and flag request from the app reported that name. In 8.0 the client always reportsposthog-python.Changes
$lib, thePostHog-Sdk-Infoheader or the flag requestUser-Agent._lib_identity.py,POSTHOG_MCP_LIB_NAME,Client._set_library_identityand the request code that only served them.$mcp_*events and properties.Note
SDK Health and flag analytics will count MCP servers as
posthog-pythonafter 8.0.💚 How did you test it?
instrument()keeps$lib: posthog-python; bringing back the relabel fails the test.PostHogMCPclient sendsPostHog-Sdk-Info: posthog-python/<version>.🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Written with Cursor (Claude) under the direction of the assignee.
🤖 Generated with Claude Code