quarkus
quarkus copied to clipboard
Added "User-Agent" header to requests made to the Lambda Runtime API
The value of the header will be in the format "quarkus/%s-%s" where the first position will be a description of the Java version and the second being the version of Quarkus.
There were no existing tests for the class I changed, I'd be happy to write some tests if given guidance.
Thanks,
Thanks for your pull request!
The title of your pull request does not follow our editorial rules. Could you have a look?
- title should not end up with dot
This message is automatically generated by a bot.
this feels like something we should have config for that the various http clients will be able to use?
Hi @maxandersen,
Maybe, I couldn't see any http client in this module, so I followed the style which was existing.
this feels like something we should have config for that the various http clients will be able to use?
I definitely agree
I think having a configurable user agent for lambda would be a good first step. If we generalize it at some point we could use the more general one if not set.
@msailes I'm not sure we have some config root for lambda yet though. My guess would be to add something to LambdaConfig
.
If you're still interested in finalizing this, I suppose you could ask for @matejvasek 's help if you have questions.
@gsmet @msailes I didn't work much on aws lambda directly, I only did some work wrt Funqy
binding, AFAIK we don't configure user-agent there.
cc @patriot1burke
Just curious, why the user agent? Does the lambda event server want that information?
Yes, it helps us understand which frameworks are used.
rebase, squash and i'll spin off CI. Sorry this fell through the cracks.
No problem
Updated
Can you please rebase the PR onto main
(instead of merging main
into this PR)?
Thanks
Done
:waning_crescent_moon: This workflow status is outdated as a new workflow run has been triggered.
:no_entry_sign: This workflow run has been cancelled.
Failing Jobs - Building f73224bee8e8bfff99451d409ab42520ace997b4
Status | Name | Step | Failures | Logs | Raw logs |
---|---|---|---|---|---|
:hourglass: | Initial JDK 11 Build | :warning: Check → | Logs | Raw logs | |
:hourglass: | Attach pull request number | :warning: Check → | Logs | Raw logs | |
:hourglass: | CI Sanity Check | :warning: Check → | Logs | Raw logs |