Comments (4)
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
from powertools-lambda-python.
Thanks @CaptainDriftwood for submitting this, we will discuss it during our next gathering.
from powertools-lambda-python.
Simon and I discussed this a minute ago... got a question @CaptainDriftwood - is your intent to have a given set of keys temporarily added for N log statements? OR add N keys for a given log statement?
This feature would make sense for the former*, but the latter is already possible by passing arbitrary keyword arguments to any log statement
*caveat being that this is not thread-safe (append_keys
), as we don't use contextvars
yet.
from aws_lambda_powertools import Logger
from aws_lambda_powertools.utilities.typing import LambdaContext
logger = Logger()
def lambda_handler(event: dict, context: LambdaContext) -> str:
# these keys will only be available in this log statement, subsequent `logger.info` won't have them
logger.info("Collecting payment", request_id="1123", some_key="some_value")
return "hello world"
from powertools-lambda-python.
@heitorlessa It would be temporarily added for N log statements. I'm not sure how ya'll would get around the thread safety aspect. That is a good point.
from powertools-lambda-python.
Related Issues (20)
- Feature request: On batch processing, fill in processor result even if BatchProcessingError is raised HOT 5
- Maintenance: Enable Redis e2e tests HOT 3
- Nathan Hanks: Boost App Engagement with AWS CloudWatch Metrics & Powertools for AWS HOT 3
- Maintenance: revert AWS CDK as a development dependency HOT 1
- Bug: OpenAPI schema invalid when using Pydantic v2 (latest) HOT 10
- Bug: APIGatewayHttpResolver with validation enabled returns HTTP 422 when using single value query parameters HOT 15
- Bedrock Agent resolver security assessment HOT 4
- Bedrock Agents resolver blog post HOT 1
- Static typing: headers in Response should be Mapping instead of Dict HOT 3
- Maintenance: Refactor artifact name strategy for parallel uploads HOT 5
- Maintenance: Roadmap update HOT 3
- Bug: Logs populating into cloudwatch as multiple lines instead of a single object HOT 10
- Maintenance: Update readme to style badge and remove email HOT 3
- Maintenance: Layer ARN release update is partially working HOT 4
- Bug: payload validation is skipped when item is returned via `ReturnValuesOnConditionCheckFailure` HOT 11
- Docs: remove leftover announcement banner HOT 2
- [I Made This]: reinvent session & code with Heitor HOT 3
- Docs: Fix feature flags documentation HOT 4
- Bug: Swagger generated UI has JSON format invalid URL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powertools-lambda-python.