Skip to content

Commit

Permalink
fix integration
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-git committed Dec 26, 2024
1 parent b2453a7 commit a8e92be
Show file tree
Hide file tree
Showing 6 changed files with 421 additions and 425 deletions.
8 changes: 4 additions & 4 deletions tracer/build/supported_calltargets.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@
{
"IntegrationName": "AspNetCore",
"AssemblyName": "Microsoft.AspNetCore.Identity",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1",
"TargetMethodName": "PasswordSignInAsync",
"TargetReturnType": "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
"TargetParameterTypes": [
Expand All @@ -1077,7 +1077,7 @@
{
"IntegrationName": "AspNetCore",
"AssemblyName": "Microsoft.AspNetCore.Identity",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1",
"TargetMethodName": "PasswordSignInAsync",
"TargetReturnType": "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
"TargetParameterTypes": [
Expand All @@ -1104,7 +1104,7 @@
{
"IntegrationName": "AspNetCore",
"AssemblyName": "Microsoft.AspNetCore.Identity",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1",
"TargetMethodName": "PasswordSignInAsync",
"TargetReturnType": "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
"TargetParameterTypes": [
Expand All @@ -1131,7 +1131,7 @@
{
"IntegrationName": "AspNetCore",
"AssemblyName": "Microsoft.AspNetCore.Identity",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
"TargetTypeName": "Microsoft.AspNetCore.Identity.SignInManager`1",
"TargetMethodName": "PasswordSignInAsync",
"TargetReturnType": "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
"TargetParameterTypes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
// </copyright>

#if !NETFRAMEWORK
using System;
using System.ComponentModel;
using System.Threading.Tasks;
using Datadog.Trace.AppSec;
using Datadog.Trace.ClrProfiler.CallTarget;
using Datadog.Trace.Configuration;
using Microsoft.AspNetCore.Http;

namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
using System.ComponentModel;
using Datadog.Trace.AppSec;
using Datadog.Trace.AppSec.Coordinator;
using Datadog.Trace.AppSec.Waf;
using Datadog.Trace.ClrProfiler.CallTarget;
using Datadog.Trace.Configuration;
using Datadog.Trace.DuckTyping;
using Datadog.Trace.Iast;
using Microsoft.AspNetCore.Http;

namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore
{
Expand All @@ -25,7 +22,7 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore
TypeName = "Microsoft.AspNetCore.Mvc.ModelBinding.DefaultModelBindingContext",
MethodName = "set_Result",
ReturnTypeName = ClrNames.Void,
ParameterTypeNames = new[] { "Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult" },
ParameterTypeNames = ["Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult"],
MinimumVersion = "2.0.0.0",
MaximumVersion = SupportedVersions.LatestDotNet,
IntegrationName = IntegrationName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.UserEvents;
/// </summary>
[InstrumentMethod(
AssemblyName = AssemblyName,
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1",
MethodName = "PasswordSignInAsync",
ParameterTypeNames = [ClrNames.String, ClrNames.String, ClrNames.Bool, ClrNames.Bool],
ReturnTypeName = "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
Expand All @@ -36,7 +36,7 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.UserEvents;
InstrumentationCategory = InstrumentationCategory.AppSec)]
[InstrumentMethod(
AssemblyName = AssemblyName,
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1",
MethodName = "PasswordSignInAsync",
ParameterTypeNames = [ClrNames.String, ClrNames.String, ClrNames.Bool, ClrNames.Bool],
ReturnTypeName = "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.UserEvents;
/// </summary>
[InstrumentMethod(
AssemblyName = AssemblyName,
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1",
MethodName = "PasswordSignInAsync",
ParameterTypeNames = ["!0", ClrNames.String, ClrNames.Bool, ClrNames.Bool],
ReturnTypeName = "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
Expand All @@ -36,7 +36,7 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AspNetCore.UserEvents;
InstrumentationCategory = InstrumentationCategory.AppSec)]
[InstrumentMethod(
AssemblyName = AssemblyName,
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1<!!0>",
TypeName = "Microsoft.AspNetCore.Identity.SignInManager`1",
MethodName = "PasswordSignInAsync",
ParameterTypeNames = [ClrNames.String, ClrNames.String, ClrNames.Bool, ClrNames.Bool],
ReturnTypeName = "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Identity.SignInResult]",
Expand Down
Loading

0 comments on commit a8e92be

Please sign in to comment.