[AWSLambda] Add faas.instance and faas.max_memory#2928
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2928 +/- ##
==========================================
+ Coverage 69.60% 69.67% +0.06%
==========================================
Files 413 413
Lines 16212 16225 +13
==========================================
+ Hits 11285 11305 +20
+ Misses 4927 4920 -7 Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for two additional OpenTelemetry semantic conventions attributes (faas.instance and faas.max_memory) to the AWS Lambda instrumentation library, enhancing observability capabilities.
- Implements retrieval of Lambda function instance ID from log stream name and memory limit from environment variables or context
- Adds the new attributes to both resource detection and span tagging
- Updates test infrastructure with default values and assertions for the new attributes
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
AWSLambdaUtils.cs |
Core implementation for extracting instance ID and memory size from Lambda context/environment |
AWSLambdaResourceDetector.cs |
Adds new attributes to resource detection |
AWSSemanticConventions.*.cs |
Defines the new semantic convention attribute constants and builder methods |
AWSLambdaWrapperTests.cs |
Updates test assertions and environment setup for new attributes |
SampleLambdaContext.cs |
Provides default test values for memory limit and log stream name |
CHANGELOG.md |
Documents the new feature addition |
opentelemetry-dotnet-contrib.sln |
Adds AWS shared files to solution structure |
f071e77 to
d1e5871
Compare
d1e5871 to
2985977
Compare
2985977 to
16a0484
Compare
16a0484 to
d5ac8d9
Compare
|
@philasmar, could you please check as you are seems the owner of https://github.com/aws/aws-lambda-dotnet? It seems that Philip is no longer affiliated to the AWS and it will be great to have someone with AWS expertise to cover ownership of this package. |
d5ac8d9 to
bfdf2d9
Compare
bfdf2d9 to
8a5145a
Compare
Changes
Set the
faas.instanceandfaas.max_memoryattributes for AWS Lambda functions, which are both recommended.Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changesChanges in public API reviewed (if applicable)