From 9cba64c3035f08c9f12a8202fde960a93cca7a72 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Tue, 2 Jun 2026 12:35:48 +0200 Subject: [PATCH] Add telemetry Hurl span workflow --- examples/telemetry/docker-compose.yml | 2 ++ examples/telemetry/test.hurl | 35 ++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) mode change 120000 => 100644 examples/telemetry/test.hurl diff --git a/examples/telemetry/docker-compose.yml b/examples/telemetry/docker-compose.yml index 2cbdf251..39c96c57 100644 --- a/examples/telemetry/docker-compose.yml +++ b/examples/telemetry/docker-compose.yml @@ -124,6 +124,8 @@ services: tempo: image: grafana/tempo:3.0.0 + ports: + - "3200:3200" volumes: - ./tempo.yaml:/etc/tempo/config.yaml:ro command: ["-config.file=/etc/tempo/config.yaml"] diff --git a/examples/telemetry/test.hurl b/examples/telemetry/test.hurl deleted file mode 120000 index 0dd017b9..00000000 --- a/examples/telemetry/test.hurl +++ /dev/null @@ -1 +0,0 @@ -../../test.hurl \ No newline at end of file diff --git a/examples/telemetry/test.hurl b/examples/telemetry/test.hurl new file mode 100644 index 00000000..eebfa4eb --- /dev/null +++ b/examples/telemetry/test.hurl @@ -0,0 +1,34 @@ +GET http://localhost:8080/ +traceparent: 00-00000000000000000000000000000001-0000000000000001-01 +HTTP 200 +[Asserts] +body contains "Todo List" +body contains "Add a todo" +body not contains "An error occurred" + +POST http://localhost:8080/add_todo.sql +traceparent: 00-00000000000000000000000000000002-0000000000000002-01 +[FormParams] +title: Hurl telemetry todo +HTTP 302 +[Asserts] +header "Location" == "/" + +GET http://localhost:8080/ +traceparent: 00-00000000000000000000000000000003-0000000000000003-01 +HTTP 200 +[Asserts] +body contains "Hurl telemetry todo" +body not contains "An error occurred" + +GET http://localhost:3200/api/search?q=%7Bresource.service.name%3D%22sqlpage%22%7D&limit=20 +HTTP 200 +[Asserts] +body contains "sqlpage" +body contains "\"traceID\":\"3\"" + +GET http://localhost:3200/api/search?q=%7Bresource.service.name%3D%22nginx%22%7D&limit=20 +HTTP 200 +[Asserts] +body contains "nginx" +body contains "\"traceID\":\"3\""