def simple_custom_event_app(environ, start_response): params = {'snowman': u'\u2603', 'foo': 'bar'} record_custom_event('SimpleAppEvent', params) start_response(status='200 OK', response_headers=[]) return []
def simple_custom_event_app(environ, start_response): record_custom_event(_event_type, _params) start_response(status="200 OK", response_headers=[]) return []
def test_custom_event_inside_transaction_bad_event_type(): record_custom_event('!@#$%^&*()', {'foo': 'bar'})
def test_custom_event_outside_transaction_bad_event_type(): app = application() record_custom_event('!@#$%^&*()', {'foo': 'bar'}, application=app)
def test_add_custom_event_to_transaction_stats_engine(): record_custom_event('FooEvent', _user_params)
def test_add_custom_event_to_application_stats_engine(): app = application() record_custom_event('FooEvent', _user_params, application=app)
def test_transaction_create_custom_event_not_called(): record_custom_event('FooEvent', _user_params)
def test_application_create_custom_event_not_called(): app = application() record_custom_event('FooEvent', _user_params, application=app)
def test_custom_event_settings_check_custom_insights_enabled(): record_custom_event('FooEvent', _user_params)
def test_custom_event_settings_check_collector_flag(): record_custom_event('FooEvent', _user_params)
def test_custom_event_params_not_a_dict(): record_custom_event('ParamsListEvent', ['not', 'a', 'dict'])
def test_custom_event_outside_transaction_bad_params(): app = application() record_custom_event('FooEvent', _bad_params, application=app)
def test_custom_event_inside_transaction_bad_params(): record_custom_event('FooEvent', _bad_params)