Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ogzhanolguncu
Copy link
Contributor

@ogzhanolguncu ogzhanolguncu commented Mar 18, 2024

When used like this

const redis = new Redis(client, { latencyLogging: true });
const key = newKey();
const value = "OK";
await redis.set(key, value);
const res = await redis.get(key);

It should log like this:

Latency for SET: 58.90 ms
Latency for GET: 52.63 ms

This one closes #907

@linear
Copy link

linear bot commented Mar 18, 2024

@ogzhanolguncu ogzhanolguncu merged commit 8895aca into main Mar 22, 2024
@ogzhanolguncu ogzhanolguncu deleted the DX-755 branch March 22, 2024 19:39
renovate bot referenced this pull request in inabagumi/shinju-date Mar 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@upstash/redis](https://togithub.com/upstash/upstash-redis) |
[`^1.28.4` ->
`^1.29.0`](https://renovatebot.com/diffs/npm/@upstash%2fredis/1.28.4/1.29.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@upstash%2fredis/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@upstash%2fredis/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@upstash%2fredis/1.28.4/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@upstash%2fredis/1.28.4/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>upstash/upstash-redis (@&#8203;upstash/redis)</summary>

###
[`v1.29.0`](https://togithub.com/upstash/upstash-redis/releases/tag/v1.29.0)

[Compare
Source](https://togithub.com/upstash/upstash-redis/compare/v1.28.4...v1.29.0)

#### What's Changed

- Update README.md by [@&#8203;enesakar](https://togithub.com/enesakar)
in
[https://github.com/upstash/upstash-redis/pull/900](https://togithub.com/upstash/upstash-redis/pull/900)
- chore: add setup-bun action to workflows by
[@&#8203;aykutkardas](https://togithub.com/aykutkardas) in
[https://github.com/upstash/upstash-redis/pull/896](https://togithub.com/upstash/upstash-redis/pull/896)
- Upgrade GH Action Runner by
[@&#8203;fahreddinozcan](https://togithub.com/fahreddinozcan) in
[https://github.com/upstash/upstash-redis/pull/924](https://togithub.com/upstash/upstash-redis/pull/924)
- Opt-in per-line logging by
[@&#8203;ogzhanolguncu](https://togithub.com/ogzhanolguncu) in
[https://github.com/upstash/upstash-redis/pull/958](https://togithub.com/upstash/upstash-redis/pull/958)

#### New Contributors

- [@&#8203;aykutkardas](https://togithub.com/aykutkardas) made their
first contribution in
[https://github.com/upstash/upstash-redis/pull/896](https://togithub.com/upstash/upstash-redis/pull/896)

**Full Changelog**:
upstash/redis-js@v1.28.4...v1.29.0

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add an opt-in to per-command latency logging

2 participants