[ 
https://issues.apache.org/jira/browse/AVRO-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Wendell updated AVRO-578:
---------------------------------

    Attachment: AVRO-578.patch.v2

I added a stub for a test, but until we actually generate metrics for the 
payloads, there's no direct way to test this. Going to submit a patch for that 
later today, which will fill in this test.

Also I change getMessage() to message() in the RPCContext class to make it 
match the other getter's already declared in that file.

> Add RPC Payload to RPCContext class
> -----------------------------------
>
>                 Key: AVRO-578
>                 URL: https://issues.apache.org/jira/browse/AVRO-578
>             Project: Avro
>          Issue Type: Sub-task
>          Components: java
>            Reporter: Patrick Wendell
>            Assignee: Patrick Wendell
>         Attachments: AVRO-578.patch, AVRO-578.patch.v2
>
>
> For stats/monitoring it is helpful to see how many bytes are encoded for a 
> given RPC call. Right now Encoder's don't track how many payload bytes are 
> actually written out when encoding is done.
> Ideally this bytesWritten() would be in Encoder interface, however not sure 
> JSON plugin can track the number of characters actually written, so 
> alternatively just could be added to BinaryEncoder, and stats plugin will 
> only provide payload sizes when that encoder is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to