-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]: add distributed tracing (#2088)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fix distributed tracing
- Loading branch information
1 parent
ff93ecd
commit e7a9618
Showing
6 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ package configuration | |
import "os" | ||
|
||
type LogServiceConfiguration struct { | ||
PORT string | ||
DATABASE_URL string | ||
PORT string | ||
DATABASE_URL string | ||
OPTL_TRACING_ENDPOINT string | ||
} | ||
|
||
func getEnvWithDefault(key, defaultValue string) string { | ||
|
@@ -17,7 +18,8 @@ func getEnvWithDefault(key, defaultValue string) string { | |
|
||
func NewLogServiceConfiguration() *LogServiceConfiguration { | ||
return &LogServiceConfiguration{ | ||
PORT: getEnvWithDefault("PORT", "50051"), | ||
DATABASE_URL: getEnvWithDefault("CHROMA_DATABASE_URL", "postgresql://chroma:[email protected]:5432/log"), | ||
PORT: getEnvWithDefault("PORT", "50051"), | ||
DATABASE_URL: getEnvWithDefault("CHROMA_DATABASE_URL", "postgresql://chroma:[email protected]:5432/log"), | ||
OPTL_TRACING_ENDPOINT: getEnvWithDefault("OPTL_TRACING_ENDPOINT", "jaeger:4317"), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters