1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-06-08 23:26:11 +02:00
2022-08-30 12:41:05 +03:00
..
2022-08-30 12:41:05 +03:00
2022-08-30 09:22:39 +03:00
2022-03-21 08:58:25 +02:00
2022-06-20 10:03:17 +03:00

Example for go-clickhouse OpenTelemetry instrumentation

To run this example, you need to create test ClickHouse database:

clickhouse-client -q "CREATE DATABASE test"

You can run this example with different OpenTelemetry exporters by providing environment variables.

Stdout exporter (default):

go run .

Jaeger exporter:

OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .

Uptrace exporter:

UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .

See Performance and errors monitoring for details.