-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexandr Murashkin
authored and
Alexandr Murashkin
committed
Oct 13, 2017
1 parent
5b148dd
commit 0efc8a0
Showing
10 changed files
with
188 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
|
||
Enables AWS X-Ray (https://aws.amazon.com/xray/) for the entire Serverless stack or individual functions. | ||
|
||
**Update**: as of `2.0.0`, plugin uses Cloud Formation to update `TracingConfig` and no longer | ||
makes additional AWS SDK calls. | ||
|
||
Note: this plugin is currently **Beta**. | ||
|
||
Note: tested to work well with `[email protected]`. Some older versions of `serverless` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-mainFunction", | ||
"TracingConfig": { | ||
"Mode": "Active" | ||
} | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck", | ||
"TracingConfig": { | ||
"Mode": "Active" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-mainFunction", | ||
"TracingConfig": { | ||
"Mode": "Active" | ||
} | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck", | ||
"TracingConfig": { | ||
"Mode": "PassThrough" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-mainFunction" | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "custom-name", | ||
"TracingConfig": { | ||
"Mode": "Active" | ||
} | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "custom-name", | ||
"TracingConfig": { | ||
"Mode": "Active" | ||
} | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"MainLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "custom-name" | ||
} | ||
}, | ||
"HealthcheckLambdaFunction": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"FunctionName": "myService-test-healthcheck" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.