How to: [⏫](#contents) Auto-Instrument all functions with [otelinji](https://github.com/hedhyw/otelinji)
Automatically instrument all functions with Open Telemetry Spans by code generation. Inserts errors into Spans. Supports custom templates and can be used for Open Tracing or any custom insertions. — [@hedhyw](https://github.com/hedhyw)

```
otelinji -w -filename input_file.go
otelinji -filename input_file.go > input_file.go
find . -name "*.go" | grep -v "vendor/\|.git/\|_test.go" | xargs -n 1 -t otelinji -w -filename
```
Requirements
```
go install github.com/hedhyw/otelinji/cmd/otelinji@latest
```