arena-py API v1.0.1
arena .env
.. envvar:: REALM
The :envvar:REALM
defines the ARENA Realm to listen to.
After connecting, the library listens to a scene topic as follows:
{REALM}/s/{NAMESPACE}/{SCENE}
.
This variable overrides arguments passed in the scene's constructor.
.. envvar:: SCENE
The :envvar:SCENE
defines ARENA Scene to listen to.
After connecting, the library listens to a scene topic as follows:
{REALM}/s/{NAMESPACE}/{SCENE}
.
This variable overrides arguments passed in the scene's constructor.
.. envvar:: NAMESPACE
The :envvar:NAMESPACE
defines ARENA Namespace to listen to.
After connecting, the library listens to a scene topic as follows:
{REALM}/s/{NAMESPACE}/{SCENE}
.
This variable overrides arguments passed in the scene's constructor.
.. envvar:: ARENA_USERNAME
The :envvar:ARENA_USERNAME
defines username used to authenticate.
If undefined, will try to use local authentication information previously saved.
.. envvar:: ARENA_PASSWORD
The :envvar:ARENA_PASSWORD
defines password used to authenticate.
If undefined, will try to use local authentication information previously saved.
.. envvar:: MQTTH
The :envvar:MQTTH
defines the MQTT host used by the library.
This variable allows to use a broker different from the host argument passed to the
scene constructor
.. envvar:: DEVICE
The :envvar:DEVICE
defines the name of a device, to publish and listen to.
After connecting, the library listens to device topic as follows:
{REALM}/d/{NAMESPACE}/{SCENE}
.
This variable overrides arguments passed in the command line.
.. envvar:: PROGRAM_OBJECT_ID
The :envvar:PROGRAM_OBJECT_ID
indicates the object id in ARENA persist for this program.
This is passed by the runtime and used to identify the program object that represents the currently running program.
.. envvar:: ENABLE_INTERPRETER
The :envvar:ENABLE_INTERPRETER
enables the a simple command line interpreter that
can be used to inspect library/program state. Set this variable with a value of
true
, 1
or t
(case insensitive) to enable the interpreter.
Default: 'false'
.. envvar:: ARENA_TELEMETRY
The :envvar:ARENA_TELEMETRY
environment variable enables the library's telemetry to generate
traces, metrics, and logs. Set this variable with a value of otlp
, mqtt
or console
(case insensitive)
to enable telemetry using OpenTelemetry (OTEL) and its Protocol (OTLP), send JSON OTEL spans to MQTT, or to the console.
.. envvar:: OTLP_ENDPOINT
The :envvar:OTLP_ENDPOINT
environment variable is used when OTLP telemetry is enabled (ARENA_TELEMETRY=otlp
) to define
the telemtry endpoint.
Our implementation uses OpenTelemetry (OTEL) and its Protocol (OTLP) for encoding and transport.
Default: "http://localhost:4317"
.. envvar:: OTEL_LOG_LEVEL
The :envvar:OTEL_LOG_LEVEL
environment variable sets the log level used by the logger
implementation (ArenaTelemetry) using OpenTelemetry (OTEL).
Default: "info".
.. envvar:: PROGRAM_STATS_UPDATE_INTERVAL_MS
The :envvar:PROGRAM_STATS_UPDATE_INTERVAL_MS
environment variable defines how often program
stats are published
Default: 5000.