Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# We use PG by default as the metadata database.
METADATA_DB_URL=postgresql+psycopg2://alphatrion:alphatr1on@localhost:5432/alphatrion
ALPHATRION_METADATA_DB_URL=postgresql+psycopg2://alphatrion:alphatr1on@localhost:5432/alphatrion
LOG_LEVEL=INFO
# Default: true, ARTIFACT_REGISTRY_URL should not be empty.
ENABLE_ARTIFACT_STORAGE=true
ARTIFACT_REGISTRY_URL=http://localhost:5000/
# Default: true, ALPHATRION_ARTIFACT_REGISTRY_URL should not be empty.
ALPHATRION_ENABLE_ARTIFACT_STORAGE=true
ALPHATRION_ARTIFACT_REGISTRY_URL=http://localhost:5000/
ALPHATRION_ENABLE_TRACING=true
4 changes: 2 additions & 2 deletions .env.integration-test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
METADATA_DB_URL=postgresql+psycopg2://alphatrion:alphatr1on@localhost:5432/alphatrion
ARTIFACT_REGISTRY_URL=localhost:5001
ALPHATRION_METADATA_DB_URL=postgresql+psycopg2://alphatrion:alphatr1on@localhost:5432/alphatrion
ALPHATRION_ARTIFACT_REGISTRY_URL=localhost:5001
LOG_LEVEL=INFO
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
METADATA_DB_URL=sqlite:///:memory:
ARTIFACT_REGISTRY_URL=localhost:5000
ALPHATRION_METADATA_DB_URL=sqlite:///:memory:
ALPHATRION_ARTIFACT_REGISTRY_URL=localhost:5000
LOG_LEVEL=INFO
7 changes: 4 additions & 3 deletions alphatrion/consts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
METADATA_DB_URL = "METADATA_DB_URL"
ARTIFACT_REGISTRY_URL = "ARTIFACT_REGISTRY_URL"
ENABLE_ARTIFACT_STORAGE = "ENABLE_ARTIFACT_STORAGE"
METADATA_DB_URL = "ALPHATRION_METADATA_DB_URL"
ARTIFACT_REGISTRY_URL = "ALPHATRION_ARTIFACT_REGISTRY_URL"
ENABLE_ARTIFACT_STORAGE = "ALPHATRION_ENABLE_ARTIFACT_STORAGE"
ENABLE_TRACING = "ALPHATRION_ENABLE_TRACING"
3 changes: 2 additions & 1 deletion alphatrion/tracing/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
from traceloop.sdk.decorators import task as _task
from traceloop.sdk.decorators import workflow as _workflow

from alphatrion import consts
from alphatrion.run.run import current_run_id

# Disable tracing by default now
if os.getenv("ENABLE_TRACING", "false").lower() == "true":
if os.getenv(consts.ENABLE_TRACING, "false").lower() == "true":
Traceloop.init(
app_name="alphatrion",
# TODO: make this configurable
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading