• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mehdihadeli / food-delivery-microservices / 28675368858

03 Jul 2026 05:34PM UTC coverage: 16.207% (-46.9%) from 63.071%
28675368858

push

github

web-flow
feat: replace masstransit with wolverine (#253)

337 of 3348 branches covered (10.07%)

Branch coverage included in aggregate %.

125 of 258 new or added lines in 26 files covered. (48.45%)

1396 of 7345 relevant lines covered (19.01%)

0.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/BuildingBlocks/BuildingBlocks.OpenTelemetry/Extensions/WebApplicationExtensions.cs
1
using BuildingBlocks.Core.Web.Extensions;
2
using Microsoft.AspNetCore.Builder;
3
using Microsoft.Extensions.Options;
4

5
namespace BuildingBlocks.OpenTelemetry.Extensions;
6

7
public static class WebApplicationExtensions
8
{
9
    public static WebApplication MapDefaultOpenTelemetry(this WebApplication app)
10
    {
NEW
11
        if (app.Environment.IsTest())
×
12
        {
NEW
13
            return app;
×
14
        }
15

16
        var options = app.Services.GetRequiredService<IOptions<OpenTelemetryOptions>>().Value;
×
17

18
        if (options.UsePrometheusExporter)
×
19
        {
20
            // http://localhost:5000/metrics
21
            // to export health metrics in `/metrics` endpoint and should scrape in the Prometheus config file and `scrape_configs` besides of `/metrics` endpoint for application metrics
22
            // requires the OpenTelemetry.Exporter.Prometheus.AspNetCore package
23
            app.MapPrometheusScrapingEndpoint();
×
24
        }
25

26
        return app;
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc