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

feat: Add php max_request_body_size #1281

Merged
merged 2 commits into from
Oct 28, 2019
Merged

feat: Add php max_request_body_size #1281

merged 2 commits into from
Oct 28, 2019

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Oct 17, 2019

No description provided.

src/collections/_documentation/platforms/php/index.md Outdated Show resolved Hide resolved
##### max_request_body_size

This option represents the size limit in bytes beyond which the body of the request is not captured. Default value is `medium`. Possible values are `none` = never send body, `small`, `medium`, `alawys` = always send the body, no matter how large it is.
The values are chosen like this on purpose since the SDK internally can define what the exact limits are.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not sure what those values mean. Maybe add some ranges? or current values?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an attempt to allow us to change this without 'breaking' customers.
Today you'd need to read the code to see what we consider small, medium etc.
i.e:

https://github.com/getsentry/sentry-dotnet/blob/46bf5548d347ad1e206aefa3ea91cc46ab02004f/src/Sentry/Extensibility/RequestBodyExtractionDispatcher.cs#L45

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ this

@kamilogorek kamilogorek merged commit eb116a9 into master Oct 28, 2019
@kamilogorek
Copy link
Contributor

Merging so it won't get stuck.

@kamilogorek kamilogorek deleted the feat/php-body branch October 28, 2019 10:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants