Quick start tutorial: Logging and viewing transactions
Estimated time to complete: 5-7 minutes
Tracker is a fully-indexed logging engine that allows you to quickly and easily search for data that's been sent to and received by Martini. In this tutorial, you'll be taught how to log service invocations programmatically using a one-liner, and how to view the resulting document in the Tracker user interface.
Create the data-logging service
To keep the tutorial short, this page will only discuss how you can log an invocation from a service. This is done by
calling any of the
Consider the following service:
It only calls the
addDocument(...) method, and provides the one-liner's arguments
by mapping the service's input properties.
Because the service invocation will be logged programmatically, it is up to the developer to map the required values for the operation. In most cases, such as when logging data via an endpoint, Martini will automatically populate the resulting Tracker document for you with sensible, default values.
Invoke the data-logging service
- Open the service by double-clicking it from the Navigator.
- Click the run button on the toolbar.
- Provide the inputs required by the service.
- Click Run.
View the document
After a few seconds, Martini will commit the document to the index. This means the Tracker document produced by your call to the one-liner can now be viewed. To do this:
- Open the Tracker view by clicking the Tracker button on the toolbar.
- If you don't have other logging operations ongoing, your document will appear as the top most entry. If you're having a hard time finding your document, use the search bar.
- Double click your document in order to view more details.