Skip to content

Commit ec918c0

Browse files
committed
test
1 parent b6c1771 commit ec918c0

File tree

1 file changed

+10
-1
lines changed
  • terraform/node/ec2/adot-genai

1 file changed

+10
-1
lines changed

terraform/node/ec2/adot-genai/main.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ cd genai-service
8585
npm 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
9094
export AWS_REGION=${var.aws_region}
9195
export OTEL_PROPAGATORS=tracecontext,xray,baggage
@@ -96,7 +100,12 @@ export AGENT_OBSERVABILITY_ENABLED="true"
96100
# Run the genai service from the genai-service directory
97101
cd /app/genai-service
98102
echo "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 &
100109
echo "Service started with PID: $!"
101110
102111
# Wait for service to be ready

0 commit comments

Comments
 (0)