api-node/src/reliability/utils/meter.ts
import { MeterProvider } from '@opentelemetry/sdk-metrics-base';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
const serviceName = 'hm-api-node-metric-service';
const meterProvider = new MeterProvider({
[SemanticResourceAttributes.SERVICE_NAME]: serviceName,
});
const meter = meterProvider.getMeter('hm-api-node-meter');
export default meter;