Skip to content

Commit

Permalink
Remove invalid profiler method integrations (#2349)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed May 13, 2024
1 parent 1025061 commit aaa175f
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 315 deletions.
12 changes: 6 additions & 6 deletions build/build.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<PackageReference Include="Bullseye" Version="3.5.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20427.1" />

<PackageReference Include="Fake.Core.Environment" Version="5.20.4" />
<PackageReference Include="Fake.Core.SemVer" Version="5.20.4" />
<PackageReference Include="Fake.DotNet.MsBuild" Version="5.20.4" />
<PackageReference Include="Fake.IO.FileSystem" Version="5.20.4" />
<PackageReference Include="Fake.IO.Zip" Version="5.20.4" />
<PackageReference Include="Fake.Tools.Git" Version="5.20.4" />
<PackageReference Include="Fake.Core.Environment" Version="6.0.0" />
<PackageReference Include="Fake.Core.SemVer" Version="6.0.0" />
<PackageReference Include="Fake.DotNet.MsBuild" Version="6.0.0" />
<PackageReference Include="Fake.IO.FileSystem" Version="6.0.0" />
<PackageReference Include="Fake.IO.Zip" Version="6.0.0" />
<PackageReference Include="Fake.Tools.Git" Version="6.0.0" />

<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

Expand Down
3 changes: 2 additions & 1 deletion build/scripts/Build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ module Build =
DotNet.Exec [target; projectOrSln; "-c"; "Release"; "-v"; "q"; "--nologo"]

let private msBuild target projectOrSln =
MSBuild.build (fun p ->
MSBuild.build (fun (p: MSBuildParams) ->
{ p with
Verbosity = Some(Quiet)
Targets = [target]
Properties = [
"Configuration", "Release"
"Optimize", "True"
"dummy", "test" // See https://github.com/fsprojects/FAKE/issues/2738
]
// current version of Fake MSBuild module does not support latest bin log file
// version of MSBuild in VS 16.8, so disable for now.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,7 @@ namespace Elastic.Apm.Profiler.Managed.Integrations.AdoNet
/// CallTarget instrumentation for:
/// int [Command].ExecuteNonQuery(CommandBehavior)
/// </summary>
[InstrumentMySqlAttribute(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentOracleManagedDataAccess(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentOracleManagedDataAccessCore(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentMicrosoftDataSqlite(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSqlite(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSql(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSqlClient(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentMicrosoftDataSqlClient(Method = ExecuteNonQuery, ReturnType = ClrTypeNames.Int32, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
public class CommandExecuteNonQueryWithBehaviorIntegration
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@ namespace Elastic.Apm.Profiler.Managed.Integrations.AdoNet
/// CallTarget instrumentation for:
/// object [Command].ExecuteScalar(CommandBehavior)
/// </summary>
[InstrumentMySqlAttribute(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentOracleManagedDataAccess(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object,
ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentOracleManagedDataAccessCore(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object,
ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentMicrosoftDataSqlite(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object,
ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSqlite(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSql(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object, ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentSystemDataSqlClient(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object,
ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
[InstrumentMicrosoftDataSqlClient(Method = ExecuteScalar, ReturnType = ClrTypeNames.Object,
ParameterTypes = new[] { AdoNetTypeNames.CommandBehavior })]
public class CommandExecuteScalarWithBehaviorIntegration
{
/// <summary>
Expand Down
Loading

0 comments on commit aaa175f

Please sign in to comment.