mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-27 12:07:59 +02:00
Datadog tracing
This commit is contained in:
committed by
Sergey Alexandrovich
parent
5ba463749c
commit
88975f3810
@@ -284,6 +284,8 @@ type config struct {
|
||||
FallbackImageURL string
|
||||
FallbackImageHTTPCode int
|
||||
|
||||
DataDogEnable bool
|
||||
|
||||
NewRelicAppName string
|
||||
NewRelicKey string
|
||||
|
||||
@@ -455,6 +457,8 @@ func configure() error {
|
||||
strEnvConfig(&conf.FallbackImageURL, "IMGPROXY_FALLBACK_IMAGE_URL")
|
||||
intEnvConfig(&conf.FallbackImageHTTPCode, "IMGPROXY_FALLBACK_IMAGE_HTTP_CODE")
|
||||
|
||||
boolEnvConfig(&conf.DataDogEnable, "IMGPROXY_DATADOG_ENABLE")
|
||||
|
||||
strEnvConfig(&conf.NewRelicAppName, "IMGPROXY_NEW_RELIC_APP_NAME")
|
||||
strEnvConfig(&conf.NewRelicKey, "IMGPROXY_NEW_RELIC_KEY")
|
||||
|
||||
|
Reference in New Issue
Block a user