otelcontext

command module
v0.0.11-beta.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 34 Imported by: 0

README

OtelContext

Security Scan OpenSSF Scan OpenSSF Score Release Beta Go Version Frontend Version

OtelContext is an integrated observability and AI analysis platform.

Getting Started

Installation
go install github.com/RandomCodeSpace/otelcontext@latest
Running

Simply run the binary:

otelcontext

By default, OtelContext will use an embedded SQLite database (otelcontext.db) in the current directory. No configuration is required.

Configuration (Optional)

You can configure the database using environment variables or a .env file:

  • MySQL:
    DB_DRIVER=mysql
    DB_DSN=root:password@tcp(localhost:3306)/otelcontext?charset=utf8mb4&parseTime=True&loc=Local
    
  • SQLite (Default):
    DB_DRIVER=sqlite
    DB_DSN=otelcontext.db
    

Features

  • Traces: OTLP Trace ingestion and visualization.
  • Logs: Structured logging with AI-powered insights.
  • Dashboard: Real-time metrics and traffic analysis.

OTLP Integration

OtelContext acts as an OTLP Receiver (gRPC) on port 4317 by default.

As an OTel Collector Target

You can configure any OpenTelemetry Collector to export data to OtelContext.

exporters:
  otlp/otelcontext:
    endpoint: "localhost:4317"
    tls:
      insecure: true

service:
  pipelines:
    traces:
      exporters: [otlp/otelcontext]
    logs:
      exporters: [otlp/otelcontext]

See docs/otel-collector-example.yaml for a full configuration example.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
ai
api
archive
Package archive implements hot/cold storage tiering for OtelContext.
Package archive implements hot/cold storage tiering for OtelContext.
graph
Package graph provides an in-memory service dependency graph rebuilt periodically from recent span data.
Package graph provides an in-memory service dependency graph rebuilt periodically from recent span data.
mcp
Package mcp implements the HTTP Streamable MCP (Model Context Protocol) server over JSON-RPC 2.0 with SSE streaming, allowing any AI agent (Claude, GPT, Cursor, etc.) to discover and call OtelContext tools natively.
Package mcp implements the HTTP Streamable MCP (Model Context Protocol) server over JSON-RPC 2.0 with SSE streaming, allowing any AI agent (Claude, GPT, Cursor, etc.) to discover and call OtelContext tools natively.
tsdb
Package tsdb provides an in-memory ring buffer for per-metric sliding windows with pre-computed aggregates.
Package tsdb provides an in-memory ring buffer for per-metric sliding windows with pre-computed aggregates.
ui
vectordb
Package vectordb provides an embedded TF-IDF / cosine-similarity vector index for semantic log search.
Package vectordb provides an embedded TF-IDF / cosine-similarity vector index for semantic log search.
test
authservice command
orderservice command
paymentservice command
shippingservice command
userservice command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL