Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
608094c
feat(shipping): delay international shipments based on shippingSlowdo…
tlee768 Apr 25, 2026
8e59cc8
feat(shipping): add OTel tracing to feature flag evaluation
tlee768 Apr 25, 2026
4161526
test(shipping): add ship_order tests with injectable flag checker and…
tlee768 Apr 27, 2026
3f72c60
test(shipping): add ship_order tests with injectable flag checker and…
tlee768 Apr 27, 2026
7783f6e
feat(shipping): add FLAGD_HOST, FLAGD_OFREP_PORT env vars and flagd d…
tlee768 Apr 27, 2026
ec43e5d
docs: add shippingSlowdown feature flag entry to CHANGELOG
tlee768 May 7, 2026
f5be5e6
fix(shipping): check HTTP status before parsing feature flag response
tlee768 May 9, 2026
663880c
docs(shipping): document shippingSlowdown feature flag and env vars
tlee768 May 9, 2026
438e2c8
fix(shipping): match all common US country name variants
tlee768 May 9, 2026
a14bcd9
test(shipping): remove redundant US country variant tests
tlee768 May 9, 2026
e95ba04
fix(shipping): use tracing crate for feature flag spans instead of ra…
tlee768 May 9, 2026
894db5d
fix(shipping): reuse HTTP client for feature flag requests via LazyLock
tlee768 May 9, 2026
4d64306
refactor(shipping): restructure feature flag as FlagdClient struct
tlee768 May 9, 2026
4d89f03
refactor(shipping): restructure feature flag as FlagdClient struct
tlee768 May 9, 2026
02da699
fix(shipping): reuse HTTP client per worker thread via thread_local!
tlee768 May 9, 2026
4982020
fix(shipping): remove tracing span from feature flag client
tlee768 May 12, 2026
e06c5d0
feat(shipping): log feature flag evaluation result
tlee768 May 12, 2026
be87c43
refactor(shipping): make FlagChecker generic over flag value type
tlee768 May 12, 2026
e2dc588
refactor(shipping): move mock constructors into FlagChecker as builde…
tlee768 May 12, 2026
1099d95
fix linting
tlee768 May 12, 2026
d54c7b0
refactor(shipping): replace custom OFREP client with open-feature-fla…
tlee768 May 15, 2026
8942c49
refactor(shipping): switch flagd from REST/OFREP to gRPC
tlee768 May 15, 2026
7e57155
fix(shipping): disable FlagdProvider cache so flag changes are picked…
tlee768 May 15, 2026
229cf5c
cleanup(shipping): trim flagd provider deps and redundant env reads
tlee768 May 15, 2026
badd571
perf(shipping): skip flag evaluation for US addresses
tlee768 May 15, 2026
03a8b0b
refactor(shipping): replace boolean shippingSlowdown with integer int…
tlee768 May 19, 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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ 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))
* [collector] Add `transform/sanitize_logs` processor to work around
`otelcol.signal` scope attribute conflict with `otelcol.signal.output`
that causes OpenSearch/Elasticsearch mapping failures
([#3321](https://github.com/open-telemetry/opentelemetry-demo/pull/3321))
* [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 compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,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