-
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.
feat: Enhance Entity Relationships - for APM and OTel to APPSYNC API (#…
…1788) * feat: Added kiness delivery stream * feat: Added relationship condition * fix: Added apm kinesis relation file * fix:Removed apm relation file * fix: Add new condition * fix: Added quotes in array * feat: Added appsync api relationship files * fix: Removed other relationship files * fix: Updated the regex * fix: Updated relationship name * fix: Updated attribute names --------- Co-authored-by: nr-cmorenoin <[email protected]>
- Loading branch information
1 parent
9e72ba6
commit 3714cfe
Showing
3 changed files
with
62 additions
and
0 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: AWSAPPSYNCAPI | ||
lookups: | ||
- entityTypes: | ||
- domain: INFRA | ||
type: AWSAPPSYNCAPI | ||
tags: | ||
matchingMode: ALL | ||
predicates: | ||
- tagKeys: ["Http.Url"] | ||
field: httpUrl | ||
onMatch: | ||
onMultipleMatches: RELATE_ALL | ||
onMiss: | ||
action: CREATE_UNINSTRUMENTED | ||
uninstrumented: | ||
type: AWSAPPSYNCAPI |
22 changes: 22 additions & 0 deletions
22
relationships/synthesis/APM-APPLICATION-to-INFRA-AWSAPPSYNCAPI.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,22 @@ | ||
relationships: | ||
- name: apmCallsInfraAppSyncApi | ||
version: "1" | ||
origins: | ||
- Distributed Tracing | ||
conditions: | ||
- attribute: eventType | ||
anyOf: [ "Span" ] | ||
- attribute: peer.hostname | ||
regex: '[a-z]+\d*[a-z]*\.appsync-api\.[a-z]{2}-[a-z]+-\d+\.amazonaws\.com' | ||
relationship: | ||
expires: P75M | ||
relationshipType: CALLS | ||
source: | ||
extractGuid: | ||
attribute: entity.guid | ||
target: | ||
lookupGuid: | ||
candidateCategory: AWSAPPSYNCAPI | ||
fields: | ||
- field: httpUrl | ||
attribute: Http.Url |
24 changes: 24 additions & 0 deletions
24
relationships/synthesis/EXT-SERVICE-to-INFRA-AWSAPPSYNCAPI.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: extServiceCallsInfraAppSyncApi | ||
version: "1" | ||
origins: | ||
- Distributed Tracing | ||
conditions: | ||
- attribute: eventType | ||
anyOf: [ "Span" ] | ||
- attribute: instrumentation.provider | ||
anyOf: [ "opentelemetry" ] | ||
- attribute: net.peer.name | ||
regex: '[a-z]+\d*[a-z]*\.appsync-api\.[a-z]{2}-[a-z]+-\d+\.amazonaws\.com' | ||
relationship: | ||
expires: P75M | ||
relationshipType: CALLS | ||
source: | ||
extractGuid: | ||
attribute: entity.guid | ||
target: | ||
lookupGuid: | ||
candidateCategory: AWSAPPSYNCAPI | ||
fields: | ||
- field: httpUrl | ||
attribute: Http.Url |