[kbn-performance-testing-dataset-extractor] add missing value: url.query (#140092)

This commit is contained in:
Dzmitry Lemechko 2022-09-06 17:15:03 +02:00 committed by GitHub
parent 99f10944c6
commit 06a3e1d501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,7 @@ for i in "${scalabilityJourneys[@]}"; do
echo "Looking for JOURNEY=${JOURNEY_NAME} and BUILD_ID=${BUILD_ID} in APM traces"
node scripts/extract_performance_testing_dataset \
--config "x-pack/test/performance/journeys/${i}/config.ts" \ \
--config "x-pack/test/performance/journeys/${i}/config.ts" \
--buildId "${BUILD_ID}" \
--es-url "${ES_SERVER_URL}" \
--es-username "${USER_FROM_VAULT}" \

View file

@ -62,7 +62,7 @@ export interface SpanDocument extends Omit<Document, 'transaction'> {
export interface TransactionDocument extends Omit<Document, 'service'> {
service: { name: string; environment: string; version: string };
processor: string;
url: { path: string };
url: { path: string; query?: string };
http: {
request: Request;
response: Response;

View file

@ -62,6 +62,7 @@ export const getKibanaRequests = (
http: {
method: hit.http.request.method,
path: hit.url.path,
query: hit.url?.query,
headers: combineHeaderFieldValues(hit.http.request.headers),
body: payload ? JSON.stringify(strToJSON(payload)) : undefined,
statusCode: hit.http.response.status_code,

View file

@ -17,6 +17,7 @@ export interface Request {
http: {
method: string;
path: string;
query?: string;
headers?: { [key: string]: string };
params?: string;
body?: JSON | string;