Skip to content

Commit 71c123a

Browse files
committed
renames UpstreamAddress to ServerAddress - I think this name is clearer
1 parent 37fbf26 commit 71c123a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func New(cfg *config.Config) *Agent {
2626
activeProfiles: make(map[int]*ProfileSession),
2727
u: remote.New(remote.RemoteConfig{
2828
UpstreamThreads: cfg.Agent.UpstreamThreads,
29-
UpstreamAddress: cfg.Agent.UpstreamAddress,
29+
UpstreamAddress: cfg.Agent.ServerAddress,
3030
UpstreamRequestTimeout: cfg.Agent.UpstreamRequestTimeout,
3131
}),
3232
}

pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Agent struct {
2020
// AgentCMD []string
2121
AgentSpyName string `desc:"name of the spy you want to use"` // TODO: add options
2222
AgentPID int `def:"-1" desc:"pid of the process you want to spy on"`
23-
UpstreamAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
23+
ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
2424
UpstreamThreads int `def:"4"`
2525
UpstreamRequestTimeout time.Duration `def:"10s"`
2626
UNIXSocketPath string `def:"/var/run/pyroscope-agent.sock" desc:"path to a UNIX socket file"`
@@ -59,7 +59,7 @@ type Exec struct {
5959
SpyName string `def:"auto"`
6060
ApplicationName string `def:"" desc:"application name used when uploading profiling data"`
6161
DetectSubprocesses bool `def:"true"`
62-
UpstreamAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
62+
ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
6363
UpstreamThreads int `def:"4" desc:"number of upload threads"`
6464
UpstreamRequestTimeout time.Duration `def:"10s"`
6565
NoLogging bool `def:"false" desc:"disables logging from pyroscope"`

pkg/exec/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func Cli(cfg *config.Config, args []string) error {
6262
return err
6363
}
6464
u := remote.New(remote.RemoteConfig{
65-
UpstreamAddress: cfg.Exec.UpstreamAddress,
65+
UpstreamAddress: cfg.Exec.ServerAddress,
6666
UpstreamThreads: cfg.Exec.UpstreamThreads,
6767
UpstreamRequestTimeout: cfg.Exec.UpstreamRequestTimeout,
6868
})

0 commit comments

Comments
 (0)