Skip to content

Commit 6799c6d

Browse files
committed
update
1 parent 4d5a541 commit 6799c6d

91 files changed

Lines changed: 5419 additions & 7813 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.beads/.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SQLite databases
2+
*.db
3+
*.db?*
4+
*.db-journal
5+
*.db-wal
6+
*.db-shm
7+
8+
# Daemon runtime files
9+
daemon.lock
10+
daemon.log
11+
daemon-*.log.gz
12+
daemon.pid
13+
bd.sock
14+
sync-state.json
15+
last-touched
16+
17+
# Local version tracking (prevents upgrade notification spam after git ops)
18+
.local_version
19+
20+
# Legacy database files
21+
db.sqlite
22+
bd.db
23+
24+
# Worktree redirect file (contains relative path to main repo's .beads/)
25+
# Must not be committed as paths would be wrong in other clones
26+
redirect
27+
28+
# Merge artifacts (temporary files from 3-way merge)
29+
beads.base.jsonl
30+
beads.base.meta.json
31+
beads.left.jsonl
32+
beads.left.meta.json
33+
beads.right.jsonl
34+
beads.right.meta.json
35+
36+
# Sync state (local-only, per-machine)
37+
# These files are machine-specific and should not be shared across clones
38+
.sync.lock
39+
.jsonl.lock
40+
sync_base.jsonl
41+
export-state/
42+
43+
# Dolt database (managed by Dolt remotes, not git)
44+
dolt/
45+
dolt-access.lock
46+
47+
# NOTE: Do NOT add negation patterns (e.g., !issues.jsonl) here.
48+
# They would override fork protection in .git/info/exclude, allowing
49+
# contributors to accidentally commit upstream issue databases.
50+
# The JSONL files (issues.jsonl, interactions.jsonl) and config files
51+
# are tracked by git by default since no pattern above ignores them.

examples/demo_project/demo/api/migrations/__init__.py renamed to .beads/interactions.jsonl

File renamed without changes.

.env.example

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Django Observability Environment Variables
2+
# Copy this file to .env and customize for your environment
3+
4+
# ==============================================================================
5+
# SERVICE IDENTIFICATION
6+
# ==============================================================================
7+
8+
# Service name (appears in traces, logs, metrics)
9+
OTEL_SERVICE_NAME=my-django-app
10+
11+
# ==============================================================================
12+
# OPENTELEMETRY CONFIGURATION
13+
# ==============================================================================
14+
15+
# OTLP Exporter Endpoint (traces, logs, metrics)
16+
# Development: http://localhost:4317 (local Grafana Alloy/Collector)
17+
# Production: Your OTLP endpoint URL
18+
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
19+
20+
# Trace Sampling Rate (0.0 to 1.0)
21+
# 1.0 = 100% sampling (development)
22+
# 0.1 = 10% sampling (production low traffic)
23+
# 0.01 = 1% sampling (production high traffic)
24+
OTEL_TRACES_SAMPLER_ARG=1.0
25+
26+
# Enable OTLP log export (optional, useful for log aggregation)
27+
OTEL_LOGS_ENABLED=true
28+
29+
# ==============================================================================
30+
# LOGGING CONFIGURATION
31+
# ==============================================================================
32+
33+
# Log Level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
34+
DJANGO_LOG_LEVEL=INFO
35+
36+
# Request logging level (can be more verbose than general logs)
37+
DJANGO_REQUEST_LOG_LEVEL=INFO
38+
39+
# Database query logging level (set to CRITICAL to disable in production)
40+
DJANGO_DATABASE_LOG_LEVEL=WARNING
41+
42+
# Celery task logging level
43+
DJANGO_CELERY_LOG_LEVEL=INFO
44+
45+
# Log Format: 'console' for development, 'json' for production
46+
# console = colorized, human-readable
47+
# json = structured, machine-parseable
48+
DJANGO_LOG_FORMAT=console
49+
50+
# Colorize logs (true for development, false for production)
51+
DJANGO_LOG_COLORIZED=true
52+
53+
# Rich exception formatting (true for development, false for production)
54+
DJANGO_LOG_RICH_EXCEPTIONS=true
55+
56+
# ==============================================================================
57+
# PROFILING (OPTIONAL)
58+
# ==============================================================================
59+
60+
# Enable continuous profiling with Pyroscope
61+
# Recommended: true in development, false in production (or selective in prod)
62+
PYROSCOPE_ENABLED=false
63+
64+
# Pyroscope server address
65+
PYROSCOPE_SERVER_ADDRESS=http://localhost:4040
66+
67+
# ==============================================================================
68+
# CELERY CONFIGURATION (IF USING CELERY)
69+
# ==============================================================================
70+
71+
# Celery broker URL (Redis recommended)
72+
CELERY_BROKER_URL=redis://localhost:6379/0
73+
74+
# Celery result backend
75+
CELERY_RESULT_BACKEND=redis://localhost:6379/0
76+
77+
# ==============================================================================
78+
# DEVELOPMENT VS PRODUCTION EXAMPLES
79+
# ==============================================================================
80+
81+
# DEVELOPMENT SETTINGS (copy these for local .env):
82+
# OTEL_SERVICE_NAME=myapp-dev
83+
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
84+
# OTEL_TRACES_SAMPLER_ARG=1.0
85+
# OTEL_LOGS_ENABLED=true
86+
# DJANGO_LOG_LEVEL=INFO
87+
# DJANGO_LOG_FORMAT=console
88+
# DJANGO_LOG_COLORIZED=true
89+
# DJANGO_LOG_RICH_EXCEPTIONS=true
90+
# DJANGO_DATABASE_LOG_LEVEL=INFO
91+
# PYROSCOPE_ENABLED=true
92+
93+
# PRODUCTION SETTINGS (example):
94+
# OTEL_SERVICE_NAME=myapp-prod
95+
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector.mycompany.com:4317
96+
# OTEL_TRACES_SAMPLER_ARG=0.01
97+
# OTEL_LOGS_ENABLED=true
98+
# DJANGO_LOG_LEVEL=WARNING
99+
# DJANGO_LOG_FORMAT=json
100+
# DJANGO_LOG_COLORIZED=false
101+
# DJANGO_LOG_RICH_EXCEPTIONS=false
102+
# DJANGO_DATABASE_LOG_LEVEL=CRITICAL
103+
# PYROSCOPE_ENABLED=false
104+
105+
# ==============================================================================
106+
# NOTES
107+
# ==============================================================================
108+
109+
# 1. All these variables are OPTIONAL - django-observability has sensible defaults
110+
# 2. You can also configure these via DJANGO_OBSERVABILITY dict in settings.py
111+
# 3. Environment variables take precedence over settings.py configuration
112+
# 4. See README.md for full configuration options
113+
# 5. Run `python manage.py observability_check` to verify your setup

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ uv.lock
135135
*.swo
136136
*~
137137
.ruff_cache/
138+
139+
examples/demo_project/celerybeat-schedule.*

CHANGELOG.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)