Commit Graph

2544 Commits

Author SHA1 Message Date
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
Jackie a2a463b123 test: add test case for setting and scanning durations 2021-10-23 00:10:30 +02:00
Jackie 2f1b74e20c feat: add support for time.Duration write and scan 2021-10-21 18:37:17 +02:00
dependabot[bot] 0260525aa0
Bump github.com/onsi/ginkgo from 1.16.4 to 1.16.5 (#1925)
Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.16.4 to 1.16.5.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v1.16.4...v1.16.5)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 17:17:47 +08:00
Vladimir Mihailenco ca2b16333e
Merge pull request #1922 from HurSungYun/cmdInfo_logging_context
chore: use ctx parameter in cmdInfo
2021-10-15 12:13:27 +03:00
Ethan Hur a67d9129e6 chore: use ctx parameter in cmdInfo 2021-10-15 14:49:00 +09:00
Vladimir Mihailenco 2b6611c4fd Merge branch 'master' of github.com:go-redis/redis 2021-10-05 10:07:16 +03:00
Vladimir Mihailenco acf1c1831b chore: fix links 2021-10-05 10:07:08 +03:00
Vladimir Mihailenco 40c1cc3f31
Merge pull request #1918 from pfreixes/add_whitespace_before_addr
fix: add whitespace for avoid unlikely colisions
2021-10-05 08:55:04 +03:00
Pau Freixes 96f53a0159 fix: format 2021-10-04 17:22:18 +02:00
Pau Freixes 7f7c181761 fix: add whitespace for avoid unlikely colisions 2021-10-04 15:53:57 +02:00
Vladimir Mihailenco fa515240d4
Merge pull request #1917 from go-redis/release/v8.11.4
chore: release v8.11.4 (release.sh)
2021-10-04 16:40:48 +03:00
Vladimir Mihailenco 0457d0add6 chore: release v8.11.4 (release.sh) 2021-10-04 16:28:19 +03:00
Vladimir Mihailenco 6dcfc56151 chore: use conv commit message 2021-10-04 16:27:16 +03:00
Vladimir Mihailenco 86258a11a9 chore: lazy reload when moved or ask 2021-10-04 13:16:33 +03:00
Pau Freixes 98bb99ddc2
Fix Redis Cluster issue during roll outs of new nodes with same addr (#1914)
* fix: recycle connections in some Redis Cluster scenarios

This issue was surfaced in a Cloud Provider solution that used for
rolling out new nodes using the same address (hostname) of the nodes
that will be replaced in a Redis Cluster, while the former ones once
depromoted as Slaves would continue in service during some mintues
for redirecting traffic.

The solution basically identifies when the connection could be stale
since a MOVED response will be returned using the same address (hostname)
that is being used by the connection. At that moment we consider the
connection as no longer usable forcing to recycle the connection.
2021-10-04 13:10:42 +03:00
Vladimir Mihailenco 507203108a chore: add Lua scripting example 2021-09-27 17:29:41 +03:00
Vladimir Mihailenco 739c188212 chore: tweak GH actions to run all jobs 2021-09-27 12:08:34 +03:00
Vladimir Mihailenco cc09f96b8f
Merge pull request #1909 from go-redis/feature/slice-helpers
feat: add Cmd.{String,Int,Float,Bool}Slice helpers and an example
2021-09-27 11:46:25 +03:00
Vladimir Mihailenco 5d3d293cc9 feat: add Cmd.{String,Int,Float,Bool}Slice helpers and an example 2021-09-27 11:11:05 +03:00
Vladimir Mihailenco 329d87fc44
Merge pull request #1906 from Stavrospanakakis/master
feat: add SetVal method for each command
2021-09-26 09:16:44 +03:00
Stavros Panakakakis 168981da2d feat: add SetVal method for each command 2021-09-25 18:12:26 +03:00
Vladimir Mihailenco afd8445978 chore: update link 2021-09-24 17:10:01 +03:00
Vladimir Mihailenco e2ecabec44
Merge pull request #1904 from go-redis/fix/upd-dependencies
chore: update dependencies
2021-09-23 17:27:16 +03:00
Vladimir Mihailenco 3f99e7b13b chore: update dependencies 2021-09-23 16:49:39 +03:00
Vladimir Mihailenco 8648971b29
Merge pull request #1899 from alexus1024/master
Add support for BLMove command
2021-09-23 16:26:55 +03:00
Vladimir Mihailenco fddf086cbe
Merge pull request #1896 from jsievenpiper/main
feat: add acl auth support for sentinels
2021-09-22 14:02:54 +03:00
Алексей Романовский f36093a0be Add support for BLMove command 2021-09-20 16:37:40 -04:00
Justin Sievenpiper f74ce7de90
chore: swap to acl auth at the test-level 2021-09-18 22:36:40 -07:00
Vladimir Mihailenco c575887613
Merge pull request #1895 from go-redis/fix/conv-commits
chore: use conventional commits and auto-generate changelog
2021-09-18 10:01:16 +03:00
Justin Sievenpiper f66582f44f
feat: add acl auth support for sentinels 2021-09-17 23:39:26 -07:00
Vladimir Mihailenco 30a3028411 chore: use conventional commits and auto-generate changelog 2021-09-17 14:26:29 +03:00
Vladimir Mihailenco 7c92957d71 chore: gofmt 2021-09-17 14:22:23 +03:00
Vladimir Mihailenco aac0ea4447
Merge pull request #1891 from gozeloglu/rmv-empty-fnc
empty hooks.withContext removed
2021-09-17 14:21:40 +03:00
Gökhan Özeloğlu 028aeaad73 empty hooks.withContext removed 2021-09-16 09:07:49 +03:00
Vladimir Mihailenco 997118894a
Merge pull request #1884 from dmke/feat/parseurl
Allow query parameters for ParseURL
2021-09-15 09:08:59 +03:00
Vladimir Mihailenco 7ecd5cee5b chore: fix discussions link 2021-09-15 08:58:50 +03:00
Vladimir Mihailenco 0af87003d0 chore: add links to readme 2021-09-15 08:58:09 +03:00
Dominik Menke dfedc31d20 Add query parameter parsing to ParseURL()
Before this change, ParseURL would only accept a very restricted
set of URLs (it returned an error, if it encountered any parameter).

This commit introduces the ability to process URLs like

	redis://localhost/1?dial_timeout=10s

and similar.

Go programs which were providing a configuration tunable (e.g.
CLI flag, config entry or environment variable) to configure
the Redis connection now don't need to perform this task
themselves.
2021-09-14 18:41:31 +02:00
Dominik Menke 3ac3452fe5 Refactor TestParseURL
This is in preparation for supporting query parameters
in ParseURL:

- use an expected *Options instance to execute assertions on
- extract assertions into helper function
- enable parallel testing
- condense test table
2021-09-10 20:55:16 +02:00
Vladimir Mihailenco 0982b38527
Merge pull request #1882 from go-redis/chore/otel-example
chore: cleanup OpenTelemetry example
2021-09-10 08:45:29 +03:00
Vladimir Mihailenco 9b6ee9c3cc chore: gofmt all code 2021-09-08 16:52:29 +03:00
Vladimir Mihailenco 11c4d6f556 chore: cleanup OpenTelemetry example 2021-09-08 15:54:10 +03:00
Vladimir Mihailenco b94bde306e
Fix/pubsub ping mutex (#1878)
* Fix PubSub.Ping to hold the lock

* Fix PubSub.Ping to hold the lock

* add write cmd data-race test

Signed-off-by: monkey92t <golang@88.com>

Co-authored-by: monkey92t <golang@88.com>
2021-09-03 17:57:34 +08:00
Vladimir Mihailenco 917c476e75 Fix releasing.md 2021-09-03 12:20:59 +03:00
Vladimir Mihailenco c16c45cd34 Merge branch 'master' of github.com:go-redis/redis 2021-09-01 15:30:42 +03:00
Vladimir Mihailenco 0c6ce84bad Fix tag script to push tag by tag 2021-09-01 15:30:36 +03:00
dependabot[bot] 7fc0d6bc14
Bump github.com/cespare/xxhash/v2 from 2.1.1 to 2.1.2 (#1872)
Bumps [github.com/cespare/xxhash/v2](https://github.com/cespare/xxhash) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/cespare/xxhash/releases)
- [Commits](https://github.com/cespare/xxhash/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: github.com/cespare/xxhash/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 11:49:38 +08:00