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)