otel

command module
v0.0.0-...-274ca66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 12 Imported by: 0

README

Distributed tracing example

To test out distributed tracing, you can run Jaeger locally:

docker run -d --name jaeger \
    -e COLLECTOR_OTLP_ENABLED=true \
    -p 4317:4317 -p 16686:16686 \
    jaegertracing/all-in-one:1.46

And start the Restate server configured to send traces to Jaeger:

npx @restatedev/restate-server --tracing-endpoint http://localhost:4317

Finally start this example service and register it with the Restate server:

go run ./examples/otel
restate dep register http://localhost:9080

And you can now make invocations with curl localhost:8080/Greeter/Greet --json '"hello"', and they should appear in the Jaeger UI with spans from both the Restate server and the Go service.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL