Settings
Configuration for Foreman.
| CLASS | DESCRIPTION |
|---|---|
AppSettings |
Configuration storage for Foreman. |
Classes¶
AppSettings
¶
Bases: BaseSettings
Configuration storage for Foreman.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Name and version of the application.
TYPE:
|
environment
|
Environment we're running in (dev/prod/...).
TYPE:
|
log_level
|
The logging level of the application.
TYPE:
|
otel_connection_string
|
The connection string used to connect to application insights. Additional configuration can be provided with https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
TYPE:
|
otel_debug
|
Enables debug logging to the console for OpenTelemetry.
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
environment |
Environment we're running in (dev/prod/...).
TYPE:
|
is_production |
Return True if we are in production.
TYPE:
|
log_level |
The logging level of the application.
TYPE:
|
name |
Name and version of the application.
TYPE:
|
otel_connection_string |
The connection string used to connect to application insights.
TYPE:
|
otel_debug |
Enables debug logging to the console for OpenTelemetry.
TYPE:
|
Attributes¶
environment
class-attribute
instance-attribute
¶
environment: str = 'dev'
Environment we're running in (dev/prod/...).
log_level
class-attribute
instance-attribute
¶
log_level: str = 'INFO'
The logging level of the application.
name
class-attribute
instance-attribute
¶
name: str = f'Foreman ({__version__})'
Name and version of the application.
otel_connection_string
class-attribute
instance-attribute
¶
otel_connection_string: str | None = Field(default=None)
The connection string used to connect to application insights. Additional configuration can be provided with https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/