azure-sdk-for-js icon indicating copy to clipboard operation
azure-sdk-for-js copied to clipboard

Unknown outgoing messages recorded in event hub metrics

Open gitnwana opened this issue 3 years ago • 4 comments

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.

image

gitnwana avatar Oct 06 '22 17:10 gitnwana

@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

jeremymeng avatar Oct 06 '22 20:10 jeremymeng

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.

gitnwana avatar Oct 07 '22 09:10 gitnwana

Hi @jeremymeng . Any solution to this ?

gitnwana avatar Oct 10 '22 11:10 gitnwana

@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.

jeremymeng avatar Oct 10 '22 17:10 jeremymeng

Hi @gitnwana do you still observe this issue? If yes, could you please share the detailed logs?

deyaaeldeen avatar Jan 05 '23 21:01 deyaaeldeen

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!

ghost avatar Jan 13 '23 02:01 ghost