iopipe / iopipe-java

AWS Lambda telemetry for Java
https://www.iopipe.com/
Apache License 2.0
17 stars 8 forks source link

Use fallback `Context` if one was not specified. (Fixes #186) #192

Closed XerTheSquirrel closed 5 years ago

XerTheSquirrel commented 5 years ago

If a Context was not passed to the method it will use one which is derived from environment variables.

XerTheSquirrel commented 5 years ago

Environment variables of interest, that we can use to recover information that should be in the context:

XerTheSquirrel commented 5 years ago

Okay, not sure about these:

From my list of variables, these are not exposed.

XerTheSquirrel commented 5 years ago

For String getAwsRequestId() I just derived this from the hashCode(), it is only 32-bits but it is better than a constant.