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

Log all invocations of callbacks supplied to public API methods #1657

Open
lawrence-forooghian opened this issue Apr 13, 2023 · 1 comment
Open
Labels
enhancement New feature or improved functionality.
Milestone

Comments

@lawrence-forooghian
Copy link
Collaborator

lawrence-forooghian commented Apr 13, 2023

Background

In #1655 we added log statements which are emitted whenever a public API method is invoked.

Many of these method invocations will eventually provide some sort of output to the caller by invoking a callback.

Requirements

Let’s take an example of a representative method in the public API of the SDK. Here we have -[ARTRealtimeChannel publish:data:callback:]:

- (void)publish:(nullable NSString *)name data:(nullable id)data callback:(nullable ARTCallback)callback;

Just before this method calls the callback, we want to emit a log message which includes the following information:

We want to do this for all of the callback-taking methods that make up the public API of the SDK.

Not yet known

Logging API considerations (falls under #1617)

The above should be implemented in a way that is consistent throughout the codebase and which is easy to add to new methods. This means exposing an internal logging API that helps us to log these messages. Exact API to be decided when implementing this ticket, but should be something similar to that decided in #1655.

Depends on

┆Issue is synchronized with this Jira Task by Unito

@sync-by-unito
Copy link

sync-by-unito bot commented Apr 13, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3531

@umair-ably umair-ably added the enhancement New feature or improved functionality. label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improved functionality.
Development

No branches or pull requests

2 participants