mirror of https://github.com/abpframework/abp.git
Browse Source
Moved all telemetry-related classes and interfaces into the `Volo.Abp.Internal.Telemetry` namespace for better encapsulation and to delineate internal implementation details. This change helps improve code organization and maintainability.issue-#6768
59 changed files with 134 additions and 148 deletions
@ -1,9 +1,9 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Telemetry.Constants; |
|||
using Volo.Abp.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Internal.Telemetry.Constants; |
|||
using Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity; |
|||
|
|||
public class ActivityContext |
|||
{ |
|||
@ -1,8 +1,8 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Telemetry.Constants; |
|||
using Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity; |
|||
|
|||
public class ActivityEvent : Dictionary<string, object> |
|||
{ |
|||
@ -1,7 +1,6 @@ |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity; |
|||
|
|||
static internal class ActivityEventExtensions |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Contracts; |
|||
|
|||
public interface IHasParentTelemetryActivityEventEnricher |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Contracts; |
|||
|
|||
public interface ITelemetryActivityEventBuilder |
|||
{ |
|||
@ -1,7 +1,6 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Contracts; |
|||
|
|||
public interface ITelemetryActivityEventEnricher |
|||
{ |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Contracts; |
|||
|
|||
public interface ITelemetryActivityStorage |
|||
{ |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using System.Text.Json; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity; |
|||
|
|||
static internal class JsonElementExtensions |
|||
{ |
|||
@ -1,12 +1,12 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Telemetry.Activity.Contracts; |
|||
using System.Linq; |
|||
using Volo.Abp.Internal.Telemetry.Activity.Contracts; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Providers; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Providers; |
|||
|
|||
public abstract class TelemetryActivityEventEnricher : ITelemetryActivityEventEnricher, IScopedDependency |
|||
{ |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Storage; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Storage; |
|||
|
|||
public class TelemetryActivityStorageState |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Abp.Telemetry.Activity.Storage; |
|||
namespace Volo.Abp.Internal.Telemetry.Activity.Storage; |
|||
|
|||
public class TelemetryPeriod |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public static class AbpPlatformUrls |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public static class ActivityNameConsts |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public static class ActivityPropertyNames |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public class DeviceKeyHelper |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants.Enums; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
public enum AbpTool : byte |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants.Enums; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
public enum OperationSystem |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants.Enums; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
public enum SessionType |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants.Enums; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
public enum SoftwareType : byte |
|||
{ |
|||
@ -1,4 +1,4 @@ |
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public class TelemetryConsts |
|||
{ |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using System.IO; |
|||
|
|||
namespace Volo.Abp.Telemetry.Constants; |
|||
namespace Volo.Abp.Internal.Telemetry.Constants; |
|||
|
|||
public static class TelemetryPaths |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
|
|||
internal interface ISoftwareDetector |
|||
{ |
|||
@ -1,8 +1,7 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
|
|||
internal interface ISoftwareInfoProvider |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using Volo.Abp.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
|
|||
internal class SoftwareInfo(string name, string? version, string? uiTheme, SoftwareType softwareType) |
|||
{ |
|||
@ -1,12 +1,12 @@ |
|||
using System.IO; |
|||
using System.Text.Json; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Telemetry.Constants; |
|||
using Volo.Abp.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Core; |
|||
using Volo.Abp.Internal.Telemetry.Constants; |
|||
using Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Core; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Detectors; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Detectors; |
|||
|
|||
internal sealed class AbpStudioDetector : SoftwareDetector |
|||
{ |
|||
@ -1,10 +1,10 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Core; |
|||
using Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Core; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Detectors; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Detectors; |
|||
|
|||
internal sealed class DotnetSdkDetector : SoftwareDetector |
|||
{ |
|||
@ -1,10 +1,10 @@ |
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Core; |
|||
using Volo.Abp.Internal.Telemetry.Constants.Enums; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Core; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Detectors; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Detectors; |
|||
|
|||
internal class NodeJsDetector : SoftwareDetector |
|||
{ |
|||
@ -1,9 +1,9 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Telemetry.EnvironmentInspection.Contracts; |
|||
using Volo.Abp.Internal.Telemetry.EnvironmentInspection.Contracts; |
|||
|
|||
namespace Volo.Abp.Telemetry.EnvironmentInspection.Providers; |
|||
namespace Volo.Abp.Internal.Telemetry.EnvironmentInspection.Providers; |
|||
|
|||
internal class SoftwareInfoProvider : ISoftwareInfoProvider , ISingletonDependency |
|||
{ |
|||
@ -1,12 +1,11 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
using System.Text.Json; |
|||
|
|||
namespace Volo.Abp.Telemetry.Helpers; |
|||
namespace Volo.Abp.Internal.Telemetry.Helpers; |
|||
|
|||
static internal class AbpProjectMetadataReader |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Abp.Telemetry.Helpers; |
|||
namespace Volo.Abp.Internal.Telemetry.Helpers; |
|||
|
|||
internal class AbpProjectMetaData |
|||
{ |
|||
@ -1,6 +1,6 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.Telemetry; |
|||
namespace Volo.Abp.Internal.Telemetry; |
|||
|
|||
public interface ITelemetryActivitySender |
|||
{ |
|||
Loading…
Reference in new issue