mirror of
https://github.com/zoriya/drizzle-otel.git
synced 2025-12-06 00:46:09 +00:00
1.4 KiB
1.4 KiB
@kubiks/otel-e2b
1.0.0
Features
- Initial release of OpenTelemetry instrumentation for E2B Sandboxes
- Core instrumentation functions:
instrumentSandbox()- Instrument existing sandbox instancesinstrumentSandboxClass()- Instrument Sandbox class for automatic instrumentation
- Sandbox lifecycle tracing:
Sandbox.create()- Sandbox creation with template informationsandbox.kill()- Sandbox termination
- Code execution tracing:
sandbox.runCode()- Code execution with language, error status, and execution count
- File operations tracing:
sandbox.files.read()- Read files with path, size, and formatsandbox.files.write()- Write single or multiple filessandbox.files.list()- List directory contents with file countssandbox.files.remove()- Delete files or directoriessandbox.files.makeDir()- Create directories
- Command execution tracing:
sandbox.commands.run()- Execute shell commands with exit codes and output line counts
- Security-first design: Never captures sensitive data (code content, file contents, command arguments, etc.)
- Comprehensive configuration options: Control what metadata to capture
- Idempotent instrumentation: Safe to call multiple times
- Full TypeScript support with complete type definitions
- OpenTelemetry semantic conventions for all span attributes