%PDF- %PDF-
Direktori : /lib/node_modules/pm2/node_modules/@opencensus/core/build/src/internal/ |
Current File : //lib/node_modules/pm2/node_modules/@opencensus/core/build/src/internal/cls.d.ts |
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import * as CLS from 'continuation-local-storage'; export declare type Namespace = CLS.Namespace; export declare type Func<T> = CLS.Func<T>; /** * Stack traces are captured when a root span is started. Because the stack * trace height varies on the context propagation mechanism, to keep published * stack traces uniform we need to remove the top-most frames when using the * c-l-s module. Keep track of this number here. */ export declare const ROOT_SPAN_STACK_OFFSET: number; export declare function createNamespace(): CLS.Namespace; export declare function destroyNamespace(): void; export declare function getNamespace(): CLS.Namespace;