@envelop/opentelemetry 5.0.0 → 5.0.1-alpha-20230625183613-3b72bf4a

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/cjs/index.js CHANGED
@@ -20,7 +20,7 @@ var AttributeName;
20
20
  AttributeName["EXECUTION_OPERATION_NAME"] = "graphql.execute.operationName";
21
21
  AttributeName["EXECUTION_OPERATION_DOCUMENT"] = "graphql.execute.document";
22
22
  AttributeName["EXECUTION_VARIABLES"] = "graphql.execute.variables";
23
- })(AttributeName = exports.AttributeName || (exports.AttributeName = {}));
23
+ })(AttributeName || (exports.AttributeName = AttributeName = {}));
24
24
  const tracingSpanSymbol = Symbol('OPEN_TELEMETRY_GRAPHQL');
25
25
  const useOpenTelemetry = (options, tracingProvider, spanKind = api_1.SpanKind.SERVER, spanAdditionalAttributes = {}, serviceName = 'graphql') => {
26
26
  if (!tracingProvider) {
@@ -78,7 +78,7 @@ const useOpenTelemetry = (options, tracingProvider, spanKind = api_1.SpanKind.SE
78
78
  if ((0, core_1.isAsyncIterable)(result)) {
79
79
  executionSpan.end();
80
80
  // eslint-disable-next-line no-console
81
- console.warn(`Plugin "newrelic" encountered a AsyncIterator which is not supported yet, so tracing data is not available for the operation.`);
81
+ console.warn(`Plugin "opentelemetry" encountered an AsyncIterator which is not supported yet, so tracing data is not available for the operation.`);
82
82
  return;
83
83
  }
84
84
  if (result.data && options.result) {
package/esm/index.js CHANGED
@@ -74,7 +74,7 @@ export const useOpenTelemetry = (options, tracingProvider, spanKind = SpanKind.S
74
74
  if (isAsyncIterable(result)) {
75
75
  executionSpan.end();
76
76
  // eslint-disable-next-line no-console
77
- console.warn(`Plugin "newrelic" encountered a AsyncIterator which is not supported yet, so tracing data is not available for the operation.`);
77
+ console.warn(`Plugin "opentelemetry" encountered an AsyncIterator which is not supported yet, so tracing data is not available for the operation.`);
78
78
  return;
79
79
  }
80
80
  if (result.data && options.result) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@envelop/opentelemetry",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-alpha-20230625183613-3b72bf4a",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^4.0.0",
6
+ "@envelop/core": "4.0.1-alpha-20230625183613-3b72bf4a",
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@envelop/on-resolve": "^3.0.0",
10
+ "@envelop/on-resolve": "3.0.1-alpha-20230625183613-3b72bf4a",
11
11
  "@opentelemetry/api": "^1.0.0",
12
12
  "@opentelemetry/sdk-trace-base": "^1.11.0",
13
13
  "tslib": "^2.5.0"