Initial implementation of opentelemetry-llm tool

This commit is contained in:
2025-07-14 16:27:29 -05:00
parent 63cf87a6c6
commit 1f201a093f
14 changed files with 3191 additions and 61 deletions

View File

@@ -1,9 +1,52 @@
# Enable debug logging
# PostHog Configuration (existing)
POSTHOG_API_KEY=your_posthog_api_key_here
POSTHOG_HOST=https://app.posthog.com
# OpenTelemetry Configuration
# ==========================
# Service Configuration
OTEL_SERVICE_NAME=llm-observability-mcp
OTEL_SERVICE_VERSION=1.0.0
OTEL_ENVIRONMENT=development
# OTLP Endpoints
# Uncomment and configure based on your backend
# Jaeger (local development)
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
# New Relic
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net:4318
# OTEL_EXPORTER_OTLP_HEADERS=api-key=YOUR_NEW_RELIC_LICENSE_KEY
# Grafana Cloud
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-gateway-prod-us-central-0.grafana.net/otlp
# OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic YOUR_BASE64_ENCODED_CREDENTIALS
# Datadog
# OTEL_EXPORTER_OTLP_ENDPOINT=https://api.datadoghq.com/api/v2/series
# OTEL_EXPORTER_OTLP_HEADERS=DD-API-KEY=YOUR_DD_API_KEY
# Honeycomb
# OTEL_EXPORTER_OTLP_ENDPOINT=https://api.honeycomb.io/v1/traces
# OTEL_EXPORTER_OTLP_HEADERS=x-honeycomb-team=YOUR_API_KEY
# Lightstep
# OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.lightstep.com:443/api/v2/otel/trace
# OTEL_EXPORTER_OTLP_HEADERS=lightstep-access-token=YOUR_ACCESS_TOKEN
# Separate endpoints (optional)
# OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
# OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=http://localhost:4318/v1/logs
# Export Configuration
OTEL_METRIC_EXPORT_INTERVAL=10000
OTEL_METRIC_EXPORT_TIMEOUT=5000
# Sampling Configuration
OTEL_TRACES_SAMPLER_ARG=1.0
# Debug Mode
DEBUG=false
# Transport mode
TRANSPORT_MODE=<http | stdio>
# PostHog LLM Observability configuration
POSTHOG_API_KEY=<YourPostHogAPIKeyGoesHere>
POSTHOG_HOST=https://us.i.posthog.com