Skip to content

Commit a1f1eda

Browse files
committed
update README.md
1 parent 2db5874 commit a1f1eda

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

examples/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
# flowtracker examples
22

33
This 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`

examples/otlp/otlp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
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")

0 commit comments

Comments
 (0)