aws / aws/aws-lambda-dotnet

Support scopes with Amazon.Lambda.Logging.AspNetCore JSON logger

Open
#2,122 0 comments 1 reaction 0 assignees View on GitHub
feature-request p2 queued
Dominant language
C#
Stars
1.7k
Forks
503
Avg merge
1d 5h
Merged PRs (30d)
18

Description

### Describe the feature

It was briefly discussed in this PR:
https://github.com/aws/aws-lambda-dotnet/pull/2083#issuecomment-3046312828

Therefore, adding a separate feature request here.

Currently AspNetCore JSON logger does not support logging scopes. It would be really nice if it did.

It was also requested for non-AspNetCore scenarios:
https://github.com/aws/aws-lambda-dotnet/issues/1747#issuecomment-2450860295

### Use Case

Scopes are heavily used with Otel, so currently we lose tracing information.
Apart from that, we heavily use custom scopes, like tenantId, userId, etc.

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

Amazon.Lambda.Logging.AspNetCore 4.1.0

### Targeted .NET Platform

.NET 8

### Operating System and version

AmazonLinux

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.