-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
120 lines (94 loc) · 4.82 KB
/
Copy path.env.example
File metadata and controls
120 lines (94 loc) · 4.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#================================================================================================
# TelemetryFlow PHP SDK - ENVIRONMENT CONFIGURATION
#================================================================================================
#
# Copy this file to .env and update the values.
# Compatible with TFO-Collector v1.2.1 (OCB-native) & TFO-Agent v1.2.0.
#
# SECURITY NOTICE:
# This file contains DEFAULT VALUES suitable for DEVELOPMENT ONLY.
# DO NOT use these values in production environments.
#
#================================================================================================
#================================================================================================
# [1] SDK — CORE SETTINGS
#================================================================================================
# API Keys (obtain from TFO-Platform backend)
TELEMETRYFLOW_API_KEY_ID=tfk_your_key_id
TELEMETRYFLOW_API_KEY_SECRET=tfs_your_key_secret
# OTLP Exporter endpoint
# Local: localhost:4317
# Docker: tfo-collector:4317
# Host from Docker: host.docker.internal:4317
TELEMETRYFLOW_ENDPOINT=localhost:4317
# Service Identity
TELEMETRYFLOW_SERVICE_NAME=my-php-service
TELEMETRYFLOW_SERVICE_VERSION=1.0.0
TELEMETRYFLOW_SERVICE_NAMESPACE=telemetryflow
TELEMETRYFLOW_ENVIRONMENT=development
TELEMETRYFLOW_INSECURE=true
#================================================================================================
# [2] SDK — TFO v2 API SETTINGS (aligned with tfoexporter)
#================================================================================================
# Enable TFO v2 API (default: true)
TELEMETRYFLOW_USE_V2_API=true
# Enable v2-only mode — disables v1 endpoints (default: false)
TELEMETRYFLOW_V2_ONLY=false
# Custom endpoint paths (defaults to v2 when USE_V2_API=true)
# TELEMETRYFLOW_TRACES_ENDPOINT=/v2/traces
# TELEMETRYFLOW_METRICS_ENDPOINT=/v2/metrics
# TELEMETRYFLOW_LOGS_ENDPOINT=/v2/logs
#================================================================================================
# [3] SDK — COLLECTOR IDENTITY (aligned with tfoidentityextension)
#================================================================================================
TELEMETRYFLOW_COLLECTOR_ID=
TELEMETRYFLOW_COLLECTOR_NAME=TelemetryFlow PHP SDK
TELEMETRYFLOW_COLLECTOR_HOSTNAME=
TELEMETRYFLOW_DATACENTER=default
# Enable resource enrichment (default: true)
TELEMETRYFLOW_ENRICH_RESOURCES=true
#================================================================================================
# [4] SDK — PROTOCOL SETTINGS
#================================================================================================
# Protocol: grpc | http (default: grpc)
# Note: grpc requires the PHP grpc extension; http works everywhere
TELEMETRYFLOW_PROTOCOL=grpc
# Enable compression (default: false)
TELEMETRYFLOW_COMPRESSION=false
# Timeout in seconds (default: 10)
TELEMETRYFLOW_TIMEOUT=10
#================================================================================================
# [5] SDK — RETRY SETTINGS
#================================================================================================
TELEMETRYFLOW_RETRY_ENABLED=true
TELEMETRYFLOW_MAX_RETRIES=3
TELEMETRYFLOW_RETRY_BACKOFF=500
#================================================================================================
# [6] SDK — BATCH SETTINGS
#================================================================================================
TELEMETRYFLOW_BATCH_TIMEOUT=5000
TELEMETRYFLOW_BATCH_MAX_SIZE=512
#================================================================================================
# [7] SDK — SIGNALS
#================================================================================================
TELEMETRYFLOW_ENABLE_TRACES=true
TELEMETRYFLOW_ENABLE_METRICS=true
TELEMETRYFLOW_ENABLE_LOGS=true
# Enable exemplars for metrics-to-traces correlation (default: true)
TELEMETRYFLOW_ENABLE_EXEMPLARS=true
#================================================================================================
# [8] SDK — RATE LIMITING
#================================================================================================
# Maximum requests per minute (0 = unlimited)
TELEMETRYFLOW_RATE_LIMIT=0
#================================================================================================
# PRODUCTION DEPLOYMENT CHECKLIST
#================================================================================================
#
# [ ] TELEMETRYFLOW_API_KEY_ID / TELEMETRYFLOW_API_KEY_SECRET set to valid platform keys
# [ ] TELEMETRYFLOW_ENVIRONMENT set to production
# [ ] TELEMETRYFLOW_INSECURE set to false (enable TLS)
# [ ] TELEMETRYFLOW_ENDPOINT points to production collector
# [ ] HTTPS/TLS enabled at reverse proxy
#
#================================================================================================