Skip to content

Commit

Permalink
Fix typo and punctuation (#11483)
Browse files Browse the repository at this point in the history
* Fix typo and punctuation

The period was added to the description for consistency with other description frontmatter.

* Update docs/platforms/dotnet/common/configuration/http-client-errors.mdx

---------

Co-authored-by: Liza Mock <[email protected]>
  • Loading branch information
Joe-Moran and lizokm authored Oct 7, 2024
1 parent 87795ba commit 03f0c2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: HTTP Client Errors
sidebar_order: 25
description: "This feature, once enabled, automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry"
description: "This feature, once enabled, automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry."
---

Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry. The error event will contain information from the HTTP request and response, such as `url`, `status_code`, and so on.
Expand Down Expand Up @@ -30,7 +30,7 @@ let httpClient = new HttpClient(new SentryHttpMessageHandler())

<Alert title="Tip">

You can skip the above step when using any of the Sentry .NET SDKs that are registered via dependency injection (`Senry.AspNetCore`, `Sentry.Maui`, `Sentry.Extensions.Logging`, etc.).
You can skip the above step when using any of the Sentry .NET SDKs that are registered via dependency injection (`Sentry.AspNetCore`, `Sentry.Maui`, `Sentry.Extensions.Logging`, and so on).

Instead, create your `HttpClient` using the `IHttpClientFactory` pattern, as described in [the documentation from Microsoft](https://learn.microsoft.com/aspnet/core/fundamentals/http-requests). The `SentryHttpMessageHandler` will automatically be added to the factory during initialization, so no additional wire-up is needed.

Expand Down

0 comments on commit 03f0c2d

Please sign in to comment.