azure-sdk-for-js
azure-sdk-for-js copied to clipboard
Unknown outgoing messages recorded in event hub metrics
Hi, We've been stress testing our application with large number of messages relayed from an event hub script (Node.JS) to an Azure Function (event hub triggered - c#)
Since past week we are noticing a certain number of unknown messages in the outgoing section of the graph, however, no messages are being sent or even received at the Azure Function end.
Screen-grab below. Any help appreciated.

@gitnwana Could you please provide more details on how you relay messages in JavaScript? Some code snippets would be great too!
Since past week we are noticing a certain number of unknown messages
Are there any changes in your environment, application, or NPM dependencies in last week?
Also, you could enable more logging and see if there's anything unusual. Please refer to the troubleshooting section for more information on getting debug logs:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventhub/event-hubs/README.md#troubleshooting
It is probably useful to start with this configuration:
export DEBUG=azure*,rhea*,-rhea:raw,-rhea:message,-azure:core-amqp:datatransformer
Hi @jeremymeng
Could you please provide more details on how you relay messages in JavaScript? Some code snippets would be great too!
Here is the send data function. This script is deployed as docker container on Azure Kubernetes.
var eventData=JSON.stringify(obj);
const eventDataBatch = await eventHubClient.createBatch(maxSizeInBytes);
const didAdd = eventDataBatch.tryAdd({body:eventData});
// checks if event added to batch and sends to event hub
try {
if (didAdd) {
await eventHubClient.sendBatch(eventDataBatch);
console.log("Sent Data: \t"+JSON.stringify(obj));
}
} catch (e) {
console.log("Error: ", e)
}
`
Are there any changes in your environment, application, or NPM dependencies in last week?
No these events started showing randomly.
Hi @jeremymeng . Any solution to this ?
@gitnwana could you please enable more detailed logs as described above? We should be able to see what messages are going out if it is sent by the client SDK.
Hi @gitnwana do you still observe this issue? If yes, could you please share the detailed logs?
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!