Merge pull request #607 from hjgraca/aot-tracing-support #1049
Annotations
21 warnings
build:
libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingAspect.cs#L82
XML comment has a param tag for 'instance', but there is no parameter by that name
|
build:
libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingAspect.cs#L85
XML comment has a param tag for 'hostType', but there is no parameter by that name
|
build:
libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingAspect.cs#L86
XML comment has a param tag for 'method', but there is no parameter by that name
|
build:
libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingAspect.cs#L87
XML comment has a param tag for 'returnType', but there is no parameter by that name
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/PowertoolsLogger.cs#L226
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/PowertoolsLogger.cs#L226
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/LoggingAspectHandler.cs#L322
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/LoggingAspectHandler.cs#L322
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/Converters/ExceptionConverter.cs#L89
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
|
build:
libraries/src/AWS.Lambda.Powertools.Logging/Internal/Converters/ExceptionConverter.cs#L89
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
build:
libraries/tests/AWS.Lambda.Powertools.Idempotency.Tests/Internal/LRUCacheTests.cs#L130
Test methods should not call ConfigureAwait(false), as it may bypass parallelization limits. Omit ConfigureAwait, or use ConfigureAwait(true) to avoid CA2007. (https://xunit.net/xunit.analyzers/rules/xUnit1030)
|
build:
examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L80
'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L81
Dereference of a possibly null reference.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L90
Dereference of a possibly null reference.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L80
'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L81
Dereference of a possibly null reference.
|
build:
examples/Parameters/cfn/HelloWorld.Cfn/Function.cs#L90
Dereference of a possibly null reference.
|
build:
examples/ServerlessApi/test/LambdaPowertoolsAPI.Tests/ValuesControllerTests.cs#L43
Possible null reference argument for parameter 'request' in 'Task<APIGatewayProxyResponse> LambdaEntryPoint.FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext)'.
|
build:
examples/ServerlessApi/test/LambdaPowertoolsAPI.Tests/ValuesControllerTests.cs#L43
Possible null reference argument for parameter 'request' in 'Task<APIGatewayProxyResponse> LambdaEntryPoint.FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext)'.
|