-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NR-301930: Create a placeholder when entity is not found (#1726)
* Create Relationship with APM and Lambda Function and Lambda Function Alias * remove lambda function alias from synthesis definition file * Updated the regex * Addressed linter issue * Addressed linter issue * Addressed linter issue * Addressed review comments --------- Co-authored-by: sravyaparsi <[email protected]> Co-authored-by: nr-sparsi <[email protected]> Co-authored-by: Otávio Carvalho <[email protected]>
- Loading branch information
1 parent
7f553b1
commit 778e0ed
Showing
4 changed files
with
50 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
category: AWSLAMBDAALIAS | ||
lookups: | ||
- entityTypes: | ||
- domain: INFRA | ||
type: AWSLAMBDAFUNCTIONALIAS | ||
tags: | ||
matchingMode: ALL | ||
predicates: | ||
- tagKeys: [ "aws.Arn" ] | ||
field: awsLambdaAliasArn | ||
onMatch: | ||
onMultipleMatches: RELATE_ALL | ||
onMiss: | ||
action: CREATE_UNINSTRUMENTED | ||
uninstrumented: | ||
type: AWSLAMBDAALIAS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
relationships/synthesis/APM-APPLICATION-to-INFRA-LAMBDAALIAS.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
relationships: | ||
- name: apmCallsLambdaAlias | ||
version: "1" | ||
origins: | ||
- Distributed Tracing | ||
conditions: | ||
- attribute: eventType | ||
anyOf: [ "Span" ] | ||
- attribute: cloud.platform | ||
anyOf: [ "aws_lambda"] | ||
- attribute: cloud.resource_id | ||
regex: "^arn:aws:lambda:([^:]*):([^:]*):function:([^:]*):([^/]*)$" | ||
relationship: | ||
expires: P75M | ||
relationshipType: CALLS | ||
source: | ||
extractGuid: | ||
attribute: entity.guid | ||
target: | ||
lookupGuid: | ||
candidateCategory: AWSLAMBDAALIAS | ||
fields: | ||
- field: awsLambdaAliasArn | ||
attribute: cloud.resource_id |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.