Adds GraphQL input variable attributes to an OpenTelemetry span for detailed tracing.
// Source: https://github.com/open-telemetry/opentelemetry-js-contrib | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
import type * as graphqlTypes from 'graphql';
import * as api from '@opentelemetry/api';
import { AllowedOperationTypes, SpanNames, TokenKind } from './enum';
import { AttributeNames } from './enums/AttributeNames';
import { OTEL_GRAPHQL_DATA_SYMBOL, OTEL_PATCHED_SYMBOL } from './symbols';
import {
GraphQLField,
GraphQLPath,
ObjectWithGraphQLData,
OtelPatched,
Maybe,
} from './internal-types';
import { GraphQLInstrumentationParsedConfig } from './types';
const OPERATION
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key