Skip to content

Commit 08a52b0

Browse files
committed
test
1 parent 6438153 commit 08a52b0

File tree

1 file changed

+5
-2
lines changed
  • terraform/node/ec2/adot-genai

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ echo "Checking installed packages:"
9292
npm list --depth=0
9393
9494
export AWS_REGION=${var.aws_region}
95-
export OTEL_PROPAGATORS=tracecontext,xray,baggage
9695
export OTEL_EXPORTER_OTLP_LOGS_HEADERS="x-aws-log-group=test/genesis,x-aws-log-stream=default,x-aws-metric-namespace=genesis"
9796
export OTEL_RESOURCE_ATTRIBUTES="service.name=langchain-traceloop-app"
9897
export AGENT_OBSERVABILITY_ENABLED="true"
@@ -105,8 +104,12 @@ echo "Files in directory:"
105104
ls -la
106105
echo "Checking if ADOT module exists:"
107106
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 &
107+
echo "Testing service startup:"
108+
node index.js > /var/log/langchain-service.log 2>&1 &
109109
echo "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
112115
echo "Waiting for service to be ready..."

0 commit comments

Comments
 (0)