From 0cbd9dd14bbd6acfc4dcee13f793dcda27088db8 Mon Sep 17 00:00:00 2001 From: Eray Date: Tue, 2 Jul 2024 23:27:18 +0300 Subject: [PATCH] feat: improve logging for timeouts --- example/default-mapper/go.mod | 2 +- example/default-mapper/go.sum | 4 ++-- example/simple-logger/go.mod | 2 +- example/simple-logger/go.sum | 4 ++-- example/simple-rejection-log-sink-response-handler/go.mod | 2 +- example/simple-rejection-log-sink-response-handler/go.sum | 2 ++ example/simple-sink-response-handler/go.mod | 2 +- example/simple-sink-response-handler/go.sum | 4 ++-- example/simple/go.mod | 2 +- example/simple/go.sum | 4 ++-- example/struct-config/go.mod | 2 +- example/struct-config/go.sum | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- test/integration/go.mod | 2 +- test/integration/go.sum | 4 ++-- 16 files changed, 24 insertions(+), 22 deletions(-) diff --git a/example/default-mapper/go.mod b/example/default-mapper/go.mod index 6908095..914a90b 100644 --- a/example/default-mapper/go.mod +++ b/example/default-mapper/go.mod @@ -7,7 +7,7 @@ replace github.com/Trendyol/go-dcp-elasticsearch => ./../.. require github.com/Trendyol/go-dcp-elasticsearch v0.0.0 require ( - github.com/Trendyol/go-dcp v1.1.46 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/example/default-mapper/go.sum b/example/default-mapper/go.sum index 0abfc64..02ee934 100644 --- a/example/default-mapper/go.sum +++ b/example/default-mapper/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/example/simple-logger/go.mod b/example/simple-logger/go.mod index 78ab000..42f6af3 100644 --- a/example/simple-logger/go.mod +++ b/example/simple-logger/go.mod @@ -10,7 +10,7 @@ require ( ) require ( - github.com/Trendyol/go-dcp v1.1.46 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/example/simple-logger/go.sum b/example/simple-logger/go.sum index 0abfc64..02ee934 100644 --- a/example/simple-logger/go.sum +++ b/example/simple-logger/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/example/simple-rejection-log-sink-response-handler/go.mod b/example/simple-rejection-log-sink-response-handler/go.mod index f0ea4d0..914a90b 100644 --- a/example/simple-rejection-log-sink-response-handler/go.mod +++ b/example/simple-rejection-log-sink-response-handler/go.mod @@ -7,7 +7,7 @@ replace github.com/Trendyol/go-dcp-elasticsearch => ./../.. require github.com/Trendyol/go-dcp-elasticsearch v0.0.0 require ( - github.com/Trendyol/go-dcp v1.1.45 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/example/simple-rejection-log-sink-response-handler/go.sum b/example/simple-rejection-log-sink-response-handler/go.sum index ecc0485..df24bd0 100644 --- a/example/simple-rejection-log-sink-response-handler/go.sum +++ b/example/simple-rejection-log-sink-response-handler/go.sum @@ -7,6 +7,8 @@ github.com/Trendyol/go-dcp v1.1.42/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0Z github.com/Trendyol/go-dcp v1.1.43/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/Trendyol/go-dcp v1.1.44/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/Trendyol/go-dcp v1.1.45/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/example/simple-sink-response-handler/go.mod b/example/simple-sink-response-handler/go.mod index 6908095..914a90b 100644 --- a/example/simple-sink-response-handler/go.mod +++ b/example/simple-sink-response-handler/go.mod @@ -7,7 +7,7 @@ replace github.com/Trendyol/go-dcp-elasticsearch => ./../.. require github.com/Trendyol/go-dcp-elasticsearch v0.0.0 require ( - github.com/Trendyol/go-dcp v1.1.46 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/example/simple-sink-response-handler/go.sum b/example/simple-sink-response-handler/go.sum index 0abfc64..02ee934 100644 --- a/example/simple-sink-response-handler/go.sum +++ b/example/simple-sink-response-handler/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/example/simple/go.mod b/example/simple/go.mod index 6908095..914a90b 100644 --- a/example/simple/go.mod +++ b/example/simple/go.mod @@ -7,7 +7,7 @@ replace github.com/Trendyol/go-dcp-elasticsearch => ./../.. require github.com/Trendyol/go-dcp-elasticsearch v0.0.0 require ( - github.com/Trendyol/go-dcp v1.1.46 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/example/simple/go.sum b/example/simple/go.sum index 0abfc64..02ee934 100644 --- a/example/simple/go.sum +++ b/example/simple/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/example/struct-config/go.mod b/example/struct-config/go.mod index 1570892..28a978b 100644 --- a/example/struct-config/go.mod +++ b/example/struct-config/go.mod @@ -5,7 +5,7 @@ go 1.20 replace github.com/Trendyol/go-dcp-elasticsearch => ./../.. require ( - github.com/Trendyol/go-dcp v1.1.46 + github.com/Trendyol/go-dcp v1.1.47 github.com/Trendyol/go-dcp-elasticsearch v0.0.0 ) diff --git a/example/struct-config/go.sum b/example/struct-config/go.sum index 0abfc64..02ee934 100644 --- a/example/struct-config/go.sum +++ b/example/struct-config/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/go.mod b/go.mod index 874f47c..dc6a7d7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/Trendyol/go-dcp-elasticsearch go 1.20 require ( - github.com/Trendyol/go-dcp v1.1.46 + github.com/Trendyol/go-dcp v1.1.47 github.com/elastic/go-elasticsearch/v7 v7.17.10 github.com/json-iterator/go v1.1.12 github.com/prometheus/client_golang v1.19.1 diff --git a/go.sum b/go.sum index 0abfc64..02ee934 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM= diff --git a/test/integration/go.mod b/test/integration/go.mod index eadf195..1c36a28 100644 --- a/test/integration/go.mod +++ b/test/integration/go.mod @@ -11,7 +11,7 @@ require ( ) require ( - github.com/Trendyol/go-dcp v1.1.46 // indirect + github.com/Trendyol/go-dcp v1.1.47 // indirect github.com/andybalholm/brotli v1.1.0 // indirect github.com/ansrivas/fiberprometheus/v2 v2.6.1 // indirect github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect diff --git a/test/integration/go.sum b/test/integration/go.sum index 0abfc64..02ee934 100644 --- a/test/integration/go.sum +++ b/test/integration/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/hcsshim v0.11.4 h1:68vKo2VN8DE9AdN4tnkWnmdhqdbpUFM8OF3Airm7fz8= -github.com/Trendyol/go-dcp v1.1.46 h1:ACzT4m/iFg8j5rjDcgMcN+34xhe/mZwoFzYd+pK3DJE= -github.com/Trendyol/go-dcp v1.1.46/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= +github.com/Trendyol/go-dcp v1.1.47 h1:gytJuOtg3uDmvJBaLGCupSdjUTeq1wu6a+zHNfre0Ww= +github.com/Trendyol/go-dcp v1.1.47/go.mod h1:Zpm0xt1Ybm0zcLtZX+u2+TQ4MkASDjonP0ZM1qrJx94= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/ansrivas/fiberprometheus/v2 v2.6.1 h1:wac3pXaE6BYYTF04AC6K0ktk6vCD+MnDOJZ3SK66kXM=