/** * SMI-739: Telemetry Module Exports * * Provides OpenTelemetry tracing and metrics for Skillsmith: * - Distributed tracing for request flows * - Custom metrics for performance monitoring * - Graceful fallback when tracing is disabled */ export { SkillsmithTracer, getTracer, initializeTracing, shutdownTracing, traced, type TracerConfig, type SpanAttributes, type SpanWrapper, } from './tracer.js'; export { MetricsRegistry, getMetrics, initializeMetrics, timeAsync, timeSync, LATENCY_BUCKETS, type MetricsConfig, type MetricLabels, type Counter, type Histogram, type Gauge, type MetricsSnapshot, } from './metrics.js'; export { exportToPrometheus, getPrometheusMetrics, createPrometheusHandler, type PrometheusExportOptions, } from './prometheus.js'; export { initializePostHog, shutdownPostHog, flushPostHog, trackEvent, trackSkillSearch, trackSkillView, trackSkillInstall, trackSkillInvoke, trackApiError, identifyUser, isFeatureFlagEnabled, getPostHog, isPostHogEnabled, ALLOWED_TRAITS, type PostHogConfig, type SkillsmithEventType, type SkillEventProperties, type TrackSkillInvokeParams, type AllowedUserTraits, } from './posthog.js'; export { withTelemetry, isTelemetered, setEmissionGate, runWithEmissionGate, runWithMarkerContext, runWithToolNameContext, type WithTelemetryOpts, } from './wrap.js'; export { resolveAgentMarker, readSessionMarker, extractMarkerMeta, NO_AGENT_MARKER, AGENT_MARKER_TTL_MS, AGENT_MARKER_SCHEMA_VERSION, KNOWN_HARNESS_FRAMEWORKS, type HarnessFramework, type AgentMarker, type AgentMarkerFile, } from './agent-marker.js'; /** * Initialize all telemetry (tracing + metrics) * Call this at application startup */ export declare function initializeTelemetry(config?: { tracing?: import('./tracer.js').TracerConfig; metrics?: import('./metrics.js').MetricsConfig; }): Promise; /** * Shutdown all telemetry * Call this at application shutdown */ export declare function shutdownTelemetry(): Promise; //# sourceMappingURL=index.d.ts.map