We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a87b0f commit a57afe5Copy full SHA for a57afe5
examples/component/wasitel-http/main.go
@@ -24,8 +24,12 @@ func init() {
24
}
25
26
func echoHandler(w http.ResponseWriter, r *http.Request) {
27
+ if err := setupOTelSDK(); err != nil {
28
+ http.Error(w, "failed setting up otel", http.StatusInternalServerError)
29
+ return
30
+ }
31
+
32
ctx := r.Context()
- setupOTelSDK()
33
_, span := tracer.Start(ctx, serviceName)
34
defer span.End()
35
0 commit comments