feature: add telemetry to the HTTP layer (#9116)

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
This commit is contained in:
Harminder Virk
2024-09-13 12:36:54 +05:30
committed by GitHub
parent 8c2a5fbcf2
commit 9cf0df53b5
12 changed files with 951 additions and 44 deletions

View File

@@ -7,7 +7,11 @@ import { NextFunction } from "express"
import { MedusaRequest } from "../../../../types/routing"
export function maybeApplyPriceListsFilter() {
return async (req: MedusaRequest, _, next: NextFunction) => {
return async function applyPriceListsFilter(
req: MedusaRequest,
_,
next: NextFunction
) {
const filterableFields: HttpTypes.AdminProductListParams =
req.filterableFields