Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cold start information to structure logs #112

Open
theburningmonk opened this issue Oct 10, 2019 · 2 comments
Open

add cold start information to structure logs #112

theburningmonk opened this issue Oct 10, 2019 · 2 comments

Comments

@theburningmonk
Copy link
Contributor

This is a Feature Proposal

Description

  • record whether or not the invocation was a cold start in the structured logs
@rmax
Copy link
Contributor

rmax commented Oct 17, 2019

Out of curiosity, what is the approach for this?

Is it using a module-level global variable to know whether or not it's the first execution?

@theburningmonk
Copy link
Contributor Author

Will probably need a combo of middleware (which has a global variable that gets toggled on coldstart) plus #11 (for context data that are included in every log message but are not forwarded on as correlation IDs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants