def test_conc_req_all_agents(es, apm_server, flask, django, express, rails,
                             go_nethttp):
    flask_f = Concurrent.Endpoint(flask.foo.url,
                                  flask.app_name, ["__main__.foo"],
                                  "GET /foo",
                                  events_no=500)
    flask_b = Concurrent.Endpoint(flask.bar.url,
                                  flask.app_name,
                                  ["__main__.bar", "__main__.extra"],
                                  "GET /bar",
                                  events_no=500)
    django_f = Concurrent.Endpoint(django.foo.url,
                                   django.app_name, ["foo.views.foo"],
                                   "GET foo.views.show",
                                   events_no=500)
    django_b = Concurrent.Endpoint(django.bar.url,
                                   django.app_name,
                                   ["bar.views.bar", "bar.views.extra"],
                                   "GET bar.views.show",
                                   events_no=500)
    express_f = Concurrent.Endpoint(express.foo.url,
                                    express.app_name, ["app.foo"],
                                    "GET /foo",
                                    events_no=500)
    express_b = Concurrent.Endpoint(express.bar.url,
                                    express.app_name, ["app.bar", "app.extra"],
                                    "GET /bar",
                                    events_no=500)
    rails_f = Concurrent.Endpoint(rails.foo.url,
                                  rails.app_name,
                                  ["ApplicationController#foo"],
                                  "ApplicationController#foo",
                                  events_no=500)
    rails_b = Concurrent.Endpoint(rails.bar.url,
                                  rails.app_name,
                                  ["ApplicationController#bar", "app.extra"],
                                  "ApplicationController#bar",
                                  events_no=500)
    go_nethttp_f = Concurrent.Endpoint(go_nethttp.foo.url,
                                       go_nethttp.app_name, ["foo"],
                                       "GET /foo",
                                       events_no=500)
    go_nethttp_b = Concurrent.Endpoint(go_nethttp.bar.url,
                                       go_nethttp.app_name, ["bar", "extra"],
                                       "GET /bar",
                                       events_no=500)
    Concurrent(es, [
        flask_f,
        flask_b,
        django_f,
        django_b,
        express_f,
        express_b,
        rails_b,
        rails_f,
        go_nethttp_f,
        go_nethttp_b,
    ],
               iters=1).run()
Beispiel #2
0
def test_concurrent_req_go_nethttp_foobar(go_nethttp):
    foo = Concurrent.Endpoint(go_nethttp.foo.url,
                              go_nethttp.app_name, ["foo"],
                              "GET /foo",
                              events_no=375)
    bar = Concurrent.Endpoint(go_nethttp.bar.url, go_nethttp.app_name,
                              ["bar", "extra"], "GET /bar")
    Concurrent(go_nethttp.apm_server.elasticsearch, [foo, bar], iters=1).run()
def test_concurrent_req_java_spring_foobar(java_spring):
    foo = Concurrent.Endpoint(java_spring.foo.url,
                              java_spring.app_name, ["foo"],
                              "GreetingController#foo",
                              events_no=375)
    bar = Concurrent.Endpoint(java_spring.bar.url, java_spring.app_name,
                              ["bar", "extra"], "GreetingController#bar")
    Concurrent(java_spring.apm_server.elasticsearch, [foo, bar], iters=1).run()
Beispiel #4
0
def test_concurrent_req_dotnet_foobar(dotnet):
    foo = Concurrent.Endpoint(dotnet.foo.url,
                              dotnet.app_name, ["foo"],
                              "GET /foo",
                              events_no=375)
    bar = Concurrent.Endpoint(dotnet.bar.url, dotnet.app_name,
                              ["bar", "extra"], "GET /bar")
    Concurrent(dotnet.apm_server.elasticsearch, [foo, bar], iters=1).run()
def test_concurrent_req_flask_foobar(flask):
    foo = Concurrent.Endpoint(flask.foo.url,
                              flask.app_name, ["app.foo"],
                              "GET /foo",
                              events_no=375)
    bar = Concurrent.Endpoint(flask.bar.url, flask.app_name,
                              ["app.bar", "app.extra"], "GET /bar")
    Concurrent(flask.apm_server.elasticsearch, [foo, bar], iters=1).run()
def test_conc_req_node_foobar(es, apm_server, express):
    foo = Concurrent.Endpoint(express.foo.url, express.app_name, ["app.foo"],
                              "GET /foo")
    bar = Concurrent.Endpoint(express.bar.url,
                              express.app_name, ["app.bar", "app.extra"],
                              "GET /bar",
                              events_no=820)
    Concurrent(es, [foo, bar], iters=1).run()
def test_concurrent_req_django_foobar(django):
    foo = Concurrent.Endpoint(django.foo.url, django.app_name,
                              ["foo.views.foo"], "GET foo.views.show")
    bar = Concurrent.Endpoint(django.bar.url,
                              django.app_name,
                              ["bar.views.bar", "bar.views.extra"],
                              "GET bar.views.show",
                              events_no=820)
    Concurrent(django.apm_server.elasticsearch, [foo, bar], iters=1).run()
def test_conc_req_rails_foobar(es, apm_server, rails):
    foo = Concurrent.Endpoint(rails.foo.url,
                              rails.app_name,
                              ["ApplicationController#foo"],
                              "ApplicationController#foo")
    bar = Concurrent.Endpoint(rails.bar.url,
                              rails.app_name,
                              ["ApplicationController#bar", "app.extra"],
                              "ApplicationController#bar",
                              events_no=820)
    Concurrent(es, [foo, bar], iters=1).run()
def test_conc_req_rails(es, apm_server, rails):
    foo = Concurrent.Endpoint(rails.foo.url,
                              rails.app_name,
                              ["ApplicationController#foo"],
                              "ApplicationController#foo",
                              events_no=1000)
    Concurrent(es, [foo], iters=1).run()
def test_conc_req_express(es, apm_server, express):
    foo = Concurrent.Endpoint(express.foo.url,
                              express.app_name,
                              ["app.foo"],
                              "GET /foo",
                              events_no=1000)
    Concurrent(es, [foo], iters=1).run()
Beispiel #11
0
def test_concurrent_req_go_nethttp(go_nethttp):
    foo = Concurrent.Endpoint(go_nethttp.foo.url, go_nethttp.app_name, ["foo"],
                              "GET /foo")
    Concurrent(go_nethttp.apm_server.elasticsearch, [foo], iters=2).run()
def test_concurrent_req_django(django):
    foo = Concurrent.Endpoint(django.foo.url, django.app_name,
                              ["foo.views.foo"], "GET foo.views.show")
    Concurrent(django.apm_server.elasticsearch, [foo], iters=2).run()
def test_concurrent_req_flask(flask):
    foo = Concurrent.Endpoint(flask.foo.url, flask.app_name, ["app.foo"],
                              "GET /foo")
    Concurrent(flask.apm_server.elasticsearch, [foo], iters=2).run()
Beispiel #14
0
def test_concurrent_req_dotnet(dotnet):
    foo = Concurrent.Endpoint(dotnet.foo.url, dotnet.app_name, ["foo"],
                              "GET /foo")
    Concurrent(dotnet.apm_server.elasticsearch, [foo], iters=2).run()
def test_conc_req_all_agents(es, apm_server, flask, django, express, rails,
                             go_nethttp, java_spring):
    # flask_f = Concurrent.Endpoint(flask.foo.url,
    #                               flask.app_name,
    #                               ["app.foo"],
    #                               "GET /foo",
    #                               events_no=500)
    # flask_b = Concurrent.Endpoint(flask.bar.url,
    #                               flask.app_name,
    #                               ["app.bar", "app.extra"],
    #                              "GET /bar",
    #                               events_no=500)
    # django_f = Concurrent.Endpoint(django.foo.url,
    #                                django.app_name,
    #                                ["foo.views.foo"],
    #                                "GET foo.views.show",
    #                               events_no=500)
    # django_b = Concurrent.Endpoint(django.bar.url,
    #                                django.app_name,
    #                                ["bar.views.bar", "bar.views.extra"],
    #                                "GET bar.views.show",
    #                                events_no=500)
    express_f = Concurrent.Endpoint(express.foo.url,
                                    express.app_name, ["app.foo"],
                                    "GET /foo",
                                    events_no=500)
    express_b = Concurrent.Endpoint(express.bar.url,
                                    express.app_name, ["app.bar", "app.extra"],
                                    "GET /bar",
                                    events_no=500)
    rails_f = Concurrent.Endpoint(rails.foo.url,
                                  rails.app_name,
                                  ["ApplicationController#foo"],
                                  "ApplicationController#foo",
                                  events_no=500)
    rails_b = Concurrent.Endpoint(rails.bar.url,
                                  rails.app_name,
                                  ["ApplicationController#bar", "app.extra"],
                                  "ApplicationController#bar",
                                  events_no=500)
    go_nethttp_f = Concurrent.Endpoint(go_nethttp.foo.url,
                                       go_nethttp.app_name, ["foo"],
                                       "GET /foo",
                                       events_no=500)
    go_nethttp_b = Concurrent.Endpoint(go_nethttp.bar.url,
                                       go_nethttp.app_name, ["bar", "extra"],
                                       "GET /bar",
                                       events_no=500)
    java_spring_f = Concurrent.Endpoint(java_spring.foo.url,
                                        java_spring.app_name, ["foo"],
                                        "GreetingController#foo",
                                        events_no=500)
    java_spring_b = Concurrent.Endpoint(java_spring.bar.url,
                                        java_spring.app_name, ["bar", "extra"],
                                        "GreetingController#bar",
                                        events_no=500)

    Concurrent(
        es,
        [
            # flask_f, flask_b,
            # django_f, django_b,
            express_f,
            express_b,
            rails_b,
            rails_f,
            go_nethttp_f,
            go_nethttp_b,
            java_spring_f,
            java_spring_b,
        ],
        iters=1).run()
Beispiel #16
0
def test_concurrent_req_php_apache(php_apache):
    foo = Concurrent.Endpoint(php_apache.foo.url, php_apache.app_name, ["foo"],
                              "GET /foo/")
    Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()
def test_concurrent_req_java_spring(java_spring):
    foo = Concurrent.Endpoint(java_spring.foo.url, java_spring.app_name,
                              ["foo"], "GreetingController#foo")
    Concurrent(java_spring.apm_server.elasticsearch, [foo], iters=2).run()