Skip to content

Commit 80752a3

Browse files
committed
update profiling url
1 parent b3e458e commit 80752a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tracker/config.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ func newConfig(opts ...Options) *Config {
8383
c.enableProfiling = true
8484
c.fluentHost = "localhost"
8585
profilingServerUrl := os.Getenv("MW_PROFILING_SERVER_URL")
86-
if profilingServerUrl == "" {
87-
profilingServerUrl = "https://profiling.middleware.io"
88-
}
8986
authUrl := os.Getenv("MW_AUTH_URL")
9087
if authUrl == "" {
9188
authUrl = "https://app.middleware.io/api/v1/auth"
@@ -214,7 +211,9 @@ func newConfig(opts ...Options) *Config {
214211
log.Println("Failed to retrieve TenantID from api response")
215212
return c
216213
}
217-
profilingServerUrl = fmt.Sprint("https://" + account + ".middleware.io")
214+
if profilingServerUrl == "" {
215+
profilingServerUrl = fmt.Sprint("https://" + account + ".middleware.io/profiling")
216+
}
218217
c.TenantID = account
219218
_, err := pyroscope.Start(pyroscope.Config{
220219
ApplicationName: c.ServiceName,

0 commit comments

Comments
 (0)