Skip to content

Commit 38a56b3

Browse files
committed
First commit to main branch
0 parents  commit 38a56b3

File tree

129 files changed

+21478
-0
lines changed

Some content is hidden

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

129 files changed

+21478
-0
lines changed

.dockerignore

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# =============================================================================
2+
# TelemetryFlow Python SDK - Docker Ignore
3+
# =============================================================================
4+
5+
# Git
6+
.git
7+
.gitignore
8+
9+
# Python
10+
__pycache__
11+
*.py[cod]
12+
*$py.class
13+
*.so
14+
.Python
15+
build/
16+
develop-eggs/
17+
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
*.egg-info/
28+
.installed.cfg
29+
*.egg
30+
31+
# Virtual environments
32+
.env
33+
.venv
34+
env/
35+
venv/
36+
ENV/
37+
env.bak/
38+
venv.bak/
39+
40+
# IDE
41+
.idea/
42+
.vscode/
43+
*.swp
44+
*.swo
45+
*~
46+
47+
# Testing
48+
.tox/
49+
.nox/
50+
.coverage
51+
.coverage.*
52+
htmlcov/
53+
.pytest_cache/
54+
nosetests.xml
55+
coverage.xml
56+
*.cover
57+
*.py,cover
58+
.hypothesis/
59+
60+
# Type checking
61+
.mypy_cache/
62+
.dmypy.json
63+
dmypy.json
64+
65+
# Linting
66+
.ruff_cache/
67+
68+
# Documentation
69+
docs/_build/
70+
71+
# Build artifacts
72+
*.log
73+
*.manifest
74+
*.spec
75+
76+
# Local development
77+
.env.local
78+
.env.*.local
79+
*.local
80+
81+
# Workspace (generated files)
82+
workspace/
83+
_generated/
84+
85+
# CI/CD
86+
.github/
87+
.gitlab-ci.yml
88+
.travis.yml
89+
Jenkinsfile
90+
91+
# Docker
92+
Dockerfile*
93+
docker-compose*.yml
94+
.docker/
95+
96+
# Makefile (not needed in container)
97+
# Makefile
98+
99+
# Tests (for production builds)
100+
# tests/
101+
102+
# Examples (for production builds)
103+
# examples/
104+
105+
# Documentation files
106+
*.md
107+
!README.md
108+
LICENSE

.env.example

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# =============================================================================
2+
# TelemetryFlow Python SDK - Environment Variables
3+
# =============================================================================
4+
# Copy this file to .env and update the values as needed
5+
# =============================================================================
6+
7+
# -----------------------------------------------------------------------------
8+
# Build Configuration
9+
# -----------------------------------------------------------------------------
10+
VERSION=1.1.1
11+
GIT_COMMIT=unknown
12+
GIT_BRANCH=main
13+
BUILD_TIME=unknown
14+
15+
# -----------------------------------------------------------------------------
16+
# TelemetryFlow API Credentials
17+
# -----------------------------------------------------------------------------
18+
# Get your API keys from https://app.telemetryflow.id
19+
20+
TELEMETRYFLOW_API_KEY_ID=tfk_your_key_id
21+
TELEMETRYFLOW_API_KEY_SECRET=tfs_your_key_secret
22+
23+
# -----------------------------------------------------------------------------
24+
# Service Configuration
25+
# -----------------------------------------------------------------------------
26+
# Unique name for your service
27+
TELEMETRYFLOW_SERVICE_NAME=my-python-service
28+
29+
# Service version (semver recommended)
30+
TELEMETRYFLOW_SERVICE_VERSION=1.0.0
31+
32+
# Service namespace for multi-tenant support
33+
TELEMETRYFLOW_SERVICE_NAMESPACE=telemetryflow
34+
35+
# -----------------------------------------------------------------------------
36+
# Connection Settings
37+
# -----------------------------------------------------------------------------
38+
# OTLP collector endpoint
39+
TELEMETRYFLOW_ENDPOINT=api.telemetryflow.id:4317
40+
41+
# Use insecure connection (for local development)
42+
TELEMETRYFLOW_INSECURE=false
43+
44+
# Deployment environment (production, staging, development)
45+
TELEMETRYFLOW_ENVIRONMENT=development
46+
47+
# -----------------------------------------------------------------------------
48+
# Collector Configuration
49+
# -----------------------------------------------------------------------------
50+
# Unique collector ID for distributed collectors
51+
# TELEMETRYFLOW_COLLECTOR_ID=collector-001
52+
53+
# TelemetryFlow backend (if using local collector)
54+
# TELEMETRYFLOW_API_ENDPOINT=http://localhost:3100
55+
56+
# Tenant and workspace (for multi-tenant deployments)
57+
# TELEMETRYFLOW_TENANT_ID=default
58+
# TELEMETRYFLOW_WORKSPACE_ID=default
59+
60+
# -----------------------------------------------------------------------------
61+
# Telemetry Feature Flags
62+
# -----------------------------------------------------------------------------
63+
TELEMETRYFLOW_ENABLE_METRICS=true
64+
TELEMETRYFLOW_ENABLE_LOGS=true
65+
TELEMETRYFLOW_ENABLE_TRACES=true
66+
67+
# -----------------------------------------------------------------------------
68+
# Batch Processing Configuration
69+
# -----------------------------------------------------------------------------
70+
TELEMETRYFLOW_BATCH_SIZE=512
71+
TELEMETRYFLOW_BATCH_TIMEOUT=5s
72+
73+
# -----------------------------------------------------------------------------
74+
# Network Configuration (for local development)
75+
# -----------------------------------------------------------------------------
76+
# OTLP gRPC receiver port
77+
OTLP_GRPC_PORT=4317
78+
79+
# OTLP HTTP receiver port
80+
OTLP_HTTP_PORT=4318
81+
82+
# Prometheus metrics port (self-observability)
83+
METRICS_PORT=8888
84+
85+
# Prometheus exporter port
86+
PROMETHEUS_EXPORTER_PORT=8889
87+
88+
# Health check port
89+
HEALTH_PORT=13133
90+
91+
# -----------------------------------------------------------------------------
92+
# Logging Configuration
93+
# -----------------------------------------------------------------------------
94+
LOG_LEVEL=info
95+
LOG_FORMAT=json
96+
97+
# -----------------------------------------------------------------------------
98+
# Python SDK Specific Settings
99+
# -----------------------------------------------------------------------------
100+
# Flask/FastAPI server port (for examples)
101+
APP_PORT=8080
102+
103+
# Debug mode (for development)
104+
APP_DEBUG=false
105+
106+
# -----------------------------------------------------------------------------
107+
# Database Configuration (for RESTful API generator)
108+
# -----------------------------------------------------------------------------
109+
DB_DRIVER=postgresql
110+
DB_HOST=localhost
111+
DB_PORT=5432
112+
DB_NAME=myapp
113+
DB_USER=postgres
114+
DB_PASSWORD=
115+
116+
# -----------------------------------------------------------------------------
117+
# Security Configuration (for RESTful API generator)
118+
# -----------------------------------------------------------------------------
119+
SECRET_KEY=change-me-in-production
120+
JWT_SECRET_KEY=change-me-in-production
121+
JWT_EXPIRES=3600
122+
123+
# -----------------------------------------------------------------------------
124+
# Resource Limits (for Docker deployments)
125+
# -----------------------------------------------------------------------------
126+
MEMORY_LIMIT=512M
127+
CPU_LIMIT=1.0

0 commit comments

Comments
 (0)