135 lines
5.4 KiB
Bash
135 lines
5.4 KiB
Bash
# Cline Development Environment Variables
|
|
# Copy this file to .env and fill in your actual values
|
|
# Values should be obtained from 1Password shared vault for development
|
|
|
|
# ============================================================================
|
|
# DEVELOPMENT FLAGS
|
|
# Recomend not changing these unless you know what you're doing they are set by the launch.json normally
|
|
# ============================================================================
|
|
# IS_DEV=true
|
|
# CLINE_ENVIRONMENT=local
|
|
|
|
# ============================================================================
|
|
# POSTHOG TELEMETRY (Existing)
|
|
# ============================================================================
|
|
# Get these values from 1Password shared vault
|
|
TELEMETRY_SERVICE_API_KEY=your-posthog-telemetry-api-key
|
|
ERROR_SERVICE_API_KEY=your-posthog-error-tracking-api-key
|
|
|
|
# ============================================================================
|
|
# OPENTELEMETRY (Optional - for advanced telemetry)
|
|
# ============================================================================
|
|
# OpenTelemetry provides flexible telemetry collection with multiple export options
|
|
# Can run alongside PostHog or independently
|
|
# Primary focus: Logs (events), with optional metrics support
|
|
|
|
# Enable OpenTelemetry (set to 1 to enable)
|
|
# OTEL_TELEMETRY_ENABLED=1
|
|
|
|
# Exporters: "console" for local debugging, "otlp" for remote collector
|
|
# Logs are the primary signal (recommended)
|
|
# OTEL_LOGS_EXPORTER=console
|
|
# OTEL_METRICS_EXPORTER=otlp
|
|
|
|
# OTLP Protocol: "grpc", "http/json", or "http/protobuf"
|
|
# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
|
|
|
|
# OTLP Endpoint (without /v1/logs or /v1/metrics path - auto-appended)
|
|
# For gRPC: use "localhost:4317" (no http:// prefix)
|
|
# For HTTP: use "http://localhost:4318"
|
|
# OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
|
|
|
|
# OTLP Headers (for authentication, e.g., bearer tokens)
|
|
# OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token-here
|
|
|
|
# Use insecure gRPC connections (for local testing only, NOT for production)
|
|
# OTEL_EXPORTER_OTLP_INSECURE=true
|
|
|
|
# Metric export interval in milliseconds (default: 60000)
|
|
# OTEL_METRIC_EXPORT_INTERVAL=10000
|
|
|
|
# Batch configuration for logs (optional)
|
|
# OTEL_LOG_BATCH_SIZE=512 # Max logs per batch (default: 512)
|
|
# OTEL_LOG_BATCH_TIMEOUT=5000 # Max wait time in ms (default: 5000)
|
|
# OTEL_LOG_MAX_QUEUE_SIZE=2048 # Max queue size (default: 2048)
|
|
|
|
# Enable detailed export diagnostics (for debugging)
|
|
# TEL_DEBUG_DIAGNOSTICS=true
|
|
|
|
# Advanced: Separate endpoints for metrics and logs (optional)
|
|
# OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/protobuf
|
|
# OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://metrics.example.com:4318
|
|
# OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc
|
|
# OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=logs.example.com:4317
|
|
|
|
# Example configurations:
|
|
#
|
|
# Console debugging (logs only):
|
|
# OTEL_TELEMETRY_ENABLED=true
|
|
# OTEL_LOGS_EXPORTER=console
|
|
# TEL_DEBUG_DIAGNOSTICS=true
|
|
#
|
|
# OTLP with gRPC (insecure, for local testing):
|
|
# OTEL_TELEMETRY_ENABLED=true
|
|
# OTEL_LOGS_EXPORTER=otlp
|
|
# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
|
|
# OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
|
|
# OTEL_EXPORTER_OTLP_INSECURE=true
|
|
# OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
|
|
#
|
|
# OTLP with HTTP/JSON (production):
|
|
# OTEL_TELEMETRY_ENABLED=true
|
|
# OTEL_LOGS_EXPORTER=otlp
|
|
# OTEL_EXPORTER_OTLP_PROTOCOL=http/json
|
|
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com
|
|
# OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
|
|
|
|
# ============================================================================
|
|
# OBJECT STORE CONFIGURATION
|
|
# ============================================================================
|
|
# TO ENABLE S3 OR R2 STORAGE, UNCOMMENT AND FILL IN THE FOLLOWING:
|
|
# CLINE_STORAGE_ADAPTER="s3" # Options: "s3" or "r2"
|
|
# CLINE_STORAGE_BUCKET="cline"
|
|
# CLINE_STORAGE_ACCESS_KEY_ID="key"
|
|
# CLINE_STORAGE_SECRET_ACCESS_KEY="secrets"
|
|
#
|
|
# [OPTIONAL FIELDS FOR R2]
|
|
# CLINE_STORAGE_ACCOUNT_ID = "account-id"
|
|
# Default R2 endpoint (if not set): "https://<CLINE_STORAGE_ACCOUNT_ID>.r2.cloudflarestorage.com"
|
|
# CLINE_STORAGE_ENDPOINT = "http://localhost:8333"
|
|
#
|
|
# [OPTIONAL FIELDS FOR S3]
|
|
# CLINE_STORAGE_REGION = "us-west-1" # AWS Bucket Region (default: "us-east-1")
|
|
# Default S3 endpoint (if not set): "https://s3.<CLINE_STORAGE_REGION>.amazonaws.com"
|
|
# CLINE_STORAGE_ENDPOINT = "http://localhost:8333"
|
|
#
|
|
# [OPTIONAL FIELDS FOR ALL STORAGE TYPES]
|
|
# CLINE_STORAGE_SYNC_INTERVAL_MS = 30000 # Interval for sync worker in milliseconds
|
|
# CLINE_STORAGE_SYNC_MAX_RETRIES = 5 # Max retries for failed sync operations
|
|
# CLINE_STORAGE_SYNC_BATCH_SIZE = 10 # Number of files to sync in each batch
|
|
# CLINE_STORAGE_SYNC_BACKFILL_ENABLED = false # Enable backfill of existing data on startup
|
|
|
|
# ============================================================================
|
|
# OPTIONAL DEVELOPMENT SETTINGS
|
|
# ============================================================================
|
|
# Uncomment and modify as needed for development
|
|
|
|
# Multi-root workspace debugging
|
|
# MULTI_ROOT_TRACE=true
|
|
|
|
# gRPC recorder for testing
|
|
# GRPC_RECORDER_ENABLED=true
|
|
# GRPC_RECORDER_FILE_NAME=test-recording
|
|
|
|
# Test mode
|
|
# E2E_TEST=true
|
|
# IS_TEST=true
|
|
|
|
# ============================================================================
|
|
# USAGE INSTRUCTIONS
|
|
# ============================================================================
|
|
# 1. Copy this file: cp .env.example .env
|
|
# 2. Get PostHog keys from 1Password shared vault
|
|
# 3. Update the values in .env
|
|
# 4. The .env file is gitignored for security
|