File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
terraform/node/ec2/adot-genai Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ echo "Checking installed packages:"
9292npm list --depth=0
9393
9494export AWS_REGION=${ var . aws_region }
95- export OTEL_PROPAGATORS=tracecontext,xray,baggage
9695export OTEL_EXPORTER_OTLP_LOGS_HEADERS="x-aws-log-group=test/genesis,x-aws-log-stream=default,x-aws-metric-namespace=genesis"
9796export OTEL_RESOURCE_ATTRIBUTES="service.name=langchain-traceloop-app"
9897export AGENT_OBSERVABILITY_ENABLED="true"
@@ -105,8 +104,12 @@ echo "Files in directory:"
105104ls -la
106105echo "Checking if ADOT module exists:"
107106node -e "try { require('@aws/aws-distro-opentelemetry-node-autoinstrumentation/register'); console.log('ADOT module found'); } catch(e) { console.log('ADOT module not found:', e.message); }"
108- nohup node --require ./customInstrumentation.js index.js > /var/log/langchain-service.log 2>&1 &
107+ echo "Testing service startup:"
108+ node index.js > /var/log/langchain-service.log 2>&1 &
109109echo "Service started with PID: $!"
110+ echo "Checking initial logs:"
111+ sleep 3
112+ cat /var/log/langchain-service.log
110113
111114# Wait for service to be ready
112115echo "Waiting for service to be ready..."
You can’t perform that action at this time.
0 commit comments