@dexwox-labs/a2a-core
Version:
Core types, validation and telemetry for Google's Agent-to-Agent (A2A) protocol - shared foundation for client and server implementations
53 lines (48 loc) • 1.69 kB
text/typescript
/**
* @module Telemetry
* @description OpenTelemetry integration for the A2A protocol
*
* This module provides OpenTelemetry integration for the A2A protocol, including
* configuration, service initialization, and decorators for tracing method execution.
* It enables distributed tracing and metrics collection for A2A protocol operations.
*/
/**
* Configuration options for OpenTelemetry
*/
export * from './config';
/**
* Telemetry service for initializing and managing OpenTelemetry
*/
export * from './service';
/**
* Decorators for adding OpenTelemetry tracing to methods and classes
*/
export * from './decorators';
/**
* Re-export OpenTelemetry types and functions for convenience
*
* These exports provide direct access to the OpenTelemetry API without
* requiring consumers to add @opentelemetry/api as a direct dependency.
*/
export {
/** OpenTelemetry context API for managing context propagation */
context,
/** OpenTelemetry trace API for creating and managing spans */
trace,
/** OpenTelemetry metrics API for recording metrics */
metrics,
/** OpenTelemetry span interface representing a single operation */
type Span,
/** OpenTelemetry context interface for propagating context */
type Context,
/** OpenTelemetry attributes type for adding metadata to spans */
type Attributes,
/** OpenTelemetry span options for configuring spans */
type SpanOptions,
/** OpenTelemetry span context for referencing spans */
type SpanContext,
/** OpenTelemetry span status for indicating operation result */
type SpanStatus,
/** OpenTelemetry span status codes (OK, ERROR) */
type SpanStatusCode,
} from '@opentelemetry/api';