Skip to content

Commit

Permalink
Обновил ридми
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaynetdinov committed Jan 30, 2025
1 parent 60e9744 commit fd73502
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ execution_duration_milliseconds_count{operation="SendNotification",status_code="
...
```

Чтобы фильтровать запросы, которые нужно фильтровать, то можно добавить настройки фильтрации. Например:
```
.WithMetrics(builder =>
builder.AddHttpRequestExecutionDurationInstrumentation(options.Filter =
context => context.Request.Path.StartsWithSegments("/metrics") == false))
...
```

Чтобы писались метрики `hangfire`, нужно добавить соответствующий фильтр
```
services.AddHangfire((_, configuration) =>
Expand Down

0 comments on commit fd73502

Please sign in to comment.