The extension retrieves data from Global Synapse Handler in the API Gateway and creates a payload to send to Treblle. The data is added onto a queue once received and is processed by a worker thread. The worker thread sends the data asynchronously to Treblle, if the data is successfully sent, the data is removed from the queue. If the data is not successfully sent, the worker thread will attempt to send the data again, after 1 retry attempt, the event will be dropped.
Build the source code
Execute the following command from the root directory of the project to build
Usage
Configuration
Copy the built JAR artifact and place it inside the <gateway>/repository/components/lib directory and start the server to load the required classes.
Add the following configuration at the beginning of the <gateway>/repository/conf/deployment.toml to engage the API Log Handler
Add the following in <gateway>/repository/conf/log4j2.properties for logging purposes
Following to enable the logs to populate under default wso2carbon.log. You can create a custom appender to log the entries to a separate log file.
Before starting the WSO2 Server add the following environment variables.