{"task": {"agent_timeout": 3000, "task": "testgen__jaegertracing__jaeger-7128", "verifier_timeout": 3000, "instruction": "The following text contains a user issue (in <issue/> brackets) posted at a repository. Further, you are provided with file contents of several files in the repository that contain relevant code (in <code> brackets). It may be necessary to use code from third party dependencies or files not contained in the attached documents however. Your task is to identify the issue and implement a test case that verifies a proposed solution to this issue. More details at the end of this text.\n<issue>\n      **Describe the bug**\nPrometheus 'Label value is not valid UTF-8' cause API request timeout.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. docker run -d -e COLLECTOR_ZIPKIN_HOST_PORT=:9411   -p 5775:5775/udp   -p 6831:6831/udp   -p 6832:6832/udp   -p 5778:5778   -p 16686:16686   -p 14268:14268   -p 14250:14250   -p 9411:9411   jaegertracing/all-in-one:1.22\n2. curl http://localhost:9411/%C0%AE%C0%AE\n3. Then all the other requests to http://localhost:9411/ will be timeout.\n\nlog:\n```\n2021/04/18 06:51:16 http: panic serving 172.17.0.1:33336: label value \"/\\xc0\\xae\\xc0\\xae\" is not valid UTF-8\ngoroutine 195 [running]:\nnet/http.(*conn).serve.func1(0xc000489f40)\n    net/http/server.go:1801 +0x147\npanic(0x1392360, 0xc0002c3630)\n    runtime/panic.go:975 +0x47a\ngithub.com/prometheus/client_golang/prometheus.(*HistogramVec).WithLabelValues(0xc0004fc500, 0xc000575770, 0x3, 0x3, 0xc000575650, 0xc000575770)\n    github.com/prometheus/client_golang@v1.5.1/prometheus/histogram.go:489 +0xda\ngithub.com/uber/jaeger-lib/metrics/prometheus.(*Factory).Timer(0xc0000edc20, 0x15b70ed, 0x15, 0xc000575620, 0x15bbfcd, 0x19, 0x0, 0x0, 0x0, 0x1512b80, ...)\n    github.com/uber/jaeger-lib@v2.4.0+incompatible/metrics/prometheus/factory.go:181 +0x2ce\ngithub.com/uber/jaeger-lib/metrics/fork.(*Factory).Timer(0xc0003fe870, 0x15b70ed, 0x15, 0xc000575620, 0x15bbfcd, 0x19, 0x0, 0x0, 0x0, 0xc0006799f5, ...)\n    github.com/uber/jaeger-lib@v2.4.0+incompatible/metrics/fork/fork.go:48 +0x65\ngithub.com/jaegertracing/jaeger/pkg/httpmetrics.buildTimer(...)\n    github.com/jaegertracing/jaeger/pkg/httpmetrics/metrics.go:111\ngithub.com/jaegertracing/jaeger/pkg/httpmetrics.(*requestDurations).record(0xc00056c090, 0xc0000bbc80, 0x3, 0xc00057a858, 0x5, 0xc00057a940, 0x3, 0x10578)\n    github.com/jaegertracing/jaeger/pkg/httpmetrics/metrics.go:101 +0x465\ngithub.com/jaegertracing/jaeger/pkg/httpmetrics.Wrap.func1(0x1e1c2c0, 0xc000158380, 0xc00014ea00)\n    github.com/jaegertracing/jaeger/pkg/httpmetrics/metrics.go:63 +0x1fe\nnet/http.HandlerFunc.ServeHTTP(0xc00050de60, 0x1e1c2c0, 0xc000158380, 0xc00014ea00)\n    net/http/server.go:2042 +0x44\ngithub.com/rs/cors.(*Cors).Handler.func1(0x1e1c2c0, 0xc000158380, 0xc00014ea00)\n    github.com/rs/cors@v1.7.0/cors.go:219 +0x1b9\nnet/http.HandlerFunc.ServeHTTP(0xc00050de80, 0x1e1c2c0, 0xc000158380, 0xc00014ea00)\n    net/http/server.go:2042 +0x44\nnet/http.serverHandler.ServeHTTP(0xc0000d0380, 0x1e1c2c0, 0xc000158380, 0xc00014ea00)\n    net/http/server.go:2843 +0xa3\nnet/http.(*conn).serve(0xc000489f40, 0x1e225c0, 0xc00025a400)\n    net/http/server.go:1925 +0x8ad\ncreated by net/http.(*Server).Serve\n    net/http/server.go:2969 +0x36c\n```\n\n**Expected behavior**\n Other requests not timeout.\n\n**Screenshots**\nnull\n\n**Version (please complete the following information):**\n - OS: MacOS & Linux\n - Jaeger version: 1.22\n - Deployment: Docker\n\n**What troubleshooting steps did you try?**\nThe error is reported by Prometheus, so I add `-e METRICS_BACKEND=expvar` to disable Prometheus.\n\n**Additional context**\nnull\n\n</issue>\nPlease generate test cases that check whether an implemented solution resolves the issue of the user (at the top, within <issue/> brackets).\nYou may apply changes to several files.\nApply as much reasoning as you please and see necessary.\nMake sure to implement only test cases and don't try to fix the issue itself.\nYou are not allowed to read git history.\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": "", "instruction_truncated": false, "category": "test-generation", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "devopsgym", "tags": ["test-generation", "devops-bench"]}, "runs": []}