Repository navigation
fix: Tag Enterprise telemetry by deployment kind - #441
Merged
Merged
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||
malhotra5
requested review from
a team and
hieptl
and removed request for
a team
September 21, 2026 18:30
malhotra5
marked this pull request as ready for review
September 21, 2026 18:30
Contributor
|
🚀 Released in 1.63.0. |
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.
HUMAN:
Simple telemetry fix doesn't require extensive testing.
AGENT:
This PR was created by an AI agent (OpenHands) on behalf of the user.
Why
Enterprise telemetry currently uses
app_mode = saas|ossanddeployment_mode = cloud|self_hostedin different places, which does not provide a single PostHog field for distinguishing hosted/cloud telemetry from local or self-hosted telemetry. This adds the canonicaldeployment_kindmarker used by the SDK telemetry pipeline.Linear: OSS-13530
Summary
deployment_kind: "remote" | "local"to Enterprise backend analytics common properties.deployment_kind: "local"for self-hosted Enterprise and"remote"for hosted SaaS startup analytics initialization.before_sendhook that stampsdeployment_kindbased on web-client config.Issue Number
Linear: OSS-13530
How to Test
Commands run:
Results:
tests/unit/test_analytics_service.pyandtests/unit/test_saas_lifespan.py: 82 tests passed.Video/Screenshots
N/A — this is a telemetry payload property change validated with backend/frontend tests, typechecking, linting, formatting, and pre-commit checks.
Type
Notes
Existing
app_modeand deployment-mode fields are preserved for compatibility. New events can be queried directly withproperties.deployment_kind = "remote"or"local".@malhotra5 can click here to continue refining the PR
Enterprise server image for this PR: