Commit Graph

2191 Commits

Author SHA1 Message Date
Vladimir Mihailenco 04b14786d0 Merge branch 'master' of github.com:go-redis/redis 2022-03-17 14:31:05 +02:00
Vladimir Mihailenco dbd417ac78 chore: add hll example 2022-03-17 14:30:55 +02:00
Vladimir Mihailenco d28f1f8d39
Merge pull request #2042 from go-redis/dependabot/github_actions/actions/checkout-3
chore(deps): bump actions/checkout from 2 to 3
2022-03-16 09:44:02 +02:00
dependabot[bot] cfc0812ae6
chore(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 01:24:03 +00:00
Vladimir Mihailenco 65e242e263
Merge pull request #2039 from jsievenpiper/sentinel-universal
feat: add support for acl sentinel auth in universal client
2022-03-01 08:57:34 +02:00
Justin Sievenpiper ab0ccc4741
feat: add support for acl sentinel auth in universal client 2022-02-28 14:55:37 -08:00
Alex Kahn 730afbcffb
feat: add support for COPY command (#2016) 2022-02-28 01:07:49 +08:00
Vladimir Mihailenco 627f4dab54
Merge pull request #2033 from thrawny/feature/otel-attributes
Feature/otel attributes
2022-02-22 15:31:39 +02:00
Vladimir Mihailenco 6fd61e8258 chore: tweak Uptrace copy 2022-02-22 15:29:10 +02:00
Jonas Lergell 69bf454f70 feat: set net.peer.name and net.peer.port in otel example 2022-02-22 14:15:32 +01:00
Jonas Lergell 39faaa1715 feat: add support for passing extra attributes added to spans 2022-02-22 14:15:28 +01:00
Vladimir Mihailenco c898357929
Merge pull request #2031 from hidu/master
fix: rename Golang to Go
2022-02-22 15:08:14 +02:00
hidu b82a2d9d4d fix: rename Golang to Go (#2030)
https://go.dev/doc/faq#go_or_golang
2022-02-20 13:38:20 +08:00
Vladimir Mihailenco aa1530aaf0
Merge pull request #2029 from hidu/master
fix example/otel compile error (#2028)
2022-02-19 08:49:38 +02:00
hidu 187c07c41b fix: example/otel compile error (#2028) 2022-02-18 22:59:59 +08:00
Vladimir Mihailenco b096f432a3 chore: cleanup 2022-02-18 09:45:35 +02:00
Vladimir Mihailenco ed1b5bb28a
Merge pull request #2027 from lintanghui/master
fix:invalid type assert in stringArg
2022-02-18 09:42:50 +02:00
lintanghui de6c131865 fix: invalid type assert in stringArg 2022-02-18 11:36:04 +08:00
Vladimir Mihailenco a034b08191
Merge pull request #1991 from jiangtao244/master
feat: export cmder.SetFirstKeyPos to support build module commands
2022-02-02 09:32:04 +02:00
Vladimir Mihailenco 8ed766ba37
Merge pull request #2010 from go-redis/dependabot/go_modules/github.com/onsi/gomega-1.18.1
chore(deps): bump github.com/onsi/gomega from 1.17.0 to 1.18.1
2022-02-02 09:27:13 +02:00
Nelz 3ecadf5f87
chore: instrumentation name and version (#2012) 2022-02-02 09:26:14 +02:00
Seyed Ali Ghaffari e2d145d6ba
Update README.md (#2011)
chore: add fmt library in example code
2022-01-31 12:34:32 +02:00
dependabot[bot] 4ddcf48f20
chore(deps): bump github.com/onsi/gomega from 1.17.0 to 1.18.1
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.17.0 to 1.18.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.17.0...v1.18.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 01:24:51 +00:00
Vladimir Mihailenco 2321414c27
Merge pull request #2001 from Richtermeister/patch-2
fix: add missing Expire methods to Cmdable
2022-01-23 08:30:28 +02:00
Daniel Richter 17e3b43879
fix: add missing Expire methods to Cmdable
This is a followup to https://github.com/go-redis/redis/pull/1928
2022-01-22 10:51:10 -08:00
Nelz bf8d4aa60c
feat(redisotel): ability to override TracerProvider (#1998) 2022-01-18 08:44:05 +02:00
nick comer 52276c393d feat: extract dialer to `DefaultDialer` to allow wrapping
Allowing the default dialing function to be wrapped allows for library
users to let the library continue to own the logic for dialing and let
users wrap the function for more observability.

My use case is to override `Options.Dialer` and add Jaeger tracing to
gain insight into the cost of new connections on a latency sensitive API.

```go
	defDialer := redis.DefaultDialer(opts)
	opts.Dialer = func(ctx context.Context, network, addr string) (net.Conn, error) {
		span, ctx := opentracing.StartSpanFromContext(ctx, "cache-repo-redis: new redis connection")
		defer span.Finish()

		return defDialer(ctx, network, addr)
	}
```

Without this, I end up needing to copy-paste the code from the internal
code, which is less-than-ideal since I don't want to own the maintenance
of this logic.
2022-01-14 16:01:09 -05:00
Vladimir Mihailenco f1dd3d5898
Merge pull request #1968 from Juneezee/go1.17
build: update `go` directive in `go.mod` to 1.17
2022-01-12 16:22:36 +02:00
gzjiangtao2014 f4bf09cfc8 chore: export cmder.SetFirstKeyPos to support build module commands 2022-01-11 14:47:55 +08:00
Vladimir Mihailenco 955df2c4c4 chore: update link 2021-12-29 10:45:45 +02:00
Eng Zer Jun 463389046e
build: update `go` directive in `go.mod` to 1.17
This commit enables support for module graph pruning and lazy module
loading for projects that are at Go 1.17 or higher.

Reference: https://go.dev/ref/mod#go-mod-file-go
Reference: https://go.dev/ref/mod#graph-pruning
Reference: https://go.dev/ref/mod#lazy-loading
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-27 08:31:17 +08:00
Vladimir Mihailenco 333fee1a8f fix: set timeout for WAIT command. Fixes #1963 2021-12-26 16:42:17 +02:00
Vladimir Mihailenco f737d9a830 chore: remove Discord 2021-12-24 15:33:36 +02:00
Vladimir Mihailenco e9a8bb4f86
Merge pull request #1954 from Ci-Jie/bugfix/tweak-some-feature-links
chore: tweak feature links
2021-11-25 12:10:11 +02:00
James3 Li(李麒傑) cc87acb6d6 chore: tweak feature links 2021-11-25 17:02:28 +08:00
Vladimir Mihailenco 5c9b845659 chore: add missing readme 2021-11-23 15:42:05 +02:00
Bastien Penavayre e19bbb26e2 feat: Add redis v7's NX, XX, GT, LT expire variants 2021-11-21 16:02:40 +02:00
Vladimir Mihailenco 5aefa73462
Merge pull request #1942 from go-redis/dependabot/go_modules/github.com/onsi/gomega-1.17.0
chore(deps): bump github.com/onsi/gomega from 1.16.0 to 1.17.0
2021-11-21 15:55:28 +02:00
Vladimir Mihailenco 10b3668010
Merge pull request #1940 from ffenix113/master
Update some argument counts in allocs.
2021-11-21 15:55:17 +02:00
dependabot[bot] 1790c2b9ab
chore(deps): bump github.com/onsi/gomega from 1.16.0 to 1.17.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-20 15:54:43 +00:00
Vladimir Mihailenco dabd395d47
Merge pull request #1952 from go-redis/chore/del-keys-without-ttl
chore: add example how to delete keys without a ttl
2021-11-20 17:53:18 +02:00
Vladimir Mihailenco 383aa369b4 chore: don't enable all lints 2021-11-19 17:09:58 +02:00
Vladimir Mihailenco 9b48b5e45f chore: add example how to delete keys without a ttl 2021-11-19 17:05:07 +02:00
ffenix113 f6974ebb5c fix: update some argument counts in pre-allocs
In some cases number of pre-allocated places in
argument array is missing 1 or 2 elements,
which results in re-allocation of twice as large array
2021-11-05 19:13:47 +01:00
Vladimir Mihailenco 47ac23e055 Merge branch 'master' of github.com:go-redis/redis 2021-11-05 16:17:26 +02:00
Vladimir Mihailenco c7e913ce48 chore: update otel example 2021-11-05 16:17:17 +02:00
Vladimir Mihailenco 25378ca292
Merge pull request #1934 from kristinnardal2/redisotel-span-kind
fix(extra/redisotel): set span.kind attribute to client
2021-10-27 11:48:22 +03:00
Kristinn Björgvin Árdal 065b200070 fix(extra/redisotel): set span.kind attribute to client
According to the opentelemetry specification this should always be set to client for database client
libraries.

I've also removed the SetAttributes call and instead set the attributes during creation of the span.
This is what the library SHOULD be doing according to the opentelemetry api specification.
2021-10-27 10:28:48 +02:00
Vladimir Mihailenco 38d398f630 chore: fix linter 2021-10-24 09:55:27 +03:00
Vladimir Mihailenco a52a508bbf
Merge pull request #1930 from Pyrodash/master
feat: add support for time.Duration write and scan
2021-10-24 09:54:17 +03:00