Skip to content

Commit

Permalink
chore: Adds entity synthesis rules for logs coming from newrelic-lamb…
Browse files Browse the repository at this point in the history
…da-extension (#1917)

Co-authored-by: Adrian <[email protected]>
  • Loading branch information
jsubirat and apoloa authored Feb 26, 2025
1 parent 33a607c commit 969a6c4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions entity-types/infra-awslambdafunction/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,51 @@ synthesis:
aws.Arn:
# Used in AWSLAMBDAFUNCTION.yml for entity relationship candidates
aws.lambda.FunctionName:
# Logs received via newrelic-lambda-extension and enriched by the Logs Pipeline with entityId. See: https://docs.newrelic.com/docs/logs/logs-context/aws-logs-in-context/
# Logs from legacy API Polling entities not using the ARN to compute the entity.guid, but directly providing the entityId
- identifier: entityId
name: faas.name
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
- attribute: plugin
prefix: newrelic-lambda-extension
- attribute: faas.arn
present: true
- attribute: faas.name
present: true
- attribute: entityId
present: true
tags:
faas.arn:
entityTagNames: [ aws.Arn ]
faas.name:
# Used in AWSLAMBDAFUNCTION.yml for entity relationship candidates
entityTagNames: [ aws.lambda.FunctionName ]
# Logs received via newrelic-lambda-extension. See: https://docs.newrelic.com/docs/logs/logs-context/aws-logs-in-context/
# Logs from Metrics Streams or API Polling entities using the ARN to compute the entity.guid, or entities only sending logs
- identifier: faas.arn
name: faas.name
encodeIdentifierInGUID: true
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
- attribute: plugin
prefix: newrelic-lambda-extension
- attribute: faas.arn
present: true
- attribute: faas.name
present: true
- attribute: entityId
present: false
tags:
faas.arn:
entityTagNames: [ aws.Arn ]
faas.name:
# Used in AWSLAMBDAFUNCTION.yml for entity relationship candidates
entityTagNames: [ aws.lambda.FunctionName ]

0 comments on commit 969a6c4

Please sign in to comment.