| 1 | import { metrics } from '@opentelemetry/api'; |
| 2 | |
| 3 | /** The global meter provider is registered by `instrumentation.ts` before Nest loads: a meter taken before that is a no-op for the life of the process. */ |
| 4 | export const meter = |
| 5 | |
| 6 | export const pushesTotal = |
| 7 | description: 'Pushes accepted into the write-ahead log.', |
| 8 | }); |
| 9 | |
| 10 | export const pushBytesTotal = |
| 11 | unit: 'By', |
| 12 | description: 'Packfile bytes accepted into the write-ahead log.', |
| 13 | }); |
| 14 | |
| 15 | export const refUpdatesTotal = |
| 16 | description: 'Ref transitions applied by accepted pushes.', |
| 17 | }); |