Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to capture HTTP request and response from HttpClient #2218

Open
mattjohnsonpint opened this issue Mar 7, 2023 · 3 comments
Open
Labels
Feature New feature or request

Comments

@mattjohnsonpint
Copy link
Contributor

See getsentry/team-mobile#41

@mattjohnsonpint
Copy link
Contributor Author

Placeholder until design complete with getsentry/team-mobile#41.

@mattjohnsonpint
Copy link
Contributor Author

mattjohnsonpint commented Mar 28, 2023

Note, we do already capture URL, Method, and Response Code, as a breadcrumb.

var breadcrumbData = new Dictionary<string, string>
{
{ "url", url },
{ "method", requestMethod },
{ "status_code", ((int)response.StatusCode).ToString() }
};
_hub.AddBreadcrumb(string.Empty, "http", "http", breadcrumbData);

@mattjohnsonpint
Copy link
Contributor Author

And we now capture events for HTTP failure responses with #2320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: No status
Archived in project
Development

No branches or pull requests

2 participants