fix: issues

This commit is contained in:
Rogee
2025-01-10 11:42:12 +08:00
parent 1c7b603769
commit 0d35aa15de
46 changed files with 1822 additions and 113 deletions

View File

@@ -51,4 +51,11 @@ func (c *Config) format() {
c.Env = "unknown"
}
}
if c.EndpointGRPC == "" {
c.EndpointGRPC = os.Getenv("OTEL_ENDPOINT_GRPC")
if c.EndpointGRPC == "" {
c.EndpointGRPC = "localhost:4317"
}
}
}