aws / aws/chalice

Expose Lambda Context Object in current_request

Open
#424 1 comment 1 reaction 0 assignees View on GitHub
feature-request
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

I'm using [fleece](https://github.com/racker/fleece) for its logging and AWS X-Ray integration in my Lambda work. Often I'll use the `log_group_name` and `log_stream_name` from the supplied [Context Object](http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html) to direct the `fleece` logging.

It appears Chalice does not expose the `context` object in the `current_request` (browsing https://github.com/awslabs/chalice/blob/f8b576562ac758aa3786243c9baeb82222935f19/chalice/app.py#L551-L580).

Is this something that might get added in the future?

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.