:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
["_H",1,32,"debug",32,"inputs",1,2,40,24,32,"Incoming headers:",32,"headers",32,"request",1,2,2,"print",2,35,32,"Incoming body:",32,"body",32,"request",1,2,2,"print",2,35,32,"POST",32,"method",32,"request",1,2,12,40,15,32,"httpResponse",32,"status",33,405,32,"body",32,"Method not allowed",42,2,42,1,38,32,"auth_header",32,"inputs",1,2,2,"notEmpty",1,32,"headers",32,"request",1,2,32,"authorization",45,32,"auth_header",32,"inputs",1,2,12,3,2,40,21,32,"Denied: bad Authorization header",2,"print",1,35,32,"httpResponse",32,"status",33,401,32,"body",32,"Unauthorized",42,2,42,1,38,43,0,32,"stringBody",32,"request",1,2,47,3,35,32,"",52,"isValidLog",1,0,27,32,"object",36,0,2,"typeof",1,11,36,0,32,"id",45,2,"notEmpty",1,36,0,32,"deploymentId",45,2,"notEmpty",1,3,3,38,53,0,52,"pushLog",1,2,22,36,0,55,0,54,1,5,40,2,31,38,55,1,36,0,2,"arrayPushBack",2,56,1,31,38,53,2,true,2,true,0,52,"pushParsed",1,1,96,32,"array",36,0,2,"typeof",1,11,40,67,36,0,36,1,2,"keys",1,36,1,2,"values",1,33,1,36,3,2,"length",1,31,31,36,5,36,4,16,40,30,36,2,36,4,45,37,6,36,3,36,4,45,37,7,36,7,55,0,54,1,35,36,4,33,1,6,37,4,39,-37,35,35,35,35,35,35,35,39,17,32,"object",36,0,2,"typeof",1,11,40,7,36,0,55,0,54,1,35,31,38,53,1,true,3,33,0,36,1,32,"\n",2,"position",2,13,36,5,40,99,32,"\n",36,1,2,"splitByString",2,36,6,36,7,2,"keys",1,36,7,2,"values",1,33,1,36,9,2,"length",1,31,31,36,11,36,10,16,40,54,36,8,36,10,45,37,12,36,9,36,10,45,37,13,36,13,2,"trim",1,36,14,2,"empty",1,40,5,32,"continue",1,1,35,36,14,2,"jsonParse",1,36,15,36,3,54,1,35,35,35,36,10,33,1,6,37,10,39,-61,35,35,35,35,35,35,35,35,39,17,36,1,2,"notEmpty",1,40,10,36,1,2,"jsonParse",1,36,4,54,1,35,36,0,2,"empty",1,32,"body",32,"request",1,2,2,"notEmpty",1,3,2,40,11,32,"body",32,"request",1,2,36,4,54,1,35,36,0,2,"empty",1,40,19,32,"httpResponse",32,"status",33,400,32,"body",32,"error",32,"No valid Vercel log objects found",42,1,42,2,42,1,38,33,1,36,0,2,"length",1,7,33,0,36,6,13,40,13,32,"Warning: Dropped ",36,6,32," additional log(s). Hog functions can only emit one event per invocation.",2,"concat",3,2,"print",1,35,36,0,33,1,45,32,"max_message_len",32,"inputs",1,2,47,3,35,33,262144,2,"toInt",1,52,"truncateIfNeeded",1,1,36,32,"string",36,0,2,"typeof",1,12,40,3,36,0,38,55,0,36,0,2,"length",1,16,40,3,36,0,38,36,0,33,1,55,0,2,"substring",3,38,53,1,true,8,52,"parseQueryParams",1,0,208,36,0,2,"empty",1,32,"string",36,0,2,"typeof",1,12,4,2,40,3,42,0,38,36,0,32,"?",2,"position",2,33,0,36,1,11,40,3,42,0,38,36,0,33,1,36,1,6,36,1,36,0,2,"length",1,7,2,"substring",3,36,2,2,"empty",1,40,3,42,0,38,42,0,32,"&",36,2,2,"splitByString",2,36,4,36,5,2,"keys",1,36,5,2,"values",1,33,1,36,7,2,"length",1,31,31,36,9,36,8,16,40,92,36,6,36,8,45,37,10,36,7,36,8,45,37,11,36,11,2,"empty",1,40,5,32,"continue",1,1,35,32,"=",36,11,33,2,2,"splitByString",3,36,12,33,1,45,33,1,36,12,2,"length",1,13,36,12,33,2,45,2,"notEmpty",1,3,2,40,21,36,3,36,13,36,12,33,2,45,2,"tryDecodeURLComponent",1,47,6,35,36,12,33,2,45,46,35,35,36,8,33,1,6,37,8,39,-99,35,35,35,35,35,35,35,36,3,38,35,35,35,35,53,0,52,"extractPathname",1,0,51,36,0,2,"empty",1,32,"string",36,0,2,"typeof",1,12,4,2,40,3,32,"",38,36,0,32,"?",2,"position",2,33,0,36,1,13,40,13,36,0,33,1,33,1,36,1,7,2,"substring",3,38,36,0,38,35,53,0,52,"pathExtension",1,0,80,36,0,2,"empty",1,32,"string",36,0,2,"typeof",1,12,4,2,40,3,32,"",38,32,"/",36,0,2,"splitByString",2,36,1,36,1,2,"length",1,45,36,2,2,"empty",1,40,3,32,"",38,32,".",36,2,2,"splitByString",2,33,1,36,3,2,"length",1,16,40,3,32,"",38,36,3,36,3,2,"length",1,45,2,"lower",1,38,35,35,35,53,0,52,"isPageRoute",1,1,25,36,0,55,0,54,1,32,"",36,1,11,32,"html",36,1,11,32,"htm",36,1,11,4,3,38,35,53,1,true,12,52,"logPathname",1,1,34,36,0,32,"proxy",45,47,3,35,42,0,36,1,32,"path",45,47,6,35,36,0,32,"path",45,47,3,35,32,"",55,0,54,1,38,35,53,1,true,11,32,"page_routes_only",32,"inputs",1,2,40,107,31,36,0,36,16,2,"keys",1,36,16,2,"values",1,33,1,36,18,2,"length",1,31,31,36,20,36,19,16,40,45,36,17,36,19,45,37,21,36,18,36,19,45,37,22,31,36,15,11,36,22,36,14,54,1,36,13,54,1,3,2,40,4,36,22,37,15,36,19,33,1,6,37,19,39,-52,35,35,35,35,35,35,35,31,36,15,11,40,15,32,"httpResponse",32,"status",33,200,32,"body",32,"OK",42,2,42,1,38,36,15,37,7,35,36,7,32,"proxy",45,47,3,35,42,0,36,15,32,"host",45,47,6,35,36,7,32,"host",45,47,3,35,32,"",36,15,32,"clientIp",45,47,3,35,32,"",36,15,32,"userAgent",45,33,1,45,47,3,35,32,"",36,15,32,"scheme",45,47,3,35,32,"https",36,15,32,"path",45,47,6,35,36,7,32,"path",45,47,3,35,32,"",2,"now",0,32,"%Y-%m-%d",2,"formatDateTime",2,32,"salt_secret",32,"inputs",1,2,47,3,35,32,"",32,"distinct_id_strategy",32,"inputs",1,2,47,3,35,32,"fixed_salt",36,23,32,"",52,"shortHash",1,0,15,36,0,32,"base64",2,"sha256",2,33,1,33,22,2,"substring",3,38,53,0,32,"rotating_salt",36,23,11,40,34,32,"http_log_",36,22,32,":",36,21,32,":",36,17,32,":",36,16,32,":",36,18,2,"concat",9,36,26,54,1,2,"concat",2,37,25,39,298,32,"fixed_salt",36,23,11,40,30,32,"http_log_",36,22,32,":",36,17,32,":",36,16,32,":",36,18,2,"concat",7,36,26,54,1,2,"concat",2,37,25,39,261,32,"ip",36,23,11,40,11,32,"http_log_",36,17,2,"concat",2,37,25,39,243,32,"custom",36,23,11,40,200,32,"custom_template",32,"inputs",1,2,47,3,35,32,"",36,27,2,"empty",1,40,44,32,"vercel log drain: custom_template empty, falling back to rotating_salt",2,"print",1,35,32,"http_log_",36,22,32,":",36,21,32,":",36,17,32,":",36,16,32,":",36,18,2,"concat",9,36,26,54,1,2,"concat",2,37,25,32,"rotating_salt_fallback",37,24,39,135,36,27,36,28,32,"{day}",36,21,2,"replaceAll",3,37,28,36,28,32,"{ip}",36,17,2,"replaceAll",3,37,28,36,28,32,"{host}",36,16,2,"replaceAll",3,37,28,36,28,32,"{ua}",36,18,2,"replaceAll",3,37,28,36,28,32,"{path}",36,20,2,"replaceAll",3,37,28,36,28,32,"{project_id}",36,7,32,"projectId",45,2,"toString",1,2,"replaceAll",3,37,28,36,28,2,"empty",1,40,44,32,"vercel log drain: custom_template substituted to empty, falling back to rotating_salt",2,"print",1,35,32,"http_log_",36,22,32,":",36,21,32,":",36,17,32,":",36,16,32,":",36,18,2,"concat",9,36,26,54,1,2,"concat",2,37,25,32,"rotating_salt_fallback",37,24,39,9,32,"http_log_",36,28,2,"concat",2,37,25,35,35,39,36,32,"http_log_",36,22,32,":",36,21,32,":",36,17,32,":",36,16,32,":",36,18,2,"concat",9,36,26,54,1,2,"concat",2,37,25,32,"rotating_salt",37,24,36,20,36,10,54,1,36,20,36,11,54,1,32,"$process_person_profile",32,"identified",32,"person_processing",32,"inputs",1,2,11,32,"$distinct_id_strategy",36,24,32,"$current_url",36,19,32,"://",36,16,36,20,2,"concat",4,32,"$host",36,16,32,"$pathname",36,28,32,"$referrer",36,15,32,"referer",45,32,"utm_source",36,27,32,"utm_source",45,32,"utm_medium",36,27,32,"utm_medium",45,32,"utm_campaign",36,27,32,"utm_campaign",45,32,"utm_term",36,27,32,"utm_term",45,32,"utm_content",36,27,32,"utm_content",45,32,"vercel_log_id",36,7,32,"id",45,32,"deployment_id",36,7,32,"deploymentId",45,32,"project_id",36,7,32,"projectId",45,32,"project_name",36,7,32,"projectName",45,32,"source",36,7,32,"source",45,32,"environment",36,7,32,"environment",45,32,"level",36,7,32,"level",45,32,"type",36,7,32,"type",45,32,"message",36,7,32,"message",45,36,9,54,1,32,"message_truncated",32,"string",36,7,32,"message",45,2,"typeof",1,11,36,8,36,7,32,"message",45,47,3,35,32,"",2,"length",1,13,3,2,32,"vercel_timestamp_ms",36,7,32,"timestamp",45,32,"host",36,7,32,"host",45,32,"path",36,7,32,"path",45,32,"entrypoint",36,7,32,"entrypoint",45,32,"status_code",36,7,32,"statusCode",45,32,"request_id",36,7,32,"requestId",45,32,"execution_region",36,7,32,"executionRegion",45,32,"invocation_id",36,7,32,"invocationId",45,32,"instance_id",36,7,32,"instanceId",45,32,"build_id",36,7,32,"buildId",45,32,"branch",36,7,32,"branch",45,32,"destination",36,7,32,"destination",45,32,"edge_type",36,7,32,"edgeType",45,32,"trace_id",36,7,32,"traceId",45,47,6,35,36,7,32,"trace.id",45,32,"span_id",36,7,32,"spanId",45,47,6,35,36,7,32,"span.id",45,32,"ja3_digest",36,7,32,"ja3Digest",45,32,"ja4_digest",36,7,32,"ja4Digest",45,32,"proxy_timestamp_ms",36,15,32,"timestamp",45,32,"proxy_method",36,15,32,"method",45,32,"proxy_host",36,15,32,"host",45,32,"proxy_path",36,15,32,"path",45,32,"proxy_region",36,15,32,"region",45,32,"proxy_referer",36,15,32,"referer",45,32,"proxy_status_code",36,15,32,"statusCode",45,32,"proxy_scheme",36,15,32,"scheme",45,32,"proxy_response_byte_size",36,15,32,"responseByteSize",45,32,"proxy_cache_id",36,15,32,"cacheId",45,32,"proxy_path_type",36,15,32,"pathType",45,32,"proxy_path_type_variant",36,15,32,"pathTypeVariant",45,32,"proxy_vercel_id",36,15,32,"vercelId",45,32,"proxy_vercel_cache",36,15,32,"vercelCache",45,32,"proxy_lambda_region",36,15,32,"lambdaRegion",45,32,"proxy_waf_action",36,15,32,"wafAction",45,32,"proxy_waf_rule_id",36,15,32,"wafRuleId",45,42,55,32,"forward_ip_and_user_agent",32,"inputs",1,2,40,34,36,29,32,"$ip",36,17,46,36,29,32,"$raw_user_agent",36,18,46,36,29,32,"proxy_client_ip",36,15,32,"clientIp",45,46,36,29,32,"proxy_user_agent",36,15,32,"userAgent",45,46,32,"event",32,"$http_log",32,"distinct_id",36,25,32,"properties",36,29,42,3,2,"postHogCapture",1,35,32,"httpResponse",32,"status",33,200,32,"body",32,"OK",42,2,42,1,38,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,57,57,35,35,57,35,35,35,35,57,57,35,57]