Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9297a87
feat(shipping): delay international shipments based on shippingSlowdo…
tlee768 Apr 25, 2026
2cad430
feat(shipping): add OTel tracing to feature flag evaluation
tlee768 Apr 25, 2026
d666969
test(shipping): add ship_order tests with injectable flag checker and…
tlee768 Apr 27, 2026
30aeeac
test(shipping): add ship_order tests with injectable flag checker and…
tlee768 Apr 27, 2026
b5ff292
feat(shipping): add FLAGD_HOST, FLAGD_OFREP_PORT env vars and flagd d…
tlee768 Apr 27, 2026
6e3b78a
docs: add shippingSlowdown feature flag entry to CHANGELOG
tlee768 May 7, 2026
cabb716
fix(shipping): check HTTP status before parsing feature flag response
tlee768 May 9, 2026
5476d2a
docs(shipping): document shippingSlowdown feature flag and env vars
tlee768 May 9, 2026
2cab5e2
fix(shipping): match all common US country name variants
tlee768 May 9, 2026
cae3f18
test(shipping): remove redundant US country variant tests
tlee768 May 9, 2026
3108414
fix(shipping): use tracing crate for feature flag spans instead of ra…
tlee768 May 9, 2026
28192f5
fix(shipping): reuse HTTP client for feature flag requests via LazyLock
tlee768 May 9, 2026
361df7b
refactor(shipping): restructure feature flag as FlagdClient struct
tlee768 May 9, 2026
9afc649
refactor(shipping): restructure feature flag as FlagdClient struct
tlee768 May 9, 2026
024b8a2
fix(shipping): reuse HTTP client per worker thread via thread_local!
tlee768 May 9, 2026
672c4d5
fix(shipping): remove tracing span from feature flag client
tlee768 May 12, 2026
82945d7
feat(shipping): log feature flag evaluation result
tlee768 May 12, 2026
2d5aad3
refactor(shipping): make FlagChecker generic over flag value type
tlee768 May 12, 2026
ac5de46
refactor(shipping): move mock constructors into FlagChecker as builde…
tlee768 May 12, 2026
76fa075
fix linting
tlee768 May 12, 2026
2e3539d
refactor(shipping): replace custom OFREP client with open-feature-fla…
tlee768 May 15, 2026
9450555
refactor(shipping): switch flagd from REST/OFREP to gRPC
tlee768 May 15, 2026
d93c9b2
fix(shipping): disable FlagdProvider cache so flag changes are picked…
tlee768 May 15, 2026
3de2ef0
cleanup(shipping): trim flagd provider deps and redundant env reads
tlee768 May 15, 2026
3501c1c
perf(shipping): skip flag evaluation for US addresses
tlee768 May 15, 2026
9b9884d
Merge branch 'main' into feat/shipping-slowdown-flag
tlee768 May 16, 2026
7b6b22e
chore: merge upstream/main to resolve conflicts
tlee768 May 18, 2026
dc701cc
refactor(shipping): replace boolean shippingSlowdown with integer int…
tlee768 May 19, 2026
f7f9ebb
Merge branch 'main' into feat/shipping-slowdown-flag
puckpuck May 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ the release.

## Unreleased

* [shipping] Add `intlShippingSlowdown` integer feature flag to delay
international (non-US) shipments by N seconds via flagd with OpenTelemetry tracing
([#346](https://github.com/open-telemetry/opentelemetry-demo/issues/346))
* [telemetry-docs] Add a new service to provide telemetry documentation based
on Weaver
([#2794](https://github.com/open-telemetry/opentelemetry-demo/pull/2794))
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ services:
- IPV6_ENABLED
- SHIPPING_PORT
- QUOTE_ADDR
- FLAGD_HOST
- FLAGD_PORT
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_RESOURCE_ATTRIBUTES=${OTEL_RESOURCE_ATTRIBUTES},service.criticality=high
- OTEL_SERVICE_NAME=shipping
Expand All @@ -577,6 +579,8 @@ services:
depends_on:
otel-collector:
condition: service_started
flagd:
condition: service_started
logging: *logging

# ******************
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,17 @@ services:
- IPV6_ENABLED
- SHIPPING_PORT
- QUOTE_ADDR
- FLAGD_HOST
- FLAGD_PORT
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_RESOURCE_ATTRIBUTES=${OTEL_RESOURCE_ATTRIBUTES},service.criticality=high
- OTEL_SERVICE_NAME=shipping
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
depends_on:
otel-collector:
condition: service_started
flagd:
condition: service_started
logging: *logging

# ******************
Expand Down
10 changes: 10 additions & 0 deletions src/flagd/demo.flagd.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@
"10000x": 10000
},
"defaultVariant": "off"
},
"intlShippingSlowdown": {
"description": "Delays international shipping responses to simulate overseas shipping delay",
"state": "ENABLED",
"variants": {
"10sec": 10,
"5sec": 5,
"off": 0
},
"defaultVariant": "off"
}
}
}
Loading
Loading