-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #574 from aws-powertools/develop
chore: Sync main and develop release 1.9.1
- Loading branch information
Showing
5 changed files
with
70 additions
and
7 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
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
46 changes: 46 additions & 0 deletions
46
libraries/tests/AWS.Lambda.Powertools.Tracing.Tests/Handlers/FunctionHandlerForGeneric.cs
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,46 @@ | ||
using System.Globalization; | ||
using System.Threading.Tasks; | ||
|
||
namespace AWS.Lambda.Powertools.Tracing.Tests.Handlers; | ||
|
||
public class FunctionHandlerForGeneric | ||
{ | ||
[Tracing(CaptureMode = TracingCaptureMode.ResponseAndError)] | ||
public async Task<string> Handle(string input) | ||
{ | ||
GenericMethod<int>(1); | ||
GenericMethod<double>(2); | ||
|
||
GenericMethod<int>(1); | ||
|
||
GenericMethod<int>(); | ||
GenericMethod<double>(); | ||
|
||
GenericMethod2<int>(1); | ||
GenericMethod2<double>(2); | ||
|
||
GenericMethod<int>(); | ||
GenericMethod<double>(); | ||
|
||
await Task.Delay(1); | ||
|
||
return input.ToUpper(CultureInfo.InvariantCulture); | ||
} | ||
|
||
[Tracing] | ||
private T GenericMethod<T>(T x) | ||
{ | ||
return default; | ||
} | ||
|
||
[Tracing] | ||
private T GenericMethod<T>() | ||
{ | ||
return default; | ||
} | ||
|
||
[Tracing] | ||
private void GenericMethod2<T>(T x) | ||
{ | ||
} | ||
} |
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