- Notifications
You must be signed in to change notification settings - Fork 231
Instrument aws elb serverless requests #1605
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
Instrument aws elb serverless requests #1605
Conversation
💚 CLA has been signed |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really excellent, thank you! Just one minor change, and I'll also be opening a PR against the spec so we can make sure this is consistent across the serverless agents.
/test |
🌐 Coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the fix I recommended + a CHANGELOG entry
@tonyman19 Did you sign the CLA for the email |
Hi Colton, Thanks for your PR review and getting back to me. I've signed it with the ***@***.*** (same as my github account). ***@***.*** - this is my work email which I'm using for our elastic subscription - but the contribution will be from ***@***.*** In the attachment you can find the signed document (tried 3 times before and everytime missed the button to finish the signature - but was able to download PDFs :)) Best regards Anton Matviyenko …On Mon, 8 Aug 2022 at 20:51, Colton Myers ***@***.***> wrote: @tonyman19 <https://github.com/tonyman19> Did you sign the CLA for the email ***@***.***? That's the email attached to your commits. — Reply to this email directly, view it on GitHub <#1605 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABAIKX6L2XNZSR3AVABYZATVYFJMBANCNFSM55VYITJQ> . You are receiving this because you were mentioned.Message ID: ***@***.***> |
Hi Colton, Thank you for review and quick reply. Finalized signing for anton.matviyenko@gmail.com |
Short question about following inconsistency that I have found. Is it by purpose or just a mistake?
So first time (and everywhere else) we are creating subobject with id field ["origin"]["account"]["id"] - next time we create subelement account_id which is located under ["origin"]["account_id"]. Should we also fix that here? |
Regarding your removal of:
version field is also absent for rest (or http integrations) v1 (check aws_api_test_data.json) I assumed that there might be a second version of elb integration where it will be present so I did it the same way. I did it conforming the spec for api gw: https://github.com/elastic/apm/blob/main/specs/agents/tracing-instrumentation-aws-lambda.md#api-gateway-v1--v2
|
I suppose there could be a v2 for ELB some day. We did it that way for API Gateway because there were two prominent (and quite different) versions in use when we launched the integration. I think since there's only one version of ELB right now, we'll leave off the version (like we do for the other non-http triggers), and we can add it in the future if it becomes relevant. Thanks for signing the CLA with the correct email. I can't change the email on the commits, you would have to re-configure your git client and then rebase the commits. But everything is good now that you signed the CLA for the correct email. Good catch on the SNS |
This PR lets instrument elb serverless requests.
When lambda is being connected directly to ALB (this is useful when you want to rewrite some ECS existing endpoints with their lambda counterparts)
It fixes the bugs for full url creation for api gw ver 1 (when url is formed from queryStringParameters collection):
Related issues
closes #1587