Skip to content

Commit

Permalink
Fix http-instrumentation-pyroscope not using name tag
Browse files Browse the repository at this point in the history
Fix found by @andrewslotin
  • Loading branch information
mstoykov authored Jul 18, 2024
1 parent a85b34c commit 292498f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-instrumentation-pyroscope/1.0.0/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const request = http.request;
const asyncRequest = http.asyncRequest;

function pyroBaggage(url, _, params) {
return { baggage: `k6.test_run_id=${__ENV.K6_CLOUDRUN_TEST_RUN_ID}, k6.scenario=${execution.scenario.name}, k6.name=${params?.name ? params.name : url}` }
return { baggage: `k6.test_run_id=${__ENV.K6_CLOUDRUN_TEST_RUN_ID}, k6.scenario=${execution.scenario.name}, k6.name=${params?.tags?.name ? params.tags.name : url}` }
}

class Client {
Expand Down

0 comments on commit 292498f

Please sign in to comment.