wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[Bug]: Unable to print the SQS inbound endpoint name in the processing sequence #3689

Closed vikumkbv closed 1 month ago

vikumkbv commented 1 month ago

Description

Hi Team,

We can not log the name of the inbound endpoint in the processing sequence

We have the inbound sequence as follows

<?xml version="1.0" encoding="UTF-8"?>
<inboundEndpoint xmlns="http://ws.apache.org/ns/synapse"   
                 name="AmazonSQS"    
                 onError="requestISO" 
                 sequence="request"    
                 suspend="false"      
class="org.wso2.carbon.inbound.amazonsqs.AmazonSQSPollingConsumer">

Then we have this sequence “request”, here we need to log the name of the above inbound endpoint “AmazonSQS”. How can we achieve this? We need this because we have multiple inbound endpoints that use the same “request” sequence. So we need to have a log to identify which inbound endpoint invoked the 'request' sequence.

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="request" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
    <log level="full"/>
</sequence>

Thanks, Vikum

Steps to Reproduce

No response

Affected Version(s)

MI 4.1.0

OS, DB, other environment details and versions

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response