Skip to content

Commit

Permalink
Create Relationship with APM and Lambda Function and Lambda Function …
Browse files Browse the repository at this point in the history
…Alias (#1715)

* Create Relationship with APM and Lambda Function and Lambda Function Alias

* remove lambda function alias from synthesis definition file

---------

Co-authored-by: sravyaparsi <[email protected]>
Co-authored-by: nr-sparsi <[email protected]>
  • Loading branch information
3 people authored Aug 1, 2024
1 parent c9e9d8a commit 50884a1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
10 changes: 4 additions & 6 deletions relationships/candidates/AWSLAMBDAFUNCTION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ lookups:
- entityTypes:
- domain: INFRA
type: AWSLAMBDAFUNCTION
- domain: INFRA
type: AWSLAMBDAFUNCTIONALIAS
tags:
matchingMode: ALL
predicates:
- tagKeys: ["aws.accountId"]
field: awsAccountId
- tagKeys: ["aws.region"]
field: awsRegion
- tagKeys: ["aws.lambda.functionName"]
field: awsLambdaFunctionName
- tagKeys: ["aws.lambda.functionArn", "aws.Arn"]
field: awsLambdaArn
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
relationships:
- name: apmCallsLambdafunction
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: cloud.platform
anyOf: [ "aws_lambda"]
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAFUNCTION
fields:
- field: awsLambdaArn
attribute: cloud.resource_id

0 comments on commit 50884a1

Please sign in to comment.