Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-graphql

Package Overview
Dependencies
Maintainers
3
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.40.0 to 0.41.0

4

build/src/instrumentation.d.ts

@@ -1,5 +0,5 @@

import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { GraphQLInstrumentationConfig } from './types';
export declare class GraphQLInstrumentation extends InstrumentationBase {
constructor(config?: GraphQLInstrumentationConfig & InstrumentationConfig);
constructor(config?: GraphQLInstrumentationConfig);
private _getConfig;

@@ -6,0 +6,0 @@ setConfig(config?: GraphQLInstrumentationConfig): void;

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

constructor(config = {}) {
super('@opentelemetry/instrumentation-graphql', version_1.VERSION, Object.assign({}, DEFAULT_CONFIG, config));
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign({}, DEFAULT_CONFIG, config));
}

@@ -39,0 +39,0 @@ _getConfig() {

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

export declare const VERSION = "0.40.0";
export declare const PACKAGE_VERSION = "0.41.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-graphql";
//# sourceMappingURL=version.d.ts.map

@@ -18,5 +18,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.40.0';
exports.PACKAGE_VERSION = '0.41.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-graphql';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-graphql",
"version": "0.40.0",
"description": "OpenTelemetry @opentelemetry/instrumentation-graphql automatic instrumentation package.",
"version": "0.41.0",
"description": "OpenTelemetry instrumentation for `graphql` gql query language and runtime for GraphQL",
"main": "build/src/index.js",

@@ -49,3 +49,3 @@ "types": "build/src/index.d.ts",

"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/semantic-conventions": "^1.3.1",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@types/mocha": "8.2.3",

@@ -62,6 +62,6 @@ "@types/node": "18.6.5",

"dependencies": {
"@opentelemetry/instrumentation": "^0.51.0"
"@opentelemetry/instrumentation": "^0.52.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-graphql#readme",
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
}

@@ -55,10 +55,10 @@ # OpenTelemetry Instrumentation GraphQL

| Param | type | Default Value | Description | |
|:-----------:|:-------:|:-------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------:|:-:|
| mergeItems | boolean | false | Whether to merge list items into a single element. example: `users.*.name` instead of `users.0.name`, `users.1.name` | |
| depth | number | -1 | The maximum depth of fields/resolvers to instrument. When set to 0 it will not instrument fields and resolvers. When set to -1 it will instrument all fields and resolvers. | |
| allowValues | boolean | false | When set to true it will not remove attributes values from schema source. By default all values that can be sensitive are removed and replaced with "*" | |
| Param | type | Default Value | Description |
|:-----------:|:-------:|:-------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------:|
| mergeItems | boolean | false | Whether to merge list items into a single element. example: `users.*.name` instead of `users.0.name`, `users.1.name` |
| depth | number | -1 | The maximum depth of fields/resolvers to instrument. When set to 0 it will not instrument fields and resolvers. When set to -1 it will instrument all fields and resolvers. |
| allowValues | boolean | false | When set to true it will not remove attributes values from schema source. By default all values that can be sensitive are removed and replaced with "*" |
| ignoreTrivialResolveSpans | boolean | false | Don't create spans for the execution of the default resolver on object properties. |
| ignoreResolveSpans | boolean | false | Don't create spans for resolvers, regardless if they are trivial or not. |
| responseHook | GraphQLInstrumentationExecutionResponseHook | undefined | Hook that allows adding custom span attributes based on the data returned from "execute" GraphQL action. | |
| responseHook | GraphQLInstrumentationExecutionResponseHook | undefined | Hook that allows adding custom span attributes based on the data returned from "execute" GraphQL action. |

@@ -120,2 +120,6 @@ ## Verbosity

## Semantic Conventions
This package does not currently generate any attributes from semantic conventions.
## Useful links

@@ -122,0 +126,0 @@

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