コード例 #1
0
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 []
コード例 #2
0
def simple_custom_event_app(environ, start_response):
    record_custom_event(_event_type, _params)
    start_response(status="200 OK", response_headers=[])
    return []
コード例 #3
0
def test_custom_event_inside_transaction_bad_event_type():
    record_custom_event('!@#$%^&*()', {'foo': 'bar'})
コード例 #4
0
def test_custom_event_outside_transaction_bad_event_type():
    app = application()
    record_custom_event('!@#$%^&*()', {'foo': 'bar'}, application=app)
コード例 #5
0
def test_add_custom_event_to_transaction_stats_engine():
    record_custom_event('FooEvent', _user_params)
コード例 #6
0
def test_add_custom_event_to_application_stats_engine():
    app = application()
    record_custom_event('FooEvent', _user_params, application=app)
コード例 #7
0
def test_transaction_create_custom_event_not_called():
    record_custom_event('FooEvent', _user_params)
コード例 #8
0
def test_application_create_custom_event_not_called():
    app = application()
    record_custom_event('FooEvent', _user_params, application=app)
コード例 #9
0
def test_custom_event_settings_check_custom_insights_enabled():
    record_custom_event('FooEvent', _user_params)
コード例 #10
0
def test_custom_event_settings_check_collector_flag():
    record_custom_event('FooEvent', _user_params)
コード例 #11
0
def test_custom_event_params_not_a_dict():
    record_custom_event('ParamsListEvent', ['not', 'a', 'dict'])
コード例 #12
0
def test_custom_event_outside_transaction_bad_params():
    app = application()
    record_custom_event('FooEvent', _bad_params, application=app)
コード例 #13
0
def test_custom_event_inside_transaction_bad_params():
    record_custom_event('FooEvent', _bad_params)