Skip to content

Commit

Permalink
some small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyuan-he committed Mar 4, 2025
1 parent bf11d7f commit bbb2498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release-udp-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Ensure Unit Tests are passing
run: |
pytest exporters/aws-otel-otlp-udp-exporter/tests/test_exporter.py
pytest exporters/aws-otel-otlp-udp-exporter/tests/
- name: Run Sample App in Background
working-directory: sample-applications/integ-test-app
Expand All @@ -56,13 +56,9 @@ jobs:
run: |
echo "traceId=$(curl localhost:8080/test)" >> $GITHUB_OUTPUT
- name: Print Daemon Logs
run: |
sleep 20
cat xray-daemon/daemon-logs.log
- name: Verify X-Ray daemon received traces
run: |
sleep 10
echo "X-Ray daemon logs:"
cat xray-daemon/daemon-logs.log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Flask, jsonify
from flask import Flask

from amazon.opentelemetry.exporters.otlp.udp import OTLPUdpSpanExporter
from opentelemetry import trace
Expand Down Expand Up @@ -41,7 +41,7 @@ def create_trace():
success = tracer_provider.force_flush()
print(f"Force flush {'succeeded' if success else 'failed'}")

return jsonify({"trace_id": trace_id})
return trace_id


if __name__ == "__main__":
Expand Down

0 comments on commit bbb2498

Please sign in to comment.