fix: issues
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user