You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2025/04/21 04:15:32 UTC
(skywalking-cli) branch master updated: Fix wrong process id format (#215)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 6e2413a Fix wrong process id format (#215)
6e2413a is described below
commit 6e2413a14af714b00cdfe95f11e47a4a2a26480a
Author: mrproliu <74...@qq.com>
AuthorDate: Mon Apr 21 12:15:27 2025 +0800
Fix wrong process id format (#215)
---
CHANGES.md | 2 ++
internal/commands/interceptor/process.go | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/CHANGES.md b/CHANGES.md
index fa7d53e..70bed05 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -15,6 +15,8 @@ Release Notes.
### Bug Fixes
+* Fix wrong process id format by @mrproliu in https://github.com/apache/skywalking-cli/pull/215
+
0.14.0
------------------
diff --git a/internal/commands/interceptor/process.go b/internal/commands/interceptor/process.go
index 9fbc7f2..fd80855 100644
--- a/internal/commands/interceptor/process.go
+++ b/internal/commands/interceptor/process.go
@@ -83,7 +83,7 @@ func parseProcess(required bool, idFlagName, nameFlagName, instanceIDFlagName st
if instanceID == "" {
return fmt.Errorf(`"--%s" is specified but its related service name or id is not given`, nameFlagName)
}
- id = fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s_%s", instanceID, name))))
+ id = fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s_%s", name, instanceID))))
}
return ctx.Set(idFlagName, id)