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 Serverless Framework Support #127

Merged
merged 6 commits into from
Feb 26, 2019
Merged

Commits on Feb 20, 2019

  1. Add Serverless Framework Support (aws#2)

        * Serverless architecture in this case includes one that utilizes
          Lambda and API Gateway.
        * A new "Serverless" context is created to give the abstraction of
          Segments being the toplevel entities but is then converted to a
          subsegment upon transmission to the data plane.
          These segments are called MimicSegments.  All generated
          segments have a parent segment that is the FacadeSegment.
        * Currently supports Flask and Django as middlewares; this has been
          confirmed to be natively working with Zappa if the application is
          running under Flask/Django.
    chanchiem committed Feb 20, 2019
    Configuration menu
    Copy the full SHA
    c3f333f View commit details
    Browse the repository at this point in the history
  2. Add Serverless Framework Support Revision 2 (aws#127)

    * Renamed ServerlessContext to ServerlessLambdaContext to be more precise about its purpose.
    * Instead of explicitly using Context class's put_subsegment/put_segment methods, use LambdaContext's
    grandparent class to store. LambdaContext's methods are really only used to acquire the FacadeSegment.
    * Parameters when initializing the mimic segment are now required.
    * Unit tests added to test these changes.
    chanchiem committed Feb 20, 2019
    Configuration menu
    Copy the full SHA
    88bf381 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2019

  1. Add Serverless Framework Support Revision 3 (aws#127)

    * Mimic Segments now perform no-op on segment-only methods.
    * Added comments to address this contract.
    * Unit tests to ensure segment-only methods don't add data
    to the mimic segment. Serialization methods are also tested
    to ensure this.
    chanchiem committed Feb 21, 2019
    Configuration menu
    Copy the full SHA
    c8e8012 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2019

  1. Configuration menu
    Copy the full SHA
    033e03f View commit details
    Browse the repository at this point in the history
  2. Add Serverless Framework Support Revision 4 (aws#127)

    * Revised design; no more serverless context.
    * Subsegment generated when the middleware adds request
    * Unit tests to ensure that these subsegments are added on top of the facade segment
    chanchiem committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    4b51783 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2019

  1. Add Serverless Framework Support Revision 5 (aws#127)

    * Comment change added for save_origin_trace_header
    chanchiem committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    293f76f View commit details
    Browse the repository at this point in the history