File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,6 @@ func newConfig(opts ...Options) *Config {
83
83
c .enableProfiling = true
84
84
c .fluentHost = "localhost"
85
85
profilingServerUrl := os .Getenv ("MW_PROFILING_SERVER_URL" )
86
- if profilingServerUrl == "" {
87
- profilingServerUrl = "https://profiling.middleware.io"
88
- }
89
86
authUrl := os .Getenv ("MW_AUTH_URL" )
90
87
if authUrl == "" {
91
88
authUrl = "https://app.middleware.io/api/v1/auth"
@@ -214,7 +211,9 @@ func newConfig(opts ...Options) *Config {
214
211
log .Println ("Failed to retrieve TenantID from api response" )
215
212
return c
216
213
}
217
- profilingServerUrl = fmt .Sprint ("https://" + account + ".middleware.io" )
214
+ if profilingServerUrl == "" {
215
+ profilingServerUrl = fmt .Sprint ("https://" + account + ".middleware.io/profiling" )
216
+ }
218
217
c .TenantID = account
219
218
_ , err := pyroscope .Start (pyroscope.Config {
220
219
ApplicationName : c .ServiceName ,
You can’t perform that action at this time.
0 commit comments