1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-07-01 00:25:06 +02:00
Files
go-clickhouse/example/opentelemetry/README.md

30 lines
754 B
Markdown
Raw Normal View History

2022-01-23 09:36:24 +02:00
# Example for go-clickhouse OpenTelemetry instrumentation
See [Performance and errors monitoring](https://clickhouse.uptrace.dev/guide/monitoring.html) for
details.
You can run this example with different OpenTelemetry exporters by providing environment variables.
**Stdout** exporter (default):
```shell
go run .
```
**Jaeger** exporter:
```shell
OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .
```
[Uptrace](https://github.com/uptrace/uptrace) exporter:
```shell
UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .
```
## Links
- [Find instrumentations](https://opentelemetry.uptrace.dev/instrumentations/?lang=go)
- [OpenTelemetry Go Tracing API](https://opentelemetry.uptrace.dev/guide/go-tracing.html)