You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow overriding service name in tracer, meter, and logger config (#2883)
* feat: allow overriding service name in tracer, meter, and logger config
* fix: add empty-value fallback for service name in telemetry providers
* feat: add service_name fields to permify config output
* fix: register service_name flags in config command to prevent panic
Copy file name to clipboardExpand all lines: example.config.yaml
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,15 @@ tracer:
45
45
exporter: zipkin
46
46
endpoint: http://localhost:9411/api/v2/spans
47
47
enabled: false
48
+
service_name: permify
48
49
49
50
# The meter section enables or disables metrics collection and sets the
50
51
# exporter and endpoint for the collected metrics.
51
52
meter:
52
53
exporter: otlp
53
54
endpoint: localhost:4318
54
55
enabled: false
56
+
service_name: permify
55
57
56
58
# The service section sets various service-level settings, including whether
57
59
# or not to use a circuit breaker, and cache sizes for schema, permission,
@@ -79,16 +81,16 @@ database:
79
81
engine: postgres
80
82
uri: postgres://user:password@host:5432/db_name
81
83
auto_migrate: false
82
-
max_connections: 20# Maximum number of connections in the pool (maps to pgxpool MaxConns)
83
-
max_open_connections: 20# Deprecated: use max_connections instead. Kept for backward compatibility.
84
-
max_idle_connections: 1# Deprecated: use min_connections instead. Kept for backward compatibility (maps to MinConnections if min_connections is not set).
85
-
min_connections: 0# Minimum number of connections in the pool (maps to pgxpool MinConns). If 0 and max_idle_connections is set, max_idle_connections will be used.
86
-
min_idle_connections: 0# Minimum idle connections (maps to pgxpool MinIdleConns). Must be explicitly set if needed (not set in old code).
84
+
max_connections: 20# Maximum number of connections in the pool (maps to pgxpool MaxConns)
85
+
max_open_connections: 20# Deprecated: use max_connections instead. Kept for backward compatibility.
86
+
max_idle_connections: 1# Deprecated: use min_connections instead. Kept for backward compatibility (maps to MinConnections if min_connections is not set).
87
+
min_connections: 0# Minimum number of connections in the pool (maps to pgxpool MinConns). If 0 and max_idle_connections is set, max_idle_connections will be used.
88
+
min_idle_connections: 0# Minimum idle connections (maps to pgxpool MinIdleConns). Must be explicitly set if needed (not set in old code).
87
89
max_connection_lifetime: 300s
88
90
max_connection_idle_time: 60s
89
-
health_check_period: 0s# Use pgxpool default (1 minute) if 0
90
-
max_connection_lifetime_jitter: 0s# Will default to 20% of max_connection_lifetime if 0
91
-
connect_timeout: 0s# Use pgx default (no timeout) if 0
91
+
health_check_period: 0s# Use pgxpool default (1 minute) if 0
92
+
max_connection_lifetime_jitter: 0s# Will default to 20% of max_connection_lifetime if 0
93
+
connect_timeout: 0s# Use pgx default (no timeout) if 0
0 commit comments