UNPKG

opentelemetry-instrumentation-typeorm

Version:

open telemetry instrumentation for the `typeorm` module

10 lines 798 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isTypeormInternalTracingSuppressed = exports.suppressTypeormInternalTracing = void 0; const api_1 = require("@opentelemetry/api"); const SUPPRESS_TYPEORM_INTERNAL_TRACING_KEY = (0, api_1.createContextKey)('instrumentation-typeorm Context Key SUPPRESS_TYPEORM_INTERNAL_TRACING'); const suppressTypeormInternalTracing = (context) => context.setValue(SUPPRESS_TYPEORM_INTERNAL_TRACING_KEY, true); exports.suppressTypeormInternalTracing = suppressTypeormInternalTracing; const isTypeormInternalTracingSuppressed = (context) => context.getValue(SUPPRESS_TYPEORM_INTERNAL_TRACING_KEY) === true; exports.isTypeormInternalTracingSuppressed = isTypeormInternalTracingSuppressed; //# sourceMappingURL=suppressTracing.js.map