metricsMeta.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. export function MetricsMeta(additionalMeta = []) {
  2. return [
  3. {
  4. name: 'sentry.sessions.session',
  5. type: 'counter',
  6. operations: ['sum'],
  7. unit: null,
  8. },
  9. {
  10. name: 'sentry.sessions.session.error',
  11. type: 'set',
  12. operations: ['count_unique'],
  13. unit: null,
  14. },
  15. {
  16. name: 'sentry.sessions.user',
  17. type: 'set',
  18. operations: ['count_unique'],
  19. unit: null,
  20. },
  21. {
  22. name: 'sentry.transactions.measurements.fcp',
  23. type: 'distribution',
  24. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  25. unit: null,
  26. },
  27. {
  28. name: 'sentry.transactions.measurements.fid',
  29. type: 'distribution',
  30. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  31. unit: null,
  32. },
  33. {
  34. name: 'sentry.transactions.measurements.fp',
  35. type: 'distribution',
  36. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  37. unit: null,
  38. },
  39. {
  40. name: 'sentry.transactions.measurements.lcp',
  41. type: 'distribution',
  42. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  43. unit: null,
  44. },
  45. {
  46. name: 'sentry.transactions.measurements.ttfb',
  47. type: 'distribution',
  48. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  49. unit: null,
  50. },
  51. {
  52. name: 'sentry.transactions.measurements.ttfb.requesttime',
  53. type: 'distribution',
  54. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  55. unit: null,
  56. },
  57. {
  58. name: 'sentry.transactions.transaction.duration',
  59. type: 'distribution',
  60. operations: ['avg', 'count', 'max', 'min', 'p50', 'p75', 'p90', 'p95', 'p99'],
  61. unit: null,
  62. },
  63. {
  64. name: 'sentry.transactions.user',
  65. type: 'set',
  66. operations: ['count_unique'],
  67. unit: null,
  68. },
  69. {
  70. name: 'session.crash_free_rate',
  71. type: 'numeric',
  72. operations: [],
  73. unit: null,
  74. },
  75. ...additionalMeta,
  76. ];
  77. }