888f0a2c604ddf84f3168b390dcbe5f425eaf63a,python/ray/serve/router.py,Router,setup,#Router#Any#Any#,80

Before Change


            await self.set_backend_config(backend, backend_config)

        // -- Metric Registration -- //
        [metric_exporter] = ray.get(
            self.controller.get_metric_exporter.remote())
        self.metric_client = MetricClient(metric_exporter)
        self.num_router_requests = self.metric_client.new_counter(
            "num_router_requests",
            description="Number of requests processed by the router.",

After Change


        self.num_router_requests = metrics.Count(
            "num_router_requests",
            "Number of requests processed by the router.", "requests",
            ["endpoint"])
        self.num_error_endpoint_requests = metrics.Count(
            "num_error_endpoint_requests",
            ("Number of requests that errored when getting results "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 888f0a2c604ddf84f3168b390dcbe5f425eaf63a
Time: 2020-08-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: setup


Project Name: ray-project/ray
Commit Name: d8f5b522655f2b848ba20817dd18d6e4aefb8a42
Time: 2020-04-10
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/master.py
Class Name: ServeMaster
Method Name: _start_backend_replica


Project Name: ray-project/ray
Commit Name: a078a214378ca4d1c0cc317bc2f18730a91a9f14
Time: 2020-07-24
Author: simon.mo@hey.com
File Name: ci/long_running_tests/workloads/serve_failure.py
Class Name: RandomKiller
Method Name: _get_all_serve_actors