fix(SW-1754): Fix rate limit issue on Destination Overview Page * fix(SW-1754): Fix rate limit issue on Destination Overview Page Approved-by: Matilda Landström
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import { metrics } from "@opentelemetry/api"
|
|
|
|
const meter = metrics.getMeter("trpc.contentstack.destinationCountryPage")
|
|
|
|
export const getDestinationCountryPageRefsCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get"
|
|
)
|
|
export const getDestinationCountryPageRefsFailCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get-fail"
|
|
)
|
|
export const getDestinationCountryPageRefsSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get-success"
|
|
)
|
|
|
|
export const getDestinationCountryPageCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get"
|
|
)
|
|
export const getDestinationCountryPageSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get-success"
|
|
)
|
|
export const getDestinationCountryPageFailCounter = meter.createCounter(
|
|
"trpc.contentstack.destinationCountryPage.get-fail"
|
|
)
|
|
|
|
export const getCityListDataCounter = meter.createCounter(
|
|
"trpc.contentstack.cityListData.get"
|
|
)
|
|
export const getCityListDataSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.cityListData.get-success"
|
|
)
|
|
export const getCityListDataFailCounter = meter.createCounter(
|
|
"trpc.contentstack.cityListData.get-fail"
|
|
)
|
|
|
|
export const getCountryPageUrlsCounter = meter.createCounter(
|
|
"trpc.contentstack.getCountryPageUrls"
|
|
)
|
|
|
|
export const getCountryPageUrlsSuccessCounter = meter.createCounter(
|
|
"trpc.contentstack.getCountryPageUrls-success"
|
|
)
|
|
|
|
export const getCountryPageUrlsFailCounter = meter.createCounter(
|
|
"trpc.contentstack.getCountryPageUrls-fail"
|
|
)
|