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
2 changes: 1 addition & 1 deletion .github/workflows/kube-workflow-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ on:
jobs:
init:
# Use a released version for stable.
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected].21
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected].22
secrets:
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/kube-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ on:
jobs:
event-handler:
# Use a released version for stable.
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected].21
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected].22
secrets:
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}
20 changes: 20 additions & 0 deletions alphatrion/server/cmd/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: E501
import argparse
import os
import webbrowser
Expand Down Expand Up @@ -54,6 +55,25 @@ def main():


def run_server(args):
BLUE = "\033[94m"
RESET = "\033[0m"

ascii_art = r"""
█████████ ████ █████ ███████████ ███
███░░░░░███ ░░███ ░░███ ░█░░░███░░░█ ░░░
░███ ░███ ░███ ████████ ░███████ ██████ ░ ░███ ░ ████████ ████ ██████ ████████
░███████████ ░███ ░░███░░███ ░███░░███ ░░░░░███ ░███ ░░███░░███░░███ ███░░███░░███░░███
░███░░░░░███ ░███ ░███ ░███ ░███ ░███ ███████ ░███ ░███ ░░░ ░███ ░███ ░███ ░███ ░███
░███ ░███ ░███ ░███ ░███ ░███ ░███ ███░░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███
█████ █████ █████ ░███████ ████ █████░░████████ █████ █████ █████░░██████ ████ █████
░░░░░ ░░░░░ ░░░░░ ░███░░░ ░░░░ ░░░░░ ░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░ ░░░░░
░███
█████
░░░░░
"""

print(f"{BLUE}{ascii_art}{RESET}")

msg = Text(
f"Starting AlphaTrion server at http://{args.host}:{args.port}",
style="bold green",
Expand Down
18 changes: 11 additions & 7 deletions alphatrion/tracing/tracing.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import inspect
import os
import uuid
from functools import wraps

from opentelemetry.sdk.trace.export import ConsoleSpanExporter
from opentelemetry.semconv_ai import TraceloopSpanKindValues
from traceloop.sdk import Traceloop
from traceloop.sdk.decorators import task as _task
from traceloop.sdk.decorators import workflow as _workflow

from alphatrion.run.run import current_run_id

Traceloop.init(
app_name="alphatrion",
# TODO: make this configurable
# exporter=ConsoleSpanExporter(),
disable_batch=True,
telemetry_enabled=False,
)
# Disable tracing by default now
if os.getenv("ENABLE_TRACING", "false").lower() == "true":
Traceloop.init(
app_name="alphatrion",
# TODO: make this configurable
exporter=ConsoleSpanExporter(),
disable_batch=True,
telemetry_enabled=False,
)


def task(
Expand Down
Loading