| blib/lib/Dancer2/Plugin/OpenTelemetry.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 8 | 15 | 53.3 |
| line | l | !l | condition |
|---|---|---|---|
| 19 | 0 | 1 | otel_config("SERVICE_NAME") // "dancer2" |
| 0 | 1 | $plugin->config->{'tracer'} // {"name", otel_config("SERVICE_NAME") // "dancer2"} | |
| 138 | 0 | 1 | ref $error || 'string' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 57 | 4 | 0 | 0 | $1 // $2 |
| 60 | 2 | 8 | 0 | $req->header("x-forwarded-proto") // $req->header("host") |
| 4 | 10 | 0 | $hostport //= $req->header("x-forwarded-proto") // $req->header("host") |