File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# flowtracker examples
22
33This repo has all the examples on how to use the flowtracker library
4+
5+ Notes:
6+
7+ If you get error when you run ` go mod tidy ` or ` go mod vendor ` in examples folder related to ` otlptracehttp ` try running
8+
9+ ```
10+ go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
11+ ```
12+
13+ Then run ` go mod tidy ` and ` go mod vendor `
Original file line number Diff line number Diff line change 77 "time"
88
99 "github.com/spdeepak/flowtracker"
10+ "github.com/spdeepak/flowtracker/examples"
1011 otelexporter "github.com/spdeepak/flowtracker/otel"
1112
1213 "go.opentelemetry.io/otel"
@@ -54,6 +55,7 @@ func main() {
5455
5556 finish ()
5657 w .Write ([]byte ("Trace sent to Jaeger! Check http://localhost:16686" ))
58+ examples .Handler (w , r )
5759 })
5860
5961 log .Println ("Server running on :8080" )
You can’t perform that action at this time.
0 commit comments