Azure / azure-event-hubs-java

☁️ Java client library for Azure Event Hubs
https://azure.microsoft.com/services/event-hubs
MIT License
51 stars 61 forks source link

Client side logging sent messages #457

Closed c4rlosmarin closed 3 years ago

c4rlosmarin commented 5 years ago

Just reaching out to check if there is a way to log information about sent messages as soon as the SendSync method is call, e.g., Reference ID /Tracking ID generated by the client.

JamesBirdsall commented 3 years ago

There's an ID generated for the send activity, but the client doesn't expose that programmatically -- it's only visible in client-side tracing if you turn that on. If you're looking to track a message through the system, then putting an ID into a property is the best way to go, with the downside that it's not visible in our service-side logs. We are aware that end-to-end tracing of messages is a weak spot.

In any case, this client is now legacy and in maintenance mode. We will not be adding new features. You can find the new Java Event Hubs client at https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/eventhubs/azure-messaging-eventhubs