aws / aws/aws-lambda-dotnet

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
feature-request module/lambda-test-tool p2 queued xs
Dominant language
C#
Stars
1.7k
Forks
503
Avg merge
1d 5h
Merged PRs (30d)
18

Description

### 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](https://github.com/aws/aws-lambda-dotnet/assets/13678018/359d9711-51fb-4146-93a8-e2a095d9d259)

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.