newrelic-python-agent icon indicating copy to clipboard operation
newrelic-python-agent copied to clipboard

Add attrs for aws lambda entity

Open hmstepanek opened this issue 1 year ago • 2 comments
trafficstars

Overview

Add attrs for aws lambda entity linking.

When an application invokes a Lambda, linking between the application and AWS Lambdas is done using the following span attributes:

cloud.platform: the string aws_lambda cloud.resource_id: the ARN for the Lambda, or an alias or version, if it can be determined. Lambda ARNs follow the format:

arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName} arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}:${Alias} arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}:${Version}

hmstepanek avatar Oct 07 '24 23:10 hmstepanek

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 2 0 5.28s
✅ PYTHON black 3 0 0 1.16s
✅ PYTHON flake8 3 0 0.68s
✅ PYTHON isort 3 0 0 0.23s
✅ PYTHON pylint 3 0 5.89s

See detailed report in MegaLinter reports Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

github-actions[bot] avatar Oct 07 '24 23:10 github-actions[bot]

Codecov Report

Attention: Patch coverage is 89.74359% with 4 lines in your changes missing coverage. Please review.

Project coverage is 79.44%. Comparing base (eecfb48) to head (2c4f0c3).

Files with missing lines Patch % Lines
newrelic/hooks/external_botocore.py 89.74% 2 Missing and 2 partials :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1227      +/-   ##
==========================================
- Coverage   79.53%   79.44%   -0.10%     
==========================================
  Files         200      200              
  Lines       22089    22126      +37     
  Branches     3508     3517       +9     
==========================================
+ Hits        17569    17578       +9     
- Misses       3367     3391      +24     
- Partials     1153     1157       +4     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 07 '24 23:10 codecov-commenter