Skip to content

Commit 8f0e2eb

Browse files
authored
Merge pull request #805 from airweave-ai/feat/query_text_posthog
feat: emit full query to posthog
2 parents 676c57c + 199243a commit 8f0e2eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/airweave/analytics/search_analytics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def build_search_properties(
3232
Dictionary of analytics properties
3333
"""
3434
properties = {
35+
"query": query, # Full query text for PostHog history
3536
"query_length": len(query),
3637
"collection_slug": collection_slug,
3738
"duration_ms": duration_ms,
@@ -71,6 +72,7 @@ def build_search_error_properties(
7172
Dictionary of analytics properties
7273
"""
7374
return {
75+
"query": query, # Full query text for PostHog history
7476
"query_length": len(query) if query else 0,
7577
"collection_slug": collection_slug,
7678
"duration_ms": duration_ms,

0 commit comments

Comments
 (0)