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

Adds max_request_length as a configuration for the http and OTel sources #3958

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

dlvenable
Copy link
Member

Description

Adds a new configuration max_request_length to the HTTP/gRPC sources (OTel). If the size of a request exceeds that size these sources will return a 413 Request Entity Too Large.

This also adds support for parsing ByteCount to the plugin object mapper.

There is also a new method on ByteCount to create an instance of a given size to help with testing.

Issues Resolved

Resolves #3931

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ource, otel_metrics_source, and otel_logs_source sources. Resolves opensearch-project#3931

Signed-off-by: David Venable <[email protected]>
Copy link
Collaborator

@kkondaka kkondaka left a comment

Choose a reason for hiding this comment

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

Looks like check style failures are causing the build failure.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable merged commit 41f2d64 into opensearch-project:main Jan 12, 2024
47 checks passed
@dlvenable dlvenable deleted the 3931-maximum-request branch January 17, 2024 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support maximum request length configurations in the HTTP and OTel sources
3 participants