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

Extend Intake to accept FaaS / Serverless context fields #5753

Closed
AlexanderWert opened this issue Jul 19, 2021 · 1 comment · Fixed by #6161
Closed

Extend Intake to accept FaaS / Serverless context fields #5753

AlexanderWert opened this issue Jul 19, 2021 · 1 comment · Fixed by #6161
Assignees
Labels
Milestone

Comments

@AlexanderWert
Copy link
Member

AlexanderWert commented Jul 19, 2021

With adding AWS Lambda support to our agents we need additional context in the intake API that accepts function as a service (faas)-specific fields.

Fields to be added:

Field Example Metadata Transaction Description
service.id e.g. arn:aws:lambda:us-west-2:123456789012:function:my-function yes yes Add service.id(available in ECS) to the intake model. Value for Lambda: The ARN of the function without alias suffix.
faas.trigger.type http no yes The trigger type.
faas.execution af9aa4-a6... no yes The AWS request ID of the function invocation
faas.coldstart true / false no yes Boolean value indicating whether a Lambda function invocation was a cold start or not.
faas.trigger.reuqest_id af9aa4-a6... no yes The ID of the origin trigger request
cloud.origin.* - no yes Allow to self-nest all cloud fields under cloud.origin to specify trigger cloud data. See elastic/ecs#1542
service.origin.* - no yes Allow to self-nest all service fields under service.origin to specify trigger service data. See elastic/ecs#1542

Names and fields are inspired by the OpenTelemetry specification for functions as a service.

There is a PR for starting the RFC process to add these fields also to ECS.

@axw
Copy link
Member

axw commented Jul 19, 2021

Also relevant: #5456

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

Successfully merging a pull request may close this issue.

4 participants