Skip to content

Commit 3d57b10

Browse files
committed
Use new tracing library
1 parent 7144fc2 commit 3d57b10

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/k6-tests.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: k6 - Test Suite
1+
name: k6 - Test Suite
22
on: [push]
33

44
jobs:
@@ -10,11 +10,11 @@ jobs:
1010
image: ghcr.io/grafana/quickpizza-local:latest
1111
ports:
1212
- 3333:3333
13-
13+
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
17+
1818
# Enable cache for system files: https://github.com/actions/toolkit/issues/946
1919
- name: root suid tar
2020
run: sudo chown root /bin/tar && sudo chmod u+s /bin/tar
@@ -29,25 +29,25 @@ jobs:
2929
# cannot use the k6 docker image because it does not allow executing shell commands
3030
- name: Install k6 in Ubuntu
3131
if: steps.cache-k6.outputs.cache-hit != 'true'
32-
run: |
32+
run: |
3333
sudo gpg -k
3434
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
3535
echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list
3636
sudo apt-get update
3737
sudo apt-get install k6
38-
38+
3939
# Install Chrome (or chromium) when using ACT, as the default ACT image does not include it.
4040
# Note that running the browser in a container like Snap or Flatpak is not supported.
4141
- name: Install chrome
4242
if: ${{ env.ACT }}
43-
run: |
43+
run: |
4444
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
4545
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
4646
sudo apt update && sudo apt install -y google-chrome-stable
4747
4848
# If you plan to run ACT on Apple Silicon, be aware that Chrome has not yet released an arm64 version. In this case, you have to:
4949
# 1. Enable the option on Docker Desktop: `Use Rosetta for x86/amd64 emulation on Apple Silicon`
50-
# 2. Run ACT using the `--container-architecture linux/amd64` flag. For example:
50+
# 2. Run ACT using the `--container-architecture linux/amd64` flag. For example:
5151
# act -W .github/workflows/k6-tests.yaml --container-architecture linux/amd64
5252

5353
- name: Run k6 foundations tests

k6/foundations/14.basic.tracing.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import http from "k6/http";
22
import { check, sleep } from "k6";
3-
import tracing from 'k6/experimental/tracing';
3+
import tracing from 'https://jslib.k6.io/http-instrumentation-tempo/1.0.0/index.js';
44

55
const BASE_URL = __ENV.BASE_URL || 'http://localhost:3333';
66

@@ -31,4 +31,4 @@ export default function () {
3131
check(res, { "status is 200": (res) => res.status === 200 });
3232
console.log(`${res.json().pizza.name} (${res.json().pizza.ingredients.length} ingredients)`);
3333
sleep(1);
34-
}
34+
}

0 commit comments

Comments
 (0)