mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-03 19:32:31 -04:00
feat: add request_url_length property to request creation metrics (#10243)
(cherry picked from commit 52e2b29e10)
This commit is contained in:
committed by
Insomnia
parent
bff3d952a1
commit
67b2dbbd1a
@@ -134,6 +134,7 @@ export async function clientAction({ params, request }: Route.ClientActionArgs)
|
||||
project_id: projectId,
|
||||
collection_id: workspaceId,
|
||||
request_key_id: activeRequestId,
|
||||
request_url_length: req?.url?.length || 0,
|
||||
has_prescript: !!req?.preRequestScript,
|
||||
has_postscript: !!req?.afterResponseScript,
|
||||
request_header_names: req?.headers?.map(h => h.name) || [],
|
||||
|
||||
@@ -208,6 +208,7 @@ export async function clientAction({ request, params }: Route.ClientActionArgs)
|
||||
|
||||
const requestCreatedProperties = {
|
||||
requestType: 'HTTP',
|
||||
request_url_length: 0,
|
||||
...(workspaceData.source && { source: workspaceData.source }),
|
||||
};
|
||||
window.main.trackAnalyticsEvent({
|
||||
|
||||
Reference in New Issue
Block a user