Add OpenTelemetry instrumentation with middleware-only approach
This commit is contained in:
@@ -45,4 +45,4 @@ func (h *apiV1GreetHandler) handleGreetPath(w http.ResponseWriter, r *http.Reque
|
||||
func (h *apiV1GreetHandler) writeJSONResponse(w http.ResponseWriter, message string) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(map[string]string{"message": message})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user