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
34 lines
1.2 KiB
TypeScript
34 lines
1.2 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 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"
|
|
)
|