AWS .NET Mock Lambda Test Tool should set AWS_LAMBDA_FUNCTION_VERSION environment variable

Open
#1,593 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, csharp
Domain
cloud, tooling

Research direction

Start by locating the AWS .NET Mock Lambda Test Tool and its environment setup path. Check how launch-time environment variables are assigned, then verify that AWS_LAMBDA_FUNCTION_VERSION is present when a function runs and that the OpenTelemetry AWS Lambda resource detector no longer needs a workaround.

Written by the indexing model from the issue text.

Description

feature-request module/lambda-test-tool p2 queued xs
Describe the feature

AWS .NET Mock Lambda Test Tool should set AWS_LAMBDA_FUNCTION_VERSION environment variable

Use Case

When instrumenting AWS Lambda functions with OpenTelemetry, this environment variable is used by the provided OpenTelemetry resource detector for AWS Lambda. If not set, the resource-detector throws an exception when configuring the TracerProviderBuilder. One needs to workaround, setting the environment variable e.g. within the launch options for the test tool.

image

Proposed Solution

AWS Lambda Test Tool should set AWS_LAMBDA_FUNCTION_VERSION environment variable

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
AWS .NET SDK and/or Package version used

Version shipped with AWS Toolkit for Visual Studio 2022 v 1.43.00

Targeted .NET Platform

.NET 6

Operating System and version

Windows 11

Dominant language
C#
Stars
1.7k
Forks
503
Avg merge
1d 18h
Merged PRs (30d)
21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-lambda-dotnet

All issues in aws/aws-lambda-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.