Skip to content

Commit

Permalink
feat: improve logging for timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
erayarslan committed Jul 2, 2024
1 parent d3e9705 commit 0cbd9dd
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion example/default-mapper/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/default-mapper/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion example/simple-logger/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/simple-logger/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion example/simple-rejection-log-sink-response-handler/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions example/simple-rejection-log-sink-response-handler/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion example/simple-sink-response-handler/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/simple-sink-response-handler/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion example/simple/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/simple/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion example/struct-config/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
4 changes: 2 additions & 2 deletions example/struct-config/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion test/integration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/integration/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 0cbd9dd

Please sign in to comment.