-
Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathexample-stack.ts
70 lines (56 loc) · 1.87 KB
/
example-stack.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { ExampleFunction } from './example-function';
export class CdkAppStack extends Stack {
public constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new ExampleFunction(this, 'MyFunction', {
functionName: 'MyFunction',
tracingActive: true,
});
new ExampleFunction(this, 'MyFunctionWithDecorator', {
functionName: 'MyFunctionWithDecorator',
tracingActive: true,
});
new ExampleFunction(this, 'MyFunctionWithMiddy', {
functionName: 'MyFunctionWithMiddy',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.Disabled', {
functionName: 'Tracer.Disabled',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.Middleware', {
functionName: 'Tracer.Middleware',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.Decorator', {
functionName: 'Tracer.Decorator',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.Manual', {
functionName: 'Tracer.Manual',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.PatchAllAWSSDK', {
functionName: 'Tracer.PatchAllAWSSDK',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.PatchAWSSDKv2', {
functionName: 'Tracer.PatchAWSSDKv2',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.PatchAWSSDKv3', {
functionName: 'Tracer.PatchAWSSDKv3',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.CaptureResponseDisabled', {
functionName: 'Tracer.CaptureResponseDisabled',
tracingActive: true,
});
new ExampleFunction(this, 'Tracer.CaptureErrorDisabled', {
functionName: 'Tracer.CaptureErrorDisabled',
tracingActive: true,
});
}
}