@graphql-hive/gateway 2.1.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc → 2.1.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
- ## 2.1.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc
3
+ ## 2.1.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c
4
4
  ### Patch Changes
5
5
 
6
6
 
@@ -15,16 +15,16 @@
15
15
 
16
16
  - [#1689](https://github.com/graphql-hive/gateway/pull/1689) [`eabd0f0`](https://github.com/graphql-hive/gateway/commit/eabd0f0b8e42ddd9137c903f489b1d76ee8ebeb0) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Build binaries on macOS 15 (arm and x86)
17
17
 
18
- - Updated dependencies [[`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`478d7e2`](https://github.com/graphql-hive/gateway/commit/478d7e25ef47fb8fb6183010a8bb61ac31688c55), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`a81b8b2`](https://github.com/graphql-hive/gateway/commit/a81b8b20ecdfda53fb77ae5fae3cbd508ab08936), [`ce83f35`](https://github.com/graphql-hive/gateway/commit/ce83f356cbeb2f8413689204275710e7d7a27822), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`095aaf1`](https://github.com/graphql-hive/gateway/commit/095aaf1af4b675f4eb7687fe1fc11ea48239c34d), [`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`478d7e2`](https://github.com/graphql-hive/gateway/commit/478d7e25ef47fb8fb6183010a8bb61ac31688c55), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb)]:
19
- - @graphql-hive/gateway-runtime@2.3.5-rc-a6df590b4825fa0384346c08cec762c13eab19fc
20
- - @graphql-hive/logger@1.0.9-rc-a6df590b4825fa0384346c08cec762c13eab19fc
21
- - @graphql-hive/plugin-aws-sigv4@2.0.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc
22
- - @graphql-hive/plugin-opentelemetry@1.1.3-rc-a6df590b4825fa0384346c08cec762c13eab19fc
23
- - @graphql-mesh/hmac-upstream-signature@2.0.8-rc-a6df590b4825fa0384346c08cec762c13eab19fc
24
- - @graphql-mesh/plugin-prometheus@2.1.3-rc-a6df590b4825fa0384346c08cec762c13eab19fc
25
- - @graphql-mesh/transport-http@1.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc
26
- - @graphql-mesh/transport-http-callback@1.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc
27
- - @graphql-mesh/transport-ws@2.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc
18
+ - Updated dependencies [[`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`478d7e2`](https://github.com/graphql-hive/gateway/commit/478d7e25ef47fb8fb6183010a8bb61ac31688c55), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`a81b8b2`](https://github.com/graphql-hive/gateway/commit/a81b8b20ecdfda53fb77ae5fae3cbd508ab08936), [`ce83f35`](https://github.com/graphql-hive/gateway/commit/ce83f356cbeb2f8413689204275710e7d7a27822), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`095aaf1`](https://github.com/graphql-hive/gateway/commit/095aaf1af4b675f4eb7687fe1fc11ea48239c34d), [`4801627`](https://github.com/graphql-hive/gateway/commit/4801627ef16e963bed0052d0f071879004614a14), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`478d7e2`](https://github.com/graphql-hive/gateway/commit/478d7e25ef47fb8fb6183010a8bb61ac31688c55), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb), [`6a64d1d`](https://github.com/graphql-hive/gateway/commit/6a64d1d52e8cb4d845aae9696e1811ded9dbdd03)]:
19
+ - @graphql-hive/gateway-runtime@2.3.5-rc-bee74c8f1674507e991ecd45a049a2d27990640c
20
+ - @graphql-hive/logger@1.0.9-rc-bee74c8f1674507e991ecd45a049a2d27990640c
21
+ - @graphql-hive/plugin-aws-sigv4@2.0.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c
22
+ - @graphql-hive/plugin-opentelemetry@1.2.0-rc-bee74c8f1674507e991ecd45a049a2d27990640c
23
+ - @graphql-mesh/hmac-upstream-signature@2.0.8-rc-bee74c8f1674507e991ecd45a049a2d27990640c
24
+ - @graphql-mesh/plugin-prometheus@2.1.3-rc-bee74c8f1674507e991ecd45a049a2d27990640c
25
+ - @graphql-mesh/transport-http@1.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c
26
+ - @graphql-mesh/transport-http-callback@1.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c
27
+ - @graphql-mesh/transport-ws@2.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c
28
28
 
29
29
  ## 2.1.16
30
30
  ### Patch Changes
package/dist/bin.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  require('dotenv/config');
4
4
  var module$1 = require('node:module');
5
5
  var logger = require('@graphql-hive/logger');
6
- var cli = require('./cli-DvW3QCGR.cjs');
6
+ var cli = require('./cli-DASXVDj7.cjs');
7
7
  require('node:cluster');
8
8
  require('node:os');
9
9
  require('node:path');
@@ -17,8 +17,8 @@ require('node:url');
17
17
  require('node:fs');
18
18
  require('node:http');
19
19
  require('node:https');
20
- require('@graphql-tools/utils');
21
20
  require('@opentelemetry/sdk-trace-base');
21
+ require('@graphql-tools/utils');
22
22
  require('@graphql-tools/code-file-loader');
23
23
  require('@graphql-tools/graphql-file-loader');
24
24
  require('@graphql-tools/load');
@@ -28,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
- globalThis.__VERSION__ = '2.1.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc';
31
+ globalThis.__VERSION__ = '2.1.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c';
32
32
  module__default.default.register("@graphql-hive/importer/hooks", {
33
33
  parentURL: (
34
34
  // @ts-ignore bob will complain when bundling for cjs
package/dist/bin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import 'dotenv/config';
3
3
  import module from 'node:module';
4
4
  import { Logger } from '@graphql-hive/logger';
5
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-DRosZbt4.js';
5
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-CbgzxdMx.js';
6
6
  import 'node:cluster';
7
7
  import 'node:os';
8
8
  import 'node:path';
@@ -16,13 +16,13 @@ import 'node:url';
16
16
  import 'node:fs';
17
17
  import 'node:http';
18
18
  import 'node:https';
19
- import '@graphql-tools/utils';
20
19
  import '@opentelemetry/sdk-trace-base';
20
+ import '@graphql-tools/utils';
21
21
  import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
- globalThis.__VERSION__ = '2.1.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc';
25
+ globalThis.__VERSION__ = '2.1.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c';
26
26
  module.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
@@ -13,8 +13,8 @@ import { pathToFileURL } from 'node:url';
13
13
  import { promises } from 'node:fs';
14
14
  import { createServer as createServer$1 } from 'node:http';
15
15
  import { createServer } from 'node:https';
16
- import { fakePromise, isValidPath, asArray } from '@graphql-tools/utils';
17
16
  import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
17
+ import { isValidPath, asArray } from '@graphql-tools/utils';
18
18
  import { CodeFileLoader } from '@graphql-tools/code-file-loader';
19
19
  import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader';
20
20
  import { loadTypedefs } from '@graphql-tools/load';
@@ -531,73 +531,84 @@ async function handleOpenTelemetryCLIOpts(ctx, cliOpts) {
531
531
  { openTelemetry, exporterType, target, traceEndpoint },
532
532
  "Initializing OpenTelemetry SDK"
533
533
  );
534
- return fakePromise().then(async () => {
535
- const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-hive/plugin-opentelemetry/setup');
536
- const processors = [];
537
- const logAttributes = {
538
- traceEndpoints: [],
539
- contextManager: false
534
+ const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-hive/plugin-opentelemetry/setup');
535
+ const processors = [];
536
+ const logAttributes = {
537
+ traceEndpoints: [],
538
+ contextManager: false
539
+ };
540
+ let integration;
541
+ if (openTelemetry) {
542
+ const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
543
+ log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
544
+ integration = {
545
+ name: "OpenTelemetry",
546
+ source: { flag: "--opentelemetry", env: "OPENTELEMETRY" }
540
547
  };
541
- let integrationName;
542
- if (openTelemetry) {
543
- const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
544
- log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
545
- integrationName = "OpenTelemetry";
546
- logAttributes.traceEndpoints.push({
547
- url: otelEndpoint ?? null,
548
- type: exporterType
549
- });
550
- log.debug({ type: exporterType }, "Loading OpenTelemetry exporter");
551
- const { OTLPTraceExporter } = await import(`@opentelemetry/exporter-trace-${exporterType}`);
552
- processors.push(
553
- new BatchSpanProcessor(new OTLPTraceExporter({ url: otelEndpoint }))
548
+ logAttributes.traceEndpoints.push({
549
+ url: otelEndpoint ?? null,
550
+ type: exporterType
551
+ });
552
+ log.debug({ type: exporterType }, "Loading OpenTelemetry exporter");
553
+ const { OTLPTraceExporter } = await import(`@opentelemetry/exporter-trace-${exporterType}`);
554
+ processors.push(
555
+ new BatchSpanProcessor(new OTLPTraceExporter({ url: otelEndpoint }))
556
+ );
557
+ }
558
+ if (accessToken) {
559
+ log.debug({ target, traceEndpoint }, "Setting up Hive Tracing");
560
+ integration ??= {
561
+ name: "Hive Tracing",
562
+ source: {
563
+ flag: "--hive-trace-access-token",
564
+ env: "HIVE_TRACE_ACCESS_TOKEN"
565
+ }
566
+ };
567
+ if (!target) {
568
+ ctx.log.error(
569
+ 'Hive tracing needs a target. Please provide it through "--hive-target <target>"'
554
570
  );
571
+ process.exit(1);
555
572
  }
556
- if (accessToken) {
557
- log.debug({ target, traceEndpoint }, "Setting up Hive Tracing");
558
- integrationName ??= "Hive Tracing";
559
- if (!target) {
560
- ctx.log.error(
561
- 'Hive tracing needs a target. Please provide it through "--hive-target <target>"'
573
+ logAttributes.traceEndpoints.push({
574
+ url: traceEndpoint,
575
+ type: "hive tracing",
576
+ target
577
+ });
578
+ processors.push(
579
+ new HiveTracingSpanProcessor({
580
+ accessToken,
581
+ target,
582
+ endpoint: traceEndpoint
583
+ })
584
+ );
585
+ }
586
+ log.debug("Trying to load AsyncLocalStorage based Context Manager");
587
+ const contextManager = await import('@opentelemetry/context-async-hooks').then((module) => {
588
+ logAttributes.contextManager = true;
589
+ return new module.AsyncLocalStorageContextManager();
590
+ }).catch(() => null);
591
+ openTelemetrySetup({
592
+ log,
593
+ traces: { processors },
594
+ resource: await detectResource().catch((err) => {
595
+ if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
596
+ ctx.log.warn(
597
+ err,
598
+ `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
562
599
  );
563
- process.exit(1);
600
+ return void 0;
564
601
  }
565
- logAttributes.traceEndpoints.push({
566
- url: traceEndpoint,
567
- type: "hive tracing",
568
- target
569
- });
570
- processors.push(
571
- new HiveTracingSpanProcessor({
572
- accessToken,
573
- target,
574
- endpoint: traceEndpoint
575
- })
576
- );
602
+ throw err;
603
+ }),
604
+ contextManager,
605
+ _initialization: {
606
+ name: integration.name,
607
+ source: `cli flag (${integration.source.flag}) or environment variables (${integration.source.env})`,
608
+ logAttributes
577
609
  }
578
- log.debug("Trying to load AsyncLocalStorage based Context Manager");
579
- const contextManager = await import('@opentelemetry/context-async-hooks').then((module) => {
580
- logAttributes.contextManager = true;
581
- return new module.AsyncLocalStorageContextManager();
582
- }).catch(() => null);
583
- openTelemetrySetup({
584
- log,
585
- traces: { processors },
586
- resource: await detectResource().catch((err) => {
587
- if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
588
- ctx.log.warn(
589
- err,
590
- `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
591
- );
592
- return void 0;
593
- }
594
- throw err;
595
- }),
596
- contextManager
597
- });
598
- log.info(logAttributes, `${integrationName} integration is enabled`);
599
- return true;
600
610
  });
611
+ return true;
601
612
  }
602
613
  return false;
603
614
  }
@@ -15,8 +15,8 @@ var node_url = require('node:url');
15
15
  var node_fs = require('node:fs');
16
16
  var node_http = require('node:http');
17
17
  var node_https = require('node:https');
18
- var utils$1 = require('@graphql-tools/utils');
19
18
  var sdkTraceBase = require('@opentelemetry/sdk-trace-base');
19
+ var utils$1 = require('@graphql-tools/utils');
20
20
  var codeFileLoader = require('@graphql-tools/code-file-loader');
21
21
  var graphqlFileLoader = require('@graphql-tools/graphql-file-loader');
22
22
  var load = require('@graphql-tools/load');
@@ -538,73 +538,84 @@ async function handleOpenTelemetryCLIOpts(ctx, cliOpts) {
538
538
  { openTelemetry, exporterType, target, traceEndpoint },
539
539
  "Initializing OpenTelemetry SDK"
540
540
  );
541
- return utils$1.fakePromise().then(async () => {
542
- const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-hive/plugin-opentelemetry/setup');
543
- const processors = [];
544
- const logAttributes = {
545
- traceEndpoints: [],
546
- contextManager: false
541
+ const { openTelemetrySetup, HiveTracingSpanProcessor } = await import('@graphql-hive/plugin-opentelemetry/setup');
542
+ const processors = [];
543
+ const logAttributes = {
544
+ traceEndpoints: [],
545
+ contextManager: false
546
+ };
547
+ let integration;
548
+ if (openTelemetry) {
549
+ const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
550
+ log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
551
+ integration = {
552
+ name: "OpenTelemetry",
553
+ source: { flag: "--opentelemetry", env: "OPENTELEMETRY" }
547
554
  };
548
- let integrationName;
549
- if (openTelemetry) {
550
- const otelEndpoint = typeof openTelemetry === "string" ? openTelemetry : getEnvStr("OTEL_EXPORTER_OTLP_ENDPOINT");
551
- log.debug({ exporterType, otelEndpoint }, "Setting up OTLP Exporter");
552
- integrationName = "OpenTelemetry";
553
- logAttributes.traceEndpoints.push({
554
- url: otelEndpoint ?? null,
555
- type: exporterType
556
- });
557
- log.debug({ type: exporterType }, "Loading OpenTelemetry exporter");
558
- const { OTLPTraceExporter } = await import(`@opentelemetry/exporter-trace-${exporterType}`);
559
- processors.push(
560
- new sdkTraceBase.BatchSpanProcessor(new OTLPTraceExporter({ url: otelEndpoint }))
555
+ logAttributes.traceEndpoints.push({
556
+ url: otelEndpoint ?? null,
557
+ type: exporterType
558
+ });
559
+ log.debug({ type: exporterType }, "Loading OpenTelemetry exporter");
560
+ const { OTLPTraceExporter } = await import(`@opentelemetry/exporter-trace-${exporterType}`);
561
+ processors.push(
562
+ new sdkTraceBase.BatchSpanProcessor(new OTLPTraceExporter({ url: otelEndpoint }))
563
+ );
564
+ }
565
+ if (accessToken) {
566
+ log.debug({ target, traceEndpoint }, "Setting up Hive Tracing");
567
+ integration ??= {
568
+ name: "Hive Tracing",
569
+ source: {
570
+ flag: "--hive-trace-access-token",
571
+ env: "HIVE_TRACE_ACCESS_TOKEN"
572
+ }
573
+ };
574
+ if (!target) {
575
+ ctx.log.error(
576
+ 'Hive tracing needs a target. Please provide it through "--hive-target <target>"'
561
577
  );
578
+ process.exit(1);
562
579
  }
563
- if (accessToken) {
564
- log.debug({ target, traceEndpoint }, "Setting up Hive Tracing");
565
- integrationName ??= "Hive Tracing";
566
- if (!target) {
567
- ctx.log.error(
568
- 'Hive tracing needs a target. Please provide it through "--hive-target <target>"'
580
+ logAttributes.traceEndpoints.push({
581
+ url: traceEndpoint,
582
+ type: "hive tracing",
583
+ target
584
+ });
585
+ processors.push(
586
+ new HiveTracingSpanProcessor({
587
+ accessToken,
588
+ target,
589
+ endpoint: traceEndpoint
590
+ })
591
+ );
592
+ }
593
+ log.debug("Trying to load AsyncLocalStorage based Context Manager");
594
+ const contextManager = await import('@opentelemetry/context-async-hooks').then((module) => {
595
+ logAttributes.contextManager = true;
596
+ return new module.AsyncLocalStorageContextManager();
597
+ }).catch(() => null);
598
+ openTelemetrySetup({
599
+ log,
600
+ traces: { processors },
601
+ resource: await detectResource().catch((err) => {
602
+ if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
603
+ ctx.log.warn(
604
+ err,
605
+ `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
569
606
  );
570
- process.exit(1);
607
+ return void 0;
571
608
  }
572
- logAttributes.traceEndpoints.push({
573
- url: traceEndpoint,
574
- type: "hive tracing",
575
- target
576
- });
577
- processors.push(
578
- new HiveTracingSpanProcessor({
579
- accessToken,
580
- target,
581
- endpoint: traceEndpoint
582
- })
583
- );
609
+ throw err;
610
+ }),
611
+ contextManager,
612
+ _initialization: {
613
+ name: integration.name,
614
+ source: `cli flag (${integration.source.flag}) or environment variables (${integration.source.env})`,
615
+ logAttributes
584
616
  }
585
- log.debug("Trying to load AsyncLocalStorage based Context Manager");
586
- const contextManager = await import('@opentelemetry/context-async-hooks').then((module) => {
587
- logAttributes.contextManager = true;
588
- return new module.AsyncLocalStorageContextManager();
589
- }).catch(() => null);
590
- openTelemetrySetup({
591
- log,
592
- traces: { processors },
593
- resource: await detectResource().catch((err) => {
594
- if (err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND") {
595
- ctx.log.warn(
596
- err,
597
- `NodeJS modules necessary for environment detection is missing, please install it to auto-detect the environment`
598
- );
599
- return void 0;
600
- }
601
- throw err;
602
- }),
603
- contextManager
604
- });
605
- log.info(logAttributes, `${integrationName} integration is enabled`);
606
- return true;
607
617
  });
618
+ return true;
608
619
  }
609
620
  return false;
610
621
  }
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-DvW3QCGR.cjs');
3
+ var cli = require('./cli-DASXVDj7.cjs');
4
4
  var logger = require('@graphql-hive/logger');
5
5
  var gatewayRuntime = require('@graphql-hive/gateway-runtime');
6
6
  var pubsub = require('@graphql-hive/pubsub');
@@ -30,8 +30,8 @@ require('node:url');
30
30
  require('node:fs');
31
31
  require('node:http');
32
32
  require('node:https');
33
- require('@graphql-tools/utils');
34
33
  require('@opentelemetry/sdk-trace-base');
34
+ require('@graphql-tools/utils');
35
35
  require('@graphql-tools/code-file-loader');
36
36
  require('@graphql-tools/graphql-file-loader');
37
37
  require('@graphql-tools/load');
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-DRosZbt4.js';
1
+ export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-CbgzxdMx.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export * from '@graphql-hive/pubsub';
@@ -29,8 +29,8 @@ import 'node:url';
29
29
  import 'node:fs';
30
30
  import 'node:http';
31
31
  import 'node:https';
32
- import '@graphql-tools/utils';
33
32
  import '@opentelemetry/sdk-trace-base';
33
+ import '@graphql-tools/utils';
34
34
  import '@graphql-tools/code-file-loader';
35
35
  import '@graphql-tools/graphql-file-loader';
36
36
  import '@graphql-tools/load';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.1.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
3
+ "version": "2.1.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,27 +84,27 @@
84
84
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
85
85
  "@escape.tech/graphql-armor-max-depth": "^2.4.2",
86
86
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
87
- "@graphql-hive/gateway-runtime": "2.3.5-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
87
+ "@graphql-hive/gateway-runtime": "2.3.5-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
88
88
  "@graphql-hive/importer": "^2.0.0",
89
- "@graphql-hive/logger": "1.0.9-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
90
- "@graphql-hive/plugin-aws-sigv4": "2.0.17-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
91
- "@graphql-hive/plugin-opentelemetry": "1.1.3-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
89
+ "@graphql-hive/logger": "1.0.9-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
90
+ "@graphql-hive/plugin-aws-sigv4": "2.0.17-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
91
+ "@graphql-hive/plugin-opentelemetry": "1.2.0-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
92
92
  "@graphql-hive/pubsub": "^2.1.1",
93
93
  "@graphql-mesh/cache-cfw-kv": "^0.105.16",
94
94
  "@graphql-mesh/cache-localforage": "^0.105.17",
95
95
  "@graphql-mesh/cache-redis": "^0.105.2",
96
96
  "@graphql-mesh/cache-upstash-redis": "^0.1.16",
97
97
  "@graphql-mesh/cross-helpers": "^0.4.10",
98
- "@graphql-mesh/hmac-upstream-signature": "2.0.8-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
98
+ "@graphql-mesh/hmac-upstream-signature": "2.0.8-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
99
99
  "@graphql-mesh/plugin-http-cache": "^0.105.17",
100
100
  "@graphql-mesh/plugin-jit": "^0.2.16",
101
101
  "@graphql-mesh/plugin-jwt-auth": "^2.0.9",
102
- "@graphql-mesh/plugin-prometheus": "2.1.3-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
102
+ "@graphql-mesh/plugin-prometheus": "2.1.3-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
103
103
  "@graphql-mesh/plugin-rate-limit": "^0.105.5",
104
104
  "@graphql-mesh/plugin-snapshot": "^0.104.16",
105
- "@graphql-mesh/transport-http": "1.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
106
- "@graphql-mesh/transport-http-callback": "1.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
107
- "@graphql-mesh/transport-ws": "2.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
105
+ "@graphql-mesh/transport-http": "1.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
106
+ "@graphql-mesh/transport-http-callback": "1.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
107
+ "@graphql-mesh/transport-ws": "2.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
108
108
  "@graphql-mesh/types": "^0.104.16",
109
109
  "@graphql-mesh/utils": "^0.104.16",
110
110
  "@graphql-tools/code-file-loader": "^8.1.26",
@@ -133,7 +133,7 @@
133
133
  "ws": "^8.18.3"
134
134
  },
135
135
  "devDependencies": {
136
- "@graphql-mesh/transport-common": "1.0.12-rc-a6df590b4825fa0384346c08cec762c13eab19fc",
136
+ "@graphql-mesh/transport-common": "1.0.12-rc-bee74c8f1674507e991ecd45a049a2d27990640c",
137
137
  "@graphql-mesh/transport-soap": "^0.10.17",
138
138
  "@graphql-tools/executor": "^1.4.13",
139
139
  "@rollup/plugin-commonjs": "^29.0.0",