Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions entity-types/ext-service/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@ synthesis:
telemetry.sdk.language:
entityTagName: language
telemetry.sdk.version:
ttl: P1D
service.namespace:
ttl: P1D
faas.name:
ttl: P1D
faas.id:
ttl: P1D
aws.lambda.invoked_arn:
ttl: P1D
newrelic.service.type:
ttl: P1D

Expand Down
101 changes: 97 additions & 4 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-AWSLAMBDAALIAS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ relationships:
conditions:
- attribute: eventType
anyOf: [ "Log", "Span" ]
- attribute: newrelic.source
anyOf: [ "api.logs.otlp", "api.traces.otlp" ]
- attribute: entity.type
- attribute: newrelic.source
anyOf: [ "api.logs.otlp", "api.traces.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:lambda:([^:]*):([^:]*):function:([^:]*):([^/]*)$"
Expand All @@ -24,4 +24,97 @@ relationships:
candidateCategory: AWSLAMBDAALIAS
fields:
- field: awsLambdaAliasArn
attribute: newrelic.aws_metric_streams.arn
attribute: newrelic.aws_metric_streams.arn

- name: extServiceCallsAwsLambdaAlias_InvokedArn
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Log", "Span" ]
- attribute: newrelic.source
anyOf: [ "api.logs.otlp", "api.traces.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
regex: "^arn:aws:lambda:([^:]*):([^:]*):function:([^:]*):([^/]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAALIAS
fields:
- field: awsLambdaAliasArn
attribute: aws.lambda.invoked_arn

- name: extServiceCallsAwsLambdaAlias_CloudResourceId
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Log", "Span" ]
- attribute: newrelic.source
anyOf: [ "api.logs.otlp", "api.traces.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
present: false
- attribute: cloud.resource_id
regex: "^arn:aws:lambda:([^:]*):([^:]*):function:([^:]*):([^/]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAALIAS
fields:
- field: awsLambdaAliasArn
attribute: cloud.resource_id

- name: extServiceCallsAwsLambdaAlias_FaasId
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Log", "Span" ]
- attribute: newrelic.source
anyOf: [ "api.logs.otlp", "api.traces.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
present: false
- attribute: cloud.resource_id
present: false
- attribute: faas.id
regex: "^arn:aws:lambda:([^:]*):([^:]*):function:([^:]*):([^/]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAALIAS
fields:
- field: awsLambdaAliasArn
attribute: faas.id
103 changes: 98 additions & 5 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-AWSLAMBDAFUNCTION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ relationships:
conditions:
- attribute: eventType
anyOf: ["Log", "Span"]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:lambda:([^:]*):([0-9]*):function:([^:]*)$"
relationship:
Expand All @@ -24,4 +24,97 @@ relationships:
candidateCategory: AWSLAMBDAFUNCTION
fields:
- field: awsLambdaArn
attribute: newrelic.aws_metric_streams.arn
attribute: newrelic.aws_metric_streams.arn

- name: extServiceCallsAwsLambdaFunction_InvokedArn
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: ["Log", "Span"]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
regex: "^arn:aws:lambda:([^:]*):([0-9]*):function:([^:]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAFUNCTION
fields:
- field: awsLambdaArn
attribute: aws.lambda.invoked_arn

- name: extServiceCallsAwsLambdaFunction_CloudResourceId
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: ["Log", "Span"]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
present: false
- attribute: cloud.resource_id
regex: "^arn:aws:lambda:([^:]*):([0-9]*):function:([^:]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAFUNCTION
fields:
- field: awsLambdaArn
attribute: cloud.resource_id

- name: extServiceCallsAwsLambdaFunction_FaasId
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: ["Log", "Span"]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
present: false
- attribute: aws.lambda.invoked_arn
present: false
- attribute: cloud.resource_id
present: false
- attribute: faas.id
regex: "^arn:aws:lambda:([^:]*):([0-9]*):function:([^:]*)$"
relationship:
expires: PT75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSLAMBDAFUNCTION
fields:
- field: awsLambdaArn
attribute: faas.id
Loading