UNPKG

@graphql-mesh/plugin-prometheus

Version:
1,079 lines (740 loc) 119 kB
# @graphql-mesh/plugin-prometheus ## 1.3.41 ### Patch Changes - [#946](https://github.com/graphql-hive/gateway/pull/946) [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/utils@^0.104.2` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.2) (from `^0.104.1`, in `dependencies`) - Updated dependencies [[`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35), [`7d771d8`](https://github.com/graphql-hive/gateway/commit/7d771d89ff6d731b1025acfc5eb197541a6d5d35)]: - @graphql-hive/gateway-runtime@1.7.0 ## 1.3.40 ### Patch Changes - Updated dependencies [[`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc), [`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc)]: - @graphql-hive/gateway-runtime@1.6.6 ## 1.3.39 ### Patch Changes - Updated dependencies [[`ab96392`](https://github.com/graphql-hive/gateway/commit/ab96392b3561de62cf6a57280e4c3ac0ec98d88b)]: - @graphql-hive/gateway-runtime@1.6.5 ## 1.3.38 ### Patch Changes - Updated dependencies [[`4e33933`](https://github.com/graphql-hive/gateway/commit/4e339333945f4c4547d9ae719e67b4671fe89f04), [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106)]: - @graphql-hive/gateway-runtime@1.6.4 ## 1.3.37 ### Patch Changes - Updated dependencies [[`1950f44`](https://github.com/graphql-hive/gateway/commit/1950f44d9180c8cd8a73917487c087ab1d1b74fa), [`df1bce6`](https://github.com/graphql-hive/gateway/commit/df1bce649e3f468435aa34d9141b4c20d8d26699), [`df1bce6`](https://github.com/graphql-hive/gateway/commit/df1bce649e3f468435aa34d9141b4c20d8d26699)]: - @graphql-hive/gateway-runtime@1.6.3 ## 1.3.36 ### Patch Changes - Updated dependencies [[`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448), [`278618a`](https://github.com/graphql-hive/gateway/commit/278618a1383a01016041ce0a40adec8803c62448)]: - @graphql-hive/gateway-runtime@1.6.2 ## 1.3.35 ### Patch Changes - [#838](https://github.com/graphql-hive/gateway/pull/838) [`b19309b`](https://github.com/graphql-hive/gateway/commit/b19309b450482c203b1c71fb5762320c7e5fa739) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Removed dependency [`@whatwg-node/disposablestack@^0.0.6` ↗︎](https://www.npmjs.com/package/@whatwg-node/disposablestack/v/0.0.6) (from `dependencies`) - Updated dependencies [[`b19309b`](https://github.com/graphql-hive/gateway/commit/b19309b450482c203b1c71fb5762320c7e5fa739), [`115a1f1`](https://github.com/graphql-hive/gateway/commit/115a1f16791e5de39b14a41b375d061113844a1b)]: - @graphql-hive/gateway-runtime@1.6.1 ## 1.3.34 ### Patch Changes - Updated dependencies [[`17cfa19`](https://github.com/graphql-hive/gateway/commit/17cfa190bf7965681716e5e1ec601793a85935d8), [`17cfa19`](https://github.com/graphql-hive/gateway/commit/17cfa190bf7965681716e5e1ec601793a85935d8)]: - @graphql-hive/gateway-runtime@1.6.0 ## 1.3.33 ### Patch Changes - [#706](https://github.com/graphql-hive/gateway/pull/706) [`e393337`](https://github.com/graphql-hive/gateway/commit/e393337ecb40beffb79748b19b5aa8f2fd9197b7) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@graphql-mesh/utils@^0.104.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.1) (from `^0.104.0`, in `dependencies`) - [#727](https://github.com/graphql-hive/gateway/pull/727) [`c54a080`](https://github.com/graphql-hive/gateway/commit/c54a080b8b9c477ed55dd7c23fc8fcae9139bec8) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@whatwg-node/disposablestack@^0.0.6` ↗︎](https://www.npmjs.com/package/@whatwg-node/disposablestack/v/0.0.6) (from `^0.0.5`, in `dependencies`) - [#775](https://github.com/graphql-hive/gateway/pull/775) [`33f7dfd`](https://github.com/graphql-hive/gateway/commit/33f7dfdb10eef2a1e7f6dffe0ce6e4bb3cc7c2c6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-mesh/types@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.0) (from `^0.103.18`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.0) (from `^0.103.18`, in `dependencies`) - Updated dependencies [[`e393337`](https://github.com/graphql-hive/gateway/commit/e393337ecb40beffb79748b19b5aa8f2fd9197b7), [`6334b2e`](https://github.com/graphql-hive/gateway/commit/6334b2e5d4942693121ab7d44a96fa80408aace1), [`c54a080`](https://github.com/graphql-hive/gateway/commit/c54a080b8b9c477ed55dd7c23fc8fcae9139bec8), [`f974f5b`](https://github.com/graphql-hive/gateway/commit/f974f5b22fb6a0f1a6d605eac69d94ad90357a9c), [`ff6dcaf`](https://github.com/graphql-hive/gateway/commit/ff6dcafbb226d66cc95f29e7287b4ca4eb4e9f8d), [`33f7dfd`](https://github.com/graphql-hive/gateway/commit/33f7dfdb10eef2a1e7f6dffe0ce6e4bb3cc7c2c6), [`6cef6f0`](https://github.com/graphql-hive/gateway/commit/6cef6f0d6389b5521900d220a1d0ff1bee8158b6), [`b145a27`](https://github.com/graphql-hive/gateway/commit/b145a27fc8671f33c36f9f6a3a437d80107631ee), [`9c2f323`](https://github.com/graphql-hive/gateway/commit/9c2f323ece47d9c0ef8f4e44050390096ceac17f), [`bbc98c5`](https://github.com/graphql-hive/gateway/commit/bbc98c58277283f064ba826a3d844709f75ac451), [`ee00eaf`](https://github.com/graphql-hive/gateway/commit/ee00eaf8cd843dacba20b9235033b62f061195f7), [`ee00eaf`](https://github.com/graphql-hive/gateway/commit/ee00eaf8cd843dacba20b9235033b62f061195f7), [`717b293`](https://github.com/graphql-hive/gateway/commit/717b29326b1b1a8d6b0ef399205b44eca123e648), [`e0d5feb`](https://github.com/graphql-hive/gateway/commit/e0d5feb156f896be5c5235eb1ae22144cf67eff9)]: - @graphql-hive/gateway-runtime@1.5.0 ## 1.3.32 ### Patch Changes - [#695](https://github.com/graphql-hive/gateway/pull/695) [`2e3ce14`](https://github.com/graphql-hive/gateway/commit/2e3ce1423049553d5cb1d14645295c5f04b96c85) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Removed dependency [`graphql-yoga@^5.10.11` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.11) (from `peerDependencies`) - [#696](https://github.com/graphql-hive/gateway/pull/696) [`a289faa`](https://github.com/graphql-hive/gateway/commit/a289faae1469eb46f1458be341d21909fe5f8f8f) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/cross-helpers@^0.4.10` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.10) (from `^0.4.9`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.18` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.18) (from `^0.103.6`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.18` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.18) (from `^0.103.6`, in `dependencies`) - Updated dependencies [[`0ff5c55`](https://github.com/graphql-hive/gateway/commit/0ff5c55501ac766057cd3290dd5ec73093438764), [`40f5d1d`](https://github.com/graphql-hive/gateway/commit/40f5d1d1765de020e0486a392a2223d8d83a9962), [`2e3ce14`](https://github.com/graphql-hive/gateway/commit/2e3ce1423049553d5cb1d14645295c5f04b96c85), [`a289faa`](https://github.com/graphql-hive/gateway/commit/a289faae1469eb46f1458be341d21909fe5f8f8f), [`a9395eb`](https://github.com/graphql-hive/gateway/commit/a9395eb29b25c795701642176243b3aac629dbef)]: - @graphql-hive/gateway-runtime@1.4.17 ## 1.3.31 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.15 ## 1.3.30 ### Patch Changes - Updated dependencies [[`36b1baf`](https://github.com/graphql-hive/gateway/commit/36b1bafdcded06dc3d7a2166b7a39988d07af817)]: - @graphql-hive/gateway-runtime@1.4.14 ## 1.3.29 ### Patch Changes - [#620](https://github.com/graphql-hive/gateway/pull/620) [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.8.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.1) (from `^10.7.0`, in `dependencies`) - Updated dependencies [[`260faaf`](https://github.com/graphql-hive/gateway/commit/260faafa26598066ee95ee501858998483d46e1f), [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9), [`4c82bb1`](https://github.com/graphql-hive/gateway/commit/4c82bb176c230d46fd69747c1b83a0d0a400eddb), [`30e41a6`](https://github.com/graphql-hive/gateway/commit/30e41a6f5b97c42ae548564bce3f6e4a92b1225f), [`30e41a6`](https://github.com/graphql-hive/gateway/commit/30e41a6f5b97c42ae548564bce3f6e4a92b1225f)]: - @graphql-hive/gateway-runtime@1.4.13 ## 1.3.28 ### Patch Changes - Updated dependencies [[`8c80ac9`](https://github.com/graphql-hive/gateway/commit/8c80ac98cd5afd7c063945f4704fe4866622c5d7), [`8c80ac9`](https://github.com/graphql-hive/gateway/commit/8c80ac98cd5afd7c063945f4704fe4866622c5d7)]: - @graphql-hive/gateway-runtime@1.4.12 ## 1.3.27 ### Patch Changes - Updated dependencies [[`0b13cb4`](https://github.com/graphql-hive/gateway/commit/0b13cb472305edd01cdbd964a71995831797305e)]: - @graphql-hive/gateway-runtime@1.4.11 ## 1.3.26 ### Patch Changes - [#538](https://github.com/graphql-hive/gateway/pull/538) [`aab5441`](https://github.com/graphql-hive/gateway/commit/aab544176983e241c62f15242a35ca1398efa044) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`graphql-yoga@^5.10.11` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.11) (from `^5.10.6`, in `peerDependencies`) - Updated dependencies [[`aab5441`](https://github.com/graphql-hive/gateway/commit/aab544176983e241c62f15242a35ca1398efa044), [`46888f1`](https://github.com/graphql-hive/gateway/commit/46888f1202cfb300b540b78199250b0b426c069d), [`180c2c4`](https://github.com/graphql-hive/gateway/commit/180c2c43218027600d3ad6ce74b413ad7621d427), [`46888f1`](https://github.com/graphql-hive/gateway/commit/46888f1202cfb300b540b78199250b0b426c069d), [`61f387c`](https://github.com/graphql-hive/gateway/commit/61f387c8a1e18a5d7a37cd33afb428488ac13aed)]: - @graphql-hive/gateway-runtime@1.4.10 ## 1.3.25 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.9 ## 1.3.24 ### Patch Changes - Updated dependencies [[`14152f7`](https://github.com/graphql-hive/gateway/commit/14152f70d91572c0e60ba15ddeb2ffd0b41c9e92), [`14152f7`](https://github.com/graphql-hive/gateway/commit/14152f70d91572c0e60ba15ddeb2ffd0b41c9e92), [`14152f7`](https://github.com/graphql-hive/gateway/commit/14152f70d91572c0e60ba15ddeb2ffd0b41c9e92)]: - @graphql-hive/gateway-runtime@1.4.8 ## 1.3.23 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.7 ## 1.3.22 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.6 ## 1.3.21 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.5 ## 1.3.20 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.4.4 ## 1.3.19 ### Patch Changes - [#373](https://github.com/graphql-hive/gateway/pull/373) [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.7.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.7.0) (from `^10.6.2`, in `dependencies`) - Updated dependencies [[`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2), [`15975c2`](https://github.com/graphql-hive/gateway/commit/15975c28daddbb4f31d520371f53520aecacaac7), [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2)]: - @graphql-hive/gateway-runtime@1.4.3 ## 1.3.18 ### Patch Changes - Updated dependencies [[`8b64103`](https://github.com/graphql-hive/gateway/commit/8b64103324d82c4934ff459ea644276bafbcda17), [`122c013`](https://github.com/graphql-hive/gateway/commit/122c0133bea6137b1760b4af064de9aeba53bcc5), [`2f59fce`](https://github.com/graphql-hive/gateway/commit/2f59fce8aece4a326b20d4a9db2ee53773675e70)]: - @graphql-hive/gateway-runtime@1.4.2 ## 1.3.17 ### Patch Changes - [#333](https://github.com/graphql-hive/gateway/pull/333) [`0d81307`](https://github.com/graphql-hive/gateway/commit/0d813079753e7c66158499e2db6e301a3c145856) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-prometheus@^6.5.3` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/6.5.3) (from `^6.5.0`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.10.6` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.6) (from `^5.10.4`, in `peerDependencies`) - Updated dependencies [[`0d81307`](https://github.com/graphql-hive/gateway/commit/0d813079753e7c66158499e2db6e301a3c145856)]: - @graphql-hive/gateway-runtime@1.4.1 ## 1.3.16 ### Patch Changes - Updated dependencies [[`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2), [`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2)]: - @graphql-hive/gateway-runtime@1.4.0 ## 1.3.15 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.15 ## 1.3.14 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.14 ## 1.3.13 ### Patch Changes - Updated dependencies [[`21ac43e`](https://github.com/graphql-hive/gateway/commit/21ac43eaa46a704a8ffc91398d01240fb2f4b33a)]: - @graphql-hive/gateway-runtime@1.3.13 ## 1.3.12 ### Patch Changes - [#291](https://github.com/graphql-hive/gateway/pull/291) [`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/cross-helpers@^0.4.9` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.9) (from `^0.4.8`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.6) (from `^0.103.4`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.6) (from `^0.103.4`, in `dependencies`) - Updated dependency [`tslib@^2.8.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.1) (from `^2.4.0`, in `dependencies`) - Updated dependency [`graphql-yoga@^5.10.4` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.4) (from `^5.10.3`, in `peerDependencies`) - Updated dependencies [[`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151)]: - @graphql-hive/gateway-runtime@1.3.12 ## 1.3.11 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.11 ## 1.3.10 ### Patch Changes - [#286](https://github.com/graphql-hive/gateway/pull/286) [`ed9e205`](https://github.com/graphql-hive/gateway/commit/ed9e205adf705f31b6ae85ce4ad7a8eb0b30fe32) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates: - Removed dependency [`@graphql-mesh/store@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/store/v/0.103.4) (from `dependencies`) - Updated dependencies [[`ed9e205`](https://github.com/graphql-hive/gateway/commit/ed9e205adf705f31b6ae85ce4ad7a8eb0b30fe32)]: - @graphql-hive/gateway-runtime@1.3.10 ## 1.3.9 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.9 ## 1.3.8 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.8 ## 1.3.7 ### Patch Changes - [#269](https://github.com/graphql-hive/gateway/pull/269) [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.0`, in `dependencies`) - Updated dependencies [[`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4)]: - @graphql-hive/gateway-runtime@1.3.7 ## 1.3.6 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.6 ## 1.3.5 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.5 ## 1.3.4 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.4 ## 1.3.3 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.3 ## 1.3.2 ### Patch Changes - Updated dependencies []: - @graphql-hive/gateway-runtime@1.3.2 ## 1.3.1 ### Patch Changes - [#205](https://github.com/graphql-hive/gateway/pull/205) [`2e0add3`](https://github.com/graphql-hive/gateway/commit/2e0add3ea9b237ad385d5b5cd4c12eeeb847805a) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`graphql-yoga@^5.10.3` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.3) (from `^4.0.5 || ^5.0.0`, in `peerDependencies`) - Updated dependencies [[`baf896d`](https://github.com/graphql-hive/gateway/commit/baf896d961bf122f7598355b0e9a09d93be1d822), [`d7d3e85`](https://github.com/graphql-hive/gateway/commit/d7d3e856d30f64922d540ad4228f589524001f93)]: - @graphql-hive/gateway-runtime@1.3.1 ## 1.3.0 ### Minor Changes - [#174](https://github.com/graphql-hive/gateway/pull/174) [`92d977e`](https://github.com/graphql-hive/gateway/commit/92d977eaa784b1e78f091f6f155dd347052cc6b3) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Allow to explicitly control which events and timing should be observe. Each metric can now be configured to observe events and timings only for certain GraphQL pipeline phases, or depending on the request context. ## Example: trace only execution and subscription errors ```ts import { defineConfig } from '@graphql-hive/gateway'; const TRACKED_OPERATION_NAMES = [ // make a list of operation that you want to monitor ]; export const gatewayConfig = defineConfig({ prometheus: { metrics: { // Here, an array of phases can be provided to enable the metric only on certain phases. // In this example, only error happening during the execute and subscribe phases will tracked graphql_envelop_phase_error: ['execute', 'subscribe'], }, }, }); ``` ## Example: Monitor timing only of a set of operations by name ```ts import { defineConfig } from '@graphql-hive/gateway'; const TRACKED_OPERATION_NAMES = [ // make a list of operation that you want to monitor ]; export const gatewayConfig = defineConfig({ prometheus: { metrics: { graphql_yoga_http_duration: createHistogram({ registry, histogram: { name: 'graphql_envelop_request_duration', help: 'Time spent on HTTP connection', labelNames: ['operationName'], }, fillLabelsFn: ({ operationName }, _rawContext) => ({ operationName }), phases: ['execute', 'subscribe'], // Here `shouldObserve` control if the request timing should be observed, based on context shouldObserve: ({ operationName }) => TRACKED_OPERATIONS.includes(operationName), }), }, }, }); ``` ## Default Behavior Change A metric is enabled using `true` value in metrics options will observe in every phases available. Previously, which phase was observe was depending on which other metric were enabled. For example, this config would only trace validation error: ```ts prometheus: { metrics: { graphql_envelop_phase_error: true, graphql_envelop_phase_validate: true, }, } ``` This is no longer the case. If you were relying on this behavior, please use an array of string to restrict observed phases. ```ts prometheus: { metrics: { graphql_envelop_phase_error: ['validate'], }, } ``` ## Deprecation The `fillLabelFn` function was provided the `response` and `request` through the `context` argument. This is now deprecated, `request` and `response` are now available in the first `params` argument. This change allows to provide better typing, since `context` is not typed. ### Patch Changes - [#164](https://github.com/graphql-hive/gateway/pull/164) [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.6.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.0) (from `^10.5.6`, in `dependencies`) - [#174](https://github.com/graphql-hive/gateway/pull/174) [`92d977e`](https://github.com/graphql-hive/gateway/commit/92d977eaa784b1e78f091f6f155dd347052cc6b3) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-prometheus@^6.5.0` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/6.5.0) (from `^6.1.0`, in `dependencies`) - [#180](https://github.com/graphql-hive/gateway/pull/180) [`9438e21`](https://github.com/graphql-hive/gateway/commit/9438e21982ed5c6fb18cb678b275046595ae00f5) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/store@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/store/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.4) (from `^0.103.1`, in `dependencies`) - [#185](https://github.com/graphql-hive/gateway/pull/185) [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/store@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/store/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.4) (from `^0.103.1`, in `dependencies`) - [#98](https://github.com/graphql-hive/gateway/pull/98) [`697308d`](https://github.com/graphql-hive/gateway/commit/697308df3b2dd96f28dc65a5f5361a911077e022) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/cross-helpers@^0.4.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.8) (from `^0.4.7`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.1) (from `^0.103.0`, in `dependencies`) - Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf), [`9438e21`](https://github.com/graphql-hive/gateway/commit/9438e21982ed5c6fb18cb678b275046595ae00f5), [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b), [`a9daf33`](https://github.com/graphql-hive/gateway/commit/a9daf33e630c85b4162fbe252f6e8726c35bf314), [`697308d`](https://github.com/graphql-hive/gateway/commit/697308df3b2dd96f28dc65a5f5361a911077e022), [`9438e21`](https://github.com/graphql-hive/gateway/commit/9438e21982ed5c6fb18cb678b275046595ae00f5), [`9d0d417`](https://github.com/graphql-hive/gateway/commit/9d0d417d8b5060c3867668e5b350b709b2a3327a), [`b534288`](https://github.com/graphql-hive/gateway/commit/b5342885f8ac1197d70cbf45266c83b720b4f85a), [`5538e31`](https://github.com/graphql-hive/gateway/commit/5538e31a4242a31dbabef898d067f81cdaba5201), [`2463109`](https://github.com/graphql-hive/gateway/commit/246310992a38e1d42eef0f6324f47b68e011eab4)]: - @graphql-hive/gateway-runtime@1.3.0 ## 1.2.10 ### Patch Changes - [#138](https://github.com/graphql-hive/gateway/pull/138) [`094ca85`](https://github.com/graphql-hive/gateway/commit/094ca858182aa9253b03655c64d24f3e897c02e8) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@graphql-hive/gateway-runtime@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway-runtime/v/workspace:^) (to `dependencies`) - Added dependency [`@whatwg-node/disposablestack@^0.0.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/disposablestack/v/0.0.5) (to `dependencies`) - Removed dependency [`@graphql-hive/gateway@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway/v/workspace:^) (from `dependencies`) - Updated dependencies []: - @graphql-hive/gateway-runtime@1.2.1 ## 1.2.9 ### Patch Changes - [#148](https://github.com/graphql-hive/gateway/pull/148) [`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/store@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/store/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.0) (from `^0.102.12`, in `dependencies`) - [#150](https://github.com/graphql-hive/gateway/pull/150) [`c0e189a`](https://github.com/graphql-hive/gateway/commit/c0e189ac83901da3a101f16f151e859ff7cca19f) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/store@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/store/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependencies [[`ce37b62`](https://github.com/graphql-hive/gateway/commit/ce37b629f7d462f3e24bad8aca2ec092827c8b45), [`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1), [`c0e189a`](https://github.com/graphql-hive/gateway/commit/c0e189ac83901da3a101f16f151e859ff7cca19f), [`3bf5c10`](https://github.com/graphql-hive/gateway/commit/3bf5c10808e6d08b985ac7fd4665a7641fa91afe), [`c0e189a`](https://github.com/graphql-hive/gateway/commit/c0e189ac83901da3a101f16f151e859ff7cca19f)]: - @graphql-hive/gateway@1.5.1 ## 1.2.8 ### Patch Changes - [`19bc6a4`](https://github.com/graphql-hive/gateway/commit/19bc6a4c222ff157553785ea16760888cdfe10bb) Thanks [@enisdenjo](https://github.com/enisdenjo)! - `onError` and `onEnd` callbacks when mapping async iterators are invoked only once regardless of how many times throw/return was called on the iterator - Updated dependencies [[`86c7ac1`](https://github.com/graphql-hive/gateway/commit/86c7ac1df787e9d38bdb001483b0588ada962c5c), [`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db), [`bb5a756`](https://github.com/graphql-hive/gateway/commit/bb5a756588b66537bb5679d2a657f28242ee16e6), [`8b7e2a3`](https://github.com/graphql-hive/gateway/commit/8b7e2a373b475ac5c3d02e682f42e20d441636a4), [`e3e6a18`](https://github.com/graphql-hive/gateway/commit/e3e6a18a28352d96e4062f62e76b9ab36f7c88bb), [`c95d25e`](https://github.com/graphql-hive/gateway/commit/c95d25e3a2dbe20795f88965cdcd22a49f51f1c1), [`93bd019`](https://github.com/graphql-hive/gateway/commit/93bd019a3abe10a45c82c49dd0626e12bef7d33f), [`e73b2be`](https://github.com/graphql-hive/gateway/commit/e73b2bece94772fb14f33777c71524ac6a292bc4)]: - @graphql-hive/gateway@1.5.0 ## 1.2.7 ### Patch Changes - Updated dependencies [[`eee53b9`](https://github.com/ardatan/graphql-mesh/commit/eee53b9f455653166c39bca627b3261fbefe4eb7)]: - @graphql-mesh/utils@0.102.12 - @graphql-mesh/types@0.102.12 ## 1.2.6 ### Patch Changes - [#7875](https://github.com/ardatan/graphql-mesh/pull/7875) [`bc81857`](https://github.com/ardatan/graphql-mesh/commit/bc81857ee8b632e9aedc9cd96668aa7e2abde1af) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-hive/gateway@^1.4.8` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway/v/1.4.8) (from `^1.4.1`, in `dependencies`) ## 1.2.5 ### Patch Changes - [#7838](https://github.com/ardatan/graphql-mesh/pull/7838) [`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@graphql-hive/gateway@^1.4.1` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway/v/1.4.1) (to `dependencies`) - Removed dependency [`@graphql-mesh/serve-runtime@^1.2.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/serve-runtime/v/1.2.4) (from `dependencies`) - Updated dependencies [[`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af), [`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af)]: - @graphql-mesh/types@0.102.11 - @graphql-mesh/utils@0.102.11 ## 1.2.4 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@1.2.4 ## 1.2.3 ### Patch Changes - Updated dependencies [[`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71), [`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71), [`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71)]: - @graphql-mesh/serve-runtime@1.2.3 - @graphql-mesh/types@0.102.10 - @graphql-mesh/utils@0.102.10 ## 1.2.2 ### Patch Changes - Updated dependencies [[`fad4d27`](https://github.com/ardatan/graphql-mesh/commit/fad4d27bfebb80a374c2041b86ffab509845effe)]: - @graphql-mesh/utils@0.102.9 - @graphql-mesh/serve-runtime@1.2.2 - @graphql-mesh/types@0.102.9 ## 1.2.1 ### Patch Changes - Updated dependencies [[`f7ad933`](https://github.com/ardatan/graphql-mesh/commit/f7ad933b242ca5facb219364f73d1a3befc2bc17)]: - @graphql-mesh/serve-runtime@1.2.1 ## 1.2.0 ### Patch Changes - Updated dependencies [[`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c), [`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c), [`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c), [`cc53c6c`](https://github.com/ardatan/graphql-mesh/commit/cc53c6c6056dcb38477b260e916825d4c8864b57)]: - @graphql-mesh/serve-runtime@1.2.0 - @graphql-mesh/types@0.102.8 - @graphql-mesh/utils@0.102.8 ## 1.1.1 ### Patch Changes - Updated dependencies [[`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be), [`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be), [`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be)]: - @graphql-mesh/serve-runtime@1.1.1 - @graphql-mesh/types@0.102.7 - @graphql-mesh/utils@0.102.7 ## 1.1.0 ### Patch Changes - Updated dependencies [[`e2b7b14`](https://github.com/ardatan/graphql-mesh/commit/e2b7b14fa9fddd41cdfd80d5ab3ae1d97fa9a251)]: - @graphql-mesh/serve-runtime@1.1.0 ## 1.0.5 ### Patch Changes - Updated dependencies [[`bf588d3`](https://github.com/ardatan/graphql-mesh/commit/bf588d372c0078378aaa24beea2da794af7949e6), [`9801fbb`](https://github.com/ardatan/graphql-mesh/commit/9801fbbe9a874d63ca839edf29468a49be79b565)]: - @graphql-mesh/utils@0.102.6 - @graphql-mesh/serve-runtime@1.0.5 - @graphql-mesh/types@0.102.6 ## 1.0.4 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@1.0.4 ## 1.0.3 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@1.0.3 ## 1.0.2 ### Patch Changes - Updated dependencies [[`547cbb7`](https://github.com/ardatan/graphql-mesh/commit/547cbb7afa17d1559d9b365facc51618df995367), [`547cbb7`](https://github.com/ardatan/graphql-mesh/commit/547cbb7afa17d1559d9b365facc51618df995367)]: - @graphql-mesh/serve-runtime@1.0.2 ## 1.0.1 ### Patch Changes - Updated dependencies [[`ccadfab`](https://github.com/ardatan/graphql-mesh/commit/ccadfabb345139f6320861752872e7454b0feea0)]: - @graphql-mesh/serve-runtime@1.0.1 ## 1.0.0 ### Patch Changes - Updated dependencies [[`b822c26`](https://github.com/ardatan/graphql-mesh/commit/b822c268b0bab3a91b3ebeed3eca90a9810b5778)]: - @graphql-mesh/serve-runtime@1.0.0 ## 0.107.4 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@0.9.4 ## 0.107.3 ### Patch Changes - Updated dependencies [[`81c25d3`](https://github.com/ardatan/graphql-mesh/commit/81c25d3a32ba9048303be26b5a38eeaf82a66e73)]: - @graphql-mesh/serve-runtime@0.9.3 ## 0.107.2 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@0.9.2 ## 0.107.1 ### Patch Changes - Updated dependencies [[`bc70d78`](https://github.com/ardatan/graphql-mesh/commit/bc70d78c7542d1ca46fe65a9886da880e7e574b7)]: - @graphql-mesh/serve-runtime@0.9.1 ## 0.107.0 ### Minor Changes - [#7580](https://github.com/ardatan/graphql-mesh/pull/7580) [`75e9f63`](https://github.com/ardatan/graphql-mesh/commit/75e9f63d09514a0af786f909dc8c32ac09a1a849) Thanks [@ardatan](https://github.com/ardatan)! - BREAKING: All types prefixed with `MeshServe`, now are prefixed with `Gateway`. e.g. `MeshServeRuntime` -> `GatewayRuntime` Runtime factory is renamed; `createServeRuntime` -> `createGatewayRuntime` The expected export name for config files are renamed from `serveConfig` to `gatewayConfig` RENAMING: You can rename the product, config file name etc by using the following config options; For example; ```ts productName = 'Mesh Gateway'; productDescription = 'Mesh Gateway is a GraphQL Gateway that can be used to serve a supergraph schema.'; productLogo = '<svg>...</svg>'; productPackageName = '@graphql-mesh/gateway'; ``` - [#7582](https://github.com/ardatan/graphql-mesh/pull/7582) [`2ac3981`](https://github.com/ardatan/graphql-mesh/commit/2ac3981ce8e03ba5bfb78f8aceca7e4ed06f938a) Thanks [@dotansimha](https://github.com/dotansimha)! - **Breaking Change:** Rename all metrics options to their actual metric name to avoid confusion. All metric options have been moved under a mandatory `metrics` key, and the name of each options have been renamed to match the default metric name. The plugin option argument is also now mandatory. ```diff export const serveConfig = defineConfig({ plugins: pluginCtx => [ usePrometheus({ ...pluginCtx, // Enable all available metrics - fetchMetrics: true, - subgraphExecute: true, - subgraphExecuteErrors: true, - http: true - requestSummary: true, - parse: true, - validate: true, - contextBuilding: true, - execute: true, - subscribe: true, - errors: true, - deprecatedFields: true, - requestTotalDuration: true, - schemaChangeCount: true, // Warning: enabling resolvers level metrics will introduce significant overhead - resolvers: true, + metrics: { + graphql_gateway_fetch_duration: true, + graphql_gateway_subgraph_execute_duration: true, + graphql_gateway_subgraph_execute_errors + graphql_yoga_http_duration: true, + graphql_envelop_request_time_summary: true, + graphql_envelop_phase_parse: true, + graphql_envelop_phase_validate: true, + graphql_envelop_phase_context: true, + graphql_envelop_phase_execute: true, + graphql_envelop_phase_subscribe: true, + graphql_envelop_error_result: true, + graphql_envelop_deprecated_field: true, + graphql_envelop_request_duration: true, + graphql_envelop_schema_change: true, // Warning: enabling resolvers level metrics will introduce significant overhead + graphql_envelop_execute_resolver: true, + } }) ] }) ``` ### Patch Changes - [#7582](https://github.com/ardatan/graphql-mesh/pull/7582) [`2ac3981`](https://github.com/ardatan/graphql-mesh/commit/2ac3981ce8e03ba5bfb78f8aceca7e4ed06f938a) Thanks [@dotansimha](https://github.com/dotansimha)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-prometheus@6.0.0` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/6.0.0) (from `^5.0.0`, in `dependencies`) - [#7582](https://github.com/ardatan/graphql-mesh/pull/7582) [`2ac3981`](https://github.com/ardatan/graphql-mesh/commit/2ac3981ce8e03ba5bfb78f8aceca7e4ed06f938a) Thanks [@dotansimha](https://github.com/dotansimha)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-prometheus@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/6.1.0) (from `^6.0.0`, in `dependencies`) - Added dependency [`prom-client@^15.0.0` ↗︎](https://www.npmjs.com/package/prom-client/v/15.0.0) (to `dependencies`) - [#7582](https://github.com/ardatan/graphql-mesh/pull/7582) [`2ac3981`](https://github.com/ardatan/graphql-mesh/commit/2ac3981ce8e03ba5bfb78f8aceca7e4ed06f938a) Thanks [@dotansimha](https://github.com/dotansimha)! - Add missing labels `path` and `phase` of `graphql_envelop_error_result` metric to the configuration. Add missing labels `method` and `statusCode` of `graphql_yoga_http_duration` metric to the configuration. - [#7594](https://github.com/ardatan/graphql-mesh/pull/7594) [`9f01438`](https://github.com/ardatan/graphql-mesh/commit/9f01438fbdf327c0a4bfa0cf440d890ec871ffcc) Thanks [@ardatan](https://github.com/ardatan)! - Adding these plugins to serve-runtime by default, and make them configurable through the configuration; - `useResponseCache` - `useContentEncoding` - `useDeferStream` - `useExecutionCancellation` - `useUpstreamCancellation` - `useDisableIntrospection` - `useCSRFPrevention` - `useCustomAgent` - `useGenericAuth` - `useHMACUpstreamSignature` - `useWebhooks` In addition, the following ones are added to the serve-cli: - `useJWT` - `usePrometheus` - `useOpenTelemetry` - `useRateLimit` - Updated dependencies [[`9f01438`](https://github.com/ardatan/graphql-mesh/commit/9f01438fbdf327c0a4bfa0cf440d890ec871ffcc), [`3bf14b3`](https://github.com/ardatan/graphql-mesh/commit/3bf14b33ee621cce004a329928b8a04a68218016), [`b7f6ebf`](https://github.com/ardatan/graphql-mesh/commit/b7f6ebfa077957c3a1ecad1fed449e972cb09ae0), [`0a3e52c`](https://github.com/ardatan/graphql-mesh/commit/0a3e52c2ad2941e7c48f0e80706db41644797c2d), [`3bf14b3`](https://github.com/ardatan/graphql-mesh/commit/3bf14b33ee621cce004a329928b8a04a68218016), [`b7f6ebf`](https://github.com/ardatan/graphql-mesh/commit/b7f6ebfa077957c3a1ecad1fed449e972cb09ae0), [`0a3e52c`](https://github.com/ardatan/graphql-mesh/commit/0a3e52c2ad2941e7c48f0e80706db41644797c2d), [`75e9f63`](https://github.com/ardatan/graphql-mesh/commit/75e9f63d09514a0af786f909dc8c32ac09a1a849), [`9f01438`](https://github.com/ardatan/graphql-mesh/commit/9f01438fbdf327c0a4bfa0cf440d890ec871ffcc), [`d4838b0`](https://github.com/ardatan/graphql-mesh/commit/d4838b0f530dc1841ad9da0cd88cb26387564012)]: - @graphql-mesh/serve-runtime@0.9.0 - @graphql-mesh/utils@0.102.5 - @graphql-mesh/types@0.102.5 ## 0.106.3 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@0.8.6 ## 0.106.2 ### Patch Changes - Updated dependencies [[`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005), [`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005), [`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005)]: - @graphql-mesh/serve-runtime@0.8.5 - @graphql-mesh/types@0.102.4 - @graphql-mesh/utils@0.102.4 ## 0.106.1 ### Patch Changes - Updated dependencies [[`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4), [`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4), [`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4)]: - @graphql-mesh/serve-runtime@0.8.4 - @graphql-mesh/types@0.102.3 - @graphql-mesh/utils@0.102.3 ## 0.106.0 ### Minor Changes - [#7407](https://github.com/ardatan/graphql-mesh/pull/7407) [`3ea4ea7`](https://github.com/ardatan/graphql-mesh/commit/3ea4ea7e62f4a957a3733eab59ccefd37d8b9e8e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - **Breaking Change:** Rename all metrics options to their actual metric name to avoid confusion. All metric options have been moved under a mandatory `metrics` key, and the name of each options have been renamed to match the default metric name. The plugin option argument is also now mandatory. ```diff export const serveConfig = defineConfig({ plugins: pluginCtx => [ usePrometheus({ ...pluginCtx, // Enable all available metrics - fetchMetrics: true, - subgraphExecute: true, - subgraphExecuteErrors: true, - http: true - requestSummary: true, - parse: true, - validate: true, - contextBuilding: true, - execute: true, - subscribe: true, - errors: true, - deprecatedFields: true, - requestTotalDuration: true, - schemaChangeCount: true, // Warning: enabling resolvers level metrics will introduce significant overhead - resolvers: true, + metrics: { + graphql_gateway_fetch_duration: true, + graphql_gateway_subgraph_execute_duration: true, + graphql_gateway_subgraph_execute_errors + graphql_yoga_http_duration: true, + graphql_envelop_request_time_summary: true, + graphql_envelop_phase_parse: true, + graphql_envelop_phase_validate: true, + graphql_envelop_phase_context: true, + graphql_envelop_phase_execute: true, + graphql_envelop_phase_subscribe: true, + graphql_envelop_error_result: true, + graphql_envelop_deprecated_field: true, + graphql_envelop_request_duration: true, + graphql_envelop_schema_change: true, // Warning: enabling resolvers level metrics will introduce significant overhead + graphql_envelop_execute_resolver: true, + } }) ] }) ``` ### Patch Changes - [#7407](https://github.com/ardatan/graphql-mesh/pull/7407) [`3ea4ea7`](https://github.com/ardatan/graphql-mesh/commit/3ea4ea7e62f4a957a3733eab59ccefd37d8b9e8e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@graphql-yoga/plugin-prometheus@^6.0.0` ↗︎](https://www.npmjs.com/package/@graphql-yoga/plugin-prometheus/v/6.0.0) (from `^5.0.0`, in `dependencies`) - [#7407](https://github.com/ardatan/graphql-mesh/pull/7407) [`3ea4ea7`](https://github.com/ardatan/graphql-mesh/commit/3ea4ea7e62f4a957a3733eab59ccefd37d8b9e8e) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Add missing labels `path` and `phase` of `graphql_envelop_error_result` metric to the configuration. Add missing labels `method` and `statusCode` of `graphql_yoga_http_duration` metric to the configuration. - Updated dependencies [[`3ea4ea7`](https://github.com/ardatan/graphql-mesh/commit/3ea4ea7e62f4a957a3733eab59ccefd37d8b9e8e), [`46f847d`](https://github.com/ardatan/graphql-mesh/commit/46f847d47e9ced84a0010c5f3a9aae5702e0f96f), [`416897a`](https://github.com/ardatan/graphql-mesh/commit/416897a9b8924d309e685faf92325391f7d7f687)]: - @graphql-mesh/serve-runtime@0.8.3 ## 0.105.2 ### Patch Changes - Updated dependencies [[`5d95aad`](https://github.com/ardatan/graphql-mesh/commit/5d95aad185448e8e3a004a08e364f98ee9bbee2a), [`5d95aad`](https://github.com/ardatan/graphql-mesh/commit/5d95aad185448e8e3a004a08e364f98ee9bbee2a)]: - @graphql-mesh/serve-runtime@0.8.2 - @graphql-mesh/utils@0.102.2 - @graphql-mesh/types@0.102.2 ## 0.105.1 ### Patch Changes - Updated dependencies [[`e49a7e6`](https://github.com/ardatan/graphql-mesh/commit/e49a7e69475b652a53a0f289a44247e8b7ea96de), [`e49a7e6`](https://github.com/ardatan/graphql-mesh/commit/e49a7e69475b652a53a0f289a44247e8b7ea96de)]: - @graphql-mesh/serve-runtime@0.8.1 - @graphql-mesh/utils@0.102.1 - @graphql-mesh/types@0.102.1 ## 0.105.0 ### Patch Changes - Updated dependencies [[`86acf63`](https://github.com/ardatan/graphql-mesh/commit/86acf6382b15e00fde87b718e84bb86e682621a8), [`db41f96`](https://github.com/ardatan/graphql-mesh/commit/db41f96b392de95d5f3aff958df399bf58575373), [`db41f96`](https://github.com/ardatan/graphql-mesh/commit/db41f96b392de95d5f3aff958df399bf58575373)]: - @graphql-mesh/serve-runtime@0.8.0 - @graphql-mesh/types@0.102.0 - @graphql-mesh/utils@0.102.0 ## 0.104.3 ### Patch Changes - Updated dependencies [[`eeab8fe`](https://github.com/ardatan/graphql-mesh/commit/eeab8fe6bd5d930a1faed22f8c78e302876de7af), [`eeab8fe`](https://github.com/ardatan/graphql-mesh/commit/eeab8fe6bd5d930a1faed22f8c78e302876de7af)]: - @graphql-mesh/serve-runtime@0.7.3 ## 0.104.2 ### Patch Changes - [#7518](https://github.com/ardatan/graphql-mesh/pull/7518) [`b0cdc83`](https://github.com/ardatan/graphql-mesh/commit/b0cdc839699a1dd90d125289b49b75f703cbb18e) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/serve-runtime@^0.7.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/serve-runtime/v/0.7.1) (from `^0.7.0`, in `dependencies`) - Updated dependencies [[`b0cdc83`](https://github.com/ardatan/graphql-mesh/commit/b0cdc839699a1dd90d125289b49b75f703cbb18e)]: - @graphql-mesh/serve-runtime@0.7.2 ## 0.104.1 ### Patch Changes - Updated dependencies []: - @graphql-mesh/serve-runtime@0.7.1 ## 0.104.0 ### Patch Changes - Updated dependencies [[`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`1a9746f`](https://github.com/ardatan/graphql-mesh/commit/1a9746f6ca9b517230a0337d5a852bf05707303a), [`1d24997`](https://github.com/ardatan/graphql-mesh/commit/1d249977bbc1180f15ea0e11eece6cce1e8f2de1), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`e509a25`](https://github.com/ardatan/graphql-mesh/commit/e509a259d3080db1300c9f38ae149f648fc9159f), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`83b8cdc`](https://github.com/ardatan/graphql-mesh/commit/83b8cdc937fcb7e3cc4e2ee7a3ae3c1f12ccaf31), [`e509a25`](https://github.com/ardatan/graphql-mesh/commit/e509a259d3080db1300c9f38ae149f648fc9159f), [`e509a25`](https://github.com/ardatan/graphql-mesh/commit/e509a259d3080db1300c9f38ae149f648fc9159f), [`83b8cdc`](https://github.com/ardatan/graphql-mesh/commit/83b8cdc937fcb7e3cc4e2ee7a3ae3c1f12ccaf31)]: - @graphql-mesh/serve-runtime@0.7.0 - @graphql-mesh/types@0.101.0 - @graphql-mesh/utils@0.101.0 ## 0.103.0 ### Patch Changes - Updated dependencies [[`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`d5a4cd4`](https://github.com/ardatan/graphql-mesh/commit/d5a4cd4ff93984b62d9670cc286886e62de1bc55), [`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`a324c5e`](https://github.com/ardatan/graphql-mesh/commit/a324c5ef300c25dcfa265f3457453b50af0b83e7), [`4d1eb28`](https://github.com/ardatan/graphql-mesh/commit/4d1eb285c2b703c5f80473ad