Remove Sentry (#49)

* Revert SQLite to allow side by side

* Update Serilog to 3.1.1 and remove Sentry

* fmt

* Revert serilog change
This commit is contained in:
Adam Hathcock
2024-07-29 16:10:26 +01:00
committed by GitHub
parent 1f92335d6d
commit e79716c5f0
18 changed files with 121 additions and 356 deletions
+2 -2
View File
@@ -6,8 +6,6 @@
<PackageVersion Include="Polly" Version="7.2.3" />
<PackageVersion Include="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
<PackageVersion Include="Polly.Extensions.Http" Version="3.0.0" />
<PackageVersion Include="Sentry" Version="3.33.0" />
<PackageVersion Include="Sentry.Serilog" Version="3.33.0" />
<PackageVersion Include="Serilog" Version="2.12.0" />
<PackageVersion Include="Serilog.Enrichers.ClientInfo" Version="1.3.0" />
<PackageVersion Include="Serilog.Exceptions" Version="8.4.0" />
@@ -28,6 +26,8 @@
<PackageVersion Include="Glob" Version="1.1.9" />
<PackageVersion Include="SimpleExec" Version="12.0.0" />
<PackageVersion Include="MongoDB.Driver" Version="2.19.2" />
<!-- this was the previous version used -->
<PackageVersion Include="System.Text.Json" Version="5.0.2" />
<GlobalPackageReference Include="PolySharp" Version="1.14.1" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<GlobalPackageReference Include="GitVersion.MsBuild" Version="5.12.0" />
+15
View File
@@ -12,6 +12,21 @@ const string TEST = "test";
const string INTEGRATION = "integration";
const string PACK = "pack";
const string PACK_LOCAL = "pack-local";
const string CLEAN_LOCKS = "clean-locks";
Target(
CLEAN_LOCKS,
() =>
{
foreach (var f in Glob.Files(".", "**/*.lock.json"))
{
Console.WriteLine("Found and will delete: " + f);
File.Delete(f);
}
Console.WriteLine("Running restore now.");
Run("dotnet", "restore .\\Speckle.Sdk.sln");
}
);
Target(
CLEAN,
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GraphQL;
using Sentry;
namespace Speckle.Core.Logging;
public class SpeckleException : Exception
-51
View File
@@ -1,9 +1,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using Sentry;
using Serilog;
using Serilog.Core;
using Serilog.Events;
@@ -37,11 +34,6 @@ public sealed class SpeckleLogConfiguration
/// </summary>
public bool LogToFile { get; }
/// <summary>
/// Flag to enable Sentry sink
/// </summary>
public bool LogToSentry { get; }
/// <summary>
/// Flag to enable Seq sink
/// </summary>
@@ -66,14 +58,12 @@ public sealed class SpeckleLogConfiguration
/// <param name="minimumLevel">Log events bellow this level are silently dropped</param>
/// <param name="logToConsole">Flag to enable console log sink</param>
/// <param name="logToSeq">Flag to enable Seq log sink</param>
/// <param name="logToSentry">Flag to enable Sentry log sink</param>
/// <param name="logToFile">Flag to enable File log sink</param>
/// <param name="enhancedLogContext">Flag to enable enhanced context on every log event</param>
public SpeckleLogConfiguration(
LogEventLevel minimumLevel = LogEventLevel.Debug,
bool logToConsole = true,
bool logToSeq = true,
bool logToSentry = true,
bool logToFile = true,
bool enhancedLogContext = true,
string sentryDns = DEFAULT_SENTRY_DNS
@@ -82,7 +72,6 @@ public sealed class SpeckleLogConfiguration
MinimumLevel = minimumLevel;
LogToConsole = logToConsole;
LogToSeq = logToSeq;
LogToSentry = logToSentry;
LogToFile = logToFile;
EnhancedLogContext = enhancedLogContext;
SentryDns = sentryDns;
@@ -139,17 +128,6 @@ public static class SpeckleLog
var id = GetUserIdFromDefaultAccount();
s_logger = s_logger.ForContext("id", id).ForContext("isMachineId", s_isMachineIdUsed);
// Configure scope after logger created.
SentrySdk.ConfigureScope(scope =>
{
scope.User = new User { Id = id };
});
SentrySdk.ConfigureScope(scope =>
{
scope.SetTag("hostApplication", hostApplicationName);
});
Logger
.ForContext("userApplicationDataPath", SpecklePathProvider.UserApplicationDataPath())
.ForContext("installApplicationDataPath", SpecklePathProvider.InstallApplicationDataPath)
@@ -223,35 +201,6 @@ public static class SpeckleLog
);
}
if (logConfiguration.LogToSentry)
{
const string ENV =
#if DEBUG
"dev";
#else
"production";
#endif
serilogLogConfiguration = serilogLogConfiguration.WriteTo.Sentry(o =>
{
o.Dsn = logConfiguration.SentryDns;
o.Debug = false;
o.Environment = ENV;
o.Release = "SpeckleCore@" + Assembly.GetExecutingAssembly().GetName().Version;
o.AttachStacktrace = true;
o.StackTraceMode = StackTraceMode.Enhanced;
// Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
o.TracesSampleRate = 1.0;
// Enable Global Mode if running in a client app
o.IsGlobalModeEnabled = true;
// Debug and higher are stored as breadcrumbs (default is Information)
o.MinimumBreadcrumbLevel = LogEventLevel.Debug;
// Warning and higher is sent as event (default is Error)
o.MinimumEventLevel = LogEventLevel.Error;
});
}
var logger = serilogLogConfiguration.CreateLogger();
if (logConfiguration.LogToFile && !canLogToFile)
@@ -1,4 +1,4 @@
using System;
using ObsoleteAttribute = System.ObsoleteAttribute;
namespace Speckle.Core.Models;
@@ -1,13 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading;
using Sentry;
using Speckle.Core.Common;
using Speckle.Core.Logging;
using Speckle.Core.Models;
+2 -2
View File
@@ -11,6 +11,7 @@
<IsPackable>true</IsPackable>
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.RequiresLocationAttribute</PolySharpExcludeGeneratedTypes>
<Configurations>Debug;Release;Local</Configurations>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
@@ -25,8 +26,6 @@
<PackageReference Include="Polly" />
<PackageReference Include="Polly.Contrib.WaitAndRetry" />
<PackageReference Include="Polly.Extensions.Http" />
<PackageReference Include="Sentry" />
<PackageReference Include="Sentry.Serilog" />
<PackageReference Include="Serilog" />
<PackageReference Include="Serilog.Enrichers.ClientInfo" />
<PackageReference Include="Serilog.Exceptions" />
@@ -36,6 +35,7 @@
<PackageReference Include="Speckle.Newtonsoft.Json" />
<PackageReference Include="Microsoft.Data.Sqlite" />
<PackageReference Include="Speckle.DoubleNumerics" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>
</Project>
+15 -50
View File
@@ -81,26 +81,6 @@
"resolved": "1.14.1",
"contentHash": "mOOmFYwad3MIOL14VCjj02LljyF1GNw1wP0YVlxtcPvqdxjGGMNdNJJxHptlry3MOd8b40Flm8RPOM8JOlN2sQ=="
},
"Sentry": {
"type": "Direct",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A==",
"dependencies": {
"System.Reflection.Metadata": "5.0.0",
"System.Text.Json": "5.0.2"
}
},
"Sentry.Serilog": {
"type": "Direct",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.7.1"
}
},
"Serilog": {
"type": "Direct",
"requested": "[2.12.0, )",
@@ -175,6 +155,21 @@
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "Direct",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"GraphQL.Client.Abstractions": {
"type": "Transitive",
"resolved": "6.0.0",
@@ -366,14 +361,6 @@
"resolved": "4.5.1",
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
"dependencies": {
"System.Memory": "4.5.4"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -398,14 +385,6 @@
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "5.0.0"
}
},
"System.Reflection.TypeExtensions": {
"type": "Transitive",
"resolved": "4.7.0",
@@ -442,20 +421,6 @@
"System.Memory": "4.5.4"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -9,6 +9,7 @@
<PackageTags>$(PackageTags), objects</PackageTags>
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.RequiresLocationAttribute</PolySharpExcludeGeneratedTypes>
<Configurations>Debug;Release;Local</Configurations>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
+17 -53
View File
@@ -230,14 +230,6 @@
"resolved": "4.5.1",
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
"dependencies": {
"System.Memory": "4.5.4"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -262,14 +254,6 @@
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "5.0.0"
}
},
"System.Reflection.TypeExtensions": {
"type": "Transitive",
"resolved": "4.7.0",
@@ -306,20 +290,6 @@
"System.Memory": "4.5.4"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -337,8 +307,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -346,7 +314,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"GraphQL.Client": {
@@ -397,26 +366,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A==",
"dependencies": {
"System.Reflection.Metadata": "5.0.0",
"System.Text.Json": "5.0.2"
}
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.7.1"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -484,6 +433,21 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
}
}
}
+17 -53
View File
@@ -230,14 +230,6 @@
"resolved": "4.5.1",
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
"dependencies": {
"System.Memory": "4.5.4"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -262,14 +254,6 @@
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "5.0.0"
}
},
"System.Reflection.TypeExtensions": {
"type": "Transitive",
"resolved": "4.7.0",
@@ -306,20 +290,6 @@
"System.Memory": "4.5.4"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -337,8 +307,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -346,7 +314,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"GraphQL.Client": {
@@ -397,26 +366,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A==",
"dependencies": {
"System.Reflection.Metadata": "5.0.0",
"System.Text.Json": "5.0.2"
}
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.7.1"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -484,6 +433,21 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
}
}
}
@@ -331,14 +331,6 @@
"resolved": "4.5.1",
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "FXkLXiK0sVVewcso0imKQoOxjoPAj42R8HtjjbSjVPAzwDfzoyoznWxgA3c38LDbN9SJux1xXoXYAhz98j7r2g==",
"dependencies": {
"System.Memory": "4.5.4"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -363,14 +355,6 @@
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "5.0.0"
}
},
"System.Reflection.TypeExtensions": {
"type": "Transitive",
"resolved": "4.7.0",
@@ -428,20 +412,6 @@
"System.Memory": "4.5.4"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.5.4",
@@ -468,8 +438,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -477,7 +445,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"GraphQL.Client": {
@@ -528,26 +497,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A==",
"dependencies": {
"System.Reflection.Metadata": "5.0.0",
"System.Text.Json": "5.0.2"
}
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.7.1"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -615,6 +564,21 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
}
}
}
@@ -340,8 +340,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -349,7 +347,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"speckle.objects": {
@@ -406,22 +405,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A=="
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.10.0"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -489,6 +472,12 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ=="
}
}
}
@@ -340,8 +340,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -349,7 +347,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"speckle.core.tests.unit": {
@@ -418,22 +417,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A=="
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.10.0"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -501,6 +484,12 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ=="
}
}
}
+1 -2
View File
@@ -10,8 +10,7 @@ namespace Speckle.Core.Tests.Unit;
[SetUpFixture]
public class SetUp
{
public static SpeckleLogConfiguration TestLogConfig { get; } =
new(logToFile: false, logToSeq: false, logToSentry: false);
public static SpeckleLogConfiguration TestLogConfig { get; } = new(logToFile: false, logToSeq: false);
[OneTimeSetUp]
public void BeforeAll()
@@ -106,8 +106,7 @@ public class SpeckleLogTests : IDisposable
{
const string TEST_MESSAGE = "This is my test message";
SpeckleLogConfiguration config =
new(logToConsole: shouldWrite, logToSeq: false, logToSentry: false, logToFile: false);
SpeckleLogConfiguration config = new(logToConsole: shouldWrite, logToSeq: false, logToFile: false);
using var logger = SpeckleLog.CreateConfiguredLogger("My Test Host App!!", null, config);
logger.Fatal(TEST_MESSAGE);
@@ -340,8 +340,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -349,7 +347,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"speckle.transports.disk": {
@@ -406,22 +405,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A=="
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.10.0"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -489,6 +472,12 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ=="
}
}
}
@@ -303,8 +303,6 @@
"Polly": "[7.2.3, )",
"Polly.Contrib.WaitAndRetry": "[1.1.1, )",
"Polly.Extensions.Http": "[3.0.0, )",
"Sentry": "[3.33.0, )",
"Sentry.Serilog": "[3.33.0, )",
"Serilog": "[2.12.0, )",
"Serilog.Enrichers.ClientInfo": "[1.3.0, )",
"Serilog.Exceptions": "[8.4.0, )",
@@ -312,7 +310,8 @@
"Serilog.Sinks.Seq": "[5.2.2, )",
"SerilogTimings": "[3.0.1, )",
"Speckle.DoubleNumerics": "[4.0.1, )",
"Speckle.Newtonsoft.Json": "[13.0.2, )"
"Speckle.Newtonsoft.Json": "[13.0.2, )",
"System.Text.Json": "[5.0.2, )"
}
},
"speckle.objects": {
@@ -369,22 +368,6 @@
"Polly": "7.1.0"
}
},
"Sentry": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "8vbD2o6IR2wrRrkSiRbnodWGWUOqIlwYtzpjvPNOb5raJdOf+zxMwfS8f6nx9bmrTTfDj7KrCB8C/5OuicAc8A=="
},
"Sentry.Serilog": {
"type": "CentralTransitive",
"requested": "[3.33.0, )",
"resolved": "3.33.0",
"contentHash": "V8BU7QGWg2qLYfNPqtuTBhC1opysny5l+Ifp6J6PhOeAxU0FssR7nYfbJVetrnLIoh2rd3DlJ6hHYYQosQYcUQ==",
"dependencies": {
"Sentry": "3.33.0",
"Serilog": "2.10.0"
}
},
"Serilog": {
"type": "CentralTransitive",
"requested": "[2.12.0, )",
@@ -452,6 +435,12 @@
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "g1BejUZwax5PRfL6xHgLEK23sqHWOgOj9hE7RvfRRlN00AGt8GnPYt8HedSK7UB3HiRW8zCA9Pn0iiYxCK24BA=="
},
"System.Text.Json": {
"type": "CentralTransitive",
"requested": "[5.0.2, )",
"resolved": "5.0.2",
"contentHash": "I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ=="
}
}
}