Skip to content

Commit dbd619b

Browse files
committed
Improve otel middleware example
1 parent 5627c64 commit dbd619b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

website/docs/middleware/open-telemetry.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Echo-opentelemetry is a middleware for Echo framework that provides OpenTelemetr
88
https://github.com/labstack/echo-opentelemetry
99

1010
Open-telemetry is a set of open-source tools that provide instrumentation for cloud native applications.
11+
* [OpenTelemetry Exporters](https://opentelemetry.io/docs/languages/go/exporters/)
1112
* [OpenTelemetry HTTP spec](https://opentelemetry.io/docs/specs/semconv/http/)
1213
* [HTTP metrics spec](https://opentelemetry.io/docs/specs/semconv/http/http-metrics/)
1314

@@ -63,5 +64,9 @@ tp, err := echo.ContextGet[trace.Tracer](c, echootel.TracerKey)
6364

6465
## Example
6566

66-
https://github.com/labstack/echo-opentelemetry/blob/main/example/main.go
67+
This example is exporting metrics and spans to stdout but you can use any exporter (OTLP etc).
68+
Read about [OpenTelemetry exporters](https://opentelemetry.io/docs/languages/go/exporters)
6769

70+
```go reference
71+
https://github.com/labstack/echo-opentelemetry/blob/main/example/main.go
72+
```

0 commit comments

Comments
 (0)