这是indexloc提供的服务,不要输入任何密码
Skip to content

Data collection #23343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: rel-9.3
Choose a base branch
from
Open

Data collection #23343

wants to merge 2 commits into from

Conversation

ekaradev
Copy link
Member

No description provided.

@ekaradev ekaradev added this to the 9.3-final milestone Jul 21, 2025
@ekaradev ekaradev changed the title data collection implementation Data collection Jul 21, 2025
@ekaradev ekaradev requested a review from hikalkan July 22, 2025 06:49
@ekaradev ekaradev marked this pull request as ready for review July 22, 2025 06:49

public static class ActivityPropertyNames
{
public const string SessionId = "SessionId";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an extra space here

@@ -184,5 +184,6 @@
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="ConfigureAwait.Fody" Version="3.3.2" />
<PackageVersion Include="Fody" Version="6.9.2" />
<PackageVersion Include="System.Management" Version="9.0.1"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other lines uses space but this line uses tab. We can change it to spaces

}
catch (System.Exception ex)
{
System.Console.WriteLine("WARNING ABP-LIC-0025! Contact to license@abp.io with the below information" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this log

System.Environment.NewLine +
"* Error: " + ex.ToString());

return "95929008-b147-454a-8737-efed71fa2241";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not required, we can return empty string here

{
var outputBuilder = new StringBuilder();

var processStartInfo = new ProcessStartInfo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use CmdHelper here. There is a bug/problem running commands in MAC computers, so fixing it in CmdHelper will prevent future problems about data collection.


using (var process = new System.Diagnostics.Process())
{
process.StartInfo = new System.Diagnostics.ProcessStartInfo(GetFileName())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use CmdHelper here.

try
{
using var process = new Process();
process.StartInfo = new ProcessStartInfo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use CmdHelper here


var process = new Process
{
StartInfo = new ProcessStartInfo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use CmdHelper here

Copy link

codecov bot commented Jul 25, 2025

Codecov Report

Attention: Patch coverage is 3.95683% with 1602 lines in your changes missing coverage. Please review.

Please upload report for BASE (rel-9.3@61e3807). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../Abp/Internal/Telemetry/Constants/DeviceManager.cs 0.00% 174 Missing ⚠️
...metry/Activity/Storage/TelemetryActivityStorage.cs 0.00% 129 Missing ⚠️
...ntInspection/Detectors/VisualStudioCodeDetector.cs 0.00% 95 Missing ⚠️
...o/Abp/Internal/Telemetry/Activity/ActivityEvent.cs 11.00% 89 Missing ⚠️
...rnal/Telemetry/Helpers/AbpPackageMetadataReader.cs 0.00% 86 Missing ⚠️
...ctivity/Providers/TelemetrySolutionInfoEnricher.cs 0.00% 85 Missing ⚠️
.../Abp/Internal/Telemetry/TelemetryActivitySender.cs 0.00% 71 Missing ⚠️
...y/EnvironmentInspection/Detectors/RiderDetector.cs 0.00% 68 Missing ⚠️
...onmentInspection/Detectors/VisualStudioDetector.cs 0.00% 65 Missing ⚠️
...re/Volo/Abp/Internal/Telemetry/TelemetryService.cs 0.00% 60 Missing ⚠️
... and 30 more
Additional details and impacted files
@@            Coverage Diff             @@
##             rel-9.3   #23343   +/-   ##
==========================================
  Coverage           ?   51.44%           
==========================================
  Files              ?     3257           
  Lines              ?   105450           
  Branches           ?     8065           
==========================================
  Hits               ?    54246           
  Misses             ?    49555           
  Partials           ?     1649           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@ismcagdas ismcagdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added few comments. The implementation is very good in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants