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

HttpLifecycleObserver: notify when payload body is requested #2230

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Track how subscriber requests payload body items.

Modifications:

  • Add HttpRequestObserver#onRequestDataRequested(long);
  • Add HttpResponseObserver#onResponseDataRequested(long);
  • Enhance HttpLifecycleObserverTest and GrpcLifecycleObserverTest;

Result:

Users can track how many items subscriber requests from payload body,
and time difference between requested-delivered items.

Motivation:

Track how subscriber requests payload body items.

Modifications:

- Add `HttpRequestObserver#onRequestDataRequested(long)`;
- Add `HttpResponseObserver#onResponseDataRequested(long)`;
- Enhance `HttpLifecycleObserverTest` and `GrpcLifecycleObserverTest`;

Result:

Users can track how many items subscriber requests from payload body,
and time difference between requested-delivered items.
@idelpivnitskiy idelpivnitskiy self-assigned this May 27, 2022
@idelpivnitskiy idelpivnitskiy merged commit f9091b0 into apple:main Jun 3, 2022
@idelpivnitskiy idelpivnitskiy deleted the requested branch June 3, 2022 19:20
idelpivnitskiy added a commit to idelpivnitskiy/servicetalk that referenced this pull request Jun 8, 2022
Motivation:

When we added two new callbacks in apple#2230, we forgot to add a default
impl for one of them.

Modifications:

- Add default noop impl for
`HttpResponseObserver#onResponseDataRequested(long)`;

Result:

`HttpResponseObserver` is backward compatible for existing users.
idelpivnitskiy added a commit that referenced this pull request Jun 8, 2022
#2243)

Motivation:

When we added two new callbacks in #2230, we forgot to add a default
impl for one of them.

Modifications:

- Add default noop impl for
`HttpResponseObserver#onResponseDataRequested(long)`;

Result:

`HttpResponseObserver` is backward compatible for existing users.
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.

2 participants