We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure event hub allows sending properties along with the body.
See JavaScript example at https://learn.microsoft.com/en-us/azure/event-hubs/add-custom-data-event
this is the essence from that link:
let eventData = { body: "First event", properties: { "event-type": "com.microsoft.samples.hello-event", "priority": 1, "score": 9.0 } };
Allow msg.properties and if they are there, add them when the message is built.
msg.properties
I tested this in line 101 of index.js
const isAdded = batch.tryAdd(msg.properties === undefined ? { body: msgJSON } : {body: msgJSON, properties : msg.properties});
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Azure event hub allows sending properties along with the body.
See JavaScript example at https://learn.microsoft.com/en-us/azure/event-hubs/add-custom-data-event
this is the essence from that link:
let eventData = { body: "First event", properties: { "event-type": "com.microsoft.samples.hello-event", "priority": 1, "score": 9.0 } };
Allow
msg.properties
and if they are there, add them when the message is built.I tested this in line 101 of index.js
const isAdded = batch.tryAdd(msg.properties === undefined ? { body: msgJSON } : {body: msgJSON, properties : msg.properties});
The text was updated successfully, but these errors were encountered: