Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-graphql

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-graphql - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

15

build/src/graphql.js

@@ -25,2 +25,3 @@ "use strict";

const version_1 = require("./version");
const api = require("@opentelemetry/api");
const DEFAULT_CONFIG = {

@@ -165,5 +166,6 @@ mergeItems: false,

const document = documentAST;
const span = this.tracer.startSpan(enum_1.SpanNames.VALIDATE, {
parent: document[symbols_1.OTEL_SPAN_SYMBOL],
});
const parentSpan = document[symbols_1.OTEL_SPAN_SYMBOL];
const span = this.tracer.startSpan(enum_1.SpanNames.VALIDATE, {}, parentSpan
? api.setActiveSpan(api.context.active(), parentSpan)
: undefined);
document[symbols_1.OTEL_SPAN_SYMBOL] = span;

@@ -191,5 +193,6 @@ return this.tracer.withSpan(span, () => {

const document = processedArgs.document;
const span = this.tracer.startSpan(enum_1.SpanNames.EXECUTE, {
parent: document[symbols_1.OTEL_SPAN_SYMBOL],
});
const parentSpan = document[symbols_1.OTEL_SPAN_SYMBOL];
const span = this.tracer.startSpan(enum_1.SpanNames.EXECUTE, {}, parentSpan
? api.setActiveSpan(api.context.active(), parentSpan)
: undefined);
if (operation) {

@@ -196,0 +199,0 @@ const name = operation

4

build/src/utils.js

@@ -20,2 +20,3 @@ "use strict";

const instrumentation_1 = require("@opentelemetry/instrumentation");
const api = require("@opentelemetry/api");
const enum_1 = require("./enum");

@@ -53,4 +54,3 @@ const symbols_1 = require("./symbols");

attributes,
parent: parentSpan,
});
}, parentSpan ? api.setActiveSpan(api.context.active(), parentSpan) : undefined);
const document = contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].source;

@@ -57,0 +57,0 @@ const fieldNode = info.fieldNodes.find(fieldNode => fieldNode.kind === 'Field');

@@ -1,2 +0,2 @@

export declare const VERSION = "0.11.0";
export declare const VERSION = "0.12.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.11.0';
exports.VERSION = '0.12.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-graphql",
"version": "0.11.0",
"version": "0.12.0",
"description": "OpenTelemetry @opentelemetry/instrumentation-graphql automatic instrumentation package.",

@@ -46,3 +46,3 @@ "main": "build/src/index.js",

"devDependencies": {
"@opentelemetry/tracing": "0.12.0",
"@opentelemetry/tracing": "^0.14.0",
"@types/graphql": "14.5.0",

@@ -60,3 +60,3 @@ "@types/mocha": "8.0.1",

"shimmer": "1.2.1",
"ts-mocha": "7.0.0",
"ts-mocha": "8.0.0",
"ts-node": "8.10.2",

@@ -66,6 +66,6 @@ "typescript": "3.9.7"

"dependencies": {
"@opentelemetry/api": "^0.12.0",
"@opentelemetry/instrumentation": "^0.12.0"
"@opentelemetry/api": "^0.14.0",
"@opentelemetry/instrumentation": "^0.14.0"
},
"gitHead": "f4d1a7120a96476102efeb0ba7aed85ecbfc3a0a"
"gitHead": "4b7291e4cd8c56a699ffde2c68b4598ef9602b02"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc