Skip to content

Commit ebbeae2

Browse files
committed
test
1 parent 6153553 commit ebbeae2

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

.github/workflows/python-ec2-genesis-test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,15 @@ jobs:
4040
- name: Generate testing id
4141
run: echo TESTING_ID="${{ github.run_id }}-${{ github.run_number }}-${RANDOM}" >> $GITHUB_ENV
4242

43-
- name: Generate XRay and W3C trace ID and baggage
43+
- name: Generate XRay and W3C trace ID
4444
run: |
4545
ID_1="$(printf '%08x' $(date +%s))"
4646
ID_2="$(openssl rand -hex 12)"
4747
W3C_TRACE_ID="${ID_1}${ID_2}"
4848
XRAY_TRACE_ID="Root=1-${ID_1}-${ID_2};Parent=$(openssl rand -hex 8);Sampled=1"
49-
BAGGAGE="test_session_$(openssl rand -hex 4)"
5049
echo "XRAY_TRACE_ID=${XRAY_TRACE_ID}" >> $GITHUB_ENV
5150
echo "W3C_TRACE_ID=${W3C_TRACE_ID}" >> $GITHUB_ENV
52-
echo "BAGGAGE=${BAGGAGE}" >> $GITHUB_ENV
53-
echo "Generated XRay Trace ID: ${TRACE_ID}"
54-
echo "Generated Baggage: ${BAGGAGE}"
51+
echo "Generated XRay Trace ID: ${XRAY_TRACE_ID}"
5552
5653
- name: Configure AWS Credentials
5754
uses: aws-actions/configure-aws-credentials@v4
@@ -114,7 +111,6 @@ jobs:
114111
export DELAY_SECONDS="5"
115112
export TIMEOUT="30"
116113
export TRACE_ID="${{ env.XRAY_TRACE_ID }}"
117-
export BAGGAGE="${{ env.BAGGAGE }}"
118114
./generate_traffic.sh
119115
120116
- name: Validate generated logs
@@ -147,8 +143,7 @@ jobs:
147143
--account-id ${{ env.E2E_TEST_ACCOUNT_ID }}
148144
--service-name langchain-traceloop-app
149145
--instance-id ${{ env.INSTANCE_ID }}
150-
--trace-id ${{ env.XRAY_TRACE_ID }}
151-
--baggage ${{ env.BAGGAGE }}'
146+
--trace-id ${{ env.XRAY_TRACE_ID }}'
152147

153148
- name: Cleanup
154149
if: always()

sample-apps/traffic-generator/langchain/generate_traffic.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,13 @@ send_request() {
4242
echo "Message: \"$message\""
4343

4444
# Use environment variables or defaults for headers
45-
local baggage_header="${BAGGAGE:-session.id=test_session}"
4645
local trace_id_header="${TRACE_ID:-Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1}"
4746

48-
echo "Using Baggage: $baggage_header"
4947
echo "Using Trace ID: $trace_id_header"
5048

5149
# Send request with timeout
5250
response=$(curl -s -X POST "$ENDPOINT" \
5351
-H "Content-Type: application/json" \
54-
-H "baggage: $baggage_header" \
5552
-H "X-Amzn-Trace-Id: $trace_id_header" \
5653
-d "{\"message\": \"$message\"}" \
5754
-m "$TIMEOUT" \

validator/src/main/java/com/amazon/aoc/App.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ public class App implements Callable<Integer> {
160160
@CommandLine.Option(names = {"--trace-id"})
161161
private String traceId;
162162

163-
@CommandLine.Option(names = {"--baggage"})
164-
private String baggage;
165-
166163
private static final String TEST_CASE_DIM_KEY = "testcase";
167164
private static final String CANARY_NAMESPACE = "Otel/Canary";
168165
private static final String CANARY_METRIC_NAME = "Success";
@@ -203,7 +200,6 @@ public Integer call() throws Exception {
203200
context.setInstanceId(this.instanceId);
204201
context.setPrivateDnsName(this.privateDnsName);
205202
context.setTraceId(this.traceId);
206-
context.setBaggage(this.baggage);
207203

208204
log.info(context);
209205

validator/src/main/java/com/amazon/aoc/models/Context.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ public class Context {
6969

7070
private String traceId;
7171

72-
private String baggage;
73-
7472
private ECSContext ecsContext;
7573

7674
private CloudWatchContext cloudWatchContext;

0 commit comments

Comments
 (0)