feat(observabillity): #115 integrate otel for metrics and traces
This commit was merged in pull request #152.
This commit is contained in:
@@ -17,11 +17,11 @@ import (
|
||||
|
||||
var (
|
||||
settings = types.Settings{
|
||||
Port: "",
|
||||
PrometheusEnabled: false,
|
||||
BaseUrl: "",
|
||||
Environment: "test",
|
||||
Smtp: nil,
|
||||
Port: "",
|
||||
OtelEnabled: false,
|
||||
BaseUrl: "",
|
||||
Environment: "test",
|
||||
Smtp: nil,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ func getEnv(port int64) func(string) string {
|
||||
return strconv.Itoa(int(port))
|
||||
case "SMTP_ENABLED":
|
||||
return "false"
|
||||
case "PROMETHEUS_ENABLED":
|
||||
case "OLTP_ENABLED":
|
||||
return "false"
|
||||
case "BASE_URL":
|
||||
return "http://localhost:" + strconv.Itoa(int(port))
|
||||
|
||||
Reference in New Issue
Block a user