Add dependency on @actions/cache

This commit is contained in:
Edoardo Pirovano 2022-08-03 13:36:23 +01:00
parent 9990b406c2
commit 38c2c091e8
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
1693 changed files with 204435 additions and 23 deletions

View file

@ -0,0 +1,27 @@
import { Context } from '../context/types';
import { Span } from './span';
import { SpanOptions } from './SpanOptions';
import { Tracer } from './tracer';
import { TracerOptions } from './tracer_options';
/**
* Proxy tracer provided by the proxy tracer provider
*/
export declare class ProxyTracer implements Tracer {
private _provider;
readonly name: string;
readonly version?: string | undefined;
readonly options?: TracerOptions | undefined;
private _delegate?;
constructor(_provider: TracerDelegator, name: string, version?: string | undefined, options?: TracerOptions | undefined);
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
startActiveSpan<F extends (span: Span) => unknown>(_name: string, _options: F | SpanOptions, _context?: F | Context, _fn?: F): ReturnType<F>;
/**
* Try to get a tracer from the proxy tracer provider.
* If the proxy tracer provider has no delegate, return a noop tracer.
*/
private _getTracer;
}
export interface TracerDelegator {
getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined;
}
//# sourceMappingURL=ProxyTracer.d.ts.map