Skip to content

Commit 276e9ee

Browse files
committed
Changed the name of the known data key.
1 parent 9e42f80 commit 276e9ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Source/Shared/Extensions/EventExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public static void SetManualStackingInfo(this Event ev, IDictionary<string, stri
289289
if (signatureData == null || signatureData.Count == 0)
290290
return;
291291

292-
ev.Data[Event.KnownDataKeys.ManualStackingKey] = new StackingInfo(signatureData);
292+
ev.Data[Event.KnownDataKeys.StackingInfo] = new StackingInfo(signatureData);
293293
}
294294

295295
/// <summary>
@@ -302,7 +302,7 @@ public static void SetManualStackingInfo(this Event ev, string title, IDictionar
302302
if (String.IsNullOrWhiteSpace(title) || signatureData == null || signatureData.Count == 0)
303303
return;
304304

305-
ev.Data[Event.KnownDataKeys.ManualStackingKey] = new StackingInfo(title, signatureData);
305+
ev.Data[Event.KnownDataKeys.StackingInfo] = new StackingInfo(title, signatureData);
306306
}
307307

308308
/// <summary>
@@ -314,7 +314,7 @@ public static void SetManualStackingKey(this Event ev, string manualStackingKey)
314314
if (String.IsNullOrWhiteSpace(manualStackingKey))
315315
return;
316316

317-
ev.Data[Event.KnownDataKeys.ManualStackingKey] = new StackingInfo(null, new Dictionary<string, string> { { "ManualStackingKey", manualStackingKey } });
317+
ev.Data[Event.KnownDataKeys.StackingInfo] = new StackingInfo(null, new Dictionary<string, string> { { "ManualStackingKey", manualStackingKey } });
318318
}
319319

320320
/// <summary>
@@ -327,7 +327,7 @@ public static void SetManualStackingKey(this Event ev, string title, string manu
327327
if (String.IsNullOrWhiteSpace(title) || String.IsNullOrWhiteSpace(manualStackingKey))
328328
return;
329329

330-
ev.Data[Event.KnownDataKeys.ManualStackingKey] = new StackingInfo(title, new Dictionary<string, string> { { "ManualStackingKey", manualStackingKey } });
330+
ev.Data[Event.KnownDataKeys.StackingInfo] = new StackingInfo(title, new Dictionary<string, string> { { "ManualStackingKey", manualStackingKey } });
331331
}
332332

333333
public static T GetDataValue<T>(this Event ev, string key, IJsonSerializer serializer = null) {

Source/Shared/Models/Client/Event.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static class KnownDataKeys {
7878
public const string Version = "@version";
7979
public const string Level = "@level";
8080
public const string SubmissionMethod = "@submission_method";
81-
public const string ManualStackingKey = "@stack";
81+
public const string StackingInfo = "@stack";
8282
}
8383
}
8484
}

Source/Tests/Plugins/PluginTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void ConfigurationDefaults_SerializedProperties() {
6666
client.Configuration.DefaultData.Add(Event.KnownDataKeys.EnvironmentInfo, new EnvironmentInfo { MachineName = "blake" });
6767
client.Configuration.DefaultData.Add(Event.KnownDataKeys.Error, new Error { Message = "blake" });
6868
client.Configuration.DefaultData.Add(Event.KnownDataKeys.Level, "Debug");
69-
client.Configuration.DefaultData.Add(Event.KnownDataKeys.ManualStackingKey, "blake");
69+
client.Configuration.DefaultData.Add(Event.KnownDataKeys.StackingInfo, "blake");
7070
client.Configuration.DefaultData.Add(Event.KnownDataKeys.RequestInfo, new RequestInfo { Host = "blake" });
7171
client.Configuration.DefaultData.Add(Event.KnownDataKeys.SimpleError, new SimpleError { Message = "blake" });
7272
client.Configuration.DefaultData.Add(Event.KnownDataKeys.SubmissionMethod, "test");
@@ -87,7 +87,7 @@ public void ConfigurationDefaults_SerializedProperties() {
8787
Assert.Equal("blake", context.Event.GetError().Message);
8888
Assert.Equal("blake", context.Event.GetError(serializer).Message);
8989
Assert.Equal("Debug", context.Event.Data[Event.KnownDataKeys.Level]);
90-
Assert.Equal("blake", context.Event.Data[Event.KnownDataKeys.ManualStackingKey]);
90+
Assert.Equal("blake", context.Event.Data[Event.KnownDataKeys.StackingInfo]);
9191
Assert.True(context.Event.Data[Event.KnownDataKeys.RequestInfo] is string);
9292
Assert.Equal("blake", context.Event.GetRequestInfo().Host);
9393
Assert.Equal("blake", context.Event.GetRequestInfo(serializer).Host);

0 commit comments

Comments
 (0)