1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-07-17 01:12:33 +02:00

chore: improve instructions

This commit is contained in:
Vladimir Mihailenco
2022-06-20 10:03:17 +03:00
parent 2321bce7b1
commit 0262684d54

View File

@ -1,8 +1,10 @@
# Example for go-clickhouse OpenTelemetry instrumentation
See
[Performance and errors monitoring](https://clickhouse.uptrace.dev/guide/clickhouse-monitoring-performance.html)
for details.
To run this example, you need to create `test` ClickHouse database:
```shell
clickhouse-client -q "CREATE DATABASE test"
```
You can run this example with different OpenTelemetry exporters by providing environment variables.
@ -24,6 +26,10 @@ OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .
UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .
```
See
[Performance and errors monitoring](https://clickhouse.uptrace.dev/guide/clickhouse-monitoring-performance.html)
for details.
## Links
- [Find instrumentations](https://opentelemetry.uptrace.dev/instrumentations/?lang=go)