tessl install tessl/pypi-posthog@6.7.0Integrate PostHog into any python application.
Agent Success
Agent success rate when using this tile
89%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.03x
Baseline
Agent success rate without this tile
86%
{
"context": "This evaluation assesses how well the engineer uses the PostHog Python SDK's queue management and lifecycle features to properly initialize, flush, and shut down the analytics client.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Client initialization",
"description": "Initializes PostHog client using posthog.Client() or posthog.init() with the project_api_key parameter",
"max_score": 15
},
{
"name": "Queue batch size",
"description": "Configures the flush_at parameter to 50 to control batch size",
"max_score": 15
},
{
"name": "Queue flush interval",
"description": "Configures the flush_interval parameter to 2 seconds to control time-based flushing",
"max_score": 15
},
{
"name": "Event capture",
"description": "Uses posthog.capture() method to track events with event name and distinct_id parameters",
"max_score": 20
},
{
"name": "Force flush",
"description": "Calls posthog.flush() to immediately send all queued events before automatic flush",
"max_score": 15
},
{
"name": "Proper shutdown",
"description": "Calls posthog.shutdown() or both posthog.flush() and posthog.join() to ensure events are sent and threads are stopped",
"max_score": 20
}
]
}