We have 3 out-of-box options for reporting in OSB, below are the differences between them. We can choose one of them based on our requirement.
Log:
- One of the basics way of logging in the Oracle Service Bus is adding Log Action in every corner of your proxy service.
- Your Proxy service might look something like below,
- Once we enable the Execution Tracing, the log file will show the full content of MessageContextImpl in every step (stage, route, etc) of the service. The MessageContextImpl holds are the variables like $body, $operation, $inbound and $header you need. – Only Problem in this option is we will end up in logging everything in the server. – Extremely easy to configure but little difficult to track the message in server logs.- Performance impact will be there since all the data is written into one single log file.
Alert:
- An alert action in a pipeline is configured to raise alerts when such predefined conditions are encountered.
- You can also configure email and JMS alert destinations to receive a notification of the alert, and send the details to the alert recipient in the form of payload.
- Pipeline alerting can also be used to detect errors in a message flow.
Report:
- Reports mainly used for Track/Monitor the inbound and outbound messages in the proxy services.
- We can add a Report action in our Request-Response pipeline of our service.
- The expression field holds the part we actually want to trace – Usually the $Body or Specific Content of the Body element.
- The Key Name is best used for your reference and let you easily search later on. Which is identical throughout all service calls in the business process. – Correlation Id or Specific element from the body which we can use for tracking during production.
- We will be able to query all messages in a process or match them based on below categories,
- Inbound Service Name (the name of the pipeline)
- Error Code
- Report Index (key/value pairs)
- Date-Time
thanks nice blog
ReplyDelete