Skip to content

Commit

Permalink
feat: Enhance Entity Relationships - for APM and OTel to APPSYNC API (#…
Browse files Browse the repository at this point in the history
…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
vinaykonatala and nr-cmorenoin authored Dec 9, 2024
1 parent 9e72ba6 commit 3714cfe
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions relationships/candidates/AWSAPPSYNCAPI.yml
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 relationships/synthesis/APM-APPLICATION-to-INFRA-AWSAPPSYNCAPI.yml
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 relationships/synthesis/EXT-SERVICE-to-INFRA-AWSAPPSYNCAPI.yml
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

0 comments on commit 3714cfe

Please sign in to comment.