Skip to content

Commit

Permalink
HTTPEvents: remove unused http_body_limit (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Aug 14, 2023
1 parent e77e628 commit 943ded5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/logtail-rack/http_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ def silence_request
@silence_request
end

def http_body_limit=(value)
@http_body_limit = value
end

# Accessor method for {#http_body_limit=}
def http_body_limit
@http_body_limit
end

def http_header_filters=(value)
@http_header_filters = value
end
Expand Down Expand Up @@ -152,7 +143,6 @@ def call(env)
request_id: request.request_id,
status: status,
duration_ms: duration_ms,
body_limit: self.class.http_body_limit,
headers_to_sanitize: self.class.http_header_filters,
)

Expand Down Expand Up @@ -187,7 +177,6 @@ def call(env)
query_string: force_encoding(request.query_string),
request_id: request.request_id,
scheme: force_encoding(request.scheme),
body_limit: self.class.http_body_limit,
headers_to_sanitize: self.class.http_header_filters,
)

Expand Down Expand Up @@ -227,7 +216,6 @@ def call(env)
request_id: request.request_id,
status: status,
duration_ms: duration_ms,
body_limit: self.class.http_body_limit,
headers_to_sanitize: self.class.http_header_filters,
)

Expand Down

0 comments on commit 943ded5

Please sign in to comment.