Skip to content

Commit 7359383

Browse files
committed
Added chapter to README.md about ecosystem of debug tools
1 parent 621b3c1 commit 7359383

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 3.2.3
22
* Fixed bug of interpret tilda in path of certificates file
3+
* Added chapter to `README.md` about ecosystem of debug tools over `ydb-go-sdk`
34

45
## 3.2.2
56
* Fixed result type of `RawValue.String` (ydb string compatible)

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
5. [Usage](#Usage)
2020
6. [Credentials](#Credentials)
2121
7. [Environment variables](#Environ)
22-
8. [Examples](#examples)
22+
8. [Ecosystem of debug tools](#Debug)
23+
9. [Examples](#Examples)
2324

2425
## Overview <a name="Overview"></a>
2526

@@ -57,7 +58,6 @@ go get -u github.com/ydb-platform/ydb-go-sdk/v3
5758
The straightforward example of querying data may look similar to this:
5859

5960
```go
60-
// Determine timeout for connect or do nothing
6161
ctx := context.Background()
6262

6363
// connect package helps to connect to database, returns connection object which
@@ -148,6 +148,8 @@ reduce boilerplate overhead for such cases `ydb-go-sdk` provides generic retry l
148148
## Credentials <a name="Credentials"></a>
149149

150150
There are different variants to get `ydb.Credentials` object to get authorized.
151+
Spatial cases of credentials for `yandex-cloud` provides with package [ydb-go-yc](https://github.com/ydb-platform/ydb-go-yc)
152+
Package [ydb-go-sdk-auth-environ](https://github.com/ydb-platform/ydb-go-sdk-auth-environ) provide different credentials depending on the environment variables.
151153
Usage examples can be found [here](https://github.com/ydb-platform/ydb-go-examples/tree/master/cmd/auth).
152154

153155
## Environment variables <a name="Environ"></a>
@@ -157,7 +159,21 @@ Name | Type | Default | Description
157159
`YDB_SSL_ROOT_CERTIFICATES_FILE` | `string` | | path to certificates file
158160
`YDB_LOG_SEVERITY_LEVEL` | `string` | `quiet` | severity logging level. Supported: `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `quiet`
159161

160-
## Examples <a name="examples"></a>
162+
## Ecosystem of debug tools over `ydb-go-sdk` <a name="Debug"></a>
163+
164+
Package ydb-go-sdk provide debugging over trace events in package `trace`.
165+
Now supports driver events in `trace.Driver` struct and table-service events in `trace.Table` struct.
166+
Next packages provide debug tooling:
167+
168+
Package | Type | Description | Link of example usage
169+
--- | --- | --- | ---
170+
[ydb-go-sdk-zap](https://github.com/ydb-platform/ydb-go-sdk-zap) | logging | logging ydb-go-sdk events with zap package | [trace.Driver](https://github.com/ydb-platform/ydb-go-sdk-zap/blob/master/internal/cmd/bench/main.go#L71) [trace.Table](https://github.com/ydb-platform/ydb-go-sdk-zap/blob/master/internal/cmd/bench/main.go#L75)
171+
[ydb-go-sdk-zerolog](https://github.com/ydb-platform/ydb-go-sdk-zap) | logging | logging ydb-go-sdk events with zerolog package | [trace.Driver](https://github.com/ydb-platform/ydb-go-sdk-zerolog/blob/master/internal/cmd/bench/main.go#L48) [trace.Table](https://github.com/ydb-platform/ydb-go-sdk-zerolog/blob/master/internal/cmd/bench/main.go#L52)
172+
[ydb-go-sdk-metrics](https://github.com/ydb-platform/ydb-go-sdk-metrics) | metrics | common metrics of ydb-go-sdk. Package declare interfaces such as `Registry`, `GaugeVec` and `Gauge` and use it for create `trace.Driver` and `trace.Table` traces |
173+
[ydb-go-sdk-prometheus](https://github.com/ydb-platform/ydb-go-sdk-prometheus) | metrics | metrics of ydb-go-sdk. Package use [ydb-go-sdk-metrics](https://github.com/ydb-platform/ydb-go-sdk-metrics) package and prometheus types for create `trace.Driver` and `trace.Table` traces | [trace.Driver](https://github.com/ydb-platform/ydb-go-sdk-prometheus/blob/master/internal/cmd/bench/main.go#L87) [trace.Table](https://github.com/ydb-platform/ydb-go-sdk-prometheus/blob/master/internal/cmd/bench/main.go#L91)
174+
ydb-go-sdk-opentracing | tracing | WIP |
175+
176+
## Examples <a name="Examples"></a>
161177

162178
More examples are listed in [examples](https://github.com/ydb-platform/ydb-go-examples) repository.
163179

0 commit comments

Comments
 (0)