File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
terraform/node/ec2/adot-genai Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ cd genai-service
8585npm install
8686
8787# Download and install ADOT instrumentation
88+ echo "Installing ADOT instrumentation..."
8889${ var . get_adot_wheel_command }
90+ echo "ADOT installation completed"
91+ echo "Checking installed packages:"
92+ npm list --depth=0
8993
9094export AWS_REGION=${ var . aws_region }
9195export OTEL_PROPAGATORS=tracecontext,xray,baggage
@@ -96,7 +100,12 @@ export AGENT_OBSERVABILITY_ENABLED="true"
96100# Run the genai service from the genai-service directory
97101cd /app/genai-service
98102echo "Starting Node.js service..."
99- nohup node --require '@aws/aws-distro-opentelemetry-node-autoinstrumentation/register' --require ./customInstrumentation.js index.js > /var/log/langchain-service.log 2>&1 &
103+ echo "Current directory: $(pwd)"
104+ echo "Files in directory:"
105+ ls -la
106+ echo "Checking if ADOT module exists:"
107+ node -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 &
100109echo "Service started with PID: $!"
101110
102111# Wait for service to be ready
You can’t perform that action at this time.
0 commit comments