.env.example 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # Cline Development Environment Variables
  2. # Copy this file to .env and fill in your actual values
  3. # Values should be obtained from 1Password shared vault for development
  4. # ============================================================================
  5. # DEVELOPMENT FLAGS
  6. # Recomend not changing these unless you know what you're doing they are set by the launch.json normally
  7. # ============================================================================
  8. # IS_DEV=true
  9. # CLINE_ENVIRONMENT=local
  10. # ============================================================================
  11. # POSTHOG TELEMETRY (Existing)
  12. # ============================================================================
  13. # Get these values from 1Password shared vault
  14. TELEMETRY_SERVICE_API_KEY=your-posthog-telemetry-api-key
  15. ERROR_SERVICE_API_KEY=your-posthog-error-tracking-api-key
  16. # ============================================================================
  17. # TELEMETRY PROVIDER CONTROL
  18. # ============================================================================
  19. # Control which telemetry providers are active
  20. POSTHOG_TELEMETRY_ENABLED=true # Enable PostHog telemetry (default: true)
  21. # Set to false to disable Telemetry completely
  22. # ============================================================================
  23. # OPENTELEMETRY (Optional - for advanced telemetry)
  24. # ============================================================================
  25. # OpenTelemetry provides flexible telemetry collection with multiple export options
  26. # Can run alongside PostHog or independently
  27. # Primary focus: Logs (events), with optional metrics support
  28. # Enable OpenTelemetry (set to 1 to enable)
  29. # OTEL_TELEMETRY_ENABLED=1
  30. # Exporters: "console" for local debugging, "otlp" for remote collector
  31. # Logs are the primary signal (recommended)
  32. # OTEL_LOGS_EXPORTER=console
  33. # OTEL_METRICS_EXPORTER=otlp
  34. # OTLP Protocol: "grpc", "http/json", or "http/protobuf"
  35. # OTEL_EXPORTER_OTLP_PROTOCOL=grpc
  36. # OTLP Endpoint (without /v1/logs or /v1/metrics path - auto-appended)
  37. # For gRPC: use "localhost:4317" (no http:// prefix)
  38. # For HTTP: use "http://localhost:4318"
  39. # OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
  40. # OTLP Headers (for authentication, e.g., bearer tokens)
  41. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token-here
  42. # Use insecure gRPC connections (for local testing only, NOT for production)
  43. # OTEL_EXPORTER_OTLP_INSECURE=true
  44. # Metric export interval in milliseconds (default: 60000)
  45. # OTEL_METRIC_EXPORT_INTERVAL=10000
  46. # Batch configuration for logs (optional)
  47. # OTEL_LOG_BATCH_SIZE=512 # Max logs per batch (default: 512)
  48. # OTEL_LOG_BATCH_TIMEOUT=5000 # Max wait time in ms (default: 5000)
  49. # OTEL_LOG_MAX_QUEUE_SIZE=2048 # Max queue size (default: 2048)
  50. # Enable detailed export diagnostics (for debugging)
  51. # TEL_DEBUG_DIAGNOSTICS=true
  52. # Advanced: Separate endpoints for metrics and logs (optional)
  53. # OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/protobuf
  54. # OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://metrics.example.com:4318
  55. # OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc
  56. # OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=logs.example.com:4317
  57. # Example configurations:
  58. #
  59. # Console debugging (logs only):
  60. # OTEL_TELEMETRY_ENABLED=1
  61. # OTEL_LOGS_EXPORTER=console
  62. # TEL_DEBUG_DIAGNOSTICS=true
  63. #
  64. # OTLP with gRPC (insecure, for local testing):
  65. # OTEL_TELEMETRY_ENABLED=1
  66. # OTEL_LOGS_EXPORTER=otlp
  67. # OTEL_EXPORTER_OTLP_PROTOCOL=grpc
  68. # OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
  69. # OTEL_EXPORTER_OTLP_INSECURE=true
  70. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
  71. #
  72. # OTLP with HTTP/JSON (production):
  73. # OTEL_TELEMETRY_ENABLED=1
  74. # OTEL_LOGS_EXPORTER=otlp
  75. # OTEL_EXPORTER_OTLP_PROTOCOL=http/json
  76. # OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com
  77. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
  78. # ============================================================================
  79. # OPTIONAL DEVELOPMENT SETTINGS
  80. # ============================================================================
  81. # Uncomment and modify as needed for development
  82. # Multi-root workspace debugging
  83. # MULTI_ROOT_TRACE=true
  84. # gRPC recorder for testing
  85. # GRPC_RECORDER_ENABLED=true
  86. # GRPC_RECORDER_FILE_NAME=test-recording
  87. # Test mode
  88. # E2E_TEST=true
  89. # IS_TEST=true
  90. # ============================================================================
  91. # USAGE INSTRUCTIONS
  92. # ============================================================================
  93. # 1. Copy this file: cp .env.example .env
  94. # 2. Get PostHog keys from 1Password shared vault
  95. # 3. Update the values in .env
  96. # 4. The .env file is gitignored for security