Skip to content

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

@Dreamescaper

Description

@Dreamescaper

Describe the feature

It was briefly discussed in this PR:
#2083 (comment)

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:
#1747 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions