11# =============================================================================
2- # TelemetryFlow Python SDK - Environment Variables
2+ # TelemetryFlow Python SDK - Environment Configuration
33# =============================================================================
4- # Copy this file to .env and update the values as needed
4+ # Copy this file to .env and update the values
5+ # Compatible with TFO-Collector v1.1.2 (OCB-native)
56# =============================================================================
67
78# -----------------------------------------------------------------------------
8- # Build Configuration
9+ # SDK VERSION
910# -----------------------------------------------------------------------------
10- VERSION = 1.1.1
11- GIT_COMMIT = unknown
11+ VERSION = 1.1.2
12+ GIT_COMMIT =
1213GIT_BRANCH = main
13- BUILD_TIME = unknown
14+ BUILD_TIME =
1415
1516# -----------------------------------------------------------------------------
16- # TelemetryFlow API Credentials
17+ # DOCKER IMAGES
1718# -----------------------------------------------------------------------------
18- # Get your API keys from https://app.telemetryflow.id
19+ IMAGE_NAME = telemetryflow/telemetryflow-python-sdk
20+ IMAGE_TAG = 1.1.2
1921
20- TELEMETRYFLOW_API_KEY_ID = tfk_your_key_id
21- TELEMETRYFLOW_API_KEY_SECRET = tfs_your_key_secret
22+ # Container names
23+ CONTAINER_NAME = telemetryflow-python-sdk
24+ CONTAINER_NAME_RESTAPI = telemetryflow-python-restapi
2225
2326# -----------------------------------------------------------------------------
24- # Service Configuration
27+ # OPENTELEMETRY COLLECTOR
2528# -----------------------------------------------------------------------------
26- # Unique name for your service
27- TELEMETRYFLOW_SERVICE_NAME = my-python-service
29+ OTEL_VERSION = 0.142.0
30+ TFO_COLLECTOR_VERSION = 1.1.2
2831
29- # Service version (semver recommended)
30- TELEMETRYFLOW_SERVICE_VERSION = 1.0.0
32+ # Collector ports
33+ OTLP_GRPC_PORT = 4317
34+ OTLP_HTTP_PORT = 4318
35+ OTEL_METRICS_PORT = 8888
36+ OTEL_HEALTH_PORT = 13133
3137
32- # Service namespace for multi-tenant support
33- TELEMETRYFLOW_SERVICE_NAMESPACE = telemetryflow
38+ # -----------------------------------------------------------------------------
39+ # JAEGER (Tracing)
40+ # -----------------------------------------------------------------------------
41+ JAEGER_UI_PORT = 16686
42+ JAEGER_HTTP_PORT = 14268
43+ JAEGER_GRPC_PORT = 14250
3444
3545# -----------------------------------------------------------------------------
36- # Connection Settings
46+ # PROMETHEUS (Metrics)
3747# -----------------------------------------------------------------------------
38- # OTLP collector endpoint
39- TELEMETRYFLOW_ENDPOINT = api.telemetryflow.id:4317
48+ PROMETHEUS_PORT = 9090
4049
41- # Use insecure connection (for local development)
42- TELEMETRYFLOW_INSECURE = false
50+ # -----------------------------------------------------------------------------
51+ # GRAFANA (Dashboards)
52+ # -----------------------------------------------------------------------------
53+ GRAFANA_PORT = 3000
54+ GRAFANA_USER = admin
55+ GRAFANA_PASSWORD = admin
4356
44- # Deployment environment (production, staging, development)
57+ # -----------------------------------------------------------------------------
58+ # TELEMETRYFLOW SDK - Core Settings
59+ # -----------------------------------------------------------------------------
60+ TELEMETRYFLOW_API_KEY_ID = tfk_your_key_id
61+ TELEMETRYFLOW_API_KEY_SECRET = tfs_your_key_secret
62+ TELEMETRYFLOW_ENDPOINT = localhost:4317
63+ TELEMETRYFLOW_SERVICE_NAME = my-service
64+ TELEMETRYFLOW_SERVICE_VERSION = 1.1.2
65+ TELEMETRYFLOW_SERVICE_NAMESPACE = telemetryflow
4566TELEMETRYFLOW_ENVIRONMENT = development
67+ TELEMETRYFLOW_INSECURE = true
4668
4769# -----------------------------------------------------------------------------
48- # Collector Configuration
70+ # TELEMETRYFLOW SDK - TFO v2 API Settings (aligned with tfoexporter)
4971# -----------------------------------------------------------------------------
50- # Unique collector ID for distributed collectors
51- # TELEMETRYFLOW_COLLECTOR_ID=collector-001
72+ # Enable TFO v2 API (default: true)
73+ TELEMETRYFLOW_USE_V2_API = true
5274
53- # TelemetryFlow backend (if using local collector )
54- # TELEMETRYFLOW_API_ENDPOINT=http://localhost:3100
75+ # Enable v2-only mode - disables v1 endpoints (default: false )
76+ TELEMETRYFLOW_V2_ONLY = false
5577
56- # Tenant and workspace (for multi-tenant deployments)
57- # TELEMETRYFLOW_TENANT_ID=default
58- # TELEMETRYFLOW_WORKSPACE_ID=default
78+ # Custom endpoint paths (defaults to v2 when USE_V2_API=true)
79+ # TELEMETRYFLOW_TRACES_ENDPOINT=/v2/traces
80+ # TELEMETRYFLOW_METRICS_ENDPOINT=/v2/metrics
81+ # TELEMETRYFLOW_LOGS_ENDPOINT=/v2/logs
5982
6083# -----------------------------------------------------------------------------
61- # Telemetry Feature Flags
84+ # TELEMETRYFLOW SDK - Collector Identity (aligned with tfoidentityextension)
6285# -----------------------------------------------------------------------------
63- TELEMETRYFLOW_ENABLE_METRICS = true
64- TELEMETRYFLOW_ENABLE_LOGS = true
65- TELEMETRYFLOW_ENABLE_TRACES = true
86+ TELEMETRYFLOW_COLLECTOR_ID =
87+ TELEMETRYFLOW_COLLECTOR_NAME = TelemetryFlow Python SDK
88+ TELEMETRYFLOW_COLLECTOR_HOSTNAME =
89+ TELEMETRYFLOW_DATACENTER = default
90+
91+ # Enable resource enrichment (default: true)
92+ TELEMETRYFLOW_ENRICH_RESOURCES = true
6693
6794# -----------------------------------------------------------------------------
68- # Batch Processing Configuration
95+ # TELEMETRYFLOW SDK - Protocol Settings
6996# -----------------------------------------------------------------------------
70- TELEMETRYFLOW_BATCH_SIZE = 512
71- TELEMETRYFLOW_BATCH_TIMEOUT = 5s
97+ # Protocol: grpc or http (default: grpc)
98+ TELEMETRYFLOW_PROTOCOL = grpc
99+
100+ # Enable compression (default: false)
101+ TELEMETRYFLOW_COMPRESSION = false
102+
103+ # Timeout in seconds (default: 10)
104+ TELEMETRYFLOW_TIMEOUT = 10
72105
73106# -----------------------------------------------------------------------------
74- # Network Configuration (for local development)
107+ # TELEMETRYFLOW SDK - Retry Settings
75108# -----------------------------------------------------------------------------
76- # OTLP gRPC receiver port
77- OTLP_GRPC_PORT = 4317
109+ # Enable retry (default: true)
110+ TELEMETRYFLOW_RETRY_ENABLED = true
78111
79- # OTLP HTTP receiver port
80- OTLP_HTTP_PORT = 4318
112+ # Max retries (default: 3)
113+ TELEMETRYFLOW_MAX_RETRIES = 3
81114
82- # Prometheus metrics port (self-observability )
83- METRICS_PORT = 8888
115+ # Retry backoff in milliseconds (default: 500 )
116+ TELEMETRYFLOW_RETRY_BACKOFF = 500
84117
85- # Prometheus exporter port
86- PROMETHEUS_EXPORTER_PORT = 8889
118+ # -----------------------------------------------------------------------------
119+ # TELEMETRYFLOW SDK - Batch Settings
120+ # -----------------------------------------------------------------------------
121+ # Batch timeout in milliseconds (default: 5000)
122+ TELEMETRYFLOW_BATCH_TIMEOUT = 5000
87123
88- # Health check port
89- HEALTH_PORT = 13133
124+ # Max batch size (default: 512)
125+ TELEMETRYFLOW_BATCH_MAX_SIZE = 512
126+
127+ # -----------------------------------------------------------------------------
128+ # TELEMETRYFLOW SDK - Signals
129+ # -----------------------------------------------------------------------------
130+ # Enable specific signals (all enabled by default)
131+ TELEMETRYFLOW_ENABLE_TRACES = true
132+ TELEMETRYFLOW_ENABLE_METRICS = true
133+ TELEMETRYFLOW_ENABLE_LOGS = true
134+
135+ # Enable exemplars for metrics-to-traces correlation (default: true)
136+ TELEMETRYFLOW_ENABLE_EXEMPLARS = true
137+
138+ # -----------------------------------------------------------------------------
139+ # TELEMETRYFLOW SDK - Rate Limiting
140+ # -----------------------------------------------------------------------------
141+ # Maximum requests per second (0 = unlimited)
142+ TELEMETRYFLOW_RATE_LIMIT = 0
90143
91144# -----------------------------------------------------------------------------
92- # Logging Configuration
145+ # LOGGING
93146# -----------------------------------------------------------------------------
94147LOG_LEVEL = info
95148LOG_FORMAT = json
@@ -104,7 +157,7 @@ APP_PORT=8080
104157APP_DEBUG = false
105158
106159# -----------------------------------------------------------------------------
107- # Database Configuration (for RESTful API generator)
160+ # DATABASE (for RESTful API generator)
108161# -----------------------------------------------------------------------------
109162DB_DRIVER = postgresql
110163DB_HOST = localhost
@@ -114,7 +167,7 @@ DB_USER=postgres
114167DB_PASSWORD =
115168
116169# -----------------------------------------------------------------------------
117- # Security Configuration (for RESTful API generator)
170+ # SECURITY (for RESTful API generator)
118171# -----------------------------------------------------------------------------
119172SECRET_KEY = change-me-in-production
120173JWT_SECRET_KEY = change-me-in-production
0 commit comments