mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-02 17:09:48 +02:00
Add CloudWatch metrics
This commit is contained in:
@@ -156,6 +156,10 @@ var (
|
||||
OpenTelemetryTraceIDGenerator string
|
||||
OpenTelemetryConnectionTimeout int
|
||||
|
||||
CloudWatchServiceName string
|
||||
CloudWatchNamespace string
|
||||
CloudWatchRegion string
|
||||
|
||||
BugsnagKey string
|
||||
BugsnagStage string
|
||||
|
||||
@@ -334,6 +338,10 @@ func Reset() {
|
||||
OpenTelemetryTraceIDGenerator = "xray"
|
||||
OpenTelemetryConnectionTimeout = 5
|
||||
|
||||
CloudWatchServiceName = ""
|
||||
CloudWatchNamespace = "imgproxy"
|
||||
CloudWatchRegion = ""
|
||||
|
||||
BugsnagKey = ""
|
||||
BugsnagStage = "production"
|
||||
|
||||
@@ -527,6 +535,10 @@ func Configure() error {
|
||||
configurators.String(&OpenTelemetryTraceIDGenerator, "IMGPROXY_OPEN_TELEMETRY_TRACE_ID_GENERATOR")
|
||||
configurators.Int(&OpenTelemetryConnectionTimeout, "IMGPROXY_OPEN_TELEMETRY_CONNECTION_TIMEOUT")
|
||||
|
||||
configurators.String(&CloudWatchServiceName, "IMGPROXY_CLOUD_WATCH_SERVICE_NAME")
|
||||
configurators.String(&CloudWatchNamespace, "IMGPROXY_CLOUD_WATCH_NAMESPACE")
|
||||
configurators.String(&CloudWatchRegion, "IMGPROXY_CLOUD_WATCH_REGION")
|
||||
|
||||
configurators.String(&BugsnagKey, "IMGPROXY_BUGSNAG_KEY")
|
||||
configurators.String(&BugsnagStage, "IMGPROXY_BUGSNAG_STAGE")
|
||||
configurators.String(&HoneybadgerKey, "IMGPROXY_HONEYBADGER_KEY")
|
||||
|
Reference in New Issue
Block a user