Skip to content

Commit

Permalink
fix: fixing cloud defaults (#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Oct 4, 2023
1 parent e28f2d5 commit 6ae35ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/config/config.go
Expand Up @@ -38,7 +38,7 @@ func LoadConfig() (Config, error) {

vp.SetDefault("AGENT_NAME", getHostname())
vp.SetDefault("API_KEY", "")
vp.SetDefault("SERVER_URL", "https://cloud.tracetest.io")
vp.SetDefault("SERVER_URL", "https://app.tracetest.io")
vp.SetDefault("OTLP_SERVER.GRPC_PORT", 4317)
vp.SetDefault("OTLP_SERVER.HTTP_PORT", 4318)

Expand Down
2 changes: 1 addition & 1 deletion agent/config/config_test.go
Expand Up @@ -18,7 +18,7 @@ func TestConfigDefaults(t *testing.T) {

assert.Equal(t, "", cfg.APIKey)
assert.Equal(t, hostname, cfg.Name)
assert.Equal(t, "https://cloud.tracetest.io", cfg.ServerURL)
assert.Equal(t, "https://app.tracetest.io", cfg.ServerURL)
assert.Equal(t, 4317, cfg.OTLPServer.GRPCPort)
assert.Equal(t, 4318, cfg.OTLPServer.HTTPPort)
}
Expand Down

0 comments on commit 6ae35ea

Please sign in to comment.