Skip to content

Commit

Permalink
moved tracing to Connection. Removed from Database/Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
birschick-bq committed Nov 8, 2024
1 parent 49f9a72 commit 4af814a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion csharp/src/Drivers/Apache/Hive2/HiveServer2Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ private Task DequeueAndWrite(string state)

private Activity? StartActivity(string methodName) => StartActivity(ActivitySource, methodName);

private static Activity? StartActivity(ActivitySource? activitySource, string methodName) => activitySource?.StartActivity(typeof(HiveServer2Connection).FullName + "." + methodName, parentId: "");
private static Activity? StartActivity(ActivitySource? activitySource, string methodName) => activitySource?.StartActivity(typeof(HiveServer2Connection).FullName + "." + methodName);
}
}
4 changes: 0 additions & 4 deletions csharp/src/Drivers/Apache/Spark/SparkDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;

namespace Apache.Arrow.Adbc.Drivers.Apache.Spark
{
Expand All @@ -41,9 +39,7 @@ public override AdbcConnection Connect(IReadOnlyDictionary<string, string>? opti
.Concat(properties.Where(x => !options.Keys.Contains(x.Key, StringComparer.OrdinalIgnoreCase)))
.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
SparkConnection connection = SparkConnectionFactory.NewConnection(mergedProperties);

connection.OpenAsync().Wait();

return connection;
}
}
Expand Down
4 changes: 0 additions & 4 deletions csharp/src/Drivers/Apache/Spark/SparkDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
* limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Text.Json;

namespace Apache.Arrow.Adbc.Drivers.Apache.Spark
{
Expand Down

0 comments on commit 4af814a

Please sign in to comment.