Skip to content

Commit

Permalink
Usage of in and out length values
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Oct 3, 2019
1 parent ac57288 commit 0e62a18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/appier_extras/parts/diag/models/request.py
Expand Up @@ -86,7 +86,13 @@ class DiagRequest(base.DiagBase):
immutable = True
)

length = appier.field(
in_length = appier.field(
type = int,
index = "all",
immutable = True
)

out_length = appier.field(
type = int,
index = "all",
immutable = True
Expand Down
6 changes: 4 additions & 2 deletions src/appier_extras/parts/diag/part.py
Expand Up @@ -231,7 +231,8 @@ def _store_log(self):
code = self.request.code,
protocol = self.request.protocol,
duration = self.request.duration,
length = self.request.result_l,
in_length = self.request.in_length,
out_length = self.request.out_length,
browser = self._browser,
headers = self.request.in_headers,
browser_info = self.request.browser_info,
Expand Down Expand Up @@ -303,7 +304,8 @@ def _get_item_normal(self):
item.update(
protocol = self.request.protocol,
duration = self.request.duration,
length = self.request.result_l,
in_length = self.request.in_length,
out_length = self.request.out_length,
browser = self._browser,
in_headers = self.request.in_headers,
out_headers = self.request.out_headers,
Expand Down

0 comments on commit 0e62a18

Please sign in to comment.