Skip to content

Commit

Permalink
Make ServerAddress configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Apr 29, 2021
1 parent f50b8e6 commit b584840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions neutral_cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
type Config struct {
registry string
applicationName string
serverAddress string
}

type NeutralCP struct {
Expand Down
2 changes: 1 addition & 1 deletion pyroscope.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func (n *NeutralCP) startPyroscope(ctx context.Context) error {
p, err := profiler.Start(profiler.Config{
ApplicationName: n.config.applicationName,

ServerAddress: "http://localhost:4040",
ServerAddress: n.config.serverAddress,

ProfileTypes: []profiler.ProfileType{
profiler.ProfileCPU,
Expand Down

0 comments on commit b584840

Please sign in to comment.