Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix metrics check interval; Disable otel debug logs
Tomas Valentaf7f851dcb1e3
diff --git a/api-service/start.sh b/api-service/start.shindex 921fafe5d..085f90467 100755--- a/api-service/start.sh+++ b/api-service/start.sh@@ -4,7 +4,7 @@cd /playground && exec node lib/server.js &# Start python app-cd /app && OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES exec poetry run opentelemetry-instrument --service_name agent-api --exporter_otlp_endpoint 'ingest.lightstep.com:443' --traces_exporter console,otlp_proto_grpc --metrics_exporter console,otlp_proto_grpc gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 12 --timeout 120 app:app -k uvicorn.workers.UvicornWorker &+cd /app && OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES exec poetry run opentelemetry-instrument --service_name agent-api --exporter_otlp_endpoint 'ingest.lightstep.com:443' --traces_exporter otlp_proto_grpc --metrics_exporter otlp_proto_grpc gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 12 --timeout 120 app:app -k uvicorn.workers.UvicornWorker &# Wait for any process to exitwait -ndiff --git a/package.json b/package.jsonindex dff7193e2..5d3cc7cd2 100644--- a/package.json+++ b/package.json@@ -20,7 +20,7 @@"dev": "OTEL_SDK_DISABLED=\"true\" npx concurrently -p none \"next dev\" \"npm run start:api\" \"npm run start:playground\"","dev:api-service": "npx concurrently \"npm run start:api\" \"npm run start:playground\"","build": "next build",- "start:api-otel": "cd api-service && cross-env PYTHONUNBUFFERED=1 OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES poetry run opentelemetry-instrument --service_name agent-api --exporter_otlp_endpoint \"ingest.lightstep.com:443\" --traces_exporter console,otlp_proto_grpc --metrics_exporter console,otlp_proto_grpc gunicorn --bind 0.0.0.0:49155 --workers 1 --threads 2 --timeout 120 app:app -k uvicorn.workers.UvicornWorker",+ "start:api-otel": "cd api-service && cross-env PYTHONUNBUFFERED=1 OTEL_METRIC_EXPORT_INTERVAL=15000 OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES poetry run opentelemetry-instrument --service_name agent-api --exporter_otlp_endpoint \"ingest.lightstep.com:443\" --traces_exporter console,otlp_proto_grpc --metrics_exporter console,otlp_proto_grpc gunicorn --bind 0.0.0.0:49155 --workers 1 --threads 2 --timeout 120 app:app -k uvicorn.workers.UvicornWorker","start:api": "cd api-service && cross-env PYTHONUNBUFFERED=1 poetry run uvicorn app:app --reload --host 0.0.0.0 --port 49155","start:playground": "cd api-service/playground && npm run dev","install:api-service": "cd api-service && poetry install --with dev --no-root && cd playground && npm install && make install-instrumentation",