- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation
🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import type { Context, Link, Attributes, SpanKind } from '@opentelemetry/api';
|
|
import type { Sampler, SamplingResult } from '../Sampler';
|
|
/**
|
|
* A composite sampler that either respects the parent span's sampling decision
|
|
* or delegates to `delegateSampler` for root spans.
|
|
*/
|
|
export declare class ParentBasedSampler implements Sampler {
|
|
private _root;
|
|
private _remoteParentSampled;
|
|
private _remoteParentNotSampled;
|
|
private _localParentSampled;
|
|
private _localParentNotSampled;
|
|
constructor(config: ParentBasedSamplerConfig);
|
|
shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: Attributes, links: Link[]): SamplingResult;
|
|
toString(): string;
|
|
}
|
|
interface ParentBasedSamplerConfig {
|
|
/** Sampler called for spans with no parent */
|
|
root: Sampler;
|
|
/** Sampler called for spans with a remote parent which was sampled. Default AlwaysOn */
|
|
remoteParentSampled?: Sampler;
|
|
/** Sampler called for spans with a remote parent which was not sampled. Default AlwaysOff */
|
|
remoteParentNotSampled?: Sampler;
|
|
/** Sampler called for spans with a local parent which was sampled. Default AlwaysOn */
|
|
localParentSampled?: Sampler;
|
|
/** Sampler called for spans with a local parent which was not sampled. Default AlwaysOff */
|
|
localParentNotSampled?: Sampler;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=ParentBasedSampler.d.ts.map
|