dawn_zhou
ae7f1aabdd
feat: mysql and redis metric support ( #2355 )
...
* feat: mysql and redis metric support
* feat: mysql and redis metric support
* feat: mysql and redis metric support
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2022-09-17 19:35:30 +08:00
Kevin Wan
66c2a28e66
fix #2364 ( #2377 )
2022-09-12 19:29:43 +08:00
Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2022-09-10 15:18:52 +08:00
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2022-09-07 10:33:01 +08:00
Kevin Wan
2d60f0c65a
fix: logx disable not working in some cases ( #2306 )
...
* fix: logx disable not working in some cases
* fix: test fail
2022-08-27 19:24:31 +08:00
chen quan
0316b6e10e
feat(redis): add ZaddFloat & ZaddFloatCtx ( #2291 )
2022-08-24 21:02:16 +08:00
Kevin Wan
8ed22eafdd
fix #2240 ( #2263 )
2022-08-14 19:49:47 +08:00
Kevin Wan
1568c3be0e
fix: time repr wrapper ( #2255 )
2022-08-11 22:39:54 +08:00
Kevin Wan
91b8effb24
chore: refactor redislock ( #2210 )
...
* chore: refactor redislock
* chore: add more tests
2022-07-30 19:46:10 +08:00
cong
4879d4dfcd
feat(redislock): support set context ( #2208 )
...
* feat(redislock): support set context
* chore: fix test
2022-07-30 18:38:36 +08:00
Kevin Wan
6c94e4652e
chore: better mongo logs ( #1965 )
...
* chore: better mongo logs
* chore: add comments
2022-06-04 16:11:31 +08:00
kevin
edfaa6d906
🐞 fix: fixed typo ( #1916 )
...
Co-authored-by: kevinzhang <kevinzhang@moonton.com>
2022-06-04 14:50:06 +08:00
Kevin Wan
72ebbb9774
feat: update docker alpine package mirror ( #1924 )
...
* feat: update docker alpine package mirror
* chore: format code
2022-05-23 09:13:21 +08:00
Kevin Wan
6b1e15cab1
chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 ( #1912 )
...
* chore: fix jwt dependency security issue
* chore: update clickhouse driver
* chore: fix a security issue
* chore: update dependencies
2022-05-21 14:34:01 +08:00
Kevin Wan
1e717f9f5c
feat: add toml config ( #1899 )
2022-05-13 23:17:43 +08:00
chen quan
e567a0c718
refactor: refactor trace in redis & sql & mongo ( #1865 )
...
* refactor: refactor tracing in redis & sql & mongo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix some tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: add missing content
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: adjust `log` and `return`
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: simpler span name
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-05-13 12:32:34 +08:00
Kevin Wan
974ba5c9aa
test: add codecov ( #1863 )
2022-05-04 16:19:51 +08:00
Kevin Wan
ec1de4f48d
test: add codecov ( #1861 )
...
* test: add codecov
* test: add codecov
2022-05-03 21:22:15 +08:00
Kevin Wan
ac321fc146
feat: add fields with logx methods, support using third party logging libs. ( #1847 )
...
* backup
* simplify
* chore: remove unused pool
* chore: fix lint errors
* chore: use strings.Builder instead of bytes.Buffer
* test: add more tests
* chore: fix reviewdog
* test: fix data race
* feat: make logger customizable
* chore: fix reviewdog
* test: fix fails
* chore: fix set writer twice
* chore: use context instead of golang.org context
* chore: specify uint32 for level types
2022-05-03 17:34:26 +08:00
Kevin Wan
f7a60cdc24
fix: remove deprecated dependencies ( #1837 )
...
* fix: remove deprecated dependencies
* backup
* fix test error
2022-04-27 21:34:54 +08:00
Kevin Wan
1a38eddffe
refactor: simplify the code ( #1835 )
2022-04-27 10:44:24 +08:00
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
2022-04-27 00:01:31 +08:00
chen quan
22b157bb6c
chore: optimize code ( #1818 )
...
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-04-23 22:02:04 +08:00
Kevin Wan
bc3c9484d1
chore: refactor ( #1814 )
2022-04-22 09:37:09 +08:00
chen quan
162e9cef86
feat: add trace in redis & mon & sql ( #1799 )
...
* feat: add sub spanId with redis
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in sql
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in mon
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add breaker in warpSession
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* test: add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix typo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-04-22 09:04:44 +08:00
Kevin Wan
2cdff97934
feat: use mongodb official driver instead of mgo ( #1782 )
...
* wip: backup
* wip: backup
* wip: backup
* backup
* backup
* backup
* add more tests
* fix wrong dependency
* fix lint errors
* remove test due to data race
* add tests
* fix test error
* add mon.Model
* add mon.Model unmarshal
* add monc
* add more tests for monc
* add more tests for monc
* add docs for mon and monc packages
* fix doc errors
* chhore: add comment
* chore: fix test bug
* chore: refine tests
* chore: remove primitive.NewObjectID in test code
* chore: rename test files for typo
2022-04-19 14:03:04 +08:00
杨圆建
d58cf7a12a
fix: Hdel check result & Pfadd check result ( #1801 )
2022-04-18 17:38:36 +08:00
Kevin Wan
5d4e7c84ee
revert postgres package refactor ( #1796 )
...
* Revert "refactor: move postgres to pg package (#1781 )"
This reverts commit ba8ac974aa
.
* remove pg, use postgres
2022-04-17 12:07:48 +08:00
Kevin Wan
ba8ac974aa
refactor: move postgres to pg package ( #1781 )
2022-04-13 12:46:09 +08:00
benqi
475d17e17d
feat: support ctx in kv methods ( #1759 )
2022-04-04 23:19:58 +08:00
Kevin Wan
e0fa8d820d
feat: return original value of setbit in redis ( #1746 )
2022-04-02 20:25:51 +08:00
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
Kevin Wan
278cd123c8
feat: remove reentrance in redislock, timeout bug ( #1704 )
2022-03-24 16:17:01 +08:00
Kevin Wan
ec271db7a0
chore: refactor code ( #1699 )
2022-03-23 18:24:44 +08:00
benqi
bbac994c8a
feat: add getset command in redis and kv ( #1693 )
2022-03-23 18:02:56 +08:00
Kevin Wan
f060a226bc
refactor: simplify the code ( #1670 )
2022-03-20 17:26:12 +08:00
Mervin.Wong
93d524b797
fix: the new RawFieldNames considers the tag with options. ( #1663 )
...
Co-authored-by: JinfaWang <wangjinfa@iie.ac.cn>
2022-03-20 16:59:19 +08:00
mlr3000
32c88b6352
feat: support oracle :N dynamic parameters ( #1552 )
...
* chore:use struct pointer
* feat: support oracle :N dynamic parameters
* Update utils.go
* Update utils.go
* Update utils.go
pg argIndex will not always go up
* Update utils_test.go
* Keep the original
* Update utils_test.go
2022-03-12 18:49:07 +08:00
Kevin Wan
b939ce75ba
chore: refactor code ( #1613 )
2022-03-04 17:55:13 +08:00
Javen
60760b52ab
model中db标签增加'-'符号以支持数据库查询时忽略对应字段. ( #1612 )
2022-03-04 17:00:46 +08:00
Kevin Wan
900bc96420
test: add more tests ( #1604 )
2022-03-02 21:19:04 +08:00
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
2022-02-16 19:31:43 +08:00
Kevin Wan
9e113909b3
ignore context.Canceled for redis breaker ( #1545 )
2022-02-15 21:31:30 +08:00
Kevin Wan
2732d3cdae
chore: refactor cache ( #1532 )
2022-02-13 18:04:31 +08:00
chenquan
e8c307e4dc
feat: support ctx in Cache
( #1518 )
...
* feature: support ctx in `Cache`
Signed-off-by: chenquan <chenquan.dev@foxmail.com>
* fix: `errors.Is` instead of `=`
Signed-off-by: chenquan <chenquan.dev@foxmail.com>
2022-02-13 17:28:14 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
Kevin Wan
822ee2e1c5
feat: update go-redis to v8, support ctx in redis methods ( #1507 )
...
* feat: update go-redis to v8, support ctx in redis methods
* fix compile errors
* chore: remove unused const
* chore: add tracing log on redis
2022-02-09 11:06:06 +08:00
Kevin Wan
0fdd8f54eb
ci: add test for win ( #1503 )
...
* ci: add test for win
* ci: update check names
* ci: use go build instead of go test to verify win test
* fix: windows test failure
* chore: disable logs in tests
2022-02-05 00:06:23 +08:00
shenbaise9527
13db7a1931
feat: 支持redis的LTrim方法 ( #1443 )
2022-01-16 10:27:34 +08:00
Kevin Wan
eb4b86137a
fix: golint issue ( #1423 )
2022-01-08 16:06:56 +08:00