Skip to content

Commit

Permalink
Add traceparent header for otel
Browse files Browse the repository at this point in the history
  • Loading branch information
dagfinno committed Nov 5, 2024
1 parent d92b9ff commit cbadc0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/k6/tests/serviceowner/performance/create-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { postSO, expect, describe } from "../../../common/testimports.js";
import { SharedArray } from 'k6/data';
import papaparse from 'https://jslib.k6.io/papaparse/5.1.1/index.js';
import { randomItem } from 'https://jslib.k6.io/k6-utils/1.2.0/index.js';
import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.4.0/index.js';

import { getDefaultThresholds } from '../../performancetest_common/common.js'
import { default as dialogToInsert } from '../../performancetest_data/01-create-dialog.js';
Expand Down Expand Up @@ -37,7 +38,8 @@ export default function() {
export function createDialog(serviceOwner, endUser) {
var paramsWithToken = {
headers: {
Authorization: "Bearer " + serviceOwner.token
Authorization: "Bearer " + serviceOwner.token,
traceparent: uuidv4(),
},
tags: { name: 'create dialog' }
}
Expand Down

0 comments on commit cbadc0b

Please sign in to comment.