fix(SW-1819): Batching fetch for city page urls * fix(SW-1819): Batching fetch for city page urls Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { metrics } from "@opentelemetry/api"
|
|
|
|
const meter = metrics.getMeter("trpc.contentstack.destinationCityPage")
|
|
|
|
export const getDestinationCityPageRefsCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get"
|
|
)
|
|
export const getDestinationCityPageRefsFailCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get-fail"
|
|
)
|
|
export const getDestinationCityPageRefsSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get-success"
|
|
)
|
|
|
|
export const getDestinationCityPageCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get"
|
|
)
|
|
export const getDestinationCityPageSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get-success"
|
|
)
|
|
export const getDestinationCityPageFailCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCityPage.get-fail"
|
|
)
|
|
|
|
export const getCityPageCountCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageCount.get"
|
|
)
|
|
export const getCityPageCountSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageCount.get-success"
|
|
)
|
|
export const getCityPageCountFailCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageCount.get-fail"
|
|
)
|
|
|
|
export const getCityPageUrlsCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageUrls.get"
|
|
)
|
|
export const getCityPageUrlsSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageUrls.get-success"
|
|
)
|
|
export const getCityPageUrlsFailCounter = meter.createCounter(
|
|
"trpc.contentstack.cityPageUrls.get-fail"
|
|
)
|