| blib/lib/Dancer2/Plugin/OpenTelemetry.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 32 | 2 | 14 | if $req->env->{'otel.plugin.dancer2.background'} |
| 55 | 4 | 10 | if (my $fwd = $req->header("forwarded")) |
| 57 | 4 | 0 | if $first =~ /host=(?:"([^"]+)"|([^;]+))/ |
| 71 | 14 | 0 | $host ? : |
| 4 | 10 | $port ? : | |
| 0 | 14 | $agent ? : | |
| 1 | 13 | $query ? : | |
| 110 | 0 | 13 | unless my $context = delete $plugin->app->request->env->{'otel.plugin.dancer2.background'} |
| 115 | 0 | 13 | if ($code >= 500) |
| 133 | 0 | 1 | unless my $context = delete $plugin->app->request->env->{'otel.plugin.dancer2.background'} |