1. Tracing Integrations: Quick Start (Auto-Instrumentation)
Implement trace logging effortlessly with our pre-built tracing integrations. These integrations offer flexibility for further customization as needed.2. Manual Instrumentation
For applications requiring precise control over trace data, Future AGI provides OpenTelemetry (OTEL) support. This enables custom span creation and modification using the OpenTelemetry Trace API.Implementation Guide
Step 1: System Requirements
- Python: version 3.9 to 3.12, Future AGI Instrumentation Package
- JavaScript: CommonJS/TS Module System, Node.JS/TS version 18.x or higher, Future AGI Instrumentation Package
Step 2: Set Environment Variables
Step 3: Configuring a Tracer
Setting up an OTEL tracer typically requires complex boilerplate code. Future AGI simplifies this process with our register helper function:Step 4: Span Implementation
When using our Auto-Instrumenters, span creation is handled automatically. You can further customize these spans as needed.Implementing Nested Spans
Track sub-operations within larger operations by creating hierarchical span relationships:child
span appears as a nested component under the parent
span.
Decorator Implementation
process_operation()
and ending it when process_operation()
is finished.
To use the decorator, you must have a tracer instance in scope for your function declaration.