Skip to content

Commit 8de7041

Browse files
EislM0203austinlparkerjulianocosta89
authored
[paymentservice] [checkoutservice] introduce new featureflags (#1449)
* [paymentservice][checkoutservice] add paymentServiceFailure & paymentServiceUnreachable featureflags * [checkoutservice] remove unnecessary log * update changelog * Fix trace test --------- Co-authored-by: Austin Parker <austin@ap2.io> Co-authored-by: Juliano Costa <julianocosta89@outlook.com> Co-authored-by: Juliano Costa <juliano.costa@datadoghq.com>
1 parent 4862828 commit 8de7041

File tree

11 files changed

+1678
-5
lines changed

11 files changed

+1678
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ the release.
3333
([#1427](https://github.com/open-telemetry/opentelemetry-demo/pull/1427))
3434
* [chore] - Update Telemetry Components
3535
([#1440](https://github.com/open-telemetry/opentelemetry-demo/pull/1440))
36+
* [paymentservice] add paymentServiceFailure feature flag
37+
([#1449](https://github.com/open-telemetry/opentelemetry-demo/pull/1449))
38+
* [checkoutservice] add paymentServiceUnreachable feature flag
39+
([#1449](https://github.com/open-telemetry/opentelemetry-demo/pull/1449))
3640
* [Frontend-proxy] Add restart policy to compose file
3741
([#1448](https://github.com/open-telemetry/opentelemetry-demo/pull/1448))
3842

docker-compose.minimal.yml

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ services:
9393
ports:
9494
- "${CHECKOUT_SERVICE_PORT}"
9595
environment:
96+
- FLAGD_HOST
9697
- CHECKOUT_SERVICE_PORT
9798
- CART_SERVICE_ADDR
9899
- CURRENCY_SERVICE_ADDR
@@ -319,6 +320,7 @@ services:
319320
- "${PAYMENT_SERVICE_PORT}"
320321
environment:
321322
- PAYMENT_SERVICE_PORT
323+
- FLAGD_HOST
322324
- OTEL_EXPORTER_OTLP_ENDPOINT
323325
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
324326
- OTEL_RESOURCE_ATTRIBUTES

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ services:
121121
ports:
122122
- "${CHECKOUT_SERVICE_PORT}"
123123
environment:
124+
- FLAGD_HOST
124125
- CHECKOUT_SERVICE_PORT
125126
- CART_SERVICE_ADDR
126127
- CURRENCY_SERVICE_ADDR
@@ -391,6 +392,7 @@ services:
391392
- "${PAYMENT_SERVICE_PORT}"
392393
environment:
393394
- PAYMENT_SERVICE_PORT
395+
- FLAGD_HOST
394396
- OTEL_EXPORTER_OTLP_ENDPOINT
395397
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
396398
- OTEL_RESOURCE_ATTRIBUTES

src/checkoutservice/go.mod

+40
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,75 @@ require (
2121
)
2222

2323
require (
24+
buf.build/gen/go/open-feature/flagd/connectrpc/go v1.12.0-20231031123731-ac2ec0f39838.1 // indirect
25+
buf.build/gen/go/open-feature/flagd/grpc/go v1.3.0-20231031123731-ac2ec0f39838.2 // indirect
26+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.31.0-20231031123731-ac2ec0f39838.2 // indirect
27+
connectrpc.com/connect v1.14.0 // indirect
28+
connectrpc.com/otelconnect v0.7.0 // indirect
2429
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
2530
github.com/davecgh/go-spew v1.1.1 // indirect
31+
github.com/diegoholiveira/jsonlogic/v3 v3.4.0 // indirect
2632
github.com/eapache/go-resiliency v1.5.0 // indirect
2733
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect
2834
github.com/eapache/queue v1.1.0 // indirect
2935
github.com/felixge/httpsnoop v1.0.4 // indirect
36+
github.com/fsnotify/fsnotify v1.7.0 // indirect
3037
github.com/go-logr/logr v1.4.1 // indirect
3138
github.com/go-logr/stdr v1.2.2 // indirect
39+
github.com/go-logr/zapr v1.2.4 // indirect
40+
github.com/gogo/protobuf v1.3.2 // indirect
3241
github.com/golang/protobuf v1.5.3 // indirect
3342
github.com/golang/snappy v0.0.4 // indirect
43+
github.com/google/gofuzz v1.2.0 // indirect
3444
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
3545
github.com/hashicorp/errwrap v1.1.0 // indirect
3646
github.com/hashicorp/go-multierror v1.1.1 // indirect
3747
github.com/hashicorp/go-uuid v1.0.3 // indirect
48+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
3849
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
3950
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
4051
github.com/jcmturner/gofork v1.7.6 // indirect
4152
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
4253
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
54+
github.com/json-iterator/go v1.1.12 // indirect
4355
github.com/klauspost/compress v1.17.5 // indirect
56+
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
57+
github.com/mitchellh/copystructure v1.2.0 // indirect
58+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
59+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
60+
github.com/modern-go/reflect2 v1.0.2 // indirect
61+
github.com/open-feature/flagd/core v0.7.4 // indirect
62+
github.com/open-feature/go-sdk v1.10.0 // indirect
63+
github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.1 // indirect
64+
github.com/open-feature/go-sdk-contrib/providers/flagd v0.1.22 // indirect
65+
github.com/open-feature/schemas v0.2.8 // indirect
4466
github.com/pierrec/lz4/v4 v4.1.21 // indirect
4567
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
68+
github.com/twmb/murmur3 v1.1.8 // indirect
69+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
70+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
71+
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
72+
github.com/zeebo/xxh3 v1.0.2 // indirect
4673
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0 // indirect
4774
go.opentelemetry.io/otel/metric v1.24.0 // indirect
4875
go.opentelemetry.io/proto/otlp v1.1.0 // indirect
76+
go.uber.org/multierr v1.11.0 // indirect
77+
go.uber.org/zap v1.26.0 // indirect
4978
golang.org/x/crypto v0.19.0 // indirect
79+
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 // indirect
80+
golang.org/x/mod v0.14.0 // indirect
5081
golang.org/x/net v0.21.0 // indirect
5182
golang.org/x/sys v0.17.0 // indirect
5283
golang.org/x/text v0.14.0 // indirect
5384
google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe // indirect
5485
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
86+
gopkg.in/inf.v0 v0.9.1 // indirect
87+
gopkg.in/yaml.v2 v2.4.0 // indirect
88+
gopkg.in/yaml.v3 v3.0.1 // indirect
89+
k8s.io/apimachinery v0.29.0 // indirect
90+
k8s.io/klog/v2 v2.110.1 // indirect
91+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
92+
sigs.k8s.io/controller-runtime v0.16.3 // indirect
93+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
94+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
5595
)

0 commit comments

Comments
 (0)