Skip to content

Commit 094badd

Browse files
Remove unused helper method (#215)
1 parent bbc5b2a commit 094badd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Telemetry/TelemetryUtils.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Collections.Generic;
65
using Microsoft.Data.SqlClient;
76

@@ -19,16 +18,6 @@ public static void AddConnectionProps(this IDictionary<string, string> props, Sq
1918
props.Add(TelemetryPropertyName.ServerVersion.ToString(), conn.ServerVersion);
2019
}
2120

22-
/// <summary>
23-
/// Adds common exception properties to the property bag for a telemetry event.
24-
/// </summary>
25-
/// <param name="props"></param>
26-
/// <param name="ex">The exception to add properties of</param>
27-
public static void AddExceptionProps(this IDictionary<string, string> props, Exception ex)
28-
{
29-
props.Add(TelemetryPropertyName.ExceptionType.ToString(), ex?.GetType().Name ?? "");
30-
}
31-
3221
/// <summary>
3322
/// Returns a dictionary with common connection properties for the specified connection.
3423
/// </summary>

0 commit comments

Comments
 (0)