File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
libraries/src/AWS.Lambda.Powertools.Tracing Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ internal class TracingAspectHandler : IMethodAspectHandler
55
55
/// <summary>
56
56
/// Tracing namespace
57
57
/// </summary>
58
- private string _namespace ;
58
+ private readonly string _namespace ;
59
59
60
60
/// <summary>
61
61
/// The capture mode
62
62
/// </summary>
63
- private TracingCaptureMode _captureMode ;
63
+ private readonly TracingCaptureMode _captureMode ;
64
64
65
65
/// <summary>
66
66
/// The segment name
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
3
+ *
4
4
* Licensed under the Apache License, Version 2.0 (the "License").
5
5
* You may not use this file except in compliance with the License.
6
6
* A copy of the License is located at
7
- *
7
+ *
8
8
* http://aws.amazon.com/apache2.0
9
- *
9
+ *
10
10
* or in the "license" file accompanying this file. This file is distributed
11
11
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
12
* express or implied. See the License for the specific language governing
13
13
* permissions and limitations under the License.
14
14
*/
15
15
16
+ using System ;
16
17
using AWS . Lambda . Powertools . Common ;
17
18
using AWS . Lambda . Powertools . Tracing . Internal ;
18
19
@@ -105,6 +106,7 @@ namespace AWS.Lambda.Powertools.Tracing;
105
106
/// }
106
107
/// </code>
107
108
/// </example>
109
+ [ AttributeUsage ( AttributeTargets . Method ) ]
108
110
public class TracingAttribute : MethodAspectAttribute
109
111
{
110
112
/// <summary>
You can’t perform that action at this time.
0 commit comments