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

feat: Enhance Entity Relationships - for APM and OTel to APPSYNC API #1788

Merged
merged 18 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-z0-9]{25}\.appsync-api\.us-east-2\.amazonaws\.com"
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSAPPSYNCAPI
fields:
- field: httpUrl
attribute: Http.Url
25 changes: 25 additions & 0 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-AWSAPPSYNCAPI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
relationships:
- name: extServiceCallsInfraKinesisDeliveryStream
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: instrumentation.provider
anyOf: [ "opentelemetry" ]
- attribute: Net.peer.name
regex: "[a-z0-9]{25}\.appsync-api\.us-east-2\.amazonaws\.com"

relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSAPPSYNCAPI
fields:
- field: httpUrl
attribute: Http.Url
Loading