Skip to content
New issue

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

Adding header info with Evenhub #12

Open
tmsrikanth opened this issue Feb 16, 2023 · 12 comments
Open

Adding header info with Evenhub #12

tmsrikanth opened this issue Feb 16, 2023 · 12 comments

Comments

@tmsrikanth
Copy link

Hi,

I need to added header info as part of the eventhub message. can you let me know , how it can be added in this plugin

@kuniteru
Copy link
Member

Hi tmsrikanth,

By eventhub message header info you are referring to, do you mean content-type, correlationId, messageId, etc.?
If so, unfortunately this Event Hubs plugin does not support sending them.

If not them, please tell me what the eventhub message header information indicates.

@tmsrikanth
Copy link
Author

Hi,
Extra information needs to be passed as part of Eventhub message. This can be passed as a property . Instead of Property, i referred it as header.
Is it possible to add this feature . Similar implementation is done in service bus plugin. Pls do let me know.

Regards,
Srikanth

@kuniteru
Copy link
Member

Hi,

I have made some modifications to branch AEH0.3.0 to the extent that I can do so immediately.

  • message Id
  • Content-Type
  • custom properties (JSON format)

I haven't done enough testing because I don't have an environment to retrieve properties, but does this meet your requirements?

@tmsrikanth
Copy link
Author

Thanks , I tried to create a jar out of the branch and added it into /lib/ext . But unfortunately i am unable to see the sampler listed in the jmeter. Am i missing any steps.
I am new to java , hence the question

@tmsrikanth
Copy link
Author

Generated the Jar .. Testing it now. will revert on the results

@kuniteru
Copy link
Member

I know it's late, but I wrote down the build steps.
https://github.com/pnopjp/jmeter-plugins/blob/master/README.md#how-to-build
I hope it will be helpful to you.

@tmsrikanth
Copy link
Author

Appreciate it Kuniteru,

Json conversation for the property value provided error in processing in the function. I modified the code with hardcoded value of the property using eventData.getProperties().put, and it worked.

@tmsrikanth
Copy link
Author

I also have a requirement on sending messages in bytes format . I will try to make the addition to the code.

@kuniteru
Copy link
Member

I am glad that your modifications allowed us to meet your requirements.
If you don't mind, please let me know what JSON you gave and how you modified it.

I look forward to your contribute on sending byte format messages.

@tmsrikanth
Copy link
Author

I am not able to push my branch . Do i need permission.

@kuniteru
Copy link
Member

Following the github convention, please fork first, modify the forked code, and then Pull Request it.

I'm not familiar with any reference documents written in English, but how about this content, for example?
https://gist.github.com/siddhantprateek/342046de702fd65a381c9991edc45cd5
https://reflectoring.io/github-fork-and-pull/

@srikanth-tm
Copy link

Created a pull request .Pls Look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants