You can run this example with different exporters by providing environment variables.
Stdout exporter (default):
go run .
Start the gRPC server:
Jaeger exporter:
OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run server/server.go
Uptrace exporter:
UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run server/server.go
Start the client:
Jaeger exporter:
OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run client/client.go
Uptrace exporter:
UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run client/client.go