| blib/lib/Mojolicious/Plugin/OpenTelemetry.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 19 | 52.6 |
| line | l | !l | condition |
|---|---|---|---|
| 90 | 1 | 0 | ref $error || 'string' |
| 109 | 18 | 1 | $c->match->endpoint->to_string || '/' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 14 | 0 | 12 | 0 | otel_config("SERVICE_NAME") // $app->moniker |
| 0 | 12 | 0 | $config->{'tracer'}{'name'} //= otel_config("SERVICE_NAME") // $app->moniker | |
| 32 | 4 | 0 | 0 | $1 // $2 |
| 35 | 2 | 13 | 0 | $headers->header("x-forwarded-proto") // $headers->header("host") |
| 4 | 15 | 0 | $hostport //= $headers->header("x-forwarded-proto") // $headers->header("host") |