-
Notifications
You must be signed in to change notification settings - Fork 660
feat: added changes to enable tracing in lambdas. #3554
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
6eabc8a
feat: added changes to enable tracing in lambdas.
9060e15
docs: auto update terraform docs
github-actions[bot] 864e5ba
Merge branch 'main' into nav/enable-tracing
dad0312
fix: missed this file.
91abc18
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
85ae608
fix: multi runners.
77a0aa6
docs: auto update terraform docs
github-actions[bot] afdd086
fix: multi runner.
8138f8c
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
dcd9611
fix: default.
751443d
docs: auto update terraform docs
github-actions[bot] a08798d
fix: more changes.
926e345
docs: auto update terraform docs
github-actions[bot] 856f7ef
fix: added tracing for github apis.
e4f62f2
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
9a306b1
docs: auto update terraform docs
github-actions[bot] 0c8a9b1
fix: more changes.
696cc6d
fix: start script.
a5caa41
fix: added tracing config section.
1fb8f9e
Merge branch 'main' into nav/enable-tracing
ab0a1c8
docs: auto update terraform docs
github-actions[bot] 0aab19e
fix: comments.
115eb42
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
190ff01
docs: auto update terraform docs
github-actions[bot] b23df30
fix: ami housekeeper.
3fa0e8e
docs: auto update terraform docs
github-actions[bot] b1e59e9
fix: ssm housekeeper.
93f6adb
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
c88e508
fix: tests.
fe3342d
comments.
930ed0d
fix: added comment.
f165fd0
Merge branch 'main' into nav/enable-tracing
npalm 1677f9a
fix: comments.
916b2c8
Merge branch 'nav/enable-tracing' of github.com:philips-labs/terrafor…
a6d6df9
fix: comments.
d7a5319
docs: auto update terraform docs
github-actions[bot] ed7f05b
fix: comments.
e9ffa1a
Merge branch 'main' into nav/enable-tracing
npalm 1ed4561
Merge branch 'main' into nav/enable-tracing
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
GuptaNavdeep1983 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './logger'; | ||
export * from './tracer'; |
This file contains hidden or 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,10 @@ | ||
import { Tracer, captureLambdaHandler } from '@aws-lambda-powertools/tracer'; | ||
GuptaNavdeep1983 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
const tracer = new Tracer({ | ||
serviceName: process.env.SERVICE_NAME || 'runners', | ||
}); | ||
|
||
function getTracedAWSV3Client<T>(client: T): T { | ||
return tracer.captureAWSClient(client); | ||
} | ||
export { tracer, captureLambdaHandler, getTracedAWSV3Client }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "AllowXRay", | ||
"Effect": "Allow", | ||
"Action": [ | ||
"xray:BatchGetTraces", | ||
"xray:GetTraceSummaries", | ||
"xray:PutTelemetryRecords", | ||
"xray:PutTraceSegments" | ||
], | ||
"Resource": ["*"] | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.