diff --git a/.gitattributes b/.gitattributes index e8c4d206fa7439244dd79c0ccb636239244b0644..2bf393659d8a08abe354ac687d7792f973c4d11c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -883,3 +883,33 @@ tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-re tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rmn9m2PuRmSF-X1ZZc6k0A filter=lfs diff=lfs merge=lfs -text tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__xSeelCHkQnqSftRuknTE_Q filter=lfs diff=lfs merge=lfs -text tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__boVcac6hRLq9rp056UTBCg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__7qkeUxd2SGyy7zkgCcMjaw filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__DBsrKhVHR1WjpHC_RYOQYg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EL3RaNy1RXq0HBypkIX-Tw filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__9MK7e8fwSTWDXgU30DuOjg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6eY0OsmlRbmvJTKjDXuodQ filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__j9t4pCdRTNaKkW4YCvRGHg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__STAl0NiPQ2mQrMWt6zWLdA filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6S6GIt3YSEqImxjcj-s9wg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3Z52URwSQziQX1QKThXAxg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HQVZTtUoTjWH5eg4sxGggQ filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__XRa9G_tzRbKv-Oscomw8Bg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__VZxS44QsSiK3zcavJPaPZQ filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rHXH0blpScGQ7gxcjP90Qg filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rAWIIsRSRkaOZCkkyCOClA filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__9Fe1L_C9S42FQCG9rY5XVw filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__oK8DgtZ_SHe7G4iXJ5peiA filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6jBmlzh5SlWdkon9jVe8Iw filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h13m/01KH09FY3YGR6ATTV3V4SDV4DV/chunks/000001 filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h13m/01KH09FY3YGR6ATTV3V4SDV4DV/index filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.cfs filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.pos filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdt filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.cfs filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.doc filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.cfs filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.nvd filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.cfs filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene90_0.dvd filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tim filter=lfs diff=lfs merge=lfs -text +tasks/recommendationcachefailure-00-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h13m/data/DISCARD filter=lfs diff=lfs merge=lfs -text diff --git a/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/Banner.png b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/Banner.png new file mode 100644 index 0000000000000000000000000000000000000000..e6931e5d12481ab1960362e481064ec09ba06743 --- /dev/null +++ b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/Banner.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c7622f811892d4851bb6aee1509188d76c79f5992e85adfa2ac5fb4c5286cf1 +size 354115 diff --git a/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/opentelemetry-demo-logo.png b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/opentelemetry-demo-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..87fda9917c909ddb069c373f46fba971de3db021 --- /dev/null +++ b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/opentelemetry-demo-logo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e974e556ed1ebc53ed028d9e61bba9462b997d774ba039da9b200155e7eb0f6 +size 100140 diff --git a/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/RoofBinoculars.jpg b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/RoofBinoculars.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2128efbfb9bf07365d27c38b226fd50302b3bd63 --- /dev/null +++ b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/RoofBinoculars.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63ae43e7baa5d8f0546bff36c8f8f95c06b705feff42ba5b06ef20ba122340da +size 128965 diff --git a/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/TheCometBook.jpg b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/TheCometBook.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3aef5a30fb75b8d691d20bf651f4520f1cba7f57 --- /dev/null +++ b/tasks/productcatalogfailure-00-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/static/products/TheCometBook.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb254c3191c23f79feb64de5cf4a8c637c6da4c82ba939e205322d62f8fdc67 +size 251621 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/000001.vlog b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/000001.vlog new file mode 100644 index 0000000000000000000000000000000000000000..1a8f22006c51e069dfeb4f4e01a013b53450d8ff Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/000001.vlog differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/LOCK b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/LOCK new file mode 100644 index 0000000000000000000000000000000000000000..d00491fd7e5bb6fa28c517a0bb32b8b506539d4d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/data/LOCK @@ -0,0 +1 @@ +1 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/00001.mem b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/00001.mem new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/KEYREGISTRY b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/KEYREGISTRY new file mode 100644 index 0000000000000000000000000000000000000000..d61ba82477f50b043e51405fe2d4f9490399b8a8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/KEYREGISTRY @@ -0,0 +1 @@ +(ÉBû‘%N5Žžì*kaHello Badger \ No newline at end of file diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/LOCK b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/LOCK new file mode 100644 index 0000000000000000000000000000000000000000..d00491fd7e5bb6fa28c517a0bb32b8b506539d4d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/LOCK @@ -0,0 +1 @@ +1 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/MANIFEST b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/MANIFEST new file mode 100644 index 0000000000000000000000000000000000000000..4683694ac4fc3c96686aa8ef69a60762d45e6c47 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/jaeger-badger-snapshots/snapshot_day1_00h03m/key/MANIFEST differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfe new file mode 100644 index 0000000000000000000000000000000000000000..80c3ae5dd4b5cba4657bdb0db7d505075bea628d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfs new file mode 100644 index 0000000000000000000000000000000000000000..ebd77bb38fad2ca6aca888718ebc0eca9f47f98a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.cfs differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.si new file mode 100644 index 0000000000000000000000000000000000000000..0e0286fb126bb2a77b009dd277a651a2598e1187 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_25.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfe new file mode 100644 index 0000000000000000000000000000000000000000..f837f997def718d76fa891ec094e87557319cabd Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfs new file mode 100644 index 0000000000000000000000000000000000000000..6f1191557bce1211d6a88804f089f15f5072667c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.cfs differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.si new file mode 100644 index 0000000000000000000000000000000000000000..f0204afafe1771f7007002aabd9440ed87151954 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/_27.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/manifest-0.st b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/manifest-0.st new file mode 100644 index 0000000000000000000000000000000000000000..030f9cbe09eade2c5fa41802ec7ca16ee9e3ac1f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/manifest-0.st differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/node-0.st b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/node-0.st new file mode 100644 index 0000000000000000000000000000000000000000..fcf82067e296940d9d02e7816e760bba523299c2 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/node-0.st differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/segments_38 b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/segments_38 new file mode 100644 index 0000000000000000000000000000000000000000..a76b00a329d788f36125736335c3791fa6e0a4d5 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/segments_38 differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/write.lock b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/_state/write.lock new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/retention-leases-41.st b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/retention-leases-41.st new file mode 100644 index 0000000000000000000000000000000000000000..6f666a086f6fd70f04ce1b7be06365052bdaadc7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/retention-leases-41.st differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/state-0.st b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/state-0.st new file mode 100644 index 0000000000000000000000000000000000000000..3686009febcc5115dcd8fcefe695a8c2027f4eda Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/_state/state-0.st differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdm new file mode 100644 index 0000000000000000000000000000000000000000..79fed5c60beb88da68b6aadc81afdc89a668ea45 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdx new file mode 100644 index 0000000000000000000000000000000000000000..149fb2f9b378225540d5d7bf21803e328d074176 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fdx differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fnm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fnm new file mode 100644 index 0000000000000000000000000000000000000000..d60c142977ee29ab96be0f503e182c541585c5f0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.fnm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdd b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdd new file mode 100644 index 0000000000000000000000000000000000000000..dbecffe346ad1ec04f02968cf7c9afc1dced673f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdd differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdi b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdi new file mode 100644 index 0000000000000000000000000000000000000000..4870cd449b63abb9ee7ce7134973385e41c443d0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdi differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdm new file mode 100644 index 0000000000000000000000000000000000000000..621eedd23a16c8a93a0421fc2a9164cb9bd49820 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.kdm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.nvm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.nvm new file mode 100644 index 0000000000000000000000000000000000000000..f3950cfa280d9e2ea4b39cfeac66026d0e8a7031 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.nvm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.si new file mode 100644 index 0000000000000000000000000000000000000000..ab0b41f6ccf7cd539d8e78d79788fe864fc57197 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.psm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.psm new file mode 100644 index 0000000000000000000000000000000000000000..1ca82680d92b0cf0a851faaa5484e4c9a7b0e958 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.psm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tip b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tip new file mode 100644 index 0000000000000000000000000000000000000000..3e103a1fb308b5de392ec4a647ef288ab286c57e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tip differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tmd b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tmd new file mode 100644 index 0000000000000000000000000000000000000000..18df2f68fb60ca80f2ef62ac181e1ed978cd95d3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene101_0.tmd differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene90_0.dvm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene90_0.dvm new file mode 100644 index 0000000000000000000000000000000000000000..d2a9d79afbe2e7dafb99e44a01463cb16ba828c1 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1l_Lucene90_0.dvm differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfe new file mode 100644 index 0000000000000000000000000000000000000000..cafbde97180399e879b9947518ccdfc894d39d14 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfs new file mode 100644 index 0000000000000000000000000000000000000000..3efcca08b7aa09c475a713e6c956f5fc6fad712d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.cfs differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.si new file mode 100644 index 0000000000000000000000000000000000000000..62ad075df01d829a72e4b7982fba1bf43bb9a75d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1m.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.cfe new file mode 100644 index 0000000000000000000000000000000000000000..8d70bede1f0483fe94d14b19013d6031f9a3e832 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.si new file mode 100644 index 0000000000000000000000000000000000000000..b7fc46a26c921d94a33f41ae56263d599372d4ca Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1n.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.cfe new file mode 100644 index 0000000000000000000000000000000000000000..8635dffc78da1ba34d9a913de1770ff1cde4d839 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.si new file mode 100644 index 0000000000000000000000000000000000000000..ceb1bc1d0dddbfcd0b8a82ebd28609c6a990c74c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1o.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.cfe new file mode 100644 index 0000000000000000000000000000000000000000..6539e9fb7b8ef56ac71d339be23fb2b5297433b5 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.si new file mode 100644 index 0000000000000000000000000000000000000000..a6587d10359211ed8e80c99ac06de83bdb5e421f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1p.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.cfe b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.cfe new file mode 100644 index 0000000000000000000000000000000000000000..8003d0a1398ef6a22e3e374abf4b8304a36449b0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.cfe differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.si b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.si new file mode 100644 index 0000000000000000000000000000000000000000..b949bf1d255774ace38e4f5dcafcbf1d7baa5cef Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/_1q.si differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/segments_k b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/segments_k new file mode 100644 index 0000000000000000000000000000000000000000..08c9bcdcd337393715df7a54c5da87521094cc40 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/segments_k differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/write.lock b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/index/write.lock new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog-20.tlog b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog-20.tlog new file mode 100644 index 0000000000000000000000000000000000000000..6840408ef446c61529efbfe5362938ce5354d0b2 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog-20.tlog differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog.ckp b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog.ckp new file mode 100644 index 0000000000000000000000000000000000000000..f611f4d699a657f1a737d686aef181e2c63fbb21 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/0/translog/translog.ckp differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/_state/state-40.st b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/_state/state-40.st new file mode 100644 index 0000000000000000000000000000000000000000..ebffd59043c9c74b5b2e5d86b162ea257fdc1b30 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/indices/t0Re1sNtR0Syb_Whf1jfhw/_state/state-40.st differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/node.lock b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-data/nodes/0/node.lock new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__--eHy8GyQJK_hWo_-lNHEA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__--eHy8GyQJK_hWo_-lNHEA new file mode 100644 index 0000000000000000000000000000000000000000..3a8cfabeaea067c9eac3fddf0b175dc43935966b Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__--eHy8GyQJK_hWo_-lNHEA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-4NcCcijSt-ZxPS0rT1FFw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-4NcCcijSt-ZxPS0rT1FFw new file mode 100644 index 0000000000000000000000000000000000000000..d0751ba0ee361945370b1f58377c08bed3fc1df8 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-4NcCcijSt-ZxPS0rT1FFw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-pIABOF2Tv2T5eMr3nw3uQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-pIABOF2Tv2T5eMr3nw3uQ new file mode 100644 index 0000000000000000000000000000000000000000..f6a071a4e6cf31fb49248c4808a5c342b1a348aa Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__-pIABOF2Tv2T5eMr3nw3uQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__0xMIKXnHS4ez_9hK2YX3dQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__0xMIKXnHS4ez_9hK2YX3dQ new file mode 100644 index 0000000000000000000000000000000000000000..22518e228671a5677a7a4d5419f1de3fb87215ed Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__0xMIKXnHS4ez_9hK2YX3dQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__1sRdNaT9S8Wt8P81n6HQiQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__1sRdNaT9S8Wt8P81n6HQiQ new file mode 100644 index 0000000000000000000000000000000000000000..e330594c0e99e523ce3f3aefa89338e2989be0cf Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__1sRdNaT9S8Wt8P81n6HQiQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2YF6NckqRWS87LjGSkD7Ag b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2YF6NckqRWS87LjGSkD7Ag new file mode 100644 index 0000000000000000000000000000000000000000..415d2215d5a3cf91b58e93bd3239185c0dfa1d9d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2YF6NckqRWS87LjGSkD7Ag differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2_rzk-msT6m6M8FWMF3FaQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2_rzk-msT6m6M8FWMF3FaQ new file mode 100644 index 0000000000000000000000000000000000000000..54ce142258c54fad4c554c563d2941e03d10edc3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2_rzk-msT6m6M8FWMF3FaQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2gQPuDvRTEaPTgzDAXeBFQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2gQPuDvRTEaPTgzDAXeBFQ new file mode 100644 index 0000000000000000000000000000000000000000..621eedd23a16c8a93a0421fc2a9164cb9bd49820 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2gQPuDvRTEaPTgzDAXeBFQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2n7U7FKyQe-QbG3QvLVvBw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2n7U7FKyQe-QbG3QvLVvBw new file mode 100644 index 0000000000000000000000000000000000000000..392a21e93903e973fd370d0ab0f00c594ee98a56 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__2n7U7FKyQe-QbG3QvLVvBw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3DIcXH0wR0m1m5VoUMsL5A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3DIcXH0wR0m1m5VoUMsL5A new file mode 100644 index 0000000000000000000000000000000000000000..d2a9d79afbe2e7dafb99e44a01463cb16ba828c1 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3DIcXH0wR0m1m5VoUMsL5A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3k98NZ1RT8-QOnpML02qaw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3k98NZ1RT8-QOnpML02qaw new file mode 100644 index 0000000000000000000000000000000000000000..7db7f32f555bce9d67b11abf2ca9635c855740ae Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__3k98NZ1RT8-QOnpML02qaw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6omaJxc9SqK8zBc17S6ydQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6omaJxc9SqK8zBc17S6ydQ new file mode 100644 index 0000000000000000000000000000000000000000..e26d03303799a8c25b5f2918c3f2edbb33c54ef5 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__6omaJxc9SqK8zBc17S6ydQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__754KykUoSEaerCaBB7GVlw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__754KykUoSEaerCaBB7GVlw new file mode 100644 index 0000000000000000000000000000000000000000..d376829b6430128332ea7e3bc8e33c56802f891a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__754KykUoSEaerCaBB7GVlw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__7ZlwvT0dQ1W6N0SdxguopA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__7ZlwvT0dQ1W6N0SdxguopA new file mode 100644 index 0000000000000000000000000000000000000000..8dc6603274999636b7cc96e279f969a1a0519ce9 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__7ZlwvT0dQ1W6N0SdxguopA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__8WVTsZEAQimWwYOpmBxK4A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__8WVTsZEAQimWwYOpmBxK4A new file mode 100644 index 0000000000000000000000000000000000000000..d60c142977ee29ab96be0f503e182c541585c5f0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__8WVTsZEAQimWwYOpmBxK4A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__99c_NcIDTl2RzeNapq9aqg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__99c_NcIDTl2RzeNapq9aqg new file mode 100644 index 0000000000000000000000000000000000000000..7f2c2bd3f84d0aced331f49b4336fd10425d6f8e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__99c_NcIDTl2RzeNapq9aqg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__9CmVTFRuSu6qMUoq6a8EFw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__9CmVTFRuSu6qMUoq6a8EFw new file mode 100644 index 0000000000000000000000000000000000000000..b9bf7472035c70ed9341d6273a78a4190575f6d6 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__9CmVTFRuSu6qMUoq6a8EFw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__AfCwPNnlQtit2u1qCzarjQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__AfCwPNnlQtit2u1qCzarjQ new file mode 100644 index 0000000000000000000000000000000000000000..a03e3a9dd7eb1c8db63841e8518feccc5accb9af Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__AfCwPNnlQtit2u1qCzarjQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BNptDn3cQuWTT32TpYh--Q b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BNptDn3cQuWTT32TpYh--Q new file mode 100644 index 0000000000000000000000000000000000000000..6f206590791b8b0a323232ac60ed6bd8d98d7a67 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BNptDn3cQuWTT32TpYh--Q differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BPx5VT4yQ6y9de2mprvKtw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BPx5VT4yQ6y9de2mprvKtw new file mode 100644 index 0000000000000000000000000000000000000000..3652f0387b8c55f89e85b1baa08ae2d33188c5ce Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__BPx5VT4yQ6y9de2mprvKtw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__CXdKAOp2RySltv-n8v6WKQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__CXdKAOp2RySltv-n8v6WKQ new file mode 100644 index 0000000000000000000000000000000000000000..8635dffc78da1ba34d9a913de1770ff1cde4d839 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__CXdKAOp2RySltv-n8v6WKQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__D7fHZo0PScGgDlYJIvmX5g b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__D7fHZo0PScGgDlYJIvmX5g new file mode 100644 index 0000000000000000000000000000000000000000..69d790bc2e8cfa414145c799d828227201102366 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__D7fHZo0PScGgDlYJIvmX5g differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__DMQpXwgDRbeVug7esuVrXQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__DMQpXwgDRbeVug7esuVrXQ new file mode 100644 index 0000000000000000000000000000000000000000..149fb2f9b378225540d5d7bf21803e328d074176 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__DMQpXwgDRbeVug7esuVrXQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__De6u0mKbSOC1qW_npXUlfQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__De6u0mKbSOC1qW_npXUlfQ new file mode 100644 index 0000000000000000000000000000000000000000..4a9e335bf96419181a167e897c79e8765833d35a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__De6u0mKbSOC1qW_npXUlfQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EBxs81V1SHSQDEZr1OJ9Xw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EBxs81V1SHSQDEZr1OJ9Xw new file mode 100644 index 0000000000000000000000000000000000000000..0865704f1d96701bf4b6b2c7d536102626502530 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EBxs81V1SHSQDEZr1OJ9Xw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EI-G9z0LTsmfdszI-3SJyw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EI-G9z0LTsmfdszI-3SJyw new file mode 100644 index 0000000000000000000000000000000000000000..3984bbff83a919e82c5d71b5444bf254b42e9d58 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__EI-G9z0LTsmfdszI-3SJyw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FGhkZtYBQzOpO3ZplsoViw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FGhkZtYBQzOpO3ZplsoViw new file mode 100644 index 0000000000000000000000000000000000000000..fe0132c17b39bdfe1cb3f5cbd4fbc74c76388c3d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FGhkZtYBQzOpO3ZplsoViw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FmoP7lRlQgqPilDQm9lpbQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FmoP7lRlQgqPilDQm9lpbQ new file mode 100644 index 0000000000000000000000000000000000000000..76034974f769137c6e7c64de912e92037a87f2c9 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__FmoP7lRlQgqPilDQm9lpbQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__G9de27CUSSiTF9ydHfZm3Q b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__G9de27CUSSiTF9ydHfZm3Q new file mode 100644 index 0000000000000000000000000000000000000000..6e4a44a3428838f0537837f72deeaa6026453fcb Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__G9de27CUSSiTF9ydHfZm3Q differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__GtyU2DOtQEyULnpGBkkPVg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__GtyU2DOtQEyULnpGBkkPVg new file mode 100644 index 0000000000000000000000000000000000000000..4341853e0c0cf5a87ac862b52651f9964b5e0ade Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__GtyU2DOtQEyULnpGBkkPVg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HJRlmOzuTRimrKsamYZgBg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HJRlmOzuTRimrKsamYZgBg new file mode 100644 index 0000000000000000000000000000000000000000..ffc5c393c41aace83fc3a89169426d62a093b728 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HJRlmOzuTRimrKsamYZgBg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HKtrc-40Rb6I_krNf1-qeg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HKtrc-40Rb6I_krNf1-qeg new file mode 100644 index 0000000000000000000000000000000000000000..bcc02ab8039a2363b05380e53f7b41b5349f7573 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__HKtrc-40Rb6I_krNf1-qeg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__IQLFZe0tQAGOzqUA6_2quA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__IQLFZe0tQAGOzqUA6_2quA new file mode 100644 index 0000000000000000000000000000000000000000..4cc49ca013a052ff8ea1e5fbb47a108d0413b1f2 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__IQLFZe0tQAGOzqUA6_2quA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JB8RAx9qSqW0GVomR7-MbQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JB8RAx9qSqW0GVomR7-MbQ new file mode 100644 index 0000000000000000000000000000000000000000..982e59d8841345579d27f90177159ea6c28356a7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JB8RAx9qSqW0GVomR7-MbQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JSW7AaOITRm75lfydTiDuQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JSW7AaOITRm75lfydTiDuQ new file mode 100644 index 0000000000000000000000000000000000000000..2601591ca61b24007e2a65bcc7ffbd431995a628 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__JSW7AaOITRm75lfydTiDuQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__L-7huALBT1qOeEl-UbHzUQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__L-7huALBT1qOeEl-UbHzUQ new file mode 100644 index 0000000000000000000000000000000000000000..8670dff8fde9915a8e41e5c47c485ef1497cfa5b Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__L-7huALBT1qOeEl-UbHzUQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MJKcGn_hRaOOdt6mruJHzw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MJKcGn_hRaOOdt6mruJHzw new file mode 100644 index 0000000000000000000000000000000000000000..f381b0e870c9f94e56719bf7b244631a4d3fdaee Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MJKcGn_hRaOOdt6mruJHzw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MP37FMeTQDKk9UqFdu_7AQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MP37FMeTQDKk9UqFdu_7AQ new file mode 100644 index 0000000000000000000000000000000000000000..efa26f312bffc02a6d16f05c0bd7e008b31eff42 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__MP37FMeTQDKk9UqFdu_7AQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__OFlRwIVwQ4Kv1VpaEXwuwQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__OFlRwIVwQ4Kv1VpaEXwuwQ new file mode 100644 index 0000000000000000000000000000000000000000..58283f78e623af7d6580129b8d139120c0a4add2 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__OFlRwIVwQ4Kv1VpaEXwuwQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__PxJEZjRjQ8WwZKi0i26e8w b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__PxJEZjRjQ8WwZKi0i26e8w new file mode 100644 index 0000000000000000000000000000000000000000..ccc0c6d5c29c59d95f09f677acad03c5c8fe2ba7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__PxJEZjRjQ8WwZKi0i26e8w differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R52mw2njTj29BcoJwU8Zrw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R52mw2njTj29BcoJwU8Zrw new file mode 100644 index 0000000000000000000000000000000000000000..639cece08ec2023f291be4f7c29e2335ece694e1 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R52mw2njTj29BcoJwU8Zrw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R_GaNMv0TciHKo4By79m0A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R_GaNMv0TciHKo4By79m0A new file mode 100644 index 0000000000000000000000000000000000000000..92683df8365a491cb4de165f73346ccbb73328f7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__R_GaNMv0TciHKo4By79m0A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__RaKDoMszTnGV4ZAJwp_znQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__RaKDoMszTnGV4ZAJwp_znQ new file mode 100644 index 0000000000000000000000000000000000000000..5327316158a3e991c85f5a6974f583eb128ec4bd Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__RaKDoMszTnGV4ZAJwp_znQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Sg2eKsI5Q2y_OaGutD0-9A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Sg2eKsI5Q2y_OaGutD0-9A new file mode 100644 index 0000000000000000000000000000000000000000..7bc6ed91e95b71e10bae80e31171c4e5d221c2b7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Sg2eKsI5Q2y_OaGutD0-9A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__VWY7HlUdR8mjJ7SaIA1YFQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__VWY7HlUdR8mjJ7SaIA1YFQ new file mode 100644 index 0000000000000000000000000000000000000000..30a2c27ee28a8908f936d06a6f2478436bd4d705 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__VWY7HlUdR8mjJ7SaIA1YFQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WErO4USVS42N6TJjJEPBVg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WErO4USVS42N6TJjJEPBVg new file mode 100644 index 0000000000000000000000000000000000000000..b44ea45c6fa9a1abf704501a90d58489a50b842e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WErO4USVS42N6TJjJEPBVg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WX4iSWynSaWA3qRxunr-kw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WX4iSWynSaWA3qRxunr-kw new file mode 100644 index 0000000000000000000000000000000000000000..cafbde97180399e879b9947518ccdfc894d39d14 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__WX4iSWynSaWA3qRxunr-kw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Wv9WFbutSpSUDBjgYJbqqw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Wv9WFbutSpSUDBjgYJbqqw new file mode 100644 index 0000000000000000000000000000000000000000..bc67e303e6b2b8b09db3510cba4d03764224c6b6 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Wv9WFbutSpSUDBjgYJbqqw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Y8F_ubmMRoWWYgegvb0PxQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Y8F_ubmMRoWWYgegvb0PxQ new file mode 100644 index 0000000000000000000000000000000000000000..878feef1b505d3cff333b5322b94d86d1881b70c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Y8F_ubmMRoWWYgegvb0PxQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__YG1QBBO0TL6nFLJad0SHUw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__YG1QBBO0TL6nFLJad0SHUw new file mode 100644 index 0000000000000000000000000000000000000000..1bb29299b38354950c02a7038ae80e7ab8a70e60 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__YG1QBBO0TL6nFLJad0SHUw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Z4nDndIyT2afNB3PIFeOdw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Z4nDndIyT2afNB3PIFeOdw new file mode 100644 index 0000000000000000000000000000000000000000..7f243dc46ecff3d55de157df8035f0760b635df3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__Z4nDndIyT2afNB3PIFeOdw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ZmzunlyBTiiPQV3bYn6CNQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ZmzunlyBTiiPQV3bYn6CNQ new file mode 100644 index 0000000000000000000000000000000000000000..6aa1b20223793e2a2f990fe53b3abe7fb37d267a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ZmzunlyBTiiPQV3bYn6CNQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/___zkrQh4TSECKo3fpB7MGeg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/___zkrQh4TSECKo3fpB7MGeg new file mode 100644 index 0000000000000000000000000000000000000000..2b0744ad41fbf65862300351892d02596a37a395 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/___zkrQh4TSECKo3fpB7MGeg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aD-LaZL5SgqiyjePcR_npg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aD-LaZL5SgqiyjePcR_npg new file mode 100644 index 0000000000000000000000000000000000000000..79fed5c60beb88da68b6aadc81afdc89a668ea45 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aD-LaZL5SgqiyjePcR_npg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aesoWzAsRHe0IrS0Wt1T-w b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aesoWzAsRHe0IrS0Wt1T-w new file mode 100644 index 0000000000000000000000000000000000000000..b0081582e6d57593e35da23d82cbaf1aea0e3685 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__aesoWzAsRHe0IrS0Wt1T-w differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b6TE4qWcQRCBZZNjzNTr8A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b6TE4qWcQRCBZZNjzNTr8A new file mode 100644 index 0000000000000000000000000000000000000000..1ca82680d92b0cf0a851faaa5484e4c9a7b0e958 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b6TE4qWcQRCBZZNjzNTr8A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b9AlVEiwQiufm5uMZQnviQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b9AlVEiwQiufm5uMZQnviQ new file mode 100644 index 0000000000000000000000000000000000000000..dc19bb1e1a3bbeb74613dc4921ea9f88fa942102 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__b9AlVEiwQiufm5uMZQnviQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__bQ2yu1CCSeqmNOz4o7xEKQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__bQ2yu1CCSeqmNOz4o7xEKQ new file mode 100644 index 0000000000000000000000000000000000000000..4870cd449b63abb9ee7ce7134973385e41c443d0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__bQ2yu1CCSeqmNOz4o7xEKQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__c3Ip2j_pTbWP09z21YuHHw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__c3Ip2j_pTbWP09z21YuHHw new file mode 100644 index 0000000000000000000000000000000000000000..3e103a1fb308b5de392ec4a647ef288ab286c57e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__c3Ip2j_pTbWP09z21YuHHw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cUtIoygBQUSZbgQJ9ouLfQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cUtIoygBQUSZbgQJ9ouLfQ new file mode 100644 index 0000000000000000000000000000000000000000..560556305a3b81e571d40d07e5f0fe0686f721ae Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cUtIoygBQUSZbgQJ9ouLfQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ccj07DP-QWWwKvKKJNhh4g b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ccj07DP-QWWwKvKKJNhh4g new file mode 100644 index 0000000000000000000000000000000000000000..f9a86b8de5877c8d74ce5587eea64c7636602ae6 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ccj07DP-QWWwKvKKJNhh4g differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cfhHReHRTIqxid4BOTXu3g b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cfhHReHRTIqxid4BOTXu3g new file mode 100644 index 0000000000000000000000000000000000000000..5e66f26747d09afb96ccea7a9c84268327c46fa1 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__cfhHReHRTIqxid4BOTXu3g differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__clod_g9LT3i5cVz6ChZXfQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__clod_g9LT3i5cVz6ChZXfQ new file mode 100644 index 0000000000000000000000000000000000000000..f6172ea0074b6adf56bc3632b24705422e5b2814 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__clod_g9LT3i5cVz6ChZXfQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ep96FilpQz-z-qKh2ezO-A b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ep96FilpQz-z-qKh2ezO-A new file mode 100644 index 0000000000000000000000000000000000000000..233937d13ee17dcc34a46ead9d449497fbcb4e5f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ep96FilpQz-z-qKh2ezO-A differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__fG0Y6UjuR_2h5d0snbXdYw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__fG0Y6UjuR_2h5d0snbXdYw new file mode 100644 index 0000000000000000000000000000000000000000..7ff262a7ee1017905dfad604380ecd30b8710969 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__fG0Y6UjuR_2h5d0snbXdYw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__f_CHZPYNQ9ivLH92mkJTvA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__f_CHZPYNQ9ivLH92mkJTvA new file mode 100644 index 0000000000000000000000000000000000000000..749b6571c7a53f9ed1367cb75655e174e4894483 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__f_CHZPYNQ9ivLH92mkJTvA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__gaIZlYPQT-mptq0jKzMbHw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__gaIZlYPQT-mptq0jKzMbHw new file mode 100644 index 0000000000000000000000000000000000000000..44cfaad20a3d3df1a418f9abc5480874878198a3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__gaIZlYPQT-mptq0jKzMbHw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__hdLHGGHwSPybvq2_hK3Fhg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__hdLHGGHwSPybvq2_hK3Fhg new file mode 100644 index 0000000000000000000000000000000000000000..fdff42481d275855ca63217b8a4425287764000a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__hdLHGGHwSPybvq2_hK3Fhg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iQ-lNdvVQ86rKh9fbLUIVw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iQ-lNdvVQ86rKh9fbLUIVw new file mode 100644 index 0000000000000000000000000000000000000000..b93a9bccf01c907d660bd796fd24b407f34437f0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iQ-lNdvVQ86rKh9fbLUIVw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iRp8s4GYRuilmhcLYcLbbQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iRp8s4GYRuilmhcLYcLbbQ new file mode 100644 index 0000000000000000000000000000000000000000..e898933ec6ea897f7751251cebd333ea6a8e7e26 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iRp8s4GYRuilmhcLYcLbbQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iXhewt7bRJyEBl9pZyEorA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iXhewt7bRJyEBl9pZyEorA new file mode 100644 index 0000000000000000000000000000000000000000..91401470b8080fa814d57b0e886d521eee3cb572 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__iXhewt7bRJyEBl9pZyEorA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__j1nL5KXWScy241PGaAruCQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__j1nL5KXWScy241PGaAruCQ new file mode 100644 index 0000000000000000000000000000000000000000..e632d0be607e80d5b474c448ab82ea4aad8d2403 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__j1nL5KXWScy241PGaAruCQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jql5PXTFQmOGGgHmTpCGng b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jql5PXTFQmOGGgHmTpCGng new file mode 100644 index 0000000000000000000000000000000000000000..9de557af04794b823f699821448fa8200113ff56 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jql5PXTFQmOGGgHmTpCGng differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jvfkdyC3TTu_FSGfoLD4CA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jvfkdyC3TTu_FSGfoLD4CA new file mode 100644 index 0000000000000000000000000000000000000000..cd8f8c6e05b50576d77aebb7b13879e983fb9dc9 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__jvfkdyC3TTu_FSGfoLD4CA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ku4zIKwBSR-lRoD2nIyoDQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ku4zIKwBSR-lRoD2nIyoDQ new file mode 100644 index 0000000000000000000000000000000000000000..2261a6eb908dd07bf24b05863c9e435470948046 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__ku4zIKwBSR-lRoD2nIyoDQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__lnhoAqE4Qei1UiMi76PKNg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__lnhoAqE4Qei1UiMi76PKNg new file mode 100644 index 0000000000000000000000000000000000000000..b40590268aa9da661b0e3622ecbd1de051ec0d32 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__lnhoAqE4Qei1UiMi76PKNg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__m2y3YF5kQnGJdnd9Tm0ciw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__m2y3YF5kQnGJdnd9Tm0ciw new file mode 100644 index 0000000000000000000000000000000000000000..771004580781a54060493a32192b595f57519f28 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__m2y3YF5kQnGJdnd9Tm0ciw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__n1PW1-rsTQSWHSFNlXdV_w b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__n1PW1-rsTQSWHSFNlXdV_w new file mode 100644 index 0000000000000000000000000000000000000000..18df2f68fb60ca80f2ef62ac181e1ed978cd95d3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__n1PW1-rsTQSWHSFNlXdV_w differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__noRZ3pObQXCERITi-CG5kA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__noRZ3pObQXCERITi-CG5kA new file mode 100644 index 0000000000000000000000000000000000000000..840fdbf4f8e7cc8b2c3a7dcd6392a5964684671c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__noRZ3pObQXCERITi-CG5kA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__oy0ZyVSzQbW1GfGVaJG-ig b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__oy0ZyVSzQbW1GfGVaJG-ig new file mode 100644 index 0000000000000000000000000000000000000000..bb4ee545f15b015b6a27a563ed5b0c51e231ae28 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__oy0ZyVSzQbW1GfGVaJG-ig differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__qkyfVuCZT72KB3LfVX8few b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__qkyfVuCZT72KB3LfVX8few new file mode 100644 index 0000000000000000000000000000000000000000..f3950cfa280d9e2ea4b39cfeac66026d0e8a7031 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__qkyfVuCZT72KB3LfVX8few differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rWkMU5VuQcekqzwZkX69aQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rWkMU5VuQcekqzwZkX69aQ new file mode 100644 index 0000000000000000000000000000000000000000..8d70bede1f0483fe94d14b19013d6031f9a3e832 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__rWkMU5VuQcekqzwZkX69aQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__sXbLV3owS9aVDkHDA-TrSA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__sXbLV3owS9aVDkHDA-TrSA new file mode 100644 index 0000000000000000000000000000000000000000..dbecffe346ad1ec04f02968cf7c9afc1dced673f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__sXbLV3owS9aVDkHDA-TrSA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__u540RJcqT36jDyxbNqgayA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__u540RJcqT36jDyxbNqgayA new file mode 100644 index 0000000000000000000000000000000000000000..65dd0ba21e742b585b583c0be88e8b53c92ea521 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__u540RJcqT36jDyxbNqgayA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uNGswZ0URI6S-4RbfVwGxg b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uNGswZ0URI6S-4RbfVwGxg new file mode 100644 index 0000000000000000000000000000000000000000..dba2836dd43def7fdbf5aa88965864fd49bda19f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uNGswZ0URI6S-4RbfVwGxg differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uWqmhLGnTxue4-RLVkN9XQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uWqmhLGnTxue4-RLVkN9XQ new file mode 100644 index 0000000000000000000000000000000000000000..3efcca08b7aa09c475a713e6c956f5fc6fad712d Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__uWqmhLGnTxue4-RLVkN9XQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__vWlpQI6oTTGdSxXV_tUXcA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__vWlpQI6oTTGdSxXV_tUXcA new file mode 100644 index 0000000000000000000000000000000000000000..e43bab319ceeaca85fcf873156c4d65478e25560 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__vWlpQI6oTTGdSxXV_tUXcA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__w3FQ-dW6QDKgQ41OrSnyyQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__w3FQ-dW6QDKgQ41OrSnyyQ new file mode 100644 index 0000000000000000000000000000000000000000..90ab8d61b63754748d678078f9de4f1bd69fd7b3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__w3FQ-dW6QDKgQ41OrSnyyQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__y3ipBaoMR62CB53Y71eaiQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__y3ipBaoMR62CB53Y71eaiQ new file mode 100644 index 0000000000000000000000000000000000000000..0235a6bb855ce546bba51f2105dd13ba07a21918 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__y3ipBaoMR62CB53Y71eaiQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__yfLJ3hl8Rm-PRfbD7KPYEw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__yfLJ3hl8Rm-PRfbD7KPYEw new file mode 100644 index 0000000000000000000000000000000000000000..82e93da29a8372d7dfb4e04e5cb70a67b120ecc7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__yfLJ3hl8Rm-PRfbD7KPYEw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__z4P_LuqYRQa370iW-zEJ9Q b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__z4P_LuqYRQa370iW-zEJ9Q new file mode 100644 index 0000000000000000000000000000000000000000..167c6164286fc9f0cdfe69f149a237de6c57b969 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__z4P_LuqYRQa370iW-zEJ9Q differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zHlE33vqRQWzwdFBktVtKQ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zHlE33vqRQWzwdFBktVtKQ new file mode 100644 index 0000000000000000000000000000000000000000..ad52d9d8cab094c23505026f3b2b78c3c481968b Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zHlE33vqRQWzwdFBktVtKQ differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zQvcXdUcTneXon87ohggSw b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zQvcXdUcTneXon87ohggSw new file mode 100644 index 0000000000000000000000000000000000000000..7050db17052073bec6cede36d820d459c8692eaf Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zQvcXdUcTneXon87ohggSw differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zR_TIwoET7SS6dPmtSL2JA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zR_TIwoET7SS6dPmtSL2JA new file mode 100644 index 0000000000000000000000000000000000000000..51eb006c68c656fea4c376cf268f7accfa7d3683 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zR_TIwoET7SS6dPmtSL2JA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zVrQuxqbSSWP5LIF9FLs0w b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zVrQuxqbSSWP5LIF9FLs0w new file mode 100644 index 0000000000000000000000000000000000000000..4bf6180c298d419ec4c2840e63183b4051c178ea Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/__zVrQuxqbSSWP5LIF9FLs0w differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/index-7PwbL_4wS3m8AgsVknb-MA b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/index-7PwbL_4wS3m8AgsVknb-MA new file mode 100644 index 0000000000000000000000000000000000000000..b81da6f105224a01cf6c78b93abc61839d638a9f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/index-7PwbL_4wS3m8AgsVknb-MA differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-7elij6KpT5mCn3EiWLcqvg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-7elij6KpT5mCn3EiWLcqvg.dat new file mode 100644 index 0000000000000000000000000000000000000000..ed79ce96ee62dc9e630572d19ae9e39ceece1296 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-7elij6KpT5mCn3EiWLcqvg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-AH1UqlVLQaiib9TeoojHRg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-AH1UqlVLQaiib9TeoojHRg.dat new file mode 100644 index 0000000000000000000000000000000000000000..bdd597b4024e778ebea3d25b252bccc0c6323a33 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-AH1UqlVLQaiib9TeoojHRg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-FwCrCGygSiuCILo9_jdkeQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-FwCrCGygSiuCILo9_jdkeQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..f5f283fd1190f3bc4a5d4247e7023aadcd866831 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-FwCrCGygSiuCILo9_jdkeQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-I_LxPKsxT92NeIeDEMmNMg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-I_LxPKsxT92NeIeDEMmNMg.dat new file mode 100644 index 0000000000000000000000000000000000000000..c7f9301d8f12310fb4405d0e41338bfa79f7200f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-I_LxPKsxT92NeIeDEMmNMg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat new file mode 100644 index 0000000000000000000000000000000000000000..bbca3c0d870e461563702975425e651fef357f60 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-NxaPQc4SRpOiqTKzPkqDqA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-NxaPQc4SRpOiqTKzPkqDqA.dat new file mode 100644 index 0000000000000000000000000000000000000000..b1a11e7ff708c561b1e5ce0046150b6337c54f34 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-NxaPQc4SRpOiqTKzPkqDqA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-OGjuhEHRToyAJchnf6V9yA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-OGjuhEHRToyAJchnf6V9yA.dat new file mode 100644 index 0000000000000000000000000000000000000000..f1a3b07ec30c1267ba59ddce432e7867bdb4cc3f Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-OGjuhEHRToyAJchnf6V9yA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-PJDUDjteQ_SltEk_Uka4ug.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-PJDUDjteQ_SltEk_Uka4ug.dat new file mode 100644 index 0000000000000000000000000000000000000000..81cd54ecea84db41208404e653dc494ccafd22f7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-PJDUDjteQ_SltEk_Uka4ug.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat new file mode 100644 index 0000000000000000000000000000000000000000..24c793229f17f73aa7a994b4ec773fdc61bee9ae Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-fypDEZ9iSL25KHo07Zdqlw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-fypDEZ9iSL25KHo07Zdqlw.dat new file mode 100644 index 0000000000000000000000000000000000000000..3961d930ffc485966a841260a204267d843ce124 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-fypDEZ9iSL25KHo07Zdqlw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-i_DQ1uBJQd-eXuypffUo5A.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-i_DQ1uBJQd-eXuypffUo5A.dat new file mode 100644 index 0000000000000000000000000000000000000000..691e691f10707a7840bf5359dec831a8a3f3bf24 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-i_DQ1uBJQd-eXuypffUo5A.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-mGdP4kRwTwuA68cXSayf2g.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-mGdP4kRwTwuA68cXSayf2g.dat new file mode 100644 index 0000000000000000000000000000000000000000..492fc2aecaf8e901f8242759b7079db0236a7d05 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-mGdP4kRwTwuA68cXSayf2g.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-qnPJopJXRwaiKRF7M8TJCA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-qnPJopJXRwaiKRF7M8TJCA.dat new file mode 100644 index 0000000000000000000000000000000000000000..73d26aeefae0c2120667e62deb8490bc77f10b6c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-qnPJopJXRwaiKRF7M8TJCA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..ca0dccdb99ff0244dabd14525e5464ce12a9c63a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-y7C9OwnkQr6VUxE_ObFCCw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-y7C9OwnkQr6VUxE_ObFCCw.dat new file mode 100644 index 0000000000000000000000000000000000000000..531231a1830ddcedadc4c7a680cb2d223388bae6 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-y7C9OwnkQr6VUxE_ObFCCw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat new file mode 100644 index 0000000000000000000000000000000000000000..f0c78d94721b6563f2f35434a989f8bddc0a70d9 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat new file mode 100644 index 0000000000000000000000000000000000000000..481a1808bebc2a2d03dc7e5f953e30495d355e5a Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index-16 b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index-16 new file mode 100644 index 0000000000000000000000000000000000000000..13a6f3e179dae51ba8eed6f3be7557e8d19c2123 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index-16 @@ -0,0 +1 @@ +{"snapshots":[{"name":"day1_00h04m","uuid":"y7C9OwnkQr6VUxE_ObFCCw","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-39-1"},"version":"3.2.0"},{"name":"day1_00h05m","uuid":"LsZs9_hdQNKnGk-PLqK1Bw","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-39-1"},"version":"3.2.0"},{"name":"day1_00h14m","uuid":"mGdP4kRwTwuA68cXSayf2g","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h16m","uuid":"zFKnNFuoQ5mFEvviEbr_Mg","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h06m","uuid":"FwCrCGygSiuCILo9_jdkeQ","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h09m","uuid":"7elij6KpT5mCn3EiWLcqvg","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h02m","uuid":"qnPJopJXRwaiKRF7M8TJCA","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-39-1"},"version":"3.2.0"},{"name":"day1_00h00m","uuid":"I_LxPKsxT92NeIeDEMmNMg","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-29-1"},"version":"3.2.0"},{"name":"day1_00h03m","uuid":"fypDEZ9iSL25KHo07Zdqlw","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-39-1"},"version":"3.2.0"},{"name":"day1_00h13m","uuid":"OGjuhEHRToyAJchnf6V9yA","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h08m","uuid":"yN4W1Oq0Qd-QRRT7xkPgIg","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h12m","uuid":"AH1UqlVLQaiib9TeoojHRg","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h10m","uuid":"Y1XSDbaNTHyCiMIQGZRRdA","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h15m","uuid":"PJDUDjteQ_SltEk_Uka4ug","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h07m","uuid":"NxaPQc4SRpOiqTKzPkqDqA","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"},{"name":"day1_00h01m","uuid":"x-LB-LNqRIOPtDPbhmRnhQ","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-29-1"},"version":"3.2.0"},{"name":"day1_00h11m","uuid":"i_DQ1uBJQd-eXuypffUo5A","state":1,"index_metadata_lookup":{"5-CJfV3hTbi-fjonLb1X5Q":"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1"},"version":"3.2.0"}],"indices":{"otel-logs-2026-02-09":{"id":"5-CJfV3hTbi-fjonLb1X5Q","shard_path_type":1,"snapshots":["I_LxPKsxT92NeIeDEMmNMg","x-LB-LNqRIOPtDPbhmRnhQ","qnPJopJXRwaiKRF7M8TJCA","fypDEZ9iSL25KHo07Zdqlw","y7C9OwnkQr6VUxE_ObFCCw","LsZs9_hdQNKnGk-PLqK1Bw","FwCrCGygSiuCILo9_jdkeQ","NxaPQc4SRpOiqTKzPkqDqA","yN4W1Oq0Qd-QRRT7xkPgIg","7elij6KpT5mCn3EiWLcqvg","Y1XSDbaNTHyCiMIQGZRRdA","i_DQ1uBJQd-eXuypffUo5A","AH1UqlVLQaiib9TeoojHRg","OGjuhEHRToyAJchnf6V9yA","mGdP4kRwTwuA68cXSayf2g","PJDUDjteQ_SltEk_Uka4ug","zFKnNFuoQ5mFEvviEbr_Mg"],"shard_generations":["7PwbL_4wS3m8AgsVknb-MA"]}},"index_metadata_identifiers":{"t0Re1sNtR0Syb_Whf1jfhw-_na_-1-40-1":"4jyRQJwBSg1A22MGiNf1","t0Re1sNtR0Syb_Whf1jfhw-_na_-1-29-1":"7DyMQJwBSg1A22MGBc91","t0Re1sNtR0Syb_Whf1jfhw-_na_-1-39-1":"PjyNQJwBSg1A22MG3NI0"}} \ No newline at end of file diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index.latest b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index.latest new file mode 100644 index 0000000000000000000000000000000000000000..c0f177dfcd03fb7f74f69f76ba46d6dc69d4913c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/index.latest differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-4jyRQJwBSg1A22MGiNf1.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-4jyRQJwBSg1A22MGiNf1.dat new file mode 100644 index 0000000000000000000000000000000000000000..ee257b3bf762b2cd4c04d0eab645adcefcd440a5 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-4jyRQJwBSg1A22MGiNf1.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-7DyMQJwBSg1A22MGBc91.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-7DyMQJwBSg1A22MGBc91.dat new file mode 100644 index 0000000000000000000000000000000000000000..266ffdc5e202ca72cd1c9899cd7a906619748668 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-7DyMQJwBSg1A22MGBc91.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-PjyNQJwBSg1A22MG3NI0.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-PjyNQJwBSg1A22MG3NI0.dat new file mode 100644 index 0000000000000000000000000000000000000000..a7bb497aa94aee4d958b01414b40bc5ea9ed2058 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/indices/5-CJfV3hTbi-fjonLb1X5Q/meta-PjyNQJwBSg1A22MG3NI0.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-7elij6KpT5mCn3EiWLcqvg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-7elij6KpT5mCn3EiWLcqvg.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-7elij6KpT5mCn3EiWLcqvg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-AH1UqlVLQaiib9TeoojHRg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-AH1UqlVLQaiib9TeoojHRg.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-AH1UqlVLQaiib9TeoojHRg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-FwCrCGygSiuCILo9_jdkeQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-FwCrCGygSiuCILo9_jdkeQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-FwCrCGygSiuCILo9_jdkeQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-I_LxPKsxT92NeIeDEMmNMg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-I_LxPKsxT92NeIeDEMmNMg.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-I_LxPKsxT92NeIeDEMmNMg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-LsZs9_hdQNKnGk-PLqK1Bw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-LsZs9_hdQNKnGk-PLqK1Bw.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-LsZs9_hdQNKnGk-PLqK1Bw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-NxaPQc4SRpOiqTKzPkqDqA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-NxaPQc4SRpOiqTKzPkqDqA.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-NxaPQc4SRpOiqTKzPkqDqA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-OGjuhEHRToyAJchnf6V9yA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-OGjuhEHRToyAJchnf6V9yA.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-OGjuhEHRToyAJchnf6V9yA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-PJDUDjteQ_SltEk_Uka4ug.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-PJDUDjteQ_SltEk_Uka4ug.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-PJDUDjteQ_SltEk_Uka4ug.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-Y1XSDbaNTHyCiMIQGZRRdA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-Y1XSDbaNTHyCiMIQGZRRdA.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-Y1XSDbaNTHyCiMIQGZRRdA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-fypDEZ9iSL25KHo07Zdqlw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-fypDEZ9iSL25KHo07Zdqlw.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-fypDEZ9iSL25KHo07Zdqlw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-i_DQ1uBJQd-eXuypffUo5A.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-i_DQ1uBJQd-eXuypffUo5A.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-i_DQ1uBJQd-eXuypffUo5A.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-mGdP4kRwTwuA68cXSayf2g.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-mGdP4kRwTwuA68cXSayf2g.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-mGdP4kRwTwuA68cXSayf2g.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-qnPJopJXRwaiKRF7M8TJCA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-qnPJopJXRwaiKRF7M8TJCA.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-qnPJopJXRwaiKRF7M8TJCA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-x-LB-LNqRIOPtDPbhmRnhQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-x-LB-LNqRIOPtDPbhmRnhQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-x-LB-LNqRIOPtDPbhmRnhQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-y7C9OwnkQr6VUxE_ObFCCw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-y7C9OwnkQr6VUxE_ObFCCw.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-y7C9OwnkQr6VUxE_ObFCCw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-yN4W1Oq0Qd-QRRT7xkPgIg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-yN4W1Oq0Qd-QRRT7xkPgIg.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-yN4W1Oq0Qd-QRRT7xkPgIg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-zFKnNFuoQ5mFEvviEbr_Mg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-zFKnNFuoQ5mFEvviEbr_Mg.dat new file mode 100644 index 0000000000000000000000000000000000000000..d2049643a15a98396d3f34de590eeafd478d681e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/meta-zFKnNFuoQ5mFEvviEbr_Mg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-7elij6KpT5mCn3EiWLcqvg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-7elij6KpT5mCn3EiWLcqvg.dat new file mode 100644 index 0000000000000000000000000000000000000000..69b1d852020b3672f3baf77df89f1e0df03560a7 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-7elij6KpT5mCn3EiWLcqvg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-AH1UqlVLQaiib9TeoojHRg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-AH1UqlVLQaiib9TeoojHRg.dat new file mode 100644 index 0000000000000000000000000000000000000000..8fa6053ec06b9f63f3f7b4c08581e48bfffada0e Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-AH1UqlVLQaiib9TeoojHRg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-FwCrCGygSiuCILo9_jdkeQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-FwCrCGygSiuCILo9_jdkeQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..bfb429f0fb0014ae3f8e1895b44d366fa47780aa Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-FwCrCGygSiuCILo9_jdkeQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-I_LxPKsxT92NeIeDEMmNMg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-I_LxPKsxT92NeIeDEMmNMg.dat new file mode 100644 index 0000000000000000000000000000000000000000..ef16c8669d51c47f91d5b0cca64010bfd9dca5c9 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-I_LxPKsxT92NeIeDEMmNMg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat new file mode 100644 index 0000000000000000000000000000000000000000..c9929b2959059c3a125e7a85a9211651fb0bbc8b Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-LsZs9_hdQNKnGk-PLqK1Bw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-NxaPQc4SRpOiqTKzPkqDqA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-NxaPQc4SRpOiqTKzPkqDqA.dat new file mode 100644 index 0000000000000000000000000000000000000000..9d87be9ea3a88df19cb0f993d0f9141aab074592 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-NxaPQc4SRpOiqTKzPkqDqA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-OGjuhEHRToyAJchnf6V9yA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-OGjuhEHRToyAJchnf6V9yA.dat new file mode 100644 index 0000000000000000000000000000000000000000..bacd84dc30ebf23b5c44fe8f6d648587a140f2a3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-OGjuhEHRToyAJchnf6V9yA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-PJDUDjteQ_SltEk_Uka4ug.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-PJDUDjteQ_SltEk_Uka4ug.dat new file mode 100644 index 0000000000000000000000000000000000000000..9a3ba6d07dc4d0ef2f7ca1eb76d72a815dcde780 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-PJDUDjteQ_SltEk_Uka4ug.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat new file mode 100644 index 0000000000000000000000000000000000000000..c5baef979472828eef5280ba0dedcee684f02246 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-Y1XSDbaNTHyCiMIQGZRRdA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-fypDEZ9iSL25KHo07Zdqlw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-fypDEZ9iSL25KHo07Zdqlw.dat new file mode 100644 index 0000000000000000000000000000000000000000..64ef5a09754e3182e591ca279682c20b27414d85 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-fypDEZ9iSL25KHo07Zdqlw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-i_DQ1uBJQd-eXuypffUo5A.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-i_DQ1uBJQd-eXuypffUo5A.dat new file mode 100644 index 0000000000000000000000000000000000000000..5867e96c14d184ef28efec2130e1bc40b647c1f3 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-i_DQ1uBJQd-eXuypffUo5A.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-mGdP4kRwTwuA68cXSayf2g.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-mGdP4kRwTwuA68cXSayf2g.dat new file mode 100644 index 0000000000000000000000000000000000000000..1d3e8a2132cb8ce0acf23d6e734f3894b13f490c Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-mGdP4kRwTwuA68cXSayf2g.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-qnPJopJXRwaiKRF7M8TJCA.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-qnPJopJXRwaiKRF7M8TJCA.dat new file mode 100644 index 0000000000000000000000000000000000000000..95d4f901b6fcc28e082d59981c3b2efabd8071e5 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-qnPJopJXRwaiKRF7M8TJCA.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat new file mode 100644 index 0000000000000000000000000000000000000000..f862c31052e422c835c78f85814ccae3131fd261 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-x-LB-LNqRIOPtDPbhmRnhQ.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-y7C9OwnkQr6VUxE_ObFCCw.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-y7C9OwnkQr6VUxE_ObFCCw.dat new file mode 100644 index 0000000000000000000000000000000000000000..f04bc9d2dad4abdfc5b2ea6228be38969697a1a1 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-y7C9OwnkQr6VUxE_ObFCCw.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat new file mode 100644 index 0000000000000000000000000000000000000000..9a014e1dbe4722ea0641f2b71000376eca61e12b Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-yN4W1Oq0Qd-QRRT7xkPgIg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat new file mode 100644 index 0000000000000000000000000000000000000000..44aedbb06348de327e50339cf50e9dfbe0607282 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snap-zFKnNFuoQ5mFEvviEbr_Mg.dat differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snapshot_shard_paths/snapshot_path_5-CJfV3hTbi-fjonLb1X5Q.otel-logs-2026-02-09.1.1.1 b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snapshot_shard_paths/snapshot_path_5-CJfV3hTbi-fjonLb1X5Q.otel-logs-2026-02-09.1.1.1 new file mode 100644 index 0000000000000000000000000000000000000000..2f24f25e3d23519dd5c10a579f2b7b4c7ff9fe25 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/opensearch-repo-snapshots/snapshot_shard_paths/snapshot_path_5-CJfV3hTbi-fjonLb1X5Q.otel-logs-2026-02-09.1.1.1 @@ -0,0 +1 @@ +{"indexId":"5-CJfV3hTbi-fjonLb1X5Q","indexName":"otel-logs-2026-02-09","number_of_shards":1,"shard_path_type":1,"shard_path_hash_algorithm":1,"paths":["f10110011100011/indices/5-CJfV3hTbi-fjonLb1X5Q/0/"]} \ No newline at end of file diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/meta.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b758a37937ffe1db0f50723e97601b2ca4737312 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/meta.json @@ -0,0 +1,18 @@ +{ + "ulid": "01KH08XHW573V0Z4W491G7G8TX", + "minTime": 1770609378506, + "maxTime": 1770609624377, + "stats": { + "numSamples": 38776, + "numFloatSamples": 38776, + "numSeries": 6946, + "numChunks": 13560 + }, + "compaction": { + "level": 1, + "sources": [ + "01KH08XHW573V0Z4W491G7G8TX" + ] + }, + "version": 1 +} \ No newline at end of file diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/tombstones b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/tombstones new file mode 100644 index 0000000000000000000000000000000000000000..95fb83272e6f55edeee7e5d86bdec5fcd217eae0 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/data/prometheus/snapshots/snapshot_day1_00h03m/01KH08XHW573V0Z4W491G7G8TX/tombstones differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.mod b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..aeac23a1d367294cee7c75f84f3e321f93c53f51 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.mod @@ -0,0 +1,5 @@ +module github.com/open-telemetry/opentelemetry-specification/internal/tools + +go 1.12 + +require github.com/client9/misspell v0.3.4 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.sum b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..ee5948021f9f63e8b4edd6f0e9c16e2d0ee2ba3a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/go.sum @@ -0,0 +1,2 @@ +github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/sanitycheck.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/sanitycheck.py new file mode 100644 index 0000000000000000000000000000000000000000..dc591ae246f7fe19d5d64cba44a5bb2e7c4aa09f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/sanitycheck.py @@ -0,0 +1,93 @@ +#!/usr/bin/env python3 + + + +import glob +import os +import sys + +CR = b'\r' +CRLF = b'\r\n' +LF = b'\n' + +def sanitycheck(pattern, allow_utf8 = False, allow_eol = (CRLF, LF), indent = 1): + error_count = 0 + + for filename in glob.glob(pattern, recursive=True): + if not os.path.isfile(filename): + continue + with open(filename, 'rb') as file: + content = file.read() + error = [] + eol = None + lineno = 1 + if not content: + error.append(' Empty file found') + elif content[-1] != 10: # LF + error.append(' Missing a blank line before EOF') + for line in content.splitlines(True): + if allow_utf8 and lineno == 1 and line.startswith(b'\xef\xbb\xbf'): + line = line[3:] + if any(b == 7 for b in line): + error.append(' TAB found at Ln:{} {}'.format(lineno, line)) + if any(b > 127 for b in line): + error.append(' Non-ASCII character found at Ln:{} {}'.format(lineno, line)) + if line[-2:] == CRLF: + if not eol: + eol = CRLF + elif eol != CRLF: + error.append(' Inconsistent line ending found at Ln:{} {}'.format(lineno, line)) + line = line[:-2] + elif line[-1:] == LF: + if not eol: + eol = LF + elif eol != LF: + error.append(' Inconsistent line ending found at Ln:{} {}'.format(lineno, line)) + line = line[:-1] + elif line[-1:] == CR: + error.append(' CR found at Ln:{} {}'.format(lineno, line)) + line = line[:-1] + if eol: + if eol not in allow_eol: + error.append(' Line ending {} not allowed at Ln:{}'.format(eol, lineno)) + break + if line.startswith(b' '): + spc_count = 0 + for c in line: + if c != 32: + break + spc_count += 1 + if not indent or (spc_count % indent and os.path.basename(filename) != 'rebar.config'): + error.append(' {} SPC found at Ln:{} {}'.format(spc_count, lineno, line)) + if line[-1:] == b' ' or line[-1:] == b'\t': + error.append(' Trailing space found at Ln:{} {}'.format(lineno, line)) + lineno += 1 + if error: + error_count += 1 + print('{} [FAIL]'.format(filename), file=sys.stderr) + for msg in error: + print(msg, file=sys.stderr) + else: + # print('{} [PASS]'.format(filename)) + pass + + return error_count + +retval = 0 +retval += sanitycheck('**/Dockerfile', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.cmd', allow_eol = (CRLF,), indent = 2) +retval += sanitycheck('**/*.config', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.cs', allow_eol = (LF,)) +retval += sanitycheck('**/*.csproj', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.htm', allow_eol = (LF,), indent = 4) +retval += sanitycheck('**/*.html', allow_eol = (LF,), indent = 4) +retval += sanitycheck('**/*.md', allow_eol = (LF,)) +retval += sanitycheck('**/*.proj', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.props', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/[!demo_pb2]*.py', allow_eol = (LF,), indent = 4) +retval += sanitycheck('**/*.slnx', allow_utf8 = True, indent = 2) +retval += sanitycheck('**/*.targets', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.xml', allow_eol = (LF,), indent = 2) +retval += sanitycheck('**/*.yml', allow_eol = (LF,), indent = 2) + +sys.exit(retval) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/tools.go b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/tools.go new file mode 100644 index 0000000000000000000000000000000000000000..ef72fbe990bb7252ba20c7ad07cd7a70735ba506 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/internal/tools/tools.go @@ -0,0 +1,15 @@ +// + +//go:build tools +// +build tools + +package tools + +// This file follows the recommendation at +// https://go.dev/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module +// on how to pin tooling dependencies to a go.mod file. +// This ensures that all systems use the same version of tools in addition to regular dependencies. + +import ( + _ "github.com/client9/misspell/cmd/misspell" +) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/.java-version b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/.java-version new file mode 100644 index 0000000000000000000000000000000000000000..5f39e9144690bb1f6f33d3db3cbd58ab198165a3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/.java-version @@ -0,0 +1 @@ +21.0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..92f69c049ee8a9993676b745f6fd980541f4fff4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/Dockerfile @@ -0,0 +1,35 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM --platform=${BUILDPLATFORM} eclipse-temurin:21-jdk AS builder +ARG _JAVA_OPTIONS +WORKDIR /usr/src/app/ + +COPY ./src/ad/gradlew* ./src/ad/settings.gradle* ./src/ad/build.gradle ./ +COPY ./src/ad/gradle ./gradle + +RUN chmod +x ./gradlew +RUN ./gradlew +RUN ./gradlew downloadRepos + +COPY ./src/ad/ ./ +COPY ./pb/ ./proto +RUN chmod +x ./gradlew +RUN ./gradlew installDist -PprotoSourceDir=./proto + +# ----------------------------------------------------------------------------- + +FROM eclipse-temurin:21-jre + +ARG OTEL_JAVA_AGENT_VERSION +ARG _JAVA_OPTIONS + +WORKDIR /usr/src/app/ + +COPY --from=builder /usr/src/app/ ./ +ADD --chmod=644 https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$OTEL_JAVA_AGENT_VERSION/opentelemetry-javaagent.jar /usr/src/app/opentelemetry-javaagent.jar +ENV JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar + +EXPOSE ${AD_PORT} +ENTRYPOINT [ "./build/install/opentelemetry-demo-ad/bin/Ad" ] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2a3b174355e33d62c2c232a68be271d7ebc03b5e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/README.md @@ -0,0 +1,41 @@ +# Ad Service + +The Ad service provides advertisement based on context keys. If no context keys +are provided then it returns random ads. + +## Building Locally + +The Ad service requires at least JDK 21 to build and uses gradlew to +compile/install/distribute. Gradle wrapper is already part of the source code. +To build Ad Service, run: + +```sh +./gradlew installDist +``` + +It will create an executable script +`src/ad/build/install/oteldemo/bin/Ad`. + +To run the Ad Service: + +```sh +export AD_PORT=8080 +export FEATURE_FLAG_GRPC_SERVICE_ADDR=featureflagservice:50053 +./build/install/opentelemetry-demo-ad/bin/Ad +``` + +### Upgrading Gradle + +If you need to upgrade the version of gradle then run + +```sh +./gradlew wrapper --gradle-version +``` + +## Building Docker + +From the root of `opentelemetry-demo`, run: + +```sh +docker build --file ./src/ad/Dockerfile ./ +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/build.gradle b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..7ccb4844a79a5ffa52c9a37d20ff13233d3d35d7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/build.gradle @@ -0,0 +1,143 @@ + +plugins { + id 'com.google.protobuf' version '0.9.6' + id 'com.github.sherter.google-java-format' version '0.9' + id 'idea' + id 'application' + id 'com.github.ben-manes.versions' version '0.53.0' +} + +repositories { + mavenCentral() + mavenLocal() +} + +description = 'Ad Service' +group = "ad" +version = "0.1.0-SNAPSHOT" + +def opentelemetryVersion = "1.58.0" +def opentelemetryInstrumentationVersion = "2.24.0" +def grpcVersion = "1.78.0" +def jacksonVersion = "2.21.0" +def protocVersion = "4.33.4" + +tasks.withType(JavaCompile).configureEach { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 +} + +ext { + speed = project.hasProperty('speed') ? project.getProperty('speed') : false + Provider output = layout.buildDirectory.dir("outputLocation") + offlineCompile = output.get().asFile +} + +dependencies { + if (speed) { + implementation fileTree(dir: offlineCompile, include: '*.jar') + } else { + implementation platform("io.opentelemetry:opentelemetry-bom:${opentelemetryVersion}") + implementation platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${opentelemetryInstrumentationVersion}") + + implementation "com.google.api.grpc:proto-google-common-protos:2.64.1", + "com.google.protobuf:protobuf-java:${protocVersion}", + "javax.annotation:javax.annotation-api:1.3.2", + "io.grpc:grpc-protobuf:${grpcVersion}", + "io.grpc:grpc-stub:${grpcVersion}", + "io.grpc:grpc-netty:${grpcVersion}", + "io.grpc:grpc-services:${grpcVersion}", + "io.opentelemetry:opentelemetry-api", + "io.opentelemetry:opentelemetry-sdk", + "io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations", + "org.apache.logging.log4j:log4j-core:2.25.3", + "dev.openfeature.contrib.providers:flagd:0.11.19", + 'dev.openfeature:sdk:1.20.0' + + runtimeOnly "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}", + "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}", + "io.netty:netty-tcnative-boringssl-static:2.0.74.Final" + } +} + +// Default protoSourceDir is in /opentelemetry-demo/pb. Optionally override the +// location for the docker build, which copies the protos to a different location. +def protoSourceDir = findProperty('protoSourceDir')?: project.projectDir.parentFile.parentFile.toPath().toString() + "/pb" +def protoDestDir = project.buildDir.toPath().toString() + "/proto" + +// Copy protos to the build directory +tasks.register('copyProtos', Copy) { + from protoSourceDir + into protoDestDir +} + +// Include the output directory of copyProtos in main source set so they are +// picked up by the protobuf plugin +sourceSets { + main { + proto { + srcDir(protoDestDir) + } + } +} + +protobuf { + protoc { + artifact = "com.google.protobuf:protoc:${protocVersion}" + } + plugins { + grpc { + artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" + } + } + generateProtoTasks { task -> + all()*.plugins { + grpc {} + } + ofSourceSet('main') + } +} + +afterEvaluate { + // Ensure protos are copy before classes are generated + tasks.getByName('processResources').dependsOn 'copyProtos' + tasks.getByName('generateProto').dependsOn 'copyProtos' +} + +googleJavaFormat { + toolVersion '1.18.1' +} + +// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code. +sourceSets { + main { + java { + srcDirs 'oteldemo' + srcDirs 'build/generated/source/proto/main/java/oteldemo' + srcDirs 'build/generated/source/proto/main/grpc/oteldemo' + } + } +} + +startScripts.enabled = false + +// This to cache dependencies during Docker image building. First build will take time. +// Subsequent build will be incremental. +task downloadRepos(type: Copy) { + from configurations.compileClasspath + into offlineCompile + from configurations.runtimeClasspath + into offlineCompile +} + +task ad(type: CreateStartScripts) { + mainClass.set('oteldemo.AdService') + applicationName = 'Ad' + outputDir = new File(project.buildDir, 'tmp') + classpath = startScripts.classpath +} + +applicationDistribution.into('bin') { + from(ad) + fileMode = 0755 +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..2c3521197d7c4586c843d1d3e9090525f1898cde Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e18bc253b857cc9614e63c8975b677f496755957 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew new file mode 100644 index 0000000000000000000000000000000000000000..f5feea6d6b116baaca5a2642d4d9fa1f47d574a7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew.bat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..9d21a21834d5195c278ba17baec3115b2aaab06e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/settings.gradle b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..b85c24c7d15245209d24c9a87611a7f10d30f840 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/settings.gradle @@ -0,0 +1,2 @@ + +rootProject.name = 'opentelemetry-demo-ad' diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java new file mode 100644 index 0000000000000000000000000000000000000000..d7f2688e66ad405db06f9fa676514952d77f9220 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java @@ -0,0 +1,328 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +package oteldemo; + +import com.google.common.collect.ImmutableListMultimap; +import com.google.common.collect.Iterables; +import io.grpc.*; +import io.grpc.health.v1.HealthCheckResponse.ServingStatus; +import io.grpc.protobuf.services.*; +import io.grpc.stub.StreamObserver; +import io.opentelemetry.api.GlobalOpenTelemetry; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.baggage.Baggage; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.metrics.LongCounter; +import io.opentelemetry.api.metrics.Meter; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.context.Context; +import io.opentelemetry.context.Scope; +import io.opentelemetry.instrumentation.annotations.SpanAttribute; +import io.opentelemetry.instrumentation.annotations.WithSpan; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import java.util.Random; +import org.apache.logging.log4j.Level; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import oteldemo.Demo.Ad; +import oteldemo.Demo.AdRequest; +import oteldemo.Demo.AdResponse; +import oteldemo.problempattern.GarbageCollectionTrigger; +import oteldemo.problempattern.CPULoad; +import dev.openfeature.contrib.providers.flagd.FlagdOptions; +import dev.openfeature.contrib.providers.flagd.FlagdProvider; +import dev.openfeature.sdk.Client; +import dev.openfeature.sdk.EvaluationContext; +import dev.openfeature.sdk.MutableContext; +import dev.openfeature.sdk.OpenFeatureAPI; +import java.util.UUID; + + +public final class AdService { + + private static final Logger logger = LogManager.getLogger(AdService.class); + + @SuppressWarnings("FieldCanBeLocal") + private static final int MAX_ADS_TO_SERVE = 2; + + private Server server; + private HealthStatusManager healthMgr; + + private static final AdService service = new AdService(); + private static final Tracer tracer = GlobalOpenTelemetry.getTracer("ad"); + private static final Meter meter = GlobalOpenTelemetry.getMeter("ad"); + + private static final LongCounter adRequestsCounter = + meter + .counterBuilder("app.ads.ad_requests") + .setDescription("Counts ad requests by request and response type") + .build(); + + private static final AttributeKey adRequestTypeKey = + AttributeKey.stringKey("app.ads.ad_request_type"); + private static final AttributeKey adResponseTypeKey = + AttributeKey.stringKey("app.ads.ad_response_type"); + + private void start() throws IOException { + int port = + Integer.parseInt( + Optional.ofNullable(System.getenv("AD_PORT")) + .orElseThrow( + () -> + new IllegalStateException( + "environment vars: AD_PORT must not be null"))); + healthMgr = new HealthStatusManager(); + + // Create a flagd instance with OpenTelemetry + FlagdOptions options = + FlagdOptions.builder() + .withGlobalTelemetry(true) + .build(); + + FlagdProvider flagdProvider = new FlagdProvider(options); + // Set flagd as the OpenFeature Provider + OpenFeatureAPI.getInstance().setProvider(flagdProvider); + + server = + ServerBuilder.forPort(port) + .addService(new AdServiceImpl()) + .addService(healthMgr.getHealthService()) + .build() + .start(); + logger.info("Ad service started, listening on " + port); + Runtime.getRuntime() + .addShutdownHook( + new Thread( + () -> { + // Use stderr here since the logger may have been reset by its JVM shutdown hook. + System.err.println( + "*** shutting down gRPC ads server since JVM is shutting down"); + AdService.this.stop(); + System.err.println("*** server shut down"); + })); + healthMgr.setStatus("", ServingStatus.SERVING); + } + + private void stop() { + if (server != null) { + healthMgr.clearStatus(""); + server.shutdown(); + } + } + + private enum AdRequestType { + TARGETED, + NOT_TARGETED + } + + private enum AdResponseType { + TARGETED, + RANDOM + } + + private static class AdServiceImpl extends oteldemo.AdServiceGrpc.AdServiceImplBase { + + private static final String AD_FAILURE = "adFailure"; + private static final String AD_MANUAL_GC_FEATURE_FLAG = "adManualGc"; + private static final String AD_HIGH_CPU_FEATURE_FLAG = "adHighCpu"; + private static final Client ffClient = OpenFeatureAPI.getInstance().getClient(); + + private AdServiceImpl() {} + + /** + * Retrieves ads based on context provided in the request {@code AdRequest}. + * + * @param req the request containing context. + * @param responseObserver the stream observer which gets notified with the value of {@code + * AdResponse} + */ + @Override + public void getAds(AdRequest req, StreamObserver responseObserver) { + AdService service = AdService.getInstance(); + + // get the current span in context + Span span = Span.current(); + try { + List allAds = new ArrayList<>(); + AdRequestType adRequestType; + AdResponseType adResponseType; + + Baggage baggage = Baggage.fromContextOrNull(Context.current()); + MutableContext evaluationContext = new MutableContext(); + if (baggage != null) { + final String sessionId = baggage.getEntryValue("session.id"); + span.setAttribute("session.id", sessionId); + evaluationContext.setTargetingKey(sessionId); + evaluationContext.add("session", sessionId); + } else { + logger.info("no baggage found in context"); + } + + CPULoad cpuload = CPULoad.getInstance(); + cpuload.execute(ffClient.getBooleanValue(AD_HIGH_CPU_FEATURE_FLAG, false, evaluationContext)); + + span.setAttribute("app.ads.contextKeys", req.getContextKeysList().toString()); + span.setAttribute("app.ads.contextKeys.count", req.getContextKeysCount()); + if (req.getContextKeysCount() > 0) { + logger.info("Targeted ad request received for " + req.getContextKeysList()); + for (int i = 0; i < req.getContextKeysCount(); i++) { + Collection ads = service.getAdsByCategory(req.getContextKeys(i)); + allAds.addAll(ads); + } + adRequestType = AdRequestType.TARGETED; + adResponseType = AdResponseType.TARGETED; + } else { + logger.info("Non-targeted ad request received, preparing random response."); + allAds = service.getRandomAds(); + adRequestType = AdRequestType.NOT_TARGETED; + adResponseType = AdResponseType.RANDOM; + } + if (allAds.isEmpty()) { + // Serve random ads. + allAds = service.getRandomAds(); + adResponseType = AdResponseType.RANDOM; + } + span.setAttribute("app.ads.count", allAds.size()); + span.setAttribute("app.ads.ad_request_type", adRequestType.name()); + span.setAttribute("app.ads.ad_response_type", adResponseType.name()); + + adRequestsCounter.add( + 1, + Attributes.of( + adRequestTypeKey, adRequestType.name(), adResponseTypeKey, adResponseType.name())); + + // Throw 1/10 of the time to simulate a failure when the feature flag is enabled + if (ffClient.getBooleanValue(AD_FAILURE, false, evaluationContext) && random.nextInt(10) == 0) { + throw new StatusRuntimeException(Status.UNAVAILABLE); + } + + if (ffClient.getBooleanValue(AD_MANUAL_GC_FEATURE_FLAG, false, evaluationContext)) { + logger.warn("Feature Flag " + AD_MANUAL_GC_FEATURE_FLAG + " enabled, performing a manual gc now"); + GarbageCollectionTrigger gct = new GarbageCollectionTrigger(); + gct.doExecute(); + } + + AdResponse reply = AdResponse.newBuilder().addAllAds(allAds).build(); + responseObserver.onNext(reply); + responseObserver.onCompleted(); + } catch (StatusRuntimeException e) { + span.addEvent( + "Error", Attributes.of(AttributeKey.stringKey("exception.message"), e.getMessage())); + span.setStatus(StatusCode.ERROR); + logger.log(Level.WARN, "GetAds Failed with status {}", e.getStatus()); + responseObserver.onError(e); + } + } + } + + private static final ImmutableListMultimap adsMap = createAdsMap(); + + @WithSpan("getAdsByCategory") + private Collection getAdsByCategory(@SpanAttribute("app.ads.category") String category) { + Collection ads = adsMap.get(category); + Span.current().setAttribute("app.ads.count", ads.size()); + return ads; + } + + private static final Random random = new Random(); + + private List getRandomAds() { + + List ads = new ArrayList<>(MAX_ADS_TO_SERVE); + + // create and start a new span manually + Span span = tracer.spanBuilder("getRandomAds").startSpan(); + + // put the span into context, so if any child span is started the parent will be set properly + try (Scope ignored = span.makeCurrent()) { + + Collection allAds = adsMap.values(); + for (int i = 0; i < MAX_ADS_TO_SERVE; i++) { + ads.add(Iterables.get(allAds, random.nextInt(allAds.size()))); + } + span.setAttribute("app.ads.count", ads.size()); + + } finally { + span.end(); + } + + return ads; + } + + private static AdService getInstance() { + return service; + } + + /** Await termination on the main thread since the grpc library uses daemon threads. */ + private void blockUntilShutdown() throws InterruptedException { + if (server != null) { + server.awaitTermination(); + } + } + + private static ImmutableListMultimap createAdsMap() { + Ad binoculars = + Ad.newBuilder() + .setRedirectUrl("/product/2ZYFJ3GM2N") + .setText("Roof Binoculars for sale. 50% off.") + .build(); + Ad explorerTelescope = + Ad.newBuilder() + .setRedirectUrl("/product/66VCHSJNUP") + .setText("Starsense Explorer Refractor Telescope for sale. 20% off.") + .build(); + Ad colorImager = + Ad.newBuilder() + .setRedirectUrl("/product/0PUK6V6EV0") + .setText("Solar System Color Imager for sale. 30% off.") + .build(); + Ad opticalTube = + Ad.newBuilder() + .setRedirectUrl("/product/9SIQT8TOJO") + .setText("Optical Tube Assembly for sale. 10% off.") + .build(); + Ad travelTelescope = + Ad.newBuilder() + .setRedirectUrl("/product/1YMWWN1N4O") + .setText( + "Eclipsmart Travel Refractor Telescope for sale. Buy one, get second kit for free") + .build(); + Ad solarFilter = + Ad.newBuilder() + .setRedirectUrl("/product/6E92ZMYYFZ") + .setText("Solar Filter for sale. Buy two, get third one for free") + .build(); + Ad cleaningKit = + Ad.newBuilder() + .setRedirectUrl("/product/L9ECAV7KIM") + .setText("Lens Cleaning Kit for sale. Buy one, get second one for free") + .build(); + return ImmutableListMultimap.builder() + .putAll("binoculars", binoculars) + .putAll("telescopes", explorerTelescope) + .putAll("accessories", colorImager, solarFilter, cleaningKit) + .putAll("assembly", opticalTube) + .putAll("travel", travelTelescope) + // Keep the books category free of ads to ensure the random code branch is tested + .build(); + } + + /** Main launches the server from the command line. */ + public static void main(String[] args) throws IOException, InterruptedException { + // Start the RPC server. You shouldn't see any output from gRPC before this. + logger.info("Ad service starting."); + final AdService service = AdService.getInstance(); + service.start(); + service.blockUntilShutdown(); + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java new file mode 100644 index 0000000000000000000000000000000000000000..178f773370d00a4f221ee35e81bbdf935259a233 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java @@ -0,0 +1,116 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ +package oteldemo.problempattern; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + +import io.grpc.ManagedChannelBuilder; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** + * This class is designed to simulate a high CPU load scenario. + * It contains methods to start and stop a specified number of worker threads designed to + * perform CPU-intensive calculations. + */ +public class CPULoad { + private static final Logger logger = LogManager.getLogger(CPULoad.class.getName()); + private static final int THREAD_COUNT = 4; + private boolean running = false; + private final List runningWorkers = new ArrayList<>(); + + private static CPULoad instance; + + /** + * Singleton pattern to get the instance of CPULoad. + * @return The singleton instance of CPULoad. + */ + public static CPULoad getInstance() { + if (instance == null) { + instance = new CPULoad(); + } + return instance; + } + + /** + * Starts or stops the CPU load generation based on the input parameter. + * If enabled, it launches worker threads. If disabled, it stops any running threads. + * + * @param enabled Flag to start (true) or stop (false) the CPU load simulation. + */ + public void execute(Boolean enabled) { + if (enabled) { + logger.info("High CPU-Load problempattern enabled"); + if (!running) { + spawnLoadWorkers(THREAD_COUNT); + running = true; + } + } else { + running = false; + stopWorkers(); + } + } + + /** + * Creates and starts a specified number of Logarithmizer threads to simulate CPU load. + * + * @param threadCount The number of threads to be started. + */ + private void spawnLoadWorkers(int threadCount) { + synchronized(runningWorkers) { + for (int i = 0; i < threadCount; i++) { + Logarithmizer logarithmizer = new Logarithmizer(); + Thread thread = new Thread(logarithmizer); + thread.setDaemon(true); + thread.start(); + runningWorkers.add(logarithmizer); + } + } + } + + /** + * Signals all running Logarithmizer threads to stop and clears the list of running workers. + */ + private void stopWorkers() { + synchronized(runningWorkers) { + for (Logarithmizer logarithmizer : runningWorkers) { + logarithmizer.setShouldRun(false); + } + runningWorkers.clear(); + } + } + + /** + * Inner class representing a worker focused on calculating logarithms to consume CPU resources. + */ + private static class Logarithmizer implements Runnable { + + private volatile boolean shouldRun = true; + + /** + * Continuously calculates the logarithm of the current system time until + * requested to stop. + */ + @Override + public void run() { + while (shouldRun) { + Math.log(System.currentTimeMillis()); + } + } + + /** + * Sets the shouldRun flag to control whether this Logarithmizer should continue + * to run. + * + * @param shouldRun A boolean flag to continue (true) or stop (false) the logarithm computation. + */ + public void setShouldRun(boolean shouldRun) { + this.shouldRun = shouldRun; + } + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java new file mode 100644 index 0000000000000000000000000000000000000000..aa72bc1f2c696bffec698eed453e5fdcd0da03ae --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java @@ -0,0 +1,80 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ + +package oteldemo.problempattern; + +import java.lang.management.ManagementFactory; +import java.util.concurrent.TimeUnit; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** + * The GarbageCollectionTrigger class is responsible for triggering manual garbage collection +* at specified intervals to simulate memory pressure and measure the impact on performance. +*/ +public class GarbageCollectionTrigger { + private static final Logger logger = LogManager.getLogger(GarbageCollectionTrigger.class.getName()); + + private final long gc_delay; + private final int finalize_delay; + private final int maxObjects; + + private long lastGC = 0; + + private final MemoryUtils memUtils; + + /** + * Constructs a new GarbageCollectionTrigger with default values. + */ + public GarbageCollectionTrigger() { + memUtils = new MemoryUtils(ManagementFactory.getMemoryMXBean()); + gc_delay = TimeUnit.SECONDS.toMillis(10); + finalize_delay = 500; + maxObjects = 500000; + } + + /** + * Triggers manual garbage collection at specified intervals and measures the impact on performance. + * It creates Entry objects to fill up memory and initiates garbage collection. + */ + public void doExecute() { + if (System.currentTimeMillis() - lastGC > gc_delay) { + logger.info("Triggering a manual garbage collection, next one in " + (gc_delay/1000) + " seconds."); + // clear old data, we want to clear old Entry objects, because their finalization is expensive + System.gc(); + + long total = 0; + for (int i = 0; i < 10; i++) { + while (memUtils.getHeapUsage() < 0.9 && memUtils.getObjectPendingFinalizationCount() < maxObjects) { + new Entry(); + } + long start = System.currentTimeMillis(); + System.gc(); + total += System.currentTimeMillis() - start; + } + logger.info("The artificially triggered GCs took: " + total + " ms"); + lastGC = System.currentTimeMillis(); + } + + } + + /** + * The Entry class represents objects created for the purpose of triggering garbage collection. + */ + private class Entry { + /** + * Overrides the finalize method to introduce a delay, simulating finalization during garbage collection. + * + * @throws Throwable If an exception occurs during finalization. + */ + @SuppressWarnings("removal") + @Override + protected void finalize() throws Throwable { + TimeUnit.MILLISECONDS.sleep(finalize_delay); + super.finalize(); + } + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java new file mode 100644 index 0000000000000000000000000000000000000000..6b314145fecadac942177f9a9a42d0bf2b195c6f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java @@ -0,0 +1,65 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ + +package oteldemo.problempattern; + +import java.lang.management.MemoryMXBean; +import java.lang.management.MemoryUsage; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + + +/** + * This class provides JVM heap related utility methods. +*/ +public class MemoryUtils { + + private static final Logger logger = LogManager.getLogger(MemoryUtils.class.getName()); + + private static final long NO_HEAP_LIMIT = -1; + + private final MemoryMXBean memoryBean; + + /** + * @param memoryBean defines which {@link MemoryMXBean} is to use + */ + public MemoryUtils(MemoryMXBean memoryBean) { + this.memoryBean = memoryBean; + } + + + /** + * @return The current heap usage as a decimal number between 0.0 and 1.0. + * That is, if the returned value is 0.85, 85% of the max heap is used. + * + * If no max heap is set, the method returns -1.0. + */ + public double getHeapUsage() { + MemoryUsage heapProps = memoryBean.getHeapMemoryUsage(); + long heapUsed = heapProps.getUsed(); + long heapMax = heapProps.getMax(); + + if (heapMax == NO_HEAP_LIMIT) { + if (logger.isDebugEnabled()) { + logger.debug("No maximum heap is set"); + } + return NO_HEAP_LIMIT; + } + + + double heapUsage = (double) heapUsed / heapMax; + if (logger.isDebugEnabled()) { + logger.debug("Current heap usage is {0} percent" + (heapUsage * 100)); + } + return heapUsage; + } + + /** + * see {@link MemoryMXBean#getObjectPendingFinalizationCount()} + */ + public int getObjectPendingFinalizationCount() { + return memoryBean.getObjectPendingFinalizationCount(); + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml new file mode 100644 index 0000000000000000000000000000000000000000..db5cb39e968e33f359599529733e55a2a86782b0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/Directory.Build.props b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/Directory.Build.props new file mode 100644 index 0000000000000000000000000000000000000000..92cd6f4444ae6155d312528c85fb73331f07cba4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/Directory.Build.props @@ -0,0 +1,12 @@ + + + true + all + low + + + + Minimum + true + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/NuGet.config b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/NuGet.config new file mode 100644 index 0000000000000000000000000000000000000000..adcb2a925ffa1120b8a47227e6f832f55d58474e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/NuGet.config @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f2b2db648459ea97fcd06ba02db223ef46615eac --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/README.md @@ -0,0 +1,15 @@ +# Cart Service + +This service stores user shopping carts in Valkey. + +## Local Build + +Run `dotnet restore` and `dotnet build`. + +## Docker Build + +From the root directory of this repository, run: + +```sh +docker compose build cart +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/cart.slnx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/cart.slnx new file mode 100644 index 0000000000000000000000000000000000000000..f92c994d55391922287de561012ef93ce12293b2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/cart/cart.slnx @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..9aa66af251439080376734a08d5cc4eda6a0c1de --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/Dockerfile @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM golang:1.24-bookworm AS builder + +WORKDIR /usr/src/app/ + +COPY ./src/checkout/go.mod go.mod +COPY ./src/checkout/go.sum go.sum + +RUN go mod download + +COPY ./src/checkout/genproto/oteldemo/ genproto/oteldemo/ +COPY ./src/checkout/kafka/ kafka/ +COPY ./src/checkout/money/ money/ +COPY ./src/checkout/main.go main.go + +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -o checkout main.go + +FROM gcr.io/distroless/static-debian12:nonroot + +WORKDIR /usr/src/app/ + +COPY --from=builder /usr/src/app/checkout/ ./ + +EXPOSE ${CHECKOUT_PORT} +ENTRYPOINT [ "./checkout" ] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/README.md new file mode 100644 index 0000000000000000000000000000000000000000..28064bda47cf6f0a9fb163933657fd687ab31ccd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/README.md @@ -0,0 +1,36 @@ +# Checkout Service + +This service provides checkout services for the application. + +## Local Build + +To build the service binary, run: + +```sh +go build -o /go/bin/checkout/ +``` + +## Docker Build + +From the root directory, run: + +```sh +docker compose build checkout +``` + +## Regenerate protos + +To build the protos, run from the root directory: + +```sh +make docker-generate-protobuf +``` + +## Bump dependencies + +To bump all dependencies run: + +```sh +go get -u -t ./... +go mod tidy +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.mod b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..4126a6afd70c17b43a6e123694528481b42b8637 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.mod @@ -0,0 +1,87 @@ +module github.com/open-telemetry/opentelemetry-demo/src/checkout + +go 1.24.2 + +require ( + github.com/IBM/sarama v1.46.3 + github.com/google/uuid v1.6.0 + github.com/open-feature/go-sdk v1.17.1 + github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 + github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 + go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 + go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 + go.opentelemetry.io/otel v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 + go.opentelemetry.io/otel/log v0.15.0 + go.opentelemetry.io/otel/sdk v1.39.0 + go.opentelemetry.io/otel/sdk/log v0.15.0 + go.opentelemetry.io/otel/sdk/metric v1.39.0 + go.opentelemetry.io/otel/trace v1.39.0 + google.golang.org/grpc v1.78.0 + google.golang.org/protobuf v1.36.11 +) + +require ( + buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 // indirect + buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 // indirect + buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 // indirect + connectrpc.com/connect v1.18.1 // indirect + connectrpc.com/otelconnect v0.7.2 // indirect + github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/diegoholiveira/jsonlogic/v3 v3.8.4 // indirect + github.com/eapache/go-resiliency v1.7.0 // indirect + github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect + github.com/eapache/queue v1.1.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-memdb v1.3.5 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect + github.com/jcmturner/aescts/v2 v2.0.0 // indirect + github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect + github.com/jcmturner/gofork v1.7.6 // indirect + github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect + github.com/jcmturner/rpc/v2 v2.0.3 // indirect + github.com/klauspost/compress v1.18.1 // indirect + github.com/open-feature/flagd-schemas v0.2.13 // indirect + github.com/open-feature/flagd/core v0.13.2 // indirect + github.com/pierrec/lz4/v4 v4.1.22 // indirect + github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 // indirect + github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect + github.com/twmb/murmur3 v1.1.8 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 // indirect + go.opentelemetry.io/otel/metric v1.39.0 // indirect + go.opentelemetry.io/proto/otlp v1.9.0 // indirect + go.uber.org/mock v0.6.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.27.0 // indirect + golang.org/x/crypto v0.45.0 // indirect + golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect + golang.org/x/mod v0.29.0 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.31.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +tool ( + google.golang.org/grpc/cmd/protoc-gen-go-grpc + google.golang.org/protobuf/cmd/protoc-gen-go +) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.sum b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..6754ee461d4ba9bf8729c805273d66c74c606a54 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/go.sum @@ -0,0 +1,226 @@ +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 h1:qnXaezo9s36RjysUq6omZlU3rjQNykMpqCXfCL/CH1Q= +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1/go.mod h1:/9fZNSPUzUwGRzDAjyasa5NC+YFgQthby355ZVuKS2Q= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 h1:TZ+7u106u7C7lgNctxG03ABliF46eLhcIZG5Mdo67/E= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2/go.mod h1:4u0WLwfkLob3dC/F8qNctqhtiEv2Mlyi8YgCDDzgYDs= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 h1:LdC4xAuUaNdduzQr5VvhjsgrCfpW9IYxYsjyCF0ANs0= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1/go.mod h1:cCQ49+ttXE2MZ/ciRNb0tCG+F3kj2ZVbP+0/psbhrLY= +connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw= +connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= +connectrpc.com/otelconnect v0.7.2 h1:WlnwFzaW64dN06JXU+hREPUGeEzpz3Acz2ACOmN8cMI= +connectrpc.com/otelconnect v0.7.2/go.mod h1:JS7XUKfuJs2adhCnXhNHPHLz6oAaZniCJdSF00OZSew= +github.com/IBM/sarama v1.46.3 h1:njRsX6jNlnR+ClJ8XmkO+CM4unbrNr/2vB5KK6UA+IE= +github.com/IBM/sarama v1.46.3/go.mod h1:GTUYiF9DMOZVe3FwyGT+dtSPceGFIgA+sPc5u6CBwko= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df h1:GSoSVRLoBaFpOOds6QyY1L8AX7uoY+Ln3BHc22W40X0= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df/go.mod h1:hiVxq5OP2bUGBRNS3Z/bt/reCLFNbdcST6gISi1fiOM= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4 h1:IVVU/VLz2hn10ImbmibjiUkdVsSFIB1vfDaOVsaipH4= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4/go.mod h1:OYRb6FSTVmMM+MNQ7ElmMsczyNSepw+OU4Z8emDSi4w= +github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI= +github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/eapache/go-resiliency v1.7.0 h1:n3NRTnBn5N0Cbi/IeOHuQn9s2UwVUH7Ga0ZWcP+9JTA= +github.com/eapache/go-resiliency v1.7.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= +github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= +github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 h1:NmZ1PKzSTQbuGHw9DGPFomqkkLWMC+vZCkfs+FHv1Vg= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3/go.mod h1:zQrxl1YP88HQlA6i9c63DSVPFklWpGX4OWAc9bFuaH4= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-memdb v1.3.5 h1:b3taDMxCBCBVgyRrS1AZVHO14ubMYZB++QpNhBg+Nyo= +github.com/hashicorp/go-memdb v1.3.5/go.mod h1:8IVKKBkVe+fxFgdFOYxzQQNjz+sWCyHCdIC/+5+Vy1Y= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= +github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= +github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= +github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= +github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= +github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= +github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o= +github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= +github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= +github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= +github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= +github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= +github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co= +github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/open-feature/flagd-schemas v0.2.13 h1:LzoyQfirfpR8cxI4PKnoFRtpwPjpC/cOO8N0n8dpbRc= +github.com/open-feature/flagd-schemas v0.2.13/go.mod h1:C0jnJ4C3j2LzGuqKgLDdTsdfKEWQp6sOHZyxu3QohFU= +github.com/open-feature/flagd/core v0.13.2 h1:s1WHrAYmxX65iG/9UX+RVT4VaDBqoGui6wHKLYmmVEk= +github.com/open-feature/flagd/core v0.13.2/go.mod h1:DIt7X93nGyVcwNuPlB9W/cSw9hdpA/42bw26BzctfVw= +github.com/open-feature/go-sdk v1.17.1 h1:1AwQ2NppOv69sfGiRH9pWfsMVLembvkhQ3hdk9eAsTY= +github.com/open-feature/go-sdk v1.17.1/go.mod h1:+2UML7oZADJa0Swg27d6pu5kLKeCpZM2X2hWcGQutJ0= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 h1:4UX24wgUa+zZkGeecn+884c3VHrXt9oca/krSFAjXNY= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6/go.mod h1:TftRJnT+7hyYDLBhuDUjDjabmBgOZYspYU9HUM9K3D0= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 h1:BGQP+U9MY8oIhNfmW7fCB0sWB9R+c0UWtXV25zs0kNY= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2/go.mod h1:/e0lsAID13rO+7X3Ij1iR0LiWBmliMI1blh39WPysXY= +github.com/pierrec/lz4/v4 v4.1.22 h1:cKFw6uJDK+/gfw5BcDL0JL5aBsAFdsIT18eRtLj7VIU= +github.com/pierrec/lz4/v4 v4.1.22/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 h1:bsUq1dX0N8AOIL7EB/X911+m4EHsnWEHeJ0c+3TTBrg= +github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/twmb/murmur3 v1.1.8 h1:8Yt9taO/WN3l08xErzjeschgZU2QSrwm1kclYq+0aRg= +github.com/twmb/murmur3 v1.1.8/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 h1:eypSOd+0txRKCXPNyqLPsbSfA0jULgJcGmSAdFAnrCM= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0/go.mod h1:CRGvIBL/aAxpQU34ZxyQVFlovVcp67s4cAmQu8Jh9mc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0/go.mod h1:habDz3tEWiFANTo6oUE99EmaFUrCNYAAg3wiVmusm70= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 h1:ssfIgGNANqpVFCndZvcuyKbl0g+UAVcbBcqGkG28H0Y= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0/go.mod h1:GQ/474YrbE4Jx8gZ4q5I4hrhUzM6UPzyrqJYV2AqPoQ= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 h1:/+/+UjlXjFcdDlXxKL1PouzX8Z2Vl0OxolRKeBEgYDw= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0/go.mod h1:Ldm/PDuzY2DP7IypudopCR3OCOW42NJlN9+mNEroevo= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 h1:W+m0g+/6v3pa5PgVf2xoFMi5YtNR06WtS7ve5pcvLtM= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0/go.mod h1:JM31r0GGZ/GU94mX8hN4D8v6e40aFlUECSQ48HaLgHM= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 h1:cEf8jF6WbuGQWUVcqgyWtTR0kOOAWY1DYZ+UhvdmQPw= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0/go.mod h1:k1lzV5n5U3HkGvTCJHraTAGJ7MqsgL1wrGwTj1Isfiw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 h1:f0cb2XPmrqn4XMy9PNliTgRKJgS5WcL/u0/WRYGz4t0= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0/go.mod h1:vnakAaFckOMiMtOIhFI2MNH4FYrZzXCYxmb1LlhoGz8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 h1:in9O8ESIOlwJAEGTkkf34DesGRAc/Pn8qJ7k3r/42LM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0/go.mod h1:Rp0EXBm5tfnv0WL+ARyO/PHBEaEAT8UUHQ6AGJcSq6c= +go.opentelemetry.io/otel/log v0.15.0 h1:0VqVnc3MgyYd7QqNVIldC3dsLFKgazR6P3P3+ypkyDY= +go.opentelemetry.io/otel/log v0.15.0/go.mod h1:9c/G1zbyZfgu1HmQD7Qj84QMmwTp2QCQsZH1aeoWDE4= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/log v0.15.0 h1:WgMEHOUt5gjJE93yqfqJOkRflApNif84kxoHWS9VVHE= +go.opentelemetry.io/otel/sdk/log v0.15.0/go.mod h1:qDC/FlKQCXfH5hokGsNg9aUBGMJQsrUyeOiW5u+dKBQ= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0 h1:Ijbtz+JKXl8T2MngiwqBlPaHqc4YCaP/i13Qrow6gAM= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0/go.mod h1:dCU8aEL6q+L9cYTqcVOk8rM9Tp8WdnHOPLiBgp0SGOA= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +go.opentelemetry.io/proto/otlp v1.9.0 h1:l706jCMITVouPOqEnii2fIAuO3IVGBRPV5ICjceRb/A= +go.opentelemetry.io/proto/otlp v1.9.0/go.mod h1:xE+Cx5E/eEHw+ISFkwPLwCZefwVjY+pqKg1qcK03+/4= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= +go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= +golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= +golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/main.go b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/main.go new file mode 100644 index 0000000000000000000000000000000000000000..b9955484cd4375867d80460aeac5cdefc30e6fdd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/checkout/main.go @@ -0,0 +1,729 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package main + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "log/slog" + "net" + "net/http" + "os" + "os/signal" + "strconv" + "sync" + "syscall" + "time" + + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/log/global" + semconv "go.opentelemetry.io/otel/semconv/v1.24.0" + "go.opentelemetry.io/otel/trace" + + "github.com/IBM/sarama" + "github.com/google/uuid" + otelhooks "github.com/open-feature/go-sdk-contrib/hooks/open-telemetry/pkg" + flagd "github.com/open-feature/go-sdk-contrib/providers/flagd/pkg" + "github.com/open-feature/go-sdk/openfeature" + + "go.opentelemetry.io/contrib/bridges/otelslog" + "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" + "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" + "go.opentelemetry.io/contrib/instrumentation/runtime" + "go.opentelemetry.io/otel" + otelcodes "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" + "go.opentelemetry.io/otel/propagation" + + sdklog "go.opentelemetry.io/otel/sdk/log" + sdkmetric "go.opentelemetry.io/otel/sdk/metric" + sdkresource "go.opentelemetry.io/otel/sdk/resource" + sdktrace "go.opentelemetry.io/otel/sdk/trace" + + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/health" + healthpb "google.golang.org/grpc/health/grpc_health_v1" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + + pb "github.com/open-telemetry/opentelemetry-demo/src/checkout/genproto/oteldemo" + "github.com/open-telemetry/opentelemetry-demo/src/checkout/kafka" + "github.com/open-telemetry/opentelemetry-demo/src/checkout/money" +) + +//go:generate go install google.golang.org/protobuf/cmd/protoc-gen-go +//go:generate go install google.golang.org/grpc/cmd/protoc-gen-go-grpc +//go:generate protoc --go_out=./ --go-grpc_out=./ --proto_path=../../pb ../../pb/demo.proto + +var logger *slog.Logger +var tracer trace.Tracer +var resource *sdkresource.Resource +var initResourcesOnce sync.Once + +func initResource() *sdkresource.Resource { + initResourcesOnce.Do(func() { + extraResources, _ := sdkresource.New( + context.Background(), + sdkresource.WithOS(), + sdkresource.WithProcess(), + sdkresource.WithContainer(), + sdkresource.WithHost(), + ) + resource, _ = sdkresource.Merge( + sdkresource.Default(), + extraResources, + ) + }) + return resource +} + +func initTracerProvider() *sdktrace.TracerProvider { + ctx := context.Background() + + exporter, err := otlptracegrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("new otlp trace grpc exporter failed: %v", err)) + } + tp := sdktrace.NewTracerProvider( + sdktrace.WithBatcher(exporter), + sdktrace.WithResource(initResource()), + ) + otel.SetTracerProvider(tp) + otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{})) + return tp +} + +func initMeterProvider() *sdkmetric.MeterProvider { + ctx := context.Background() + + exporter, err := otlpmetricgrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("new otlp metric grpc exporter failed: %v", err)) + } + + mp := sdkmetric.NewMeterProvider( + sdkmetric.WithReader(sdkmetric.NewPeriodicReader(exporter)), + sdkmetric.WithResource(initResource()), + ) + otel.SetMeterProvider(mp) + return mp +} + +func initLoggerProvider() *sdklog.LoggerProvider { + ctx := context.Background() + + logExporter, err := otlploggrpc.New(ctx) + if err != nil { + return nil + } + + loggerProvider := sdklog.NewLoggerProvider( + sdklog.WithProcessor(sdklog.NewBatchProcessor(logExporter)), + ) + global.SetLoggerProvider(loggerProvider) + + return loggerProvider +} + +type checkout struct { + productCatalogSvcAddr string + cartSvcAddr string + currencySvcAddr string + shippingSvcAddr string + emailSvcAddr string + paymentSvcAddr string + kafkaBrokerSvcAddr string + pb.UnimplementedCheckoutServiceServer + KafkaProducerClient sarama.AsyncProducer + shippingSvcClient pb.ShippingServiceClient + productCatalogSvcClient pb.ProductCatalogServiceClient + cartSvcClient pb.CartServiceClient + currencySvcClient pb.CurrencyServiceClient + emailSvcClient pb.EmailServiceClient + paymentSvcClient pb.PaymentServiceClient +} + +func main() { + var port string + mustMapEnv(&port, "CHECKOUT_PORT") + + tp := initTracerProvider() + defer func() { + if err := tp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down tracer provider: %v", err)) + } + }() + + mp := initMeterProvider() + defer func() { + if err := mp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down meter provider: %v", err)) + } + }() + + lp := initLoggerProvider() + defer func() { + if err := lp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down logger provider: %v", err)) + } + }() + + // this *must* be called after the logger provider is initialized + // otherwise the Sarama producer in kafka/producer.go will not be + // able to log properly + logger = otelslog.NewLogger("checkout") + slog.SetDefault(logger) + + err := runtime.Start(runtime.WithMinimumReadMemStatsInterval(time.Second)) + if err != nil { + logger.Error((err.Error())) + } + + provider, err := flagd.NewProvider() + if err != nil { + logger.Error(fmt.Sprintf("Error creating flagd provider: %v", err)) + } + + openfeature.SetProvider(provider) + openfeature.AddHooks(otelhooks.NewTracesHook()) + + tracer = tp.Tracer("checkout") + + svc := new(checkout) + + mustMapEnv(&svc.shippingSvcAddr, "SHIPPING_ADDR") + c := mustCreateClient(svc.shippingSvcAddr) + svc.shippingSvcClient = pb.NewShippingServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.productCatalogSvcAddr, "PRODUCT_CATALOG_ADDR") + c = mustCreateClient(svc.productCatalogSvcAddr) + svc.productCatalogSvcClient = pb.NewProductCatalogServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.cartSvcAddr, "CART_ADDR") + c = mustCreateClient(svc.cartSvcAddr) + svc.cartSvcClient = pb.NewCartServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.currencySvcAddr, "CURRENCY_ADDR") + c = mustCreateClient(svc.currencySvcAddr) + svc.currencySvcClient = pb.NewCurrencyServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.emailSvcAddr, "EMAIL_ADDR") + c = mustCreateClient(svc.emailSvcAddr) + svc.emailSvcClient = pb.NewEmailServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.paymentSvcAddr, "PAYMENT_ADDR") + c = mustCreateClient(svc.paymentSvcAddr) + svc.paymentSvcClient = pb.NewPaymentServiceClient(c) + defer c.Close() + + svc.kafkaBrokerSvcAddr = os.Getenv("KAFKA_ADDR") + + if svc.kafkaBrokerSvcAddr != "" { + svc.KafkaProducerClient, err = kafka.CreateKafkaProducer([]string{svc.kafkaBrokerSvcAddr}, logger) + if err != nil { + logger.Error(err.Error()) + } + } + + logger.Info(fmt.Sprintf("service config: %+v", svc)) + + lis, err := net.Listen("tcp", fmt.Sprintf(":%s", port)) + if err != nil { + logger.Error(err.Error()) + } + + var srv = grpc.NewServer( + grpc.StatsHandler(otelgrpc.NewServerHandler()), + ) + pb.RegisterCheckoutServiceServer(srv, svc) + + healthcheck := health.NewServer() + healthpb.RegisterHealthServer(srv, healthcheck) + logger.Info(fmt.Sprintf("starting to listen on tcp: %q", lis.Addr().String())) + err = srv.Serve(lis) + logger.Error(err.Error()) + + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM, syscall.SIGKILL) + defer cancel() + + go func() { + if err := srv.Serve(lis); err != nil { + logger.Error(err.Error()) + } + }() + + <-ctx.Done() + + srv.GracefulStop() + logger.Info("Checkout gRPC server stopped") +} + +func mustMapEnv(target *string, envKey string) { + v := os.Getenv(envKey) + if v == "" { + panic(fmt.Sprintf("environment variable %q not set", envKey)) + } + *target = v +} + +func (cs *checkout) Check(ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { + return &healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}, nil +} + +func (cs *checkout) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") +} + +func (cs *checkout) PlaceOrder(ctx context.Context, req *pb.PlaceOrderRequest) (*pb.PlaceOrderResponse, error) { + span := trace.SpanFromContext(ctx) + span.SetAttributes( + attribute.String("app.user.id", req.UserId), + attribute.String("app.user.currency", req.UserCurrency), + ) + logger.LogAttrs( + ctx, + slog.LevelInfo, "[PlaceOrder]", + slog.String("user_id", req.UserId), + slog.String("user_currency", req.UserCurrency), + ) + + var err error + defer func() { + if err != nil { + span.RecordError(err) + } + }() + + orderID, err := uuid.NewUUID() + if err != nil { + return nil, status.Errorf(codes.Internal, "failed to generate order uuid") + } + + prep, err := cs.prepareOrderItemsAndShippingQuoteFromCart(ctx, req.UserId, req.UserCurrency, req.Address) + if err != nil { + return nil, status.Errorf(codes.Internal, err.Error()) + } + span.AddEvent("prepared") + + total := &pb.Money{CurrencyCode: req.UserCurrency, + Units: 0, + Nanos: 0} + total = money.Must(money.Sum(total, prep.shippingCostLocalized)) + for _, it := range prep.orderItems { + multPrice := money.MultiplySlow(it.Cost, uint32(it.GetItem().GetQuantity())) + total = money.Must(money.Sum(total, multPrice)) + } + + txID, err := cs.chargeCard(ctx, total, req.CreditCard) + if err != nil { + return nil, status.Errorf(codes.Internal, "failed to charge card: %+v", err) + } + + span.AddEvent("charged", + trace.WithAttributes(attribute.String("app.payment.transaction.id", txID))) + logger.LogAttrs( + ctx, + slog.LevelInfo, "payment went through", + slog.String("transaction_id", txID), + ) + + shippingTrackingID, err := cs.shipOrder(ctx, req.Address, prep.cartItems) + if err != nil { + return nil, status.Errorf(codes.Unavailable, "shipping error: %+v", err) + } + shippingTrackingAttribute := attribute.String("app.shipping.tracking.id", shippingTrackingID) + span.AddEvent("shipped", trace.WithAttributes(shippingTrackingAttribute)) + + _ = cs.emptyUserCart(ctx, req.UserId) + + orderResult := &pb.OrderResult{ + OrderId: orderID.String(), + ShippingTrackingId: shippingTrackingID, + ShippingCost: prep.shippingCostLocalized, + ShippingAddress: req.Address, + Items: prep.orderItems, + } + + shippingCostFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", prep.shippingCostLocalized.GetUnits(), prep.shippingCostLocalized.GetNanos()/1000000000), 64) + totalPriceFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", total.GetUnits(), total.GetNanos()/1000000000), 64) + + span.SetAttributes( + attribute.String("app.order.id", orderID.String()), + attribute.Float64("app.shipping.amount", shippingCostFloat), + attribute.Float64("app.order.amount", totalPriceFloat), + attribute.Int("app.order.items.count", len(prep.orderItems)), + shippingTrackingAttribute, + ) + logger.LogAttrs( + ctx, + slog.LevelInfo, "order placed", + slog.String("app.order.id", orderID.String()), + slog.Float64("app.shipping.amount", shippingCostFloat), + slog.Float64("app.order.amount", totalPriceFloat), + slog.Int("app.order.items.count", len(prep.orderItems)), + slog.String("app.shipping.tracking.id", shippingTrackingID), + ) + + if err := cs.sendOrderConfirmation(ctx, req.Email, orderResult); err != nil { + logger.Warn(fmt.Sprintf("failed to send order confirmation to %q: %+v", req.Email, err)) + } else { + logger.Info(fmt.Sprintf("order confirmation email sent to %q", req.Email)) + } + + // send to kafka only if kafka broker address is set + if cs.kafkaBrokerSvcAddr != "" { + logger.Info("sending to postProcessor") + cs.sendToPostProcessor(ctx, orderResult) + } + + resp := &pb.PlaceOrderResponse{Order: orderResult} + return resp, nil +} + +type orderPrep struct { + orderItems []*pb.OrderItem + cartItems []*pb.CartItem + shippingCostLocalized *pb.Money +} + +func (cs *checkout) prepareOrderItemsAndShippingQuoteFromCart(ctx context.Context, userID, userCurrency string, address *pb.Address) (orderPrep, error) { + + ctx, span := tracer.Start(ctx, "prepareOrderItemsAndShippingQuoteFromCart") + defer span.End() + + var out orderPrep + cartItems, err := cs.getUserCart(ctx, userID) + if err != nil { + return out, fmt.Errorf("cart failure: %+v", err) + } + orderItems, err := cs.prepOrderItems(ctx, cartItems, userCurrency) + if err != nil { + return out, fmt.Errorf("failed to prepare order: %+v", err) + } + shippingUSD, err := cs.quoteShipping(ctx, address, cartItems) + if err != nil { + return out, fmt.Errorf("shipping quote failure: %+v", err) + } + shippingPrice, err := cs.convertCurrency(ctx, shippingUSD, userCurrency) + if err != nil { + return out, fmt.Errorf("failed to convert shipping cost to currency: %+v", err) + } + + out.shippingCostLocalized = shippingPrice + out.cartItems = cartItems + out.orderItems = orderItems + + var totalCart int32 + for _, ci := range cartItems { + totalCart += ci.Quantity + } + shippingCostFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", shippingPrice.GetUnits(), shippingPrice.GetNanos()/1000000000), 64) + + span.SetAttributes( + attribute.Float64("app.shipping.amount", shippingCostFloat), + attribute.Int("app.cart.items.count", int(totalCart)), + attribute.Int("app.order.items.count", len(orderItems)), + ) + return out, nil +} + +func mustCreateClient(svcAddr string) *grpc.ClientConn { + c, err := grpc.NewClient(svcAddr, + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithStatsHandler(otelgrpc.NewClientHandler()), + ) + if err != nil { + logger.Error(fmt.Sprintf("could not connect to %s service, err: %+v", svcAddr, err)) + } + + return c +} + +func (cs *checkout) quoteShipping(ctx context.Context, address *pb.Address, items []*pb.CartItem) (*pb.Money, error) { + quotePayload, err := json.Marshal(map[string]interface{}{ + "address": address, + "items": items, + }) + if err != nil { + return nil, fmt.Errorf("failed to marshal ship order request: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.shippingSvcAddr+"/get-quote", "application/json", bytes.NewBuffer(quotePayload)) + if err != nil { + return nil, fmt.Errorf("failed POST to shipping service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return nil, fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + shippingQuoteBytes, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read shipping quote response: %+v", err) + } + + var quoteResp struct { + CostUsd *pb.Money `json:"cost_usd"` + } + if err := json.Unmarshal(shippingQuoteBytes, "eResp); err != nil { + return nil, fmt.Errorf("failed to unmarshal shipping quote: %+v", err) + } + if quoteResp.CostUsd == nil { + return nil, fmt.Errorf("shipping quote missing cost_usd field") + } + + return quoteResp.CostUsd, nil +} + +func (cs *checkout) getUserCart(ctx context.Context, userID string) ([]*pb.CartItem, error) { + cart, err := cs.cartSvcClient.GetCart(ctx, &pb.GetCartRequest{UserId: userID}) + if err != nil { + return nil, fmt.Errorf("failed to get user cart during checkout: %+v", err) + } + return cart.GetItems(), nil +} + +func (cs *checkout) emptyUserCart(ctx context.Context, userID string) error { + if _, err := cs.cartSvcClient.EmptyCart(ctx, &pb.EmptyCartRequest{UserId: userID}); err != nil { + return fmt.Errorf("failed to empty user cart during checkout: %+v", err) + } + return nil +} + +func (cs *checkout) prepOrderItems(ctx context.Context, items []*pb.CartItem, userCurrency string) ([]*pb.OrderItem, error) { + out := make([]*pb.OrderItem, len(items)) + + for i, item := range items { + product, err := cs.productCatalogSvcClient.GetProduct(ctx, &pb.GetProductRequest{Id: item.GetProductId()}) + if err != nil { + return nil, fmt.Errorf("failed to get product #%q", item.GetProductId()) + } + price, err := cs.convertCurrency(ctx, product.GetPriceUsd(), userCurrency) + if err != nil { + return nil, fmt.Errorf("failed to convert price of %q to %s", item.GetProductId(), userCurrency) + } + out[i] = &pb.OrderItem{ + Item: item, + Cost: price} + } + return out, nil +} + +func (cs *checkout) convertCurrency(ctx context.Context, from *pb.Money, toCurrency string) (*pb.Money, error) { + result, err := cs.currencySvcClient.Convert(ctx, &pb.CurrencyConversionRequest{ + From: from, + ToCode: toCurrency}) + if err != nil { + return nil, fmt.Errorf("failed to convert currency: %+v", err) + } + return result, err +} + +func (cs *checkout) chargeCard(ctx context.Context, amount *pb.Money, paymentInfo *pb.CreditCardInfo) (string, error) { + paymentService := cs.paymentSvcClient + if cs.isFeatureFlagEnabled(ctx, "paymentUnreachable") { + badAddress := "badAddress:50051" + c := mustCreateClient(badAddress) + paymentService = pb.NewPaymentServiceClient(c) + } + + paymentResp, err := paymentService.Charge(ctx, &pb.ChargeRequest{ + Amount: amount, + CreditCard: paymentInfo}) + if err != nil { + return "", fmt.Errorf("could not charge the card: %+v", err) + } + return paymentResp.GetTransactionId(), nil +} + +func (cs *checkout) sendOrderConfirmation(ctx context.Context, email string, order *pb.OrderResult) error { + emailPayload, err := json.Marshal(map[string]interface{}{ + "email": email, + "order": order, + }) + if err != nil { + return fmt.Errorf("failed to marshal order to JSON: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.emailSvcAddr+"/send_order_confirmation", "application/json", bytes.NewBuffer(emailPayload)) + if err != nil { + return fmt.Errorf("failed POST to email service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + return err +} + +func (cs *checkout) shipOrder(ctx context.Context, address *pb.Address, items []*pb.CartItem) (string, error) { + shipPayload, err := json.Marshal(map[string]interface{}{ + "address": address, + "items": items, + }) + if err != nil { + return "", fmt.Errorf("failed to marshal ship order request: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.shippingSvcAddr+"/ship-order", "application/json", bytes.NewBuffer(shipPayload)) + if err != nil { + return "", fmt.Errorf("failed POST to shipping service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return "", fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + trackingRespBytes, err := io.ReadAll(resp.Body) + if err != nil { + return "", fmt.Errorf("failed to read ship order response: %+v", err) + } + + var shipResp struct { + TrackingID string `json:"tracking_id"` + } + if err := json.Unmarshal(trackingRespBytes, &shipResp); err != nil { + return "", fmt.Errorf("failed to unmarshal ship order response: %+v", err) + } + if shipResp.TrackingID == "" { + return "", fmt.Errorf("ship order response missing tracking_id field") + } + + return shipResp.TrackingID, nil +} + +func (cs *checkout) sendToPostProcessor(ctx context.Context, result *pb.OrderResult) { + message, err := proto.Marshal(result) + if err != nil { + logger.Error(fmt.Sprintf("Failed to marshal message to protobuf: %+v", err)) + return + } + + msg := sarama.ProducerMessage{ + Topic: kafka.Topic, + Value: sarama.ByteEncoder(message), + } + + // Inject tracing info into message + span := createProducerSpan(ctx, &msg) + defer span.End() + + // Send message and handle response + startTime := time.Now() + select { + case cs.KafkaProducerClient.Input() <- &msg: + select { + case successMsg := <-cs.KafkaProducerClient.Successes(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", true), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + attribute.KeyValue(semconv.MessagingKafkaMessageOffset(int(successMsg.Offset))), + ) + logger.Info(fmt.Sprintf("Successful to write message. offset: %v, duration: %v", successMsg.Offset, time.Since(startTime))) + case errMsg := <-cs.KafkaProducerClient.Errors(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, errMsg.Err.Error()) + logger.Error(fmt.Sprintf("Failed to write message: %v", errMsg.Err)) + case <-ctx.Done(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, "Context cancelled: "+ctx.Err().Error()) + logger.Warn(fmt.Sprintf("Context canceled before success message received: %v", ctx.Err())) + } + case <-ctx.Done(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, "Failed to send: "+ctx.Err().Error()) + logger.Error(fmt.Sprintf("Failed to send message to Kafka within context deadline: %v", ctx.Err())) + return + } + + ffValue := cs.getIntFeatureFlag(ctx, "kafkaQueueProblems") + if ffValue > 0 { + logger.Info("Warning: FeatureFlag 'kafkaQueueProblems' is activated, overloading queue now.") + for i := 0; i < ffValue; i++ { + go func(i int) { + cs.KafkaProducerClient.Input() <- &msg + _ = <-cs.KafkaProducerClient.Successes() + }(i) + } + logger.Info(fmt.Sprintf("Done with #%d messages for overload simulation.", ffValue)) + } +} + +func createProducerSpan(ctx context.Context, msg *sarama.ProducerMessage) trace.Span { + spanContext, span := tracer.Start( + ctx, + fmt.Sprintf("%s publish", msg.Topic), + trace.WithSpanKind(trace.SpanKindProducer), + trace.WithAttributes( + semconv.PeerService("kafka"), + semconv.NetworkTransportTCP, + semconv.MessagingSystemKafka, + semconv.MessagingDestinationName(msg.Topic), + semconv.MessagingOperationPublish, + semconv.MessagingKafkaDestinationPartition(int(msg.Partition)), + ), + ) + + carrier := propagation.MapCarrier{} + propagator := otel.GetTextMapPropagator() + propagator.Inject(spanContext, carrier) + + for key, value := range carrier { + msg.Headers = append(msg.Headers, sarama.RecordHeader{Key: []byte(key), Value: []byte(value)}) + } + + return span +} + +func (cs *checkout) isFeatureFlagEnabled(ctx context.Context, featureFlagName string) bool { + client := openfeature.NewClient("checkout") + + // Default value is set to false, but you could also make this a parameter. + featureEnabled, _ := client.BooleanValue( + ctx, + featureFlagName, + false, + openfeature.EvaluationContext{}, + ) + + return featureEnabled +} + +func (cs *checkout) getIntFeatureFlag(ctx context.Context, featureFlagName string) int { + client := openfeature.NewClient("checkout") + + // Default value is set to 0, but you could also make this a parameter. + featureFlagValue, _ := client.IntValue( + ctx, + featureFlagName, + 0, + openfeature.EvaluationContext{}, + ) + + return int(featureFlagValue) +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/currency/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/currency/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..60f7a084b20d1ffc2a79a407e49f24ce225bab24 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/currency/Dockerfile @@ -0,0 +1,58 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2023 The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM docker.io/library/alpine:3.21 AS base + +RUN apk update && \ + apk add grpc-dev protobuf-dev + +FROM base AS builder + +RUN apk add git cmake make g++ linux-headers + +ARG OPENTELEMETRY_CPP_VERSION + +RUN git clone --depth 1 --branch v${OPENTELEMETRY_CPP_VERSION} https://github.com/open-telemetry/opentelemetry-cpp \ + && cd opentelemetry-cpp/ \ + && mkdir build \ + && cd build \ + && cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \ + -DWITH_EXAMPLES=OFF -DWITH_OTLP_GRPC=ON -DWITH_ABSEIL=ON \ + && make -j$(nproc || sysctl -n hw.ncpu || echo 1) install && cd ../.. + +WORKDIR /currency + +COPY ./src/currency/build/ build/ +COPY ./src/currency/proto/ proto/ +COPY ./src/currency/src/ src/ + +COPY ./src/currency/genproto/CMakeLists.txt genproto/CMakeLists.txt +COPY ./src/currency/CMakeLists.txt CMakeLists.txt + +COPY ./pb/demo.proto proto/demo.proto + +RUN mkdir -p build && cd build \ + && cmake .. \ + && make -j$(nproc || sysctl -n hw.ncpu || echo 1) install + +FROM base AS release + +COPY --from=builder /usr/local /usr/local + +EXPOSE ${CURRENCY_PORT} + +ENTRYPOINT ["sh", "-c", "./usr/local/bin/currency ${CURRENCY_PORT}"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/application.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/application.ex new file mode 100644 index 0000000000000000000000000000000000000000..732e4d0a8eb8ecfe806419f366d507dfc1a595e2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/application.ex @@ -0,0 +1,43 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUi.Application do + # See https://hexdocs.pm/elixir/Application.html + # for more information on OTP Applications + @moduledoc false + + use Application + + @impl true + def start(_type, _args) do + # Ensure inets is started before OpenTelemetry initialization + :ok = Application.ensure_started(:inets) + + children = [ + FlagdUiWeb.Telemetry, + {DNSCluster, query: Application.get_env(:flagd_ui, :dns_cluster_query) || :ignore}, + {Phoenix.PubSub, name: FlagdUi.PubSub}, + FlagdUi.Storage, + # Start a worker by calling: FlagdUi.Worker.start_link(arg) + # {FlagdUi.Worker, arg}, + # Start to serve requests, typically the last entry + FlagdUiWeb.Endpoint + ] + + OpentelemetryBandit.setup() + OpentelemetryPhoenix.setup(adapter: :bandit) + + # See https://hexdocs.pm/elixir/Supervisor.html + # for other strategies and supported options + opts = [strategy: :one_for_one, name: FlagdUi.Supervisor] + Supervisor.start_link(children, opts) + end + + # Tell Phoenix to update the endpoint configuration + # whenever the application is updated. + @impl true + def config_change(changed, _new, removed) do + FlagdUiWeb.Endpoint.config_change(changed, removed) + :ok + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/mailer.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/mailer.ex new file mode 100644 index 0000000000000000000000000000000000000000..c22a8627a51d1a4821e0cc4429f31d5990fda892 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui/mailer.ex @@ -0,0 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUi.Mailer do + use Swoosh.Mailer, otp_app: :flagd_ui +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/core_components.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/core_components.ex new file mode 100644 index 0000000000000000000000000000000000000000..5792123d4f45de716e4aee1056b29c1b1a3c8af5 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/core_components.ex @@ -0,0 +1,464 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.CoreComponents do + @moduledoc """ + Provides core UI components. + + At first glance, this module may seem daunting, but its goal is to provide + core building blocks for your application, such as tables, forms, and + inputs. The components consist mostly of markup and are well-documented + with doc strings and declarative assigns. You may customize and style + them in any way you want, based on your application growth and needs. + + The foundation for styling is Tailwind CSS, a utility-first CSS framework, + augmented with daisyUI, a Tailwind CSS plugin that provides UI components + and themes. Here are useful references: + + * [daisyUI](https://daisyui.com/docs/intro/) - a good place to get + started and see the available components. + + * [Tailwind CSS](https://tailwindcss.com) - the foundational framework + we build on. You will use it for layout, sizing, flexbox, grid, and + spacing. + + * [Heroicons](https://heroicons.com) - see `icon/1` for usage. + + * [Phoenix.Component](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html) - + the component system used by Phoenix. Some components, such as `<.link>` + and `<.form>`, are defined there. + + """ + use Phoenix.Component + use Gettext, backend: FlagdUiWeb.Gettext + + alias Phoenix.LiveView.JS + + @doc """ + Renders flash notices. + + ## Examples + + <.flash kind={:info} flash={@flash} /> + <.flash kind={:info} phx-mounted={show("#flash")}>Welcome Back! + """ + attr :id, :string, doc: "the optional id of flash container" + attr :flash, :map, default: %{}, doc: "the map of flash messages to display" + attr :title, :string, default: nil + attr :kind, :atom, values: [:info, :error], doc: "used for styling and flash lookup" + attr :rest, :global, doc: "the arbitrary HTML attributes to add to the flash container" + + slot :inner_block, doc: "the optional inner block that renders the flash message" + + def flash(assigns) do + assigns = assign_new(assigns, :id, fn -> "flash-#{assigns.kind}" end) + + ~H""" +
hide("##{@id}")} + role="alert" + class="toast toast-top toast-end z-50" + {@rest} + > +
+ <.icon :if={@kind == :info} name="hero-information-circle-mini" class="size-5 shrink-0" /> + <.icon :if={@kind == :error} name="hero-exclamation-circle-mini" class="size-5 shrink-0" /> +
+

{@title}

+

{msg}

+
+
+ +
+
+ """ + end + + @doc """ + Renders a button with navigation support. + + ## Examples + + <.button>Send! + <.button phx-click="go" variant="primary">Send! + <.button navigate={~p"/"}>Home + """ + attr :rest, :global, include: ~w(href navigate patch) + attr :variant, :string, values: ~w(primary) + slot :inner_block, required: true + + def button(%{rest: rest} = assigns) do + variants = %{"primary" => "btn-primary", nil => "btn-primary btn-soft"} + assigns = assign(assigns, :class, Map.fetch!(variants, assigns[:variant])) + + if rest[:href] || rest[:navigate] || rest[:patch] do + ~H""" + <.link class={["btn", @class]} {@rest}> + {render_slot(@inner_block)} + + """ + else + ~H""" + + """ + end + end + + @doc """ + Renders an input with label and error messages. + + A `Phoenix.HTML.FormField` may be passed as argument, + which is used to retrieve the input name, id, and values. + Otherwise all attributes may be passed explicitly. + + ## Types + + This function accepts all HTML input types, considering that: + + * You may also set `type="select"` to render a ` + + {@label} + + + <.error :for={msg <- @errors}>{msg} + + """ + end + + def input(%{type: "select"} = assigns) do + ~H""" +
+ + <.error :for={msg <- @errors}>{msg} +
+ """ + end + + def input(%{type: "textarea"} = assigns) do + ~H""" +
+ + <.error :for={msg <- @errors}>{msg} +
+ """ + end + + # All other inputs text, datetime-local, url, password, etc. are handled here... + def input(assigns) do + ~H""" +
+ + <.error :for={msg <- @errors}>{msg} +
+ """ + end + + # Helper used by inputs to generate form errors + defp error(assigns) do + ~H""" +

+ <.icon name="hero-exclamation-circle-mini" class="size-5" /> + {render_slot(@inner_block)} +

+ """ + end + + @doc """ + Renders a header with title. + """ + attr :class, :string, default: nil + + slot :inner_block, required: true + slot :subtitle + slot :actions + + def header(assigns) do + ~H""" +
+
+

+ {render_slot(@inner_block)} +

+

+ {render_slot(@subtitle)} +

+
+
{render_slot(@actions)}
+
+ """ + end + + @doc ~S""" + Renders a table with generic styling. + + ## Examples + + <.table id="users" rows={@users}> + <:col :let={user} label="id">{user.id} + <:col :let={user} label="username">{user.username} + + """ + attr :id, :string, required: true + attr :rows, :list, required: true + attr :row_id, :any, default: nil, doc: "the function for generating the row id" + attr :row_click, :any, default: nil, doc: "the function for handling phx-click on each row" + + attr :row_item, :any, + default: &Function.identity/1, + doc: "the function for mapping each row before calling the :col and :action slots" + + slot :col, required: true do + attr :label, :string + end + + slot :action, doc: "the slot for showing user actions in the last table column" + + def table(assigns) do + assigns = + with %{rows: %Phoenix.LiveView.LiveStream{}} <- assigns do + assign(assigns, row_id: assigns.row_id || fn {id, _item} -> id end) + end + + ~H""" + + + + + + + + + + + + + +
{col[:label]} + {gettext("Actions")} +
+ {render_slot(col, @row_item.(row))} + +
+ <%= for action <- @action do %> + {render_slot(action, @row_item.(row))} + <% end %> +
+
+ """ + end + + @doc """ + Renders a data list. + + ## Examples + + <.list> + <:item title="Title">{@post.title} + <:item title="Views">{@post.views} + + """ + slot :item, required: true do + attr :title, :string, required: true + end + + def list(assigns) do + ~H""" +
    +
  • +
    +
    {item.title}
    +
    {render_slot(item)}
    +
    +
  • +
+ """ + end + + @doc """ + Renders a [Heroicon](https://heroicons.com). + + Heroicons come in three styles – outline, solid, and mini. + By default, the outline style is used, but solid and mini may + be applied by using the `-solid` and `-mini` suffix. + + You can customize the size and colors of the icons by setting + width, height, and background color classes. + + Icons are extracted from the `deps/heroicons` directory and bundled within + your compiled app.css by the plugin in `assets/vendor/heroicons.js`. + + ## Examples + + <.icon name="hero-x-mark-solid" /> + <.icon name="hero-arrow-path" class="ml-1 size-3 motion-safe:animate-spin" /> + """ + attr :name, :string, required: true + attr :class, :string, default: "size-4" + + def icon(%{name: "hero-" <> _} = assigns) do + ~H""" + + """ + end + + ## JS Commands + + def show(js \\ %JS{}, selector) do + JS.show(js, + to: selector, + time: 300, + transition: + {"transition-all ease-out duration-300", + "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", + "opacity-100 translate-y-0 sm:scale-100"} + ) + end + + def hide(js \\ %JS{}, selector) do + JS.hide(js, + to: selector, + time: 200, + transition: + {"transition-all ease-in duration-200", "opacity-100 translate-y-0 sm:scale-100", + "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"} + ) + end + + @doc """ + Translates an error message using gettext. + """ + def translate_error({msg, opts}) do + # When using gettext, we typically pass the strings we want + # to translate as a static argument: + # + # # Translate the number of files with plural rules + # dngettext("errors", "1 file", "%{count} files", count) + # + # However the error messages in our forms and APIs are generated + # dynamically, so we need to translate them by calling Gettext + # with our gettext backend as first argument. Translations are + # available in the errors.po file (as we use the "errors" domain). + if count = opts[:count] do + Gettext.dngettext(FlagdUiWeb.Gettext, "errors", msg, msg, count, opts) + else + Gettext.dgettext(FlagdUiWeb.Gettext, "errors", msg, opts) + end + end + + @doc """ + Translates the errors for a field from a keyword list of errors. + """ + def translate_errors(errors, field) when is_list(errors) do + for {^field, {msg, opts}} <- errors, do: translate_error({msg, opts}) + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts.ex new file mode 100644 index 0000000000000000000000000000000000000000..164da11a4fdab48195a2540379173a26f5485456 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts.ex @@ -0,0 +1,111 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.Layouts do + @moduledoc """ + This module holds different layouts used by your application. + + See the `layouts` directory for all templates available. + The "root" layout is a skeleton rendered as part of the + application router. The "app" layout is rendered as component + in regular views and live views. + """ + use FlagdUiWeb, :html + + embed_templates "layouts/*" + + def app(assigns) do + ~H""" + + +
+
+ {render_slot(@inner_block)} +
+
+ + <.flash_group flash={@flash} /> + """ + end + + @doc """ + Shows the flash group with standard titles and content. + + ## Examples + + <.flash_group flash={@flash} /> + """ + attr :flash, :map, required: true, doc: "the map of flash messages" + attr :id, :string, default: "flash-group", doc: "the optional id of flash container" + + def flash_group(assigns) do + ~H""" +
+ <.flash kind={:info} flash={@flash} /> + <.flash kind={:error} flash={@flash} /> + + <.flash + id="client-error" + kind={:error} + title={gettext("We can't find the internet")} + phx-disconnected={show(".phx-client-error #client-error") |> JS.remove_attribute("hidden")} + phx-connected={hide("#client-error") |> JS.set_attribute({"hidden", ""})} + hidden + > + {gettext("Attempting to reconnect")} + <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" /> + + + <.flash + id="server-error" + kind={:error} + title={gettext("Something went wrong!")} + phx-disconnected={show(".phx-client-error #client-error") |> JS.remove_attribute("hidden")} + phx-connected={hide("#client-error") |> JS.set_attribute({"hidden", ""})} + hidden + > + {gettext("Hang in there while we get back on track")} + <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" /> + +
+ """ + end + + @doc """ + Provides dark vs light theme toggle based on themes defined in app.css. + + See in root.html.heex which applies the theme before page load. + """ + def theme_toggle(assigns) do + ~H""" +
+
+ + + + + + +
+ """ + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts/root.html.heex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts/root.html.heex new file mode 100644 index 0000000000000000000000000000000000000000..010a5527e5e912597b7537417b5411366b45e9e0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/layouts/root.html.heex @@ -0,0 +1,34 @@ + + + + + + + + <.live_title default="Flagd-ui"> + {assigns[:page_title]} + + + + + + + {@inner_content} + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/navbar.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/navbar.ex new file mode 100644 index 0000000000000000000000000000000000000000..b224f51572c0acebf70f8418c860abea7774fb42 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/components/navbar.ex @@ -0,0 +1,41 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.Components.Navbar do + use Phoenix.Component + use FlagdUiWeb, :live_view + + attr :mode, :string, default: "basic", doc: "the view currently displaying" + + def navbar(assigns) do + ~H""" + + """ + end + + defp classes(route, route), + do: + "rounded-md px-3 py-2 text-sm font-medium bg-blue-700 text-white underline underline-offset-4 transition-all duration-200" + + defp classes(_, _), + do: + "rounded-md px-3 py-2 text-sm font-medium text-gray-300 hover:bg-gray-700 hover:text-white transition-all duration-200" +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_html.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_html.ex new file mode 100644 index 0000000000000000000000000000000000000000..3440c0d781683c77842fde98840dc42220d62657 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_html.ex @@ -0,0 +1,27 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.ErrorHTML do + @moduledoc """ + This module is invoked by your endpoint in case of errors on HTML requests. + + See config/config.exs. + """ + use FlagdUiWeb, :html + + # If you want to customize your error pages, + # uncomment the embed_templates/1 call below + # and add pages to the error directory: + # + # * lib/flagd_ui_web/controllers/error_html/404.html.heex + # * lib/flagd_ui_web/controllers/error_html/500.html.heex + # + # embed_templates "error_html/*" + + # The default is to render a plain text page based on + # the template name. For example, "404.html" becomes + # "Not Found". + def render(template, _assigns) do + Phoenix.Controller.status_message_from_template(template) + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_json.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_json.ex new file mode 100644 index 0000000000000000000000000000000000000000..a726099d53dfb02a74905725bbcd9763deaca8a0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/error_json.ex @@ -0,0 +1,24 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.ErrorJSON do + @moduledoc """ + This module is invoked by your endpoint in case of errors on JSON requests. + + See config/config.exs. + """ + + # If you want to customize a particular status code, + # you may add your own clauses, such as: + # + # def render("500.json", _assigns) do + # %{errors: %{detail: "Internal Server Error"}} + # end + + # By default, Phoenix returns the status message from + # the template name. For example, "404.json" becomes + # "Not Found". + def render(template, _assigns) do + %{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}} + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/feature_controller.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/feature_controller.ex new file mode 100644 index 0000000000000000000000000000000000000000..906971aef94e872b202af247a282d9e241246bb4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/feature_controller.ex @@ -0,0 +1,19 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.FeatureController do + use FlagdUiWeb, :controller + + def read(conn, _params) do + %{"flags" => flags} = GenServer.call(Storage, :read) + + json(conn, %{"flags" => flags}) + end + + def write(conn, %{"data" => data}) do + payload = Jason.encode!(data) + GenServer.cast(Storage, {:replace, payload}) + + json(conn, %{}) + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/page_html.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/page_html.ex new file mode 100644 index 0000000000000000000000000000000000000000..fc146631f235ba9125b1a0a85bba9297b2dd79be --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/controllers/page_html.ex @@ -0,0 +1,13 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.PageHTML do + @moduledoc """ + This module contains pages rendered by PageController. + + See the `page_html` directory for all templates available. + """ + use FlagdUiWeb, :html + + embed_templates "page_html/*" +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/advanced_editor.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/advanced_editor.ex new file mode 100644 index 0000000000000000000000000000000000000000..fbecaa8798692b0605bc06f28f7a74a22bcd0e7c --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/advanced_editor.ex @@ -0,0 +1,92 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.AdvancedEditor do + use FlagdUiWeb, :live_view + + alias FlagdUiWeb.CoreComponents + alias FlagdUiWeb.Components.Navbar + + def mount(_, _, socket) do + state = GenServer.call(Storage, :read) + content = Jason.encode!(state, pretty: true) + + {:ok, + socket + |> assign(content: content) + |> assign(unsaved_changes: false)} + end + + def render(assigns) do + ~H""" +
+ + + + + +
+ <.form for={%{}}> + +
+ +

Unsaved changes

+
+ +
+
+ """ + end + + def handle_event("edit", payload, socket) do + %{"content" => content} = payload + + {:noreply, + socket + |> assign(content: content) + |> assign(unsaved_changes: true)} + end + + def handle_event( + "save", + _, + %{ + assigns: %{ + content: content + } + } = socket + ) do + new_socket = + case Jason.decode(content) do + {:ok, _} -> + trimmed_content = String.trim(content) + + GenServer.cast(Storage, {:replace, trimmed_content}) + + socket + |> assign(unsaved_changes: false) + |> assign(content: trimmed_content) + |> clear_flash() + |> put_flash(:info, "Saved!") + + {:error, _} -> + put_flash(socket, :error, "Invalid JSON") + end + + {:noreply, new_socket} + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/dashboard.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/dashboard.ex new file mode 100644 index 0000000000000000000000000000000000000000..cacd1d8f91146b50403e35bf527c63723f798867 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web/live/dashboard.ex @@ -0,0 +1,66 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.Dashboard do + use FlagdUiWeb, :live_view + + alias FlagdUiWeb.CoreComponents + alias FlagdUiWeb.Components.Navbar + + def mount(_, _, socket) do + %{"flags" => flags} = GenServer.call(Storage, :read) + {:ok, socket |> assign(:flags, flags)} + end + + def render(assigns) do + ~H""" +
+ + + + + + <.form for={@flags}> +
+
+
+
+

{name}

+

{data["description"]}

+
+
+
+ +
+
+
+
+
+ +
+ """ + end + + def handle_event("flag_changed", payload, socket) do + %{"_target" => [target]} = payload + variant = payload[target] + + GenServer.cast(Storage, {:write, target, variant}) + + new_socket = put_flash(socket, :info, "Saved: #{target}") + + {:noreply, new_socket} + end + + defp get_variants(%{"variants" => variants}), do: Enum.map(variants, fn {key, _} -> key end) + defp get_variants(_), do: [] +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server new file mode 100644 index 0000000000000000000000000000000000000000..c1ed5349c49e04e94cfe828f94a0da1e0cb247f7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server @@ -0,0 +1,5 @@ +#!/bin/sh +set -eu + +cd -P -- "$(dirname -- "$0")" +PHX_SERVER=true exec ./flagd_ui start diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server.bat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server.bat new file mode 100644 index 0000000000000000000000000000000000000000..0cef854674eff330c996e479e540a3a803aa92f3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/rel/overlays/bin/server.bat @@ -0,0 +1,2 @@ +set PHX_SERVER=true +call "%~dp0\flagd_ui" start diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui/storage_test.exs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui/storage_test.exs new file mode 100644 index 0000000000000000000000000000000000000000..48deacd873169a1d4ec2463980a743b87b9457b7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui/storage_test.exs @@ -0,0 +1,23 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUi.StorageTest do + use ExUnit.Case + + alias FlagdUi.Storage + + describe "Storage server" do + test "start_link/3" do + {:ok, _} = start_supervised({Storage, [name: TestedStorage]}) + + stop_supervised(TestedStorage) + end + + test "start_link/3 but already running" do + {:ok, _} = start_supervised({Storage, [name: TestedStorage]}) + {:error, {:already_started, _}} = start_supervised({Storage, [name: TestedStorage]}) + + stop_supervised(TestedStorage) + end + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_html_test.exs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_html_test.exs new file mode 100644 index 0000000000000000000000000000000000000000..d312683c09d2a2ca90548daacb6c47ab537c4cb8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_html_test.exs @@ -0,0 +1,17 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.ErrorHTMLTest do + use FlagdUiWeb.ConnCase, async: true + + # Bring render_to_string/4 for testing custom views + import Phoenix.Template, only: [render_to_string: 4] + + test "renders 404.html" do + assert render_to_string(FlagdUiWeb.ErrorHTML, "404", "html", []) == "Not Found" + end + + test "renders 500.html" do + assert render_to_string(FlagdUiWeb.ErrorHTML, "500", "html", []) == "Internal Server Error" + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_json_test.exs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_json_test.exs new file mode 100644 index 0000000000000000000000000000000000000000..eddd05e9ff618aa41ed2acd91756e656fa8fa042 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/error_json_test.exs @@ -0,0 +1,15 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.ErrorJSONTest do + use FlagdUiWeb.ConnCase, async: true + + test "renders 404" do + assert FlagdUiWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}} + end + + test "renders 500" do + assert FlagdUiWeb.ErrorJSON.render("500.json", %{}) == + %{errors: %{detail: "Internal Server Error"}} + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/feature_controller_test.exs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/feature_controller_test.exs new file mode 100644 index 0000000000000000000000000000000000000000..8d24cc3d81c82c11e4a641d93d88cb161b299697 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/feature_controller_test.exs @@ -0,0 +1,136 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.FeatureControllerTest do + use FlagdUiWeb.ConnCase + + setup do + file_content = GenServer.call(Storage, :read) + + on_exit(fn -> + GenServer.cast(Storage, {:replace, Jason.encode!(file_content)}) + end) + end + + test "GET /api/read", %{conn: conn} do + conn = get(conn, ~p"/api/read") + + assert %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => false, "on" => true} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => false, "on" => true} + } + } + } = json_response(conn, 200) + end + + test "GET /api/read-file (legacy API)", %{conn: conn} do + conn = get(conn, ~p"/api/read-file") + + assert %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => false, "on" => true} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => false, "on" => true} + } + } + } = json_response(conn, 200) + end + + test "POST /api/write", %{conn: conn} do + data = %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + } + } + } + + conn = post(conn, ~p"/api/write", %{"data" => data}) + + conn = get(conn, ~p"/api/read") + + assert %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + } + } + } = json_response(conn, 200) + end + + test "POST /api/write-to-file (legacy API)", %{conn: conn} do + data = %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + } + } + } + + conn = post(conn, ~p"/api/write-to-file", %{"data" => data}) + + conn = get(conn, ~p"/api/read-file") + + assert %{ + "flags" => %{ + "adFailure" => %{ + "defaultVariant" => "off", + "description" => "Fail ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + }, + "adHighCpu" => %{ + "defaultVariant" => "off", + "description" => "Triggers high cpu load in the ad service", + "state" => "ENABLED", + "variants" => %{"off" => true, "on" => false} + } + } + } = json_response(conn, 200) + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/page_controller_test.exs b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/page_controller_test.exs new file mode 100644 index 0000000000000000000000000000000000000000..14f8f985c200af0ebe838d0164c9d4a34c6e3529 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/flagd_ui_web/controllers/page_controller_test.exs @@ -0,0 +1,11 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.PageControllerTest do + use FlagdUiWeb.ConnCase + + test "GET /", %{conn: conn} do + conn = get(conn, ~p"/") + assert html_response(conn, 200) =~ "Flagd Configurator" + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/support/conn_case.ex b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/support/conn_case.ex new file mode 100644 index 0000000000000000000000000000000000000000..5eb1915ac5bd3cfefa60f80977ae4d3faddc119a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd-ui/test/support/conn_case.ex @@ -0,0 +1,40 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb.ConnCase do + @moduledoc """ + This module defines the test case to be used by + tests that require setting up a connection. + + Such tests rely on `Phoenix.ConnTest` and also + import other functionality to make it easier + to build common data structures and query the data layer. + + Finally, if the test case interacts with the database, + we enable the SQL sandbox, so changes done to the database + are reverted at the end of every test. If you are using + PostgreSQL, you can even run database tests asynchronously + by setting `use FlagdUiWeb.ConnCase, async: true`, although + this option is not recommended for other databases. + """ + + use ExUnit.CaseTemplate + + using do + quote do + # The default endpoint for testing + @endpoint FlagdUiWeb.Endpoint + + use FlagdUiWeb, :verified_routes + + # Import conveniences for testing with connections + import Plug.Conn + import Phoenix.ConnTest + import FlagdUiWeb.ConnCase + end + end + + setup _tags do + {:ok, conn: Phoenix.ConnTest.build_conn()} + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd/demo.flagd.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd/demo.flagd.json new file mode 100644 index 0000000000000000000000000000000000000000..3e766e9fde1d3b01f77c9950d23e3178b288e2e7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/flagd/demo.flagd.json @@ -0,0 +1,150 @@ +{ + "$schema": "https://flagd.dev/schema/v0/flags.json", + "flags": { + "llmInaccurateResponse": { + "defaultVariant": "off", + "description": "LLM returns an inaccurate product summary for product ID L9ECAV7KIM", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "llmRateLimitError": { + "defaultVariant": "off", + "description": "LLM intermittently returns a rate limit error", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "productCatalogFailure": { + "description": "Fail product catalog service on a specific product", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "recommendationCacheFailure": { + "description": "Fail recommendation service cache", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adManualGc": { + "description": "Triggers full manual garbage collections in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adHighCpu": { + "description": "Triggers high cpu load in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adFailure": { + "description": "Fail ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "kafkaQueueProblems": { + "description": "Overloads Kafka queue while simultaneously introducing a consumer side delay leading to a lag spike", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "cartFailure": { + "description": "Fail cart service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "paymentFailure": { + "description": "Fail payment service charge requests n%", + "state": "ENABLED", + "variants": { + "100%": 1, + "90%": 0.95, + "75%": 0.75, + "50%": 0.5, + "25%": 0.25, + "10%": 0.1, + "off": 0 + }, + "defaultVariant": "off" + }, + "paymentUnreachable": { + "description": "Payment service is unavailable", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "loadGeneratorFloodHomepage": { + "description": "Flood the frontend with a large amount of requests.", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "imageSlowLoad": { + "description": "slow loading images in the frontend", + "state": "ENABLED", + "variants": { + "10sec": 10000, + "5sec": 5000, + "off": 0 + }, + "defaultVariant": "off" + }, + "failedReadinessProbe": { + "description": "readiness probe failure for cart service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "emailMemoryLeak": { + "description": "Memory leak in the email service.", + "state": "ENABLED", + "variants": { + "off": 0, + "1x": 1, + "10x": 10, + "100x": 100, + "1000x": 1000, + "10000x": 10000 + }, + "defaultVariant": "off" + } + } +} \ No newline at end of file diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b4972d2acbe9ce4ae00cce1b69e4608a1d29dfd1 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile @@ -0,0 +1,19 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM envoyproxy/envoy:v1.34-latest + +RUN apt-get update && \ + apt-get install -y gettext-base && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +USER envoy + +WORKDIR /home/envoy + +COPY ./src/frontend-proxy/envoy.tmpl.yaml envoy.tmpl.yaml + +EXPOSE ${ENVOY_PORT} +EXPOSE ${ENVOY_ADMIN_PORT} +ENTRYPOINT ["/bin/sh", "-c", "envsubst < envoy.tmpl.yaml > envoy.yaml && envoy -c envoy.yaml;"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/README.md new file mode 100644 index 0000000000000000000000000000000000000000..27988e5c168ed3cd1752b6192fbc0384608ca0a0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/README.md @@ -0,0 +1,8 @@ +# Frontend Proxy Service + +This service acts as a reverse proxy for the various user-facing web interfaces. + +## Modifying the Envoy Configuration + +The envoy configuration is generated from the `envoy.tmpl.yaml` file in this +directory. Environment variables are substituted at deploy-time. diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f74a1c1def58718d625685342f1cfb03c74eb19 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml @@ -0,0 +1,258 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +static_resources: + listeners: + - address: + socket_address: + address: "${ENVOY_ADDR}" + port_value: ${ENVOY_PORT} + filter_chains: + - filters: + - name: envoy.filters.network.http_connection_manager + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + codec_type: AUTO + stat_prefix: ingress_http + tracing: + spawn_upstream_span: true + provider: + name: envoy.tracers.opentelemetry + typed_config: + "@type": type.googleapis.com/envoy.config.trace.v3.OpenTelemetryConfig + grpc_service: + envoy_grpc: + cluster_name: opentelemetry_collector_grpc + timeout: 0.250s + service_name: ${OTEL_SERVICE_NAME} + resource_detectors: + - name: envoy.tracers.opentelemetry.resource_detectors.environment + typed_config: + "@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.resource_detectors.v3.EnvironmentResourceDetectorConfig + route_config: + name: local_route + virtual_hosts: + - name: frontend + domains: + - "*" + routes: + - match: { path: "/loadgen" } + redirect: { path_redirect: "/loadgen/" } + - match: { prefix: "/loadgen/" } + route: { cluster: loadgen, prefix_rewrite: "/" } + - match: { prefix: "/otlp-http/" } + route: { cluster: opentelemetry_collector_http, prefix_rewrite: "/" } + - match: { path: "/jaeger" } + redirect: { path_redirect: "/jaeger/" } + - match: { prefix: "/jaeger/" } + route: { cluster: jaeger } + - match: { path: "/grafana" } + redirect: { path_redirect: "/grafana/" } + - match: { prefix: "/grafana/" } + route: { cluster: grafana } + - match: { prefix: "/images/" } + route: { cluster: image-provider, prefix_rewrite: "/" } + - match: { prefix: "/flagservice/" } + route: { cluster: flagservice, prefix_rewrite: "/", timeout: 0s } + - match: { prefix: "/feature" } + route: + cluster: flagd-ui + prefix_rewrite: "/" + upgrade_configs: + - upgrade_type: websocket + - match: { prefix: "/" } # Default/catch-all route - keep last since prefix:"/" matches everything + route: { cluster: frontend } + http_filters: + - name: envoy.filters.http.fault + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault + max_active_faults: 100 + delay: + header_delay: {} + percentage: + numerator: 100 + - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + access_log: + - name: envoy.access_loggers.open_telemetry + typed_config: + "@type": "type.googleapis.com/envoy.extensions.access_loggers.open_telemetry.v3.OpenTelemetryAccessLogConfig" + common_config: + log_name: "otel_envoy_access_log" + grpc_service: + envoy_grpc: + cluster_name: opentelemetry_collector_grpc + transport_api_version: "V3" + body: + # yamllint disable-line rule:line-length + string_value: "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% \"%UPSTREAM_TRANSPORT_FAILURE_REASON%\" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME%\n" + resource_attributes: + values: + - key: "service.name" + value: + string_value: ${OTEL_SERVICE_NAME} + attributes: + values: + - key: "destination.address" + value: + string_value: "%UPSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%" + - key: "event.name" + value: + string_value: "proxy.access" + - key: "server.address" + value: + string_value: "%DOWNSTREAM_LOCAL_ADDRESS%" + - key: "source.address" + value: + string_value: "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%" + - key: "upstream.cluster" + value: + string_value: "%UPSTREAM_CLUSTER%" + - key: "upstream.host" + value: + string_value: "%UPSTREAM_HOST%" + - key: "user_agent.original" + value: + string_value: "%REQ(USER-AGENT)%" + - key: "url.full" + value: + string_value: "%REQ(:SCHEME)%://%REQ(:AUTHORITY)%%REQ(:PATH)%" + - key: "url.path" + value: + string_value: "%REQ(:PATH)%" + - key: "url.query" + value: + string_value: "%REQ(:QUERY)%" + - key: "url.template" + value: + string_value: "%ROUTE_NAME%" + clusters: + - name: opentelemetry_collector_grpc + type: STRICT_DNS + lb_policy: ROUND_ROBIN + typed_extension_protocol_options: + envoy.extensions.upstreams.http.v3.HttpProtocolOptions: + "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions + explicit_http_config: + http2_protocol_options: {} + load_assignment: + cluster_name: opentelemetry_collector_grpc + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${OTEL_COLLECTOR_HOST} + port_value: ${OTEL_COLLECTOR_PORT_GRPC} + - name: opentelemetry_collector_http + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: opentelemetry_collector_http + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${OTEL_COLLECTOR_HOST} + port_value: ${OTEL_COLLECTOR_PORT_HTTP} + - name: frontend + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: frontend + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FRONTEND_HOST} + port_value: ${FRONTEND_PORT} + - name: image-provider + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: image-provider + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${IMAGE_PROVIDER_HOST} + port_value: ${IMAGE_PROVIDER_PORT} + - name: flagservice + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: flagservice + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FLAGD_HOST} + port_value: ${FLAGD_PORT} + - name: flagd-ui + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: flagd-ui + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FLAGD_UI_HOST} + port_value: ${FLAGD_UI_PORT} + - name: loadgen + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: loadgen + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${LOCUST_WEB_HOST} + port_value: ${LOCUST_WEB_PORT} + - name: grafana + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: grafana + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${GRAFANA_HOST} + port_value: ${GRAFANA_PORT} + - name: jaeger + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: jaeger + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${JAEGER_HOST} + port_value: ${JAEGER_UI_PORT} +admin: + address: + socket_address: + address: 0.0.0.0 + port_value: ${ENVOY_ADMIN_PORT} +layered_runtime: + layers: + - name: static_layer_0 + static_layer: + envoy: + resource_limits: + listener: + example_listener_name: + connection_limit: 10000 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.dockerignore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..b90a368f6ad29226e36d73ab5bf3faa6a07e6c0a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.dockerignore @@ -0,0 +1,2 @@ +node_modules +.next diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.eslintrc b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.eslintrc new file mode 100644 index 0000000000000000000000000000000000000000..8698cfb210f5c6471dc95afc80101199c74fb349 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.eslintrc @@ -0,0 +1,26 @@ +{ + "extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals"], + "plugins": ["@typescript-eslint"], + "root": true, + "globals": {}, + "rules": { + "@typescript-eslint/no-non-null-assertion": "off", + "react-hooks/exhaustive-deps": "warn", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "error", + "max-len": [ + "error", + { + "code": 150, + "ignoreComments": true, + "ignoreTrailingComments": true, + "ignoreUrls": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } + ] + }, + "parser": "@typescript-eslint/parser", + "env": {}, + "overrides": [] +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierignore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierignore new file mode 100644 index 0000000000000000000000000000000000000000..8eca8b360a99251b7a00f8a87c9065c3d835e6ee --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierignore @@ -0,0 +1,7 @@ +.idea +.git +build +dist +.husky +node_modules +protos/ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierrc b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierrc new file mode 100644 index 0000000000000000000000000000000000000000..af54e89b3d129014c319ccc4a2faca7283dea97a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/.prettierrc @@ -0,0 +1,15 @@ +{ + "importOrderSeparation": true, + "importOrderSortSpecifiers": true, + "singleQuote": true, + "arrowParens": "avoid", + "bracketSpacing": true, + "semi": true, + "trailingComma": "es5", + "printWidth": 120, + "jsxBracketSameLine": false, + "proseWrap": "always", + "quoteProps": "as-needed", + "tabWidth": 2, + "useTabs": false +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..1dbbbc70af127d4388129e878a2c0641fabc6d44 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile @@ -0,0 +1,60 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM docker.io/library/node:22-slim AS builder + +WORKDIR /app + +COPY ./src/frontend/package.json package.json +COPY ./src/frontend/package-lock.json package-lock.json + +RUN npm ci + +COPY ./src/frontend/components/ components/ +COPY ./src/frontend/gateways/ gateways/ +COPY ./src/frontend/pages/ pages/ +COPY ./src/frontend/protos/ protos/ +COPY ./src/frontend/providers/ providers/ +COPY ./src/frontend/services/ services/ +COPY ./src/frontend/styles/ styles/ +COPY ./src/frontend/types/ types/ + +COPY ./src/frontend/utils/enums/ utils/enums/ +COPY ./src/frontend/utils/telemetry/ utils/telemetry/ +COPY ./src/frontend/utils/imageLoader.js utils/imageLoader.js +COPY ./src/frontend/utils/Request.ts utils/Request.ts + +COPY ./src/frontend/next.config.js next.config.js +COPY ./src/frontend/tsconfig.json tsconfig.json + +RUN npm run build + +# ----------------------------------------------------------------------------- + +FROM docker.io/library/node:22-slim AS deps + +WORKDIR /app + +COPY ./src/frontend/package.json package.json +COPY ./src/frontend/package-lock.json package-lock.json + +RUN npm ci --omit=dev + +# ----------------------------------------------------------------------------- + +FROM gcr.io/distroless/nodejs22-debian12:nonroot + +WORKDIR /app + +COPY --from=builder /app/.next/standalone/ ./ +COPY --from=builder /app/.next/static/ .next/static/ + +COPY --from=deps /app/node_modules/ node_modules/ + +COPY ./src/frontend/public/ public/ + +COPY ./src/frontend/utils/telemetry/Instrumentation.js Instrumentation.js + +EXPOSE ${FRONTEND_PORT} + +CMD ["--require=./Instrumentation.js", "server.js"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress new file mode 100644 index 0000000000000000000000000000000000000000..f3b7d9af7ba06fb5963d51c3a2212f3ebb6d520a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress @@ -0,0 +1,9 @@ +FROM cypress/included:14.5.0 + +WORKDIR /app + +COPY ./src/frontend . + +RUN npm clean-install + +ENTRYPOINT ["cypress", "run"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ea2a26f06cd86d6a70975230b1d5d776e46710b0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/README.md @@ -0,0 +1,26 @@ +# Frontend service + +The frontend is a [Next.js](https://nextjs.org/) application that is composed +by two layers. + +1. Client side application. Which renders the components for the OTEL webstore. +2. API layer. Connects the client to the backend services by exposing REST endpoints. + +## Build Locally + +By running `docker compose up` at the root of the project you'll have access to +the frontend client by going to . + +## Local development + +Currently, the easiest way to run the frontend for local development is to execute + +```shell +docker compose run --service-ports -e NODE_ENV=development --volume $(pwd)/src/frontend:/app --volume $(pwd)/pb:/app/pb --user node --entrypoint sh frontend +``` + +from the root folder. + +It will start all of the required backend services +and within the container simply run `npm run dev`. +After that the app should be available at . diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/cypress.config.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/cypress.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..ab1e082eb160435b9d24c0774b0e5b7bf3d0e170 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/cypress.config.ts @@ -0,0 +1,29 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { defineConfig } from 'cypress'; +import dotEnv from 'dotenv'; +import dotenvExpand from 'dotenv-expand'; +import { resolve } from 'path'; + +const myEnv = dotEnv.config({ + path: resolve(__dirname, '../../.env'), +}); +dotenvExpand.expand(myEnv); + +const { FRONTEND_ADDR = '', NODE_ENV, FRONTEND_PORT = '8080' } = process.env; + +const baseUrl = NODE_ENV === 'production' ? `http://${FRONTEND_ADDR}` : `http://localhost:${FRONTEND_PORT}`; + +export default defineConfig({ + env: { + baseUrl, + }, + e2e: { + baseUrl, + setupNodeEvents(on, config) { + // implement node event listeners here + }, + supportFile: false, + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Api.gateway.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Api.gateway.ts new file mode 100644 index 0000000000000000000000000000000000000000..953515254db64c3ca2682bc5a128a230a238c4ee --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Api.gateway.ts @@ -0,0 +1,136 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { Ad, Address, Cart, CartItem, Money, PlaceOrderRequest, Product, ProductReview } from '../protos/demo'; +import { IProductCart, IProductCartItem, IProductCheckout } from '../types/Cart'; +import request from '../utils/Request'; +import { AttributeNames } from '../utils/enums/AttributeNames'; +import SessionGateway from './Session.gateway'; +import { context, propagation } from "@opentelemetry/api"; + +const { userId } = SessionGateway.getSession(); + +const basePath = '/api'; + +const Apis = () => ({ + getCart(currencyCode: string) { + return request({ + url: `${basePath}/cart`, + queryParams: { sessionId: userId, currencyCode }, + }); + }, + addCartItem({ currencyCode, ...item }: CartItem & { currencyCode: string }) { + return request({ + url: `${basePath}/cart`, + body: { item, userId }, + queryParams: { currencyCode }, + method: 'POST', + }); + }, + emptyCart() { + return request({ + url: `${basePath}/cart`, + method: 'DELETE', + body: { userId }, + }); + }, + + getSupportedCurrencyList() { + return request({ + url: `${basePath}/currency`, + }); + }, + + getShippingCost(itemList: IProductCartItem[], currencyCode: string, address: Address) { + return request({ + url: `${basePath}/shipping`, + queryParams: { + itemList: JSON.stringify(itemList.map(({ productId, quantity }) => ({ productId, quantity }))), + currencyCode, + address: JSON.stringify(address), + }, + }); + }, + + placeOrder({ currencyCode, ...order }: PlaceOrderRequest & { currencyCode: string }) { + return request({ + url: `${basePath}/checkout`, + method: 'POST', + queryParams: { currencyCode }, + body: order, + }); + }, + + listProducts(currencyCode: string) { + return request({ + url: `${basePath}/products`, + queryParams: { currencyCode }, + }); + }, + getProduct(productId: string, currencyCode: string) { + return request({ + url: `${basePath}/products/${productId}`, + queryParams: { currencyCode }, + }); + }, + getProductReviews(productId: string) { + return request({ + url: `${basePath}/product-reviews/${productId}` + }); + }, + getAverageProductReviewScore(productId: string) { + return request({ + url: `${basePath}/product-reviews-avg-score/${productId}` + }); + }, + askProductAIAssistant(productId: string, question: string) { + return request({ + url: `${basePath}/product-ask-ai-assistant/${productId}`, + method: 'POST', + body: { question }, + }); + }, + listRecommendations(productIds: string[], currencyCode: string) { + return request({ + url: `${basePath}/recommendations`, + queryParams: { + productIds, + sessionId: userId, + currencyCode, + }, + }); + }, + listAds(contextKeys: string[]) { + return request({ + url: `${basePath}/data`, + queryParams: { + contextKeys, + }, + }); + }, +}); + +/** + * Extends all the API calls to set baggage automatically. + */ +const ApiGateway = new Proxy(Apis(), { + get(target, prop, receiver) { + const originalFunction = Reflect.get(target, prop, receiver); + + if (typeof originalFunction !== 'function') { + return originalFunction; + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return function (...args: any[]) { + const baggage = propagation.getActiveBaggage() || propagation.createBaggage(); + const newBaggage = baggage.setEntry(AttributeNames.SESSION_ID, { value: userId }); + const newContext = propagation.setBaggage(context.active(), newBaggage); + return context.with(newContext, () => { + return Reflect.apply(originalFunction, undefined, args); + }); + }; + }, +}); + +export default ApiGateway; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Session.gateway.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Session.gateway.ts new file mode 100644 index 0000000000000000000000000000000000000000..d5791b5af890444095e92528b35762eb2e2b681a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/gateways/Session.gateway.ts @@ -0,0 +1,33 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { v4 } from 'uuid'; + +interface ISession { + userId: string; + currencyCode: string; +} + +const sessionKey = 'session'; +const defaultSession = { + userId: v4(), + currencyCode: 'USD', +}; + +const SessionGateway = () => ({ + getSession(): ISession { + if (typeof window === 'undefined') return defaultSession; + const sessionString = localStorage.getItem(sessionKey); + + if (!sessionString) localStorage.setItem(sessionKey, JSON.stringify(defaultSession)); + + return JSON.parse(sessionString || JSON.stringify(defaultSession)) as ISession; + }, + setSessionValue(key: K, value: ISession[K]) { + const session = this.getSession(); + + localStorage.setItem(sessionKey, JSON.stringify({ ...session, [key]: value })); + }, +}); + +export default SessionGateway(); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/next.config.js b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/next.config.js new file mode 100644 index 0000000000000000000000000000000000000000..6fcd15501d758574cc51d94340ab0e49a118d8a8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/next.config.js @@ -0,0 +1,74 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +/** @type {import('next').NextConfig} */ + +const dotEnv = require('dotenv'); +const dotenvExpand = require('dotenv-expand'); +const { resolve } = require('path'); + +const myEnv = dotEnv.config({ + path: resolve(__dirname, '../../.env'), +}); +dotenvExpand.expand(myEnv); + +const { + AD_ADDR = '', + CART_ADDR = '', + CHECKOUT_ADDR = '', + CURRENCY_ADDR = '', + PRODUCT_CATALOG_ADDR = '', + PRODUCT_REVIEWS_ADDR = '', + RECOMMENDATION_ADDR = '', + SHIPPING_ADDR = '', + ENV_PLATFORM = '', + OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = '', + OTEL_SERVICE_NAME = 'frontend', + PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = '', +} = process.env; + +const nextConfig = { + reactStrictMode: true, + output: 'standalone', + compiler: { + styledComponents: true, + }, + // Turbopack configuration (Next.js 16 default bundler) + // Turbopack automatically handles Node.js polyfills for client bundles + turbopack: { + // Set root to current directory to avoid confusion with parent lockfile + root: __dirname, + }, + // Keep webpack config for backwards compatibility if --webpack flag is used + webpack: (config, { isServer }) => { + if (!isServer) { + config.resolve.fallback.http2 = false; + config.resolve.fallback.tls = false; + config.resolve.fallback.net = false; + config.resolve.fallback.dns = false; + config.resolve.fallback.fs = false; + } + + return config; + }, + env: { + AD_ADDR, + CART_ADDR, + CHECKOUT_ADDR, + CURRENCY_ADDR, + PRODUCT_CATALOG_ADDR, + PRODUCT_REVIEWS_ADDR, + RECOMMENDATION_ADDR, + SHIPPING_ADDR, + OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, + NEXT_PUBLIC_PLATFORM: ENV_PLATFORM, + NEXT_PUBLIC_OTEL_SERVICE_NAME: OTEL_SERVICE_NAME, + NEXT_PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, + }, + images: { + loader: "custom", + loaderFile: "./utils/imageLoader.js" + } +}; + +module.exports = nextConfig; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package-lock.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..ad536f7b4b792536a56f57bfd9b3f0df345dcc22 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package-lock.json @@ -0,0 +1,10927 @@ +{ + "name": "frontend", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "frontend", + "version": "0.1.0", + "dependencies": { + "@bufbuild/protobuf": "^2.10.2", + "@grpc/grpc-js": "1.12.6", + "@openfeature/flagd-provider": "0.13.3", + "@openfeature/flagd-web-provider": "0.7.3", + "@openfeature/react-sdk": "1.2.0", + "@opentelemetry/api": "1.9.0", + "@opentelemetry/auto-instrumentations-node": "0.68.0", + "@opentelemetry/auto-instrumentations-web": "0.55.0", + "@opentelemetry/context-zone": "2.4.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-trace-otlp-http": "0.210.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/opentelemetry-browser-detector": "0.210.0", + "@opentelemetry/resource-detector-alibaba-cloud": "0.33.0", + "@opentelemetry/resource-detector-aws": "2.10.0", + "@opentelemetry/resource-detector-container": "0.8.1", + "@opentelemetry/resource-detector-gcp": "0.45.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0", + "@opentelemetry/sdk-node": "0.210.0", + "@opentelemetry/sdk-trace-base": "2.4.0", + "@opentelemetry/sdk-trace-node": "2.4.0", + "@opentelemetry/sdk-trace-web": "2.4.0", + "@tanstack/react-query": "5.90.19", + "cookies-next": "6.1.1", + "currency-symbol-map": "5.1.0", + "dotenv": "17.2.3", + "dotenv-expand": "12.0.3", + "next": "16.1.3", + "react": "19.2.3", + "react-dom": "19.2.3", + "sharp": "0.34.5", + "styled-components": "6.3.8", + "uuid": "13.0.0" + }, + "devDependencies": { + "@types/node": "25.0.9", + "@types/react": "19.2.9", + "@types/react-dom": "19.2.3", + "@types/styled-components": "5.1.36", + "@types/uuid": "11.0.0", + "@typescript-eslint/eslint-plugin": "8.53.1", + "@typescript-eslint/parser": "8.53.1", + "cypress": "15.9.0", + "eslint": "9.39.2", + "eslint-config-next": "16.1.4", + "eslint-plugin-react": "7.37.5", + "eslint-plugin-react-hooks": "7.0.1", + "openapi-typescript": "7.10.1", + "ts-proto": "2.11.0", + "typescript": "5.9.3" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", + "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz", + "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.4", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.4", + "@babel/types": "^7.28.4", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", + "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", + "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", + "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.10.2.tgz", + "integrity": "sha512-uFsRXwIGyu+r6AMdz+XijIIZJYpoWeYzILt5yZ2d3mCjQrWUTVpVD9WL/jZAbvp+Ed04rOhrsk7FiTcEDseB5A==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@cypress/request": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.10.tgz", + "integrity": "sha512-hauBrOdvu08vOsagkZ/Aju5XuiZx6ldsLfByg1htFeldhex+PeMrYauANzFsMJeAA0+dyPLbDoX2OYuvVoLDkQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~4.0.4", + "http-signature": "~1.4.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "performance-now": "^2.1.0", + "qs": "~6.14.1", + "safe-buffer": "^5.1.2", + "tough-cookie": "^5.0.0", + "tunnel-agent": "^0.6.0", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@cypress/request/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@cypress/xvfb": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", + "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.1.0", + "lodash.once": "^4.1.1" + } + }, + "node_modules/@cypress/xvfb/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.0.tgz", + "integrity": "sha512-oAYoQnCYaQZKVS53Fq23ceWMRxq5EhQsE0x0RdQ55jT7wagMu5k+fS39v1fiSLrtrLQlXwVINenqhLMtTrV/1Q==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.4.0.tgz", + "integrity": "sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.9.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz", + "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==", + "license": "MIT" + }, + "node_modules/@emotion/unitless": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz", + "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==", + "license": "MIT" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.12.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.12.6.tgz", + "integrity": "sha512-JXUj6PI0oqqzTGvKtzOkxtpsyPRNsrmhh41TtIz/zEB6J+AUiZZ0dxWzcMwO9Ns5rmSPuMdghlTbUuqIM48d3Q==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.7.13", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@img/colour": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz", + "integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz", + "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz", + "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz", + "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz", + "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz", + "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz", + "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz", + "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==", + "cpu": [ + "ppc64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz", + "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==", + "cpu": [ + "riscv64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz", + "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz", + "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz", + "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz", + "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz", + "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz", + "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz", + "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==", + "cpu": [ + "ppc64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz", + "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==", + "cpu": [ + "riscv64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz", + "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz", + "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz", + "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz", + "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz", + "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.7.0" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz", + "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz", + "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz", + "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@next/env": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.3.tgz", + "integrity": "sha512-BLP14oBOvZWXgfdJf9ao+VD8O30uE+x7PaV++QtACLX329WcRSJRO5YJ+Bcvu0Q+c/lei41TjSiFf6pXqnpbQA==", + "license": "MIT" + }, + "node_modules/@next/eslint-plugin-next": { + "version": "16.1.4", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.1.4.tgz", + "integrity": "sha512-38WMjGP8y+1MN4bcZFs+GTcBe0iem5GGTzFE5GWW/dWdRKde7LOXH3lQT2QuoquVWyfl2S0fQRchGmeacGZ4Wg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-glob": "3.3.1" + } + }, + "node_modules/@next/eslint-plugin-next/node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/@next/eslint-plugin-next/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.3.tgz", + "integrity": "sha512-CpOD3lmig6VflihVoGxiR/l5Jkjfi4uLaOR4ziriMv0YMDoF6cclI+p5t2nstM8TmaFiY6PCTBgRWB57/+LiBA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.3.tgz", + "integrity": "sha512-aF4us2JXh0zn3hNxvL1Bx3BOuh8Lcw3p3Xnurlvca/iptrDH1BrpObwkw9WZra7L7/0qB9kjlREq3hN/4x4x+Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.3.tgz", + "integrity": "sha512-8VRkcpcfBtYvhGgXAF7U3MBx6+G1lACM1XCo1JyaUr4KmAkTNP8Dv2wdMq7BI+jqRBw3zQE7c57+lmp7jCFfKA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.3.tgz", + "integrity": "sha512-UbFx69E2UP7MhzogJRMFvV9KdEn4sLGPicClwgqnLht2TEi204B71HuVfps3ymGAh0c44QRAF+ZmvZZhLLmhNg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.3.tgz", + "integrity": "sha512-SzGTfTjR5e9T+sZh5zXqG/oeRQufExxBF6MssXS7HPeZFE98JDhCRZXpSyCfWrWrYrzmnw/RVhlP2AxQm+wkRQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.3.tgz", + "integrity": "sha512-HlrDpj0v+JBIvQex1mXHq93Mht5qQmfyci+ZNwGClnAQldSfxI6h0Vupte1dSR4ueNv4q7qp5kTnmLOBIQnGow==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.3.tgz", + "integrity": "sha512-3gFCp83/LSduZMSIa+lBREP7+5e7FxpdBoc9QrCdmp+dapmTK9I+SLpY60Z39GDmTXSZA4huGg9WwmYbr6+WRw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.3.tgz", + "integrity": "sha512-1SZVfFT8zmMB+Oblrh5OKDvUo5mYQOkX2We6VGzpg7JUVZlqe4DYOFGKYZKTweSx1gbMixyO1jnFT4thU+nNHQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.4.0" + } + }, + "node_modules/@openfeature/core": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@openfeature/core/-/core-1.9.0.tgz", + "integrity": "sha512-pbJM8bD9yApOzZDEF5njL0A3B1bbT+DHtyCbYVCf5NOVGR6nNWiQaWFcQwrbvfOx9pvVm770/uRfBCzdL2XAUA==", + "license": "Apache-2.0", + "peer": true + }, + "node_modules/@openfeature/flagd-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@openfeature/flagd-core/-/flagd-core-1.0.0.tgz", + "integrity": "sha512-JoaiDfQHgD15shkD5i/I+bpssvqqIwu2dkXMgQ8PfG/keYITCvNFIbxyqPKn+nAX9DR0Zp0P+spJTXtyxLMikw==", + "license": "Apache-2.0", + "dependencies": { + "ajv": "^8.12.0", + "imurmurhash": "0.1.4", + "json-logic-engine": "4.0.2", + "object-hash": "3.0.0", + "semver": "7.5.3", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@openfeature/core": ">=1.6.0" + } + }, + "node_modules/@openfeature/flagd-provider": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/@openfeature/flagd-provider/-/flagd-provider-0.13.3.tgz", + "integrity": "sha512-8aYURWAMsOcjY3lX5UMJRC4h76m1SDLMnb72wid+VFx1By4UL2yR28fO50i7x2CpVDANd2L5kArDAIA2HvU7MA==", + "license": "Apache-2.0", + "dependencies": { + "@openfeature/flagd-core": "^1.0.0", + "lru-cache": "^11.0.0" + }, + "peerDependencies": { + "@grpc/grpc-js": "~1.8.0 || ~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0", + "@openfeature/server-sdk": "^1.17.0" + } + }, + "node_modules/@openfeature/flagd-web-provider": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@openfeature/flagd-web-provider/-/flagd-web-provider-0.7.3.tgz", + "integrity": "sha512-SwkJKDXJmRO8x/muYkoGOTiyplVWV+mmlRFDjbBnIVcWJZBS9tPfRHZfQsB2pI/25oB3Je2yffh0B6eJ0wwWyw==", + "license": "Apache-2.0", + "dependencies": { + "@bufbuild/protobuf": "^1.2.0", + "@connectrpc/connect": "^1.4.0", + "@connectrpc/connect-web": "^1.4.0", + "@openfeature/flagd-core": "1.0.0" + }, + "peerDependencies": { + "@openfeature/web-sdk": "^1.0.0" + } + }, + "node_modules/@openfeature/flagd-web-provider/node_modules/@bufbuild/protobuf": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.0.tgz", + "integrity": "sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@openfeature/flagd-web-provider/node_modules/@connectrpc/connect": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-1.4.0.tgz", + "integrity": "sha512-vZeOkKaAjyV4+RH3+rJZIfDFJAfr+7fyYr6sLDKbYX3uuTVszhFe9/YKf5DNqrDb5cKdKVlYkGn6DTDqMitAnA==", + "license": "Apache-2.0", + "peerDependencies": { + "@bufbuild/protobuf": "^1.4.2" + } + }, + "node_modules/@openfeature/flagd-web-provider/node_modules/@connectrpc/connect-web": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-1.4.0.tgz", + "integrity": "sha512-13aO4psFbbm7rdOFGV0De2Za64DY/acMspgloDlcOKzLPPs0yZkhp1OOzAQeiAIr7BM/VOHIA3p8mF0inxCYTA==", + "license": "Apache-2.0", + "peerDependencies": { + "@bufbuild/protobuf": "^1.4.2", + "@connectrpc/connect": "1.4.0" + } + }, + "node_modules/@openfeature/react-sdk": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@openfeature/react-sdk/-/react-sdk-1.2.0.tgz", + "integrity": "sha512-96nAkwS/dk56Pvfaq5vjTC6KvjuOvcYhmjsrAwii5WyRu0xa57ykl/OO+Szo/hWQCPV6ScVLQXMFMYl3nWH99g==", + "license": "Apache-2.0", + "peerDependencies": { + "@openfeature/web-sdk": "^1.5.0", + "react": ">=16.8.0" + } + }, + "node_modules/@openfeature/server-sdk": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/@openfeature/server-sdk/-/server-sdk-1.20.1.tgz", + "integrity": "sha512-jzz++kblADniuc7hONZ4DlRsoektCMDX5PPHoltn0hYWWw/Zm6sh3f7z5mGUX2XOikWKNVCtUQ3gWsdmIdHHXg==", + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "@openfeature/core": "^1.9.0" + } + }, + "node_modules/@openfeature/web-sdk": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@openfeature/web-sdk/-/web-sdk-1.5.0.tgz", + "integrity": "sha512-AK9A4X6vRKQf/OvCue1LKM6thSDqbx/Sf3dHBTZ6p7DfpIKsD8mzCTgMhb5jukVlqwdKMlewU/rlYTYqqfnnTw==", + "license": "Apache-2.0", + "peer": true, + "peerDependencies": { + "@openfeature/core": "^1.8.0" + } + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", + "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.210.0.tgz", + "integrity": "sha512-CMtLxp+lYDriveZejpBND/2TmadrrhUfChyxzmkFtHaMDdSKfP59MAYyA0ICBvEBdm3iXwLcaj/8Ic/pnGw9Yg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/auto-instrumentations-node": { + "version": "0.68.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/auto-instrumentations-node/-/auto-instrumentations-node-0.68.0.tgz", + "integrity": "sha512-WgLKBVG4hkaJYSfc/FbZsTr34gHVvMBd64Lw/u1bg3FLRGsd3Ys91672YRrj+7XPQXzwTew39sJRKMj03utRng==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/instrumentation-amqplib": "^0.57.0", + "@opentelemetry/instrumentation-aws-lambda": "^0.62.0", + "@opentelemetry/instrumentation-aws-sdk": "^0.65.0", + "@opentelemetry/instrumentation-bunyan": "^0.55.0", + "@opentelemetry/instrumentation-cassandra-driver": "^0.55.0", + "@opentelemetry/instrumentation-connect": "^0.53.0", + "@opentelemetry/instrumentation-cucumber": "^0.25.0", + "@opentelemetry/instrumentation-dataloader": "^0.27.0", + "@opentelemetry/instrumentation-dns": "^0.53.0", + "@opentelemetry/instrumentation-express": "^0.58.0", + "@opentelemetry/instrumentation-fastify": "^0.54.0", + "@opentelemetry/instrumentation-fs": "^0.29.0", + "@opentelemetry/instrumentation-generic-pool": "^0.53.0", + "@opentelemetry/instrumentation-graphql": "^0.57.0", + "@opentelemetry/instrumentation-grpc": "^0.210.0", + "@opentelemetry/instrumentation-hapi": "^0.56.0", + "@opentelemetry/instrumentation-http": "^0.210.0", + "@opentelemetry/instrumentation-ioredis": "^0.58.0", + "@opentelemetry/instrumentation-kafkajs": "^0.19.0", + "@opentelemetry/instrumentation-knex": "^0.54.0", + "@opentelemetry/instrumentation-koa": "^0.58.0", + "@opentelemetry/instrumentation-lru-memoizer": "^0.54.0", + "@opentelemetry/instrumentation-memcached": "^0.53.0", + "@opentelemetry/instrumentation-mongodb": "^0.63.0", + "@opentelemetry/instrumentation-mongoose": "^0.56.0", + "@opentelemetry/instrumentation-mysql": "^0.56.0", + "@opentelemetry/instrumentation-mysql2": "^0.56.0", + "@opentelemetry/instrumentation-nestjs-core": "^0.56.0", + "@opentelemetry/instrumentation-net": "^0.54.0", + "@opentelemetry/instrumentation-openai": "^0.8.0", + "@opentelemetry/instrumentation-oracledb": "^0.35.0", + "@opentelemetry/instrumentation-pg": "^0.62.0", + "@opentelemetry/instrumentation-pino": "^0.56.0", + "@opentelemetry/instrumentation-redis": "^0.58.0", + "@opentelemetry/instrumentation-restify": "^0.55.0", + "@opentelemetry/instrumentation-router": "^0.54.0", + "@opentelemetry/instrumentation-runtime-node": "^0.23.0", + "@opentelemetry/instrumentation-socket.io": "^0.56.0", + "@opentelemetry/instrumentation-tedious": "^0.29.0", + "@opentelemetry/instrumentation-undici": "^0.20.0", + "@opentelemetry/instrumentation-winston": "^0.54.0", + "@opentelemetry/resource-detector-alibaba-cloud": "0.33.0", + "@opentelemetry/resource-detector-aws": "2.10.0", + "@opentelemetry/resource-detector-azure": "^0.18.0", + "@opentelemetry/resource-detector-container": "0.8.1", + "@opentelemetry/resource-detector-gcp": "0.45.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/sdk-node": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.4.1", + "@opentelemetry/core": "^2.0.0" + } + }, + "node_modules/@opentelemetry/auto-instrumentations-web": { + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/auto-instrumentations-web/-/auto-instrumentations-web-0.55.0.tgz", + "integrity": "sha512-NU4Xux925/aOjcUr5So2HhXaoE1dA8AcmZmJxyuFYbJO6nz0OtLc5dX3pwiI0XQzeqUXv3mIU5MrjNPsO/yEpg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/instrumentation-document-load": "^0.55.0", + "@opentelemetry/instrumentation-fetch": "^0.210.0", + "@opentelemetry/instrumentation-user-interaction": "^0.54.0", + "@opentelemetry/instrumentation-xml-http-request": "^0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0", + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" + } + }, + "node_modules/@opentelemetry/configuration": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/configuration/-/configuration-0.210.0.tgz", + "integrity": "sha512-tM0ROS/hZM72kB55cSjDcghVcUXBJdGkGzpkhD7M1B/gpcvZPSGfjFgKN3dgmxNgF76NxtbUwv3ik0wS+Kz52g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "yaml": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0" + } + }, + "node_modules/@opentelemetry/context-async-hooks": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.4.0.tgz", + "integrity": "sha512-jn0phJ+hU7ZuvaoZE/8/Euw3gvHJrn2yi+kXrymwObEPVPjtwCmkvXDRQCWli+fCTTF/aSOtXaLr7CLIvv3LQg==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/context-zone": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-zone/-/context-zone-2.4.0.tgz", + "integrity": "sha512-xkxm/1pR7QT/VfLr79daHE5PggXGh+pwyPQpgHP3TfhYMU7jd/eIcLj5bmRrsuLzu7C5hNbF35XmF1NFifSI9A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/context-zone-peer-dep": "2.4.0", + "zone.js": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + } + }, + "node_modules/@opentelemetry/context-zone-peer-dep": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-zone-peer-dep/-/context-zone-peer-dep-2.4.0.tgz", + "integrity": "sha512-Yl+SlR9M8klfP2Cew3Nm1uO1GQXFuMnePwnH9fiWVyZJaneNOFgNwuXeD5KoZQBtpcBJm+fjiI0E0Fc2Gbj7ww==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "zone.js": "^0.10.2 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.4.0.tgz", + "integrity": "sha512-KtcyFHssTn5ZgDu6SXmUznS80OFs/wN7y6MyFRRcKU6TOw8hNcGxKvt8hsdaLJfhzUszNSjURetq5Qpkad14Gw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-grpc": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-grpc/-/exporter-logs-otlp-grpc-0.210.0.tgz", + "integrity": "sha512-+BolenqOO6ow65go7uWRYPvvs/BBIWp1mtRn93VvGduqvMVH/IY8nXrt80a4L9hZ7lHi2Tq2/NcC3H2QzcWKag==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/sdk-logs": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-http": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-http/-/exporter-logs-otlp-http-0.210.0.tgz", + "integrity": "sha512-Q8/SEQtgrErbVVRg9M9iaG8m5wdPNdU0UOF7U43sAhwfmPG92ZOk/aenKhg0DXSNJHhkCDNCgS1kSoErAB3z0A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/sdk-logs": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-logs-otlp-proto": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-logs-otlp-proto/-/exporter-logs-otlp-proto-0.210.0.tgz", + "integrity": "sha512-Y/yPc+gDhsWB7AsNzQWxblw4ULbvhCycMaQ2aAn+HSAVbgbMiZa0SbclPVHSnpnNzKSLVavFjweAr0pQA1KKLg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-logs": "0.210.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-grpc": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-grpc/-/exporter-metrics-otlp-grpc-0.210.0.tgz", + "integrity": "sha512-pWZ/Tjrqev9rdkqe8F6A9FGddLZrjl6iRAU5LBvvRL6I3PSgG8z1xM0cESAy1jzAF4wGohnAh8rB7hHzpUOYEA==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.210.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-http": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-http/-/exporter-metrics-otlp-http-0.210.0.tgz", + "integrity": "sha512-JpLThG8Hh8A/Jzdzw9i4Ftu+EzvLaX/LouN+mOOHmadL0iror0Qsi3QWzucXeiUsDDsiYgjfKyi09e6sltytgA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-metrics-otlp-proto": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-metrics-otlp-proto/-/exporter-metrics-otlp-proto-0.210.0.tgz", + "integrity": "sha512-CFa7SOinYOVWIWJuQL7XFeyedzmFGIpHpSMNFE8Xefb6iGB4m+MukQecdssvPcJKYlfF5FpovEOLXwafAzsXWQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.210.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-prometheus": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-prometheus/-/exporter-prometheus-0.210.0.tgz", + "integrity": "sha512-8i+7d70Hho6pcheTtbqIuS+bo+AIX/oNUTMwIEZoehUE4ZdbGmeVaE+hJS2LAErFeFaU71w164lAgYyMUEQ8zw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-grpc/-/exporter-trace-otlp-grpc-0.210.0.tgz", + "integrity": "sha512-1GPLOyxIfUX24WM8Oea+vx9d9TlewposUnsQXTjusxVMQ/dWvt5JIDJyTsfNDS412XRUOORgF97PwsfDY5QKGA==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.210.0.tgz", + "integrity": "sha512-9JkyaCl70anEtuKZdoCQmjDuz1/paEixY/DWfsvHt7PGKq3t8/nQ/6/xwxHjG+SkPAUbo1Iq4h7STe7Pk2bc5A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-proto/-/exporter-trace-otlp-proto-0.210.0.tgz", + "integrity": "sha512-qVUY7Hsm/t5buGOtPcTV1Ch4W9kj2wGaQaAF5FO4XR8TMKl2GM45tUCnr0/1dF3wo4RG9khMxrddeQWdRL4fIg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-zipkin/-/exporter-zipkin-2.4.0.tgz", + "integrity": "sha512-qpiXY0TUEFjBBp9b1na9LfuVQw6W8LH+te7uv+CC+0Up78ZDtZZwOjK2M7CL7Nspnw+yS4JdgEA7oxsBu0Ctsg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/instrumentation": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.210.0.tgz", + "integrity": "sha512-sLMhyHmW9katVaLUOKpfCnxSGhZq2t1ReWgwsu2cSgxmDVMB690H9TanuexanpFI94PJaokrqbp8u9KYZDUT5g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "import-in-the-middle": "^2.0.0", + "require-in-the-middle": "^8.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-amqplib": { + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-amqplib/-/instrumentation-amqplib-0.57.0.tgz", + "integrity": "sha512-hgHnbcopDXju7164mwZu7+6mLT/+O+6MsyedekrXL+HQAYenMqeG7cmUOE0vI6s/9nW08EGHXpD+Q9GhLU1smA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-aws-lambda": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-aws-lambda/-/instrumentation-aws-lambda-0.62.0.tgz", + "integrity": "sha512-EbDyOwdN4ndn0JJq7qacZLSCxrm72lj/2j98/MjakCuTG15nBJ/R4OkdzOmmoPbtvnrgGzzBZBiaDYoviJEAFA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/aws-lambda": "^8.10.155" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-aws-sdk": { + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-aws-sdk/-/instrumentation-aws-sdk-0.65.0.tgz", + "integrity": "sha512-nrKIhTlBxFr/wvjk2vZ6eCcyc41eOQVTMR+ux4FM0gNvK+DgggE+RnkycGATP5lJKjltn+wrYNP2E2tmxCtF1A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.34.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-bunyan": { + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-bunyan/-/instrumentation-bunyan-0.55.0.tgz", + "integrity": "sha512-/iBimXTUbxsEHpLafOLiYhinS8NQo2pRhkJAeviepfSegJkBnR9ACu5YoiJN/CsKM6HpW8UTpecZXHfu+rM0CQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.210.0", + "@opentelemetry/instrumentation": "0.210.0", + "@types/bunyan": "1.8.11" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-cassandra-driver": { + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-cassandra-driver/-/instrumentation-cassandra-driver-0.55.0.tgz", + "integrity": "sha512-o7ud8Fcg6HFKooWKSWk8ouMVGy3UBv6jg5PVQp/teng/tw7tbLNlZNGW7W6IzUcVfpToBfkh78iQPAKrzryLfg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.37.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-connect": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-connect/-/instrumentation-connect-0.53.0.tgz", + "integrity": "sha512-SoFqipWLUEYVIxvz0VYX9uWLJhatJG4cqXpRe1iophLofuEtqFUn8YaEezjz2eJK74eTUQ0f0dJVOq7yMXsJGQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/connect": "3.4.38" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-cucumber": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-cucumber/-/instrumentation-cucumber-0.25.0.tgz", + "integrity": "sha512-0Rmrt2DJjinfeuThg1E6Rfr7vGOnrrQxezh3QV1YtVpp8pY+365CsBLjTJmQ2J6zsSWbbZJ0l9Fhtjw13a78Wg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/instrumentation-dataloader": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-dataloader/-/instrumentation-dataloader-0.27.0.tgz", + "integrity": "sha512-8e7n8edfTN28nJDpR/H59iW3RbW1fvpt0xatGTfSbL8JS4FLizfjPxO7JLbyWh9D3DSXxrTnvOvXpt6V5pnxJg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-dns": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-dns/-/instrumentation-dns-0.53.0.tgz", + "integrity": "sha512-/m4KxS7rWkQpTLJW77cyt0pNzdcgjm2at4XD0nLGhHJz2G3x8GXQ6QOLRc3kPYt1WHJvzQ2UgzjKDz7f83PUXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-document-load": { + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-document-load/-/instrumentation-document-load-0.55.0.tgz", + "integrity": "sha512-qLZfeWz/UpiizBFHhossYetq4S/XJNk2tWpfibC4oxC+HdD56G3EFb9KzdvWJTZ2kOUX/xh6lo/A5Y/ldYSYug==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/sdk-trace-web": "^2.0.0", + "@opentelemetry/semantic-conventions": "^1.23.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-express": { + "version": "0.58.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-express/-/instrumentation-express-0.58.0.tgz", + "integrity": "sha512-UuGst6/1XPcswrIm5vmhuUwK/9qx9+fmNB+4xNk3lfpgQlnQxahy20xmlo3I+LIyA5ZA3CR2CDXslxAMqwminA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fastify": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fastify/-/instrumentation-fastify-0.54.0.tgz", + "integrity": "sha512-1sIJmA7wuvtNSrFbQek9rl2SNXvQ2JNuitDixL0kWiqL/UkJYkeSSegxmuEg52AAcO5Aa2OtJc0L2Syz/XROYw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fetch": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fetch/-/instrumentation-fetch-0.210.0.tgz", + "integrity": "sha512-8vr39sVneG7pzN9A/cujvdkocHw1pPKL91ZOKpibOK6x9lRS6o6ncLvSo2tQJPyoDf3lIX6D2JnGjWaCNrpong==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/sdk-trace-web": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fs": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fs/-/instrumentation-fs-0.29.0.tgz", + "integrity": "sha512-JXPygU1RbrHNc5kD+626v3baV5KamB4RD4I9m9nUTd/HyfLZQSA3Z2z3VOebB3ChJhRDERmQjLiWvwJMHecKPg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-generic-pool": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-generic-pool/-/instrumentation-generic-pool-0.53.0.tgz", + "integrity": "sha512-h49axGXGlvWzyQ4exPyd0qG9EUa+JP+hYklFg6V+Gm4ZC2Zam1QeJno/TQ8+qrLvsVvaFnBjTdS53hALpR3h3Q==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-graphql": { + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-graphql/-/instrumentation-graphql-0.57.0.tgz", + "integrity": "sha512-wjtSavcp9MsGcnA1hj8ArgsL3EkHIiTLGMwqVohs5pSnMGeao0t2mgAuMiv78KdoR3kO3DUjks8xPO5Q6uJekg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-grpc": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-grpc/-/instrumentation-grpc-0.210.0.tgz", + "integrity": "sha512-gwXtFydErdqM6Vq/DMNst1Vb6aRPdZHIA155rgD06QGeqyg+0RQxtW3SCmCzGMwrlMTrqPBIfG/v757Zi4skLA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-hapi": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-hapi/-/instrumentation-hapi-0.56.0.tgz", + "integrity": "sha512-HgLxgO0G8V9y/6yW2pS3Fv5M3hz9WtWUAdbuszQDZ8vXDQSd1sI9FYHLdZW+td/8xCLApm8Li4QIeCkRSpHVTg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-http": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-http/-/instrumentation-http-0.210.0.tgz", + "integrity": "sha512-dICO+0D0VBnrDOmDXOvpmaP0gvai6hNhJ5y6+HFutV0UoXc7pMgJlJY3O7AzT725cW/jP38ylmfHhQa7M0Nhww==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.29.0", + "forwarded-parse": "2.1.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-ioredis": { + "version": "0.58.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-ioredis/-/instrumentation-ioredis-0.58.0.tgz", + "integrity": "sha512-2tEJFeoM465A0FwPB0+gNvdM/xPBRIqNtC4mW+mBKy+ZKF9CWa7rEqv87OODGrigkEDpkH8Bs1FKZYbuHKCQNQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/redis-common": "^0.38.2", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-kafkajs": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-kafkajs/-/instrumentation-kafkajs-0.19.0.tgz", + "integrity": "sha512-PMJePP4PVv+NSvWFuKADEVemsbNK8tnloHnrHOiRXMmBnyqcyOTmJyPy6eeJ0au90QyiGB2rzD8smmu2Y0CC7A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.30.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-knex": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-knex/-/instrumentation-knex-0.54.0.tgz", + "integrity": "sha512-XYXKVUH+0/Ur29jMPnyxZj32MrZkWSXHhCteTkt/HzynKnvIASmaAJ6moMOgBSRoLuDJFqPew68AreRylIzhhg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.1" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-koa": { + "version": "0.58.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-koa/-/instrumentation-koa-0.58.0.tgz", + "integrity": "sha512-602W6hEFi3j2QrQQBKWuBUSlHyrwSCc1IXpmItC991i9+xJOsS4n4mEktEk/7N6pavBX35J9OVkhPDXjbFk/1A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.36.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0" + } + }, + "node_modules/@opentelemetry/instrumentation-lru-memoizer": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-lru-memoizer/-/instrumentation-lru-memoizer-0.54.0.tgz", + "integrity": "sha512-LPji0Qwpye5e1TNAUkHt7oij2Lrtpn2DRTUr4CU69VzJA13aoa2uzP3NutnFoLDUjmuS6vi/lv08A2wo9CfyTA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-memcached": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-memcached/-/instrumentation-memcached-0.53.0.tgz", + "integrity": "sha512-ni6B1n5wdY3XsbfL74Ix5yKQsXRerrgqmhK595ICgkxlU6JDwxoaCmoGmLCKDS/Nr0p3XhIfPVvjOPCfK73nUw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/memcached": "^2.2.6" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongodb": { + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongodb/-/instrumentation-mongodb-0.63.0.tgz", + "integrity": "sha512-EvJb3aLiq1QedAZO4vqXTG0VJmKUpGU37r11thLPuL5HNa08sUS9DbF69RB8YoXVby2pXkFPMnbG0Pky0JMlKA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongoose": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongoose/-/instrumentation-mongoose-0.56.0.tgz", + "integrity": "sha512-1xBjUpDSJFZS4qYc4XXef0pzV38iHyKymY4sKQ3xPv7dGdka4We1PsuEg6Z8K21f1d2Yg5eU0OXXRSPVmowKfA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql/-/instrumentation-mysql-0.56.0.tgz", + "integrity": "sha512-osdGMB3vc4bm1Kos04zfVmYAKoKVbKiF/Ti5/R0upDEOsCnrnUm9xvLeaKKbbE2WgJoaFz3VS8c99wx31efytQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/mysql": "2.15.27" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql2": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql2/-/instrumentation-mysql2-0.56.0.tgz", + "integrity": "sha512-rW0hIpoaCFf55j0F1oqw6+Xv9IQeqJGtw9MudT3LCuhqld9S3DF0UEj8o3CZuPhcYqD+HAivZQdrsO5XMWyFqw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@opentelemetry/sql-common": "^0.41.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-nestjs-core": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-nestjs-core/-/instrumentation-nestjs-core-0.56.0.tgz", + "integrity": "sha512-2wKd6+/nKyZVTkElTHRZAAEQ7moGqGmTIXlZvfAeV/dNA+6zbbl85JBcyeUFIYt+I42Naq5RgKtUY8fK6/GE1g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.30.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-net": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-net/-/instrumentation-net-0.54.0.tgz", + "integrity": "sha512-Vpfw1AXCGbIdL+xrvXWIx/l1dG3H7kixvFLuOY8QWFsw5+nThAUKwVCVau4VIMzWnY9TC1Oa86NIEc0ILga4CQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-openai": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-openai/-/instrumentation-openai-0.8.0.tgz", + "integrity": "sha512-iX/AZLXrbRfwhOv7Cn5vNHR+o3tvtjAi44r2tS0eL1+lW75IvkN4SK6NDJjqWBEv2sIM1TsqydOMfUf1fV1sxw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.210.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.36.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-oracledb": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-oracledb/-/instrumentation-oracledb-0.35.0.tgz", + "integrity": "sha512-V9DG842WFbcjtb9EpSRcA49vySKAzM7csVk490wOrxsjZ0QCliUQ8GH06cnYiSQi/OOYS2NMPuRKQNhrDWB8Jw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.34.0", + "@types/oracledb": "6.5.2" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pg": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-pg/-/instrumentation-pg-0.62.0.tgz", + "integrity": "sha512-/ZSMRCyFRMjQVx7Wf+BIAOMEdN/XWBbAGTNLKfQgGYs1GlmdiIFkUy8Z8XGkToMpKrgZju0drlTQpqt4Ul7R6w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.34.0", + "@opentelemetry/sql-common": "^0.41.2", + "@types/pg": "8.15.6", + "@types/pg-pool": "2.0.7" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pino": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-pino/-/instrumentation-pino-0.56.0.tgz", + "integrity": "sha512-S2YMh+xfLanyhhGSzZwFxO8iUFJoSdBO/qlndSbkrmlydFJrOrA3nyZQclM0E1i3IN+uXjMJkGRN7B5R7am+yg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.210.0", + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-redis": { + "version": "0.58.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-redis/-/instrumentation-redis-0.58.0.tgz", + "integrity": "sha512-tOGxw+6HZ5LDpMP05zYKtTw5HPqf3PXYHaOuN+pkv6uIgrZ+gTT75ELkd49eXBpjg3t36p8bYpsLgYcpIPqWqA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/redis-common": "^0.38.2", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-restify": { + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-restify/-/instrumentation-restify-0.55.0.tgz", + "integrity": "sha512-vpAHMoiLGdKz44zFzop283JLksuuO9EM7ap03cj0UgbxcaEjjLGkIv2qAEcICtYi/1LBRGHk1fXlmUg3Mu36dQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-router": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-router/-/instrumentation-router-0.54.0.tgz", + "integrity": "sha512-N+PATM9akOUnfQTYnc0eDb6uRxpCkZMLFGxWgDIc0SclTKYqhu8WQjHPWK82YnUQ3ghgt+3BckPZihiOctRhdA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-runtime-node": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-runtime-node/-/instrumentation-runtime-node-0.23.0.tgz", + "integrity": "sha512-CWq1xxuVUkOqOAzTcEiNvgT/rxKpoegC4z92eNqeYS5e71OTU8DeFZ9bNrtbb1YtbYCeY4ROBPyhMWJl27br3w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-socket.io": { + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-socket.io/-/instrumentation-socket.io-0.56.0.tgz", + "integrity": "sha512-YueOOdNsMI9vUv+T8VMDv5TLEoBLF/UFfgr/InZ+H9+WRBhG9iGaRFJ8cvjx1EOz/wP5nFdcBgffMyphjhWYQA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-tedious": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-tedious/-/instrumentation-tedious-0.29.0.tgz", + "integrity": "sha512-Jtnayb074lk7DQL25pOOpjvg4zjJMFjFWOLlKzTF5i1KxMR4+GlR/DSYgwDRfc0a4sfPXzdb/yYw7jRSX/LdFg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.33.0", + "@types/tedious": "^4.0.14" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-undici": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-undici/-/instrumentation-undici-0.20.0.tgz", + "integrity": "sha512-VGBQ89Bza1pKtV12Lxgv3uMrJ1vNcf1cDV6LAXp2wa6hnl6+IN6lbEmPn6WNWpguZTZaFEvugyZgN8FJuTjLEA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/semantic-conventions": "^1.24.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.7.0" + } + }, + "node_modules/@opentelemetry/instrumentation-user-interaction": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-user-interaction/-/instrumentation-user-interaction-0.54.0.tgz", + "integrity": "sha512-9XVfIQ+Nsvw70YMDk74ulYD7qe1I53QYmRzOMBo4cBowg9lJgSn3h7/fqV1x66hkOhDo2NztfWuiMYZTWChM4g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/sdk-trace-web": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0", + "zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0 || ^0.15.0" + } + }, + "node_modules/@opentelemetry/instrumentation-winston": { + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-winston/-/instrumentation-winston-0.54.0.tgz", + "integrity": "sha512-RH8HVPXrSYgozn+D3SANXcDxt3Xcd8If85JWmGRTns45Hu8YfXA3DEVonA8YfVg4zvvEJbGg+RFbCddAX/6LaA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "^0.210.0", + "@opentelemetry/instrumentation": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-xml-http-request": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-xml-http-request/-/instrumentation-xml-http-request-0.210.0.tgz", + "integrity": "sha512-C623D+01Moi2h5crm9L0atmBLFCPKhSUN81pgNdC5jlvo1zm1v0O8pxcHL/0n8qGn9YyKm0uyeZeef6fUyL0tw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/sdk-trace-web": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/opentelemetry-browser-detector": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/opentelemetry-browser-detector/-/opentelemetry-browser-detector-0.210.0.tgz", + "integrity": "sha512-T3bNMRArfhnU8rFCjwEMh5+HbADFz0AkEeFFZHP2G54egtSaSz6Xx/PZGBNWUQUnNf8rW+6RYrfKizGWH6EqLg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/resources": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.210.0.tgz", + "integrity": "sha512-uk78DcZoBNHIm26h0oXc8Pizh4KDJ/y04N5k/UaI9J7xR7mL8QcMcYPQG9xxN7m8qotXOMDRW6qTAyptav4+3w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-transformer": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-grpc-exporter-base": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-grpc-exporter-base/-/otlp-grpc-exporter-base-0.210.0.tgz", + "integrity": "sha512-fEJs8UhkFMrdXMOCLXyKd2uc6N209tIi8IBNqSTi83ri+MlMFrBKnOtklmv9/zzxovoN5zD1waRt6XBFGPfmIw==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/otlp-exporter-base": "0.210.0", + "@opentelemetry/otlp-transformer": "0.210.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.210.0.tgz", + "integrity": "sha512-nkHBJVSJGOwkRZl+BFIr7gikA93/U8XkL2EWaiDbj3DVjmTEZQpegIKk0lT8oqQYfP8FC6zWNjuTfkaBVqa0ZQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-logs": "0.210.0", + "@opentelemetry/sdk-metrics": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0", + "protobufjs": "8.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer/node_modules/protobufjs": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-8.0.0.tgz", + "integrity": "sha512-jx6+sE9h/UryaCZhsJWbJtTEy47yXoGNYI4z8ZaRncM0zBKeRqjO2JEcOUYwrYGb1WLhXM1FfMzW3annvFv0rw==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@opentelemetry/propagator-b3": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-2.4.0.tgz", + "integrity": "sha512-6VPsFiMUkJBre/86F0d+PZMaUCcuLA9DtZuC46KH8EeVEKZPEM2WlX35M/qmde8UpzoQL9qzdz54YjUYABt8Uw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/propagator-jaeger": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-2.4.0.tgz", + "integrity": "sha512-t6muBL/3AMD++1EMF658C/KIpj3gfmTmftX3mEQql4KIxNGFvacCmmTtrQt9IZAJmQRfjQRCkv+vsGbQugeJIw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/redis-common": { + "version": "0.38.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/redis-common/-/redis-common-0.38.2.tgz", + "integrity": "sha512-1BCcU93iwSRZvDAgwUxC/DV4T/406SkMfxGqu5ojc3AvNI+I9GhV7v0J1HljsczuuhcnFLYqD5VmwVXfCGHzxA==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + } + }, + "node_modules/@opentelemetry/resource-detector-alibaba-cloud": { + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-alibaba-cloud/-/resource-detector-alibaba-cloud-0.33.0.tgz", + "integrity": "sha512-7d6NskqfcV2m/Awh9xfHElCcqTBT2Kn31Yt/oxmeyV4Xio/r+UcgUAQnmyD4XNTpCkgAoAr6GJZcAIxlnUkeLw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-aws": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-aws/-/resource-detector-aws-2.10.0.tgz", + "integrity": "sha512-WKNpVKeDPCxNNAFfhGfO+ka7yYQa5utNLxsDaqxyatM1WzAKz4Ce8Hov9gBCD5laGp5pS7+CWh5XVZZlQN4xeQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-azure": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-azure/-/resource-detector-azure-0.18.0.tgz", + "integrity": "sha512-7byUo/Gimruh23vA8H2q4/cWxGe7YOTBjIKpoPjt/9yGQ2PUF3s6k2SQrMxaonTwqVmQgW29DU3SHLfd0kHjhg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/semantic-conventions": "^1.37.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-container": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-container/-/resource-detector-container-0.8.1.tgz", + "integrity": "sha512-LacHjqQJRqtoeh5RCAa8hEGfQ4rPDNNI1+J1RPrLSFWfFWxR56/iiAmBOwDhYwE1c3keBe3wTITbnWGxlhQDsA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resource-detector-gcp": { + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resource-detector-gcp/-/resource-detector-gcp-0.45.0.tgz", + "integrity": "sha512-u1AshqWqiiSblTix+8zzR9hcUWiHMNW/4WUnOecZ3FgNMkJJ57rkZvQKxaK5mfetP0s1OfAbiq09krQ1riO/Rw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/resources": "^2.0.0", + "gcp-metadata": "^6.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.4.0.tgz", + "integrity": "sha512-RWvGLj2lMDZd7M/5tjkI/2VHMpXebLgPKvBUd9LRasEWR2xAynDwEYZuLvY9P2NGG73HF07jbbgWX2C9oavcQg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-logs": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.210.0.tgz", + "integrity": "sha512-YuaL92Dpyk/Kc1o4e9XiaWWwiC0aBFN+4oy+6A9TP4UNJmRymPMEX10r6EMMFMD7V0hktiSig9cwWo59peeLCQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.4.0.tgz", + "integrity": "sha512-qSbfq9mXbLMqmPEjijl32f3ZEmiHekebRggPdPjhHI6t1CsAQOR2Aw/SuTDftk3/l2aaPHpwP3xM2DkgBA1ANw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.9.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-node": { + "version": "0.210.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-node/-/sdk-node-0.210.0.tgz", + "integrity": "sha512-KymqUtYvfpblDNgGxBXYqCcDjYXwjOF7Muc6ocs0rMlG/66Hcs9KiJ7hg4zLOv63JubF/vxi5WXaLrQrPKyaZQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.210.0", + "@opentelemetry/configuration": "0.210.0", + "@opentelemetry/context-async-hooks": "2.4.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/exporter-logs-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-logs-otlp-http": "0.210.0", + "@opentelemetry/exporter-logs-otlp-proto": "0.210.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.210.0", + "@opentelemetry/exporter-metrics-otlp-proto": "0.210.0", + "@opentelemetry/exporter-prometheus": "0.210.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-trace-otlp-http": "0.210.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.210.0", + "@opentelemetry/exporter-zipkin": "2.4.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/propagator-b3": "2.4.0", + "@opentelemetry/propagator-jaeger": "2.4.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-logs": "0.210.0", + "@opentelemetry/sdk-metrics": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0", + "@opentelemetry/sdk-trace-node": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.4.0.tgz", + "integrity": "sha512-WH0xXkz/OHORDLKqaxcUZS0X+t1s7gGlumr2ebiEgNZQl2b0upK2cdoD0tatf7l8iP74woGJ/Kmxe82jdvcWRw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.4.0.tgz", + "integrity": "sha512-MBc2l04hZPYygnWPT38UiOPy9ueutPqmJ47z0m9IKuoVQh3MblmbSgwspjhdHagZLfSfmlzhWR1xtbgVNmjX2A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/context-async-hooks": "2.4.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-web": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-web/-/sdk-trace-web-2.4.0.tgz", + "integrity": "sha512-1FYg7qnrgTugPev51SehxCp0v9J4P97MJn2MaXQ8QK//psfyLDorKAAC3LmSIhq7XaC726WSZ/Wm69r8NdjIsA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.4.0", + "@opentelemetry/sdk-trace-base": "2.4.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.37.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.37.0.tgz", + "integrity": "sha512-JD6DerIKdJGmRp4jQyX5FlrQjA4tjOw1cvfsPAZXfOOEErMUHjPcPSICS+6WnM0nB0efSFARh0KAZss+bvExOA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sql-common": { + "version": "0.41.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/sql-common/-/sql-common-0.41.2.tgz", + "integrity": "sha512-4mhWm3Z8z+i508zQJ7r6Xi7y4mmoJpdvH0fZPFRkWrdp5fq7hhZ2HhYokEOLkfqSMgPR4Z9EyB3DBkbKGOqZiQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^2.0.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@redocly/ajv": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.3.tgz", + "integrity": "sha512-4P3iZse91TkBiY+Dx5DUgxQ9GXkVJf++cmI0MOyLDxV9b5MUBI4II6ES8zA5JCbO72nKAJxWrw4PUPW+YP3ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js-replace": "^1.0.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@redocly/config": { + "version": "0.22.2", + "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.22.2.tgz", + "integrity": "sha512-roRDai8/zr2S9YfmzUfNhKjOF0NdcOIqF7bhf4MVC5UxpjIysDjyudvlAiVbpPHp3eDRWbdzUgtkK1a7YiDNyQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@redocly/openapi-core": { + "version": "1.34.5", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.5.tgz", + "integrity": "sha512-0EbE8LRbkogtcCXU7liAyC00n9uNG9hJ+eMyHFdUsy9lB/WGqnEBgwjA9q2cyzAVcdTkQqTBBU1XePNnN3OijA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@redocly/ajv": "^8.11.2", + "@redocly/config": "^0.22.0", + "colorette": "^1.2.0", + "https-proxy-agent": "^7.0.5", + "js-levenshtein": "^1.1.6", + "js-yaml": "^4.1.0", + "minimatch": "^5.0.1", + "pluralize": "^8.0.0", + "yaml-ast-parser": "0.0.43" + }, + "engines": { + "node": ">=18.17.0", + "npm": ">=9.5.0" + } + }, + "node_modules/@redocly/openapi-core/node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@redocly/openapi-core/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@swc/helpers": { + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@tanstack/query-core": { + "version": "5.90.19", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.19.tgz", + "integrity": "sha512-GLW5sjPVIvH491VV1ufddnfldyVB+teCnpPIvweEfkpRx7CfUmUGhoh9cdcUKBh/KwVxk22aNEDxeTsvmyB/WA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.90.19", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.19.tgz", + "integrity": "sha512-qTZRZ4QyTzQc+M0IzrbKHxSeISUmRB3RPGmao5bT+sI6ayxSRhn0FXEnT5Hg3as8SBFcRosrXXRFB+yAcxVxJQ==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.90.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, + "node_modules/@types/aws-lambda": { + "version": "8.10.159", + "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.159.tgz", + "integrity": "sha512-SAP22WSGNN12OQ8PlCzGzRCZ7QDCwI85dQZbmpz7+mAk+L7j+wI7qnvmdKh+o7A5LaOp6QnOZ2NJphAZQTTHQg==", + "license": "MIT" + }, + "node_modules/@types/bunyan": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/@types/bunyan/-/bunyan-1.8.11.tgz", + "integrity": "sha512-758fRH7umIMk5qt5ELmRMff4mLDlN+xyYzC+dkPTdKwbSkJFvz6xwyScrytPU0QIBbRRwbiE8/BIg8bpajerNQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.6.tgz", + "integrity": "sha512-lPByRJUer/iN/xa4qpyL0qmL11DqNW81iU/IG1S3uvRUq4oKagz8VCxZjiWkumgt66YT3vOdDgZ0o32sGKtCEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/memcached": { + "version": "2.2.10", + "resolved": "https://registry.npmjs.org/@types/memcached/-/memcached-2.2.10.tgz", + "integrity": "sha512-AM9smvZN55Gzs2wRrqeMHVP7KE8KWgCJO/XL5yCly2xF6EKa4YlbpK+cLSAH4NG/Ah64HrlegmGqW8kYws7Vxg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/mysql": { + "version": "2.15.27", + "resolved": "https://registry.npmjs.org/@types/mysql/-/mysql-2.15.27.tgz", + "integrity": "sha512-YfWiV16IY0OeBfBCk8+hXKmdTKrKlwKN1MNKAPBu5JYxLwBEZl7QzeEpGnlZb3VMGJrrGmB84gXiH+ofs/TezA==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "25.0.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.9.tgz", + "integrity": "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==", + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/oracledb": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/@types/oracledb/-/oracledb-6.5.2.tgz", + "integrity": "sha512-kK1eBS/Adeyis+3OlBDMeQQuasIDLUYXsi2T15ccNJ0iyUpQ4xDF7svFu3+bGVrI0CMBUclPciz+lsQR3JX3TQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/pg": { + "version": "8.15.6", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.15.6.tgz", + "integrity": "sha512-NoaMtzhxOrubeL/7UZuNTrejB4MPAJ0RpxZqXQf2qXuVlTPuG6Y8p4u9dKRaue4yjmC7ZhzVO2/Yyyn25znrPQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "node_modules/@types/pg-pool": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/pg-pool/-/pg-pool-2.0.7.tgz", + "integrity": "sha512-U4CwmGVQcbEuqpyju8/ptOKg6gEC+Tqsvj2xS9o1g71bUh8twxnC6ZL5rZKCsGN0iyH0CwgUyc9VR5owNQF9Ng==", + "license": "MIT", + "dependencies": { + "@types/pg": "*" + } + }, + "node_modules/@types/react": { + "version": "19.2.9", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.9.tgz", + "integrity": "sha512-Lpo8kgb/igvMIPeNV2rsYKTgaORYdO1XGVZ4Qz3akwOj0ySGYMPlQWa8BaLn0G63D1aSaAQ5ldR06wCpChQCjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@types/sinonjs__fake-timers": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz", + "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/sizzle": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.9.tgz", + "integrity": "sha512-xzLEyKB50yqCUPUJkIsrVvoWNfFUbIZI+RspLWt8u+tIW/BetMBZtgV2LY/2o+tYH8dRvQ+eoPf3NdhQCcLE2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/styled-components": { + "version": "5.1.36", + "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.36.tgz", + "integrity": "sha512-pGMRNY5G2rNDKEv2DOiFYa7Ft1r0jrhmgBwHhOMzPTgCjO76bCot0/4uEfqj7K0Jf1KdQmDtAuaDk9EAs9foSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hoist-non-react-statics": "*", + "@types/react": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/stylis": { + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.7.tgz", + "integrity": "sha512-VgDNokpBoKF+wrdvhAAfS55OMQpL6QRglwTwNC3kIgBrzZxA4WsFj+2eLfEA/uMUDzBcEhYmjSbwQakn/i3ajA==", + "license": "MIT" + }, + "node_modules/@types/tedious": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/@types/tedious/-/tedious-4.0.14.tgz", + "integrity": "sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/tmp": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.2.6.tgz", + "integrity": "sha512-chhaNf2oKHlRkDGt+tiKE2Z5aJ6qalm7Z9rlLdBwmOiAAf09YQvvoLXjWK4HWPF1xU/fqvMgfNfpVoBscA/tKA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/uuid": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-11.0.0.tgz", + "integrity": "sha512-HVyk8nj2m+jcFRNazzqyVKiZezyhDKrGUA3jlEcg/nZ6Ms+qHwocba1Y/AaVaznJTAM9xpdFSh+ptbNrhOGvZA==", + "deprecated": "This is a stub types definition. uuid provides its own type definitions, so you do not need this installed.", + "dev": true, + "license": "MIT", + "dependencies": { + "uuid": "*" + } + }, + "node_modules/@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.53.1.tgz", + "integrity": "sha512-cFYYFZ+oQFi6hUnBTbLRXfTJiaQtYE3t4O692agbBl+2Zy+eqSKWtPjhPXJu1G7j4RLjKgeJPDdq3EqOwmX5Ag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.53.1", + "@typescript-eslint/type-utils": "8.53.1", + "@typescript-eslint/utils": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "8.53.1", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/project-service": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.53.1.tgz", + "integrity": "sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.53.1", + "@typescript-eslint/types": "^8.53.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.53.1.tgz", + "integrity": "sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.53.1.tgz", + "integrity": "sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.53.1.tgz", + "integrity": "sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.53.1.tgz", + "integrity": "sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.53.1", + "@typescript-eslint/tsconfig-utils": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.53.1.tgz", + "integrity": "sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/typescript-estree": "8.53.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.53.1.tgz", + "integrity": "sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.53.1.tgz", + "integrity": "sha512-nm3cvFN9SqZGXjmw5bZ6cGmvJSyJPn0wU9gHAZZHDnZl2wF9PhHv78Xf06E0MaNk4zLVHL8hb2/c32XvyJOLQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/typescript-estree": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/project-service": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.53.1.tgz", + "integrity": "sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.53.1", + "@typescript-eslint/types": "^8.53.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.53.1.tgz", + "integrity": "sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.53.1.tgz", + "integrity": "sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.53.1.tgz", + "integrity": "sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.53.1.tgz", + "integrity": "sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.53.1", + "@typescript-eslint/tsconfig-utils": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.53.1.tgz", + "integrity": "sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.46.2.tgz", + "integrity": "sha512-PULOLZ9iqwI7hXcmL4fVfIsBi6AN9YxRc0frbvmg8f+4hQAjQ5GYNKK0DIArNo+rOKmR/iBYwkpBmnIwin4wBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.46.2", + "@typescript-eslint/types": "^8.46.2", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.46.2.tgz", + "integrity": "sha512-LF4b/NmGvdWEHD2H4MsHD8ny6JpiVNDzrSZr3CsckEgCbAGZbYM4Cqxvi9L+WqDMT+51Ozy7lt2M+d0JLEuBqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/visitor-keys": "8.46.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.46.2.tgz", + "integrity": "sha512-a7QH6fw4S57+F5y2FIxxSDyi5M4UfGF+Jl1bCGd7+L4KsaUY80GsiF/t0UoRFDHAguKlBaACWJRmdrc6Xfkkag==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.53.1.tgz", + "integrity": "sha512-MOrdtNvyhy0rHyv0ENzub1d4wQYKb2NmIqG7qEqPWFW7Mpy2jzFC3pQ2yKDvirZB7jypm5uGjF2Qqs6OIqu47w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/typescript-estree": "8.53.1", + "@typescript-eslint/utils": "8.53.1", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/project-service": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.53.1.tgz", + "integrity": "sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.53.1", + "@typescript-eslint/types": "^8.53.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.53.1.tgz", + "integrity": "sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.53.1.tgz", + "integrity": "sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.53.1.tgz", + "integrity": "sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.53.1.tgz", + "integrity": "sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.53.1", + "@typescript-eslint/tsconfig-utils": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/visitor-keys": "8.53.1", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.53.1.tgz", + "integrity": "sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.53.1", + "@typescript-eslint/types": "8.53.1", + "@typescript-eslint/typescript-estree": "8.53.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "8.53.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.53.1.tgz", + "integrity": "sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.53.1", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.46.2.tgz", + "integrity": "sha512-lNCWCbq7rpg7qDsQrd3D6NyWYu+gkTENkG5IKYhUIcxSb59SQC/hEQ+MrG4sTgBVghTonNWq42bA/d4yYumldQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.46.2.tgz", + "integrity": "sha512-f7rW7LJ2b7Uh2EiQ+7sza6RDZnajbNbemn54Ob6fRwQbgcIn+GWfyuHDHRYgRoZu1P4AayVScrRW+YfbTvPQoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.46.2", + "@typescript-eslint/tsconfig-utils": "8.46.2", + "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/visitor-keys": "8.46.2", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.46.2.tgz", + "integrity": "sha512-sExxzucx0Tud5tE0XqR0lT0psBQvEpnpiul9XbGUB1QwpWJJAps1O/Z7hJxLGiZLBKMCutjTzDgmd1muEhBnVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.46.2", + "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/typescript-estree": "8.46.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.46.2.tgz", + "integrity": "sha512-tUFMXI4gxzzMXt4xpGJEsBsTox0XbNQ1y94EwlD/CuZwFcQP79xfQqMhau9HsRc/J0cAPA/HZt1dZPtGn9V/7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.46.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/arch": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", + "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "dev": true, + "license": "MIT" + }, + "node_modules/axe-core": { + "version": "4.10.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.2.tgz", + "integrity": "sha512-RE3mdQ7P3FRSe7eqCWoeQ/Z9QXrtniSjp1wUjt5nRC3WIpz5rSCve6o3fsZ2aCpJtrZjSZgjwXAoTO5k4tEI0w==", + "dev": true, + "license": "MPL-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.12", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.12.tgz", + "integrity": "sha512-vAPMQdnyKCBtkmQA6FMCBvU9qFIppS3nzyXnEM+Lo2IAhG4Mpjv9cCxMudhgV3YdNNJv6TNqXy97dfRVL2LmaQ==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/bignumber.js": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/blob-util": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/blob-util/-/blob-util-2.0.2.tgz", + "integrity": "sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.26.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz", + "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.8.9", + "caniuse-lite": "^1.0.30001746", + "electron-to-chromium": "^1.5.227", + "node-releases": "^2.0.21", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/cachedir": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", + "integrity": "sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelize": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", + "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001747", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001747.tgz", + "integrity": "sha512-mzFa2DGIhuc5490Nd/G31xN1pnBnYMadtkyTjefPI7wzypqgCEpeWu9bJr0OnDsyKrW75zA9ZAt7pbQFmwLsQg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/ci-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.1.0.tgz", + "integrity": "sha512-HutrvTNsF48wnxkzERIXOe5/mlcfFcbfCmwcg6CJnizbSue78AbDt+1cgl26zwn61WFxhcPykPfZrbqjGmBb4A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "license": "MIT" + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-table3": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz", + "integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==", + "dev": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "colors": "1.4.0" + } + }, + "node_modules/cli-truncate": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz", + "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/cookies-next": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/cookies-next/-/cookies-next-6.1.1.tgz", + "integrity": "sha512-8JZBc4IN2m8xqOXyG7uicth6yH3SvynAUGSeV/FQ5lcEclzNGoR0+YCjySdn8r6keZdRyGQr4YJ8qy8F+Jq5uw==", + "license": "MIT", + "dependencies": { + "cookie": "^1.0.1" + }, + "peerDependencies": { + "next": ">=15.0.0", + "react": ">= 16.8.0" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-color-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", + "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/css-to-react-native": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", + "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", + "license": "MIT", + "dependencies": { + "camelize": "^1.0.0", + "css-color-keywords": "^1.0.0", + "postcss-value-parser": "^4.0.2" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/currency-symbol-map": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/currency-symbol-map/-/currency-symbol-map-5.1.0.tgz", + "integrity": "sha512-LO/lzYRw134LMDVnLyAf1dHE5tyO6axEFkR3TXjQIOmMkAM9YL6QsiUwuXzZAmFnuDJcs4hayOgyIYtViXFrLw==", + "license": "BSD-2-Clause" + }, + "node_modules/cypress": { + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.9.0.tgz", + "integrity": "sha512-Ks6Bdilz3TtkLZtTQyqYaqtL/WT3X3APKaSLhTV96TmTyudzSjc6EJsJCHmBb7DxO+3R12q3Jkbjgm/iPgmwfg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@cypress/request": "^3.0.10", + "@cypress/xvfb": "^1.2.4", + "@types/sinonjs__fake-timers": "8.1.1", + "@types/sizzle": "^2.3.2", + "@types/tmp": "^0.2.3", + "arch": "^2.2.0", + "blob-util": "^2.0.2", + "bluebird": "^3.7.2", + "buffer": "^5.7.1", + "cachedir": "^2.3.0", + "chalk": "^4.1.0", + "ci-info": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-table3": "0.6.1", + "commander": "^6.2.1", + "common-tags": "^1.8.0", + "dayjs": "^1.10.4", + "debug": "^4.3.4", + "enquirer": "^2.3.6", + "eventemitter2": "6.4.7", + "execa": "4.1.0", + "executable": "^4.1.1", + "extract-zip": "2.0.1", + "figures": "^3.2.0", + "fs-extra": "^9.1.0", + "hasha": "5.2.2", + "is-installed-globally": "~0.4.0", + "listr2": "^3.8.3", + "lodash": "^4.17.21", + "log-symbols": "^4.0.0", + "minimist": "^1.2.8", + "ospath": "^1.2.2", + "pretty-bytes": "^5.6.0", + "process": "^0.11.10", + "proxy-from-env": "1.0.0", + "request-progress": "^3.0.0", + "supports-color": "^8.1.1", + "systeminformation": "^5.27.14", + "tmp": "~0.2.4", + "tree-kill": "1.2.2", + "untildify": "^4.0.0", + "yauzl": "^2.10.0" + }, + "bin": { + "cypress": "bin/cypress" + }, + "engines": { + "node": "^20.1.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dev": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/dotenv": { + "version": "17.2.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", + "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand": { + "version": "12.0.3", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-12.0.3.tgz", + "integrity": "sha512-uc47g4b+4k/M/SeaW1y4OApx+mtLWl92l5LMPP0GNXctZqELk+YGgOPIIC5elYmUH4OuoK3JLhuRUYegeySiFA==", + "license": "BSD-2-Clause", + "dependencies": { + "dotenv": "^16.4.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dotenv-expand/node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^1.0.3" + } + }, + "node_modules/dprint-node/node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.230", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.230.tgz", + "integrity": "sha512-A6A6Fd3+gMdaed9wX83CvHYJb4UuapPD5X5SLq72VZJzxHSY0/LUweGXRWmQlh2ln7KV7iw7jnwXK7dlPoOnHQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.18.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz", + "integrity": "sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/es-abstract": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", + "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.6", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-next": { + "version": "16.1.4", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.1.4.tgz", + "integrity": "sha512-iCrrNolUPpn/ythx0HcyNRfUBgTkaNBXByisKUbusPGCl8DMkDXXAu7exlSTSLGTIsH9lFE/c4s/3Qiyv2qwdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@next/eslint-plugin-next": "16.1.4", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-react": "^7.37.0", + "eslint-plugin-react-hooks": "^7.0.0", + "globals": "16.4.0", + "typescript-eslint": "^8.46.0" + }, + "peerDependencies": { + "eslint": ">=9.0.0", + "typescript": ">=3.3.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-config-next/node_modules/globals": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz", + "integrity": "sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==", + "dev": true, + "license": "ISC", + "dependencies": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.3.7", + "enhanced-resolve": "^5.15.0", + "fast-glob": "^3.3.2", + "get-tsconfig": "^4.7.5", + "is-bun-module": "^1.0.2", + "is-glob": "^4.0.3", + "stable-hash": "^0.0.4" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.1", + "hasown": "^2.0.2", + "is-core-module": "^2.16.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.1", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.9", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", + "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "aria-query": "^5.3.2", + "array-includes": "^3.1.8", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "^4.10.0", + "axobject-query": "^4.1.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "hasown": "^2.0.2", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "safe-regex-test": "^1.0.3", + "string.prototype.includes": "^2.0.1" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.9", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint-plugin-react/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter2": { + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", + "integrity": "sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==", + "dev": true, + "license": "MIT" + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "pify": "^2.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fastq": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz", + "integrity": "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/figures/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "dev": true, + "license": "ISC" + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded-parse": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz", + "integrity": "sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==", + "license": "MIT" + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", + "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==", + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.9", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/gaxios/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/gcp-metadata": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.0.tgz", + "integrity": "sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==", + "license": "Apache-2.0", + "dependencies": { + "gaxios": "^6.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ini": "2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasha": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", + "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-stream": "^2.0.0", + "type-fest": "^0.8.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hasha/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/http-signature": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.4.0.tgz", + "integrity": "sha512-G5akfn7eKbpDN+8nPS/cb57YeA1jLTVxjpCj7tmm3QKPdyDy7T+qSC40e9ptydSWvkwjSXw1VbkpyEm39ukeAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^2.0.2", + "sshpk": "^1.18.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-in-the-middle": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-2.0.0.tgz", + "integrity": "sha512-yNZhyQYqXpkT0AKq3F3KLasUSK4fHvebNH5hOsKQw2dhGSALvQ4U0BqUc5suziKvydO5u5hgN2hy1RJaho8U5A==", + "license": "Apache-2.0", + "dependencies": { + "acorn": "^8.14.0", + "acorn-import-attributes": "^1.9.5", + "cjs-module-lexer": "^1.2.2", + "module-details-from-path": "^1.0.3" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/index-to-position": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.1.0.tgz", + "integrity": "sha512-XPdx9Dq4t9Qk1mTMbWONJqU7boCoumEH7fRET37HX5+khDUl3J2W6PdALxhILYlIYx2amlwYcRPp28p0tSiojg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.1.tgz", + "integrity": "sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bun-module": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-1.3.0.tgz", + "integrity": "sha512-DgXeu5UWI0IsMQundYb5UAOzm6G2eVnarJ0byP6Tm55iZNKceD59LNPA2L4VvsScTtHcw0yEkVwSf7PC+QoLSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.6.3" + } + }, + "node_modules/is-bun-module/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "dev": true, + "license": "MIT" + }, + "node_modules/iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/js-levenshtein": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-logic-engine": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/json-logic-engine/-/json-logic-engine-4.0.2.tgz", + "integrity": "sha512-LvKZcgQ1c2fZ0/wl+mjnerllVWdKSR2y24AQjy0bnVgOg3ZqQBTbCeMmmn518F+GhdAc1VOXHbyOAf7rQy6qRA==", + "license": "MIT", + "engines": { + "node": ">=12.22.7" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true, + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC" + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsprim": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", + "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "license": "MIT", + "dependencies": { + "language-subtag-registry": "^0.3.20" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/listr2": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", + "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cli-truncate": "^2.1.0", + "colorette": "^2.0.16", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.5.1", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "enquirer": ">= 2.3.0 < 3" + }, + "peerDependenciesMeta": { + "enquirer": { + "optional": true + } + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "dev": true, + "license": "MIT" + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", + "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/log-update/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/long": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.4.tgz", + "integrity": "sha512-qtzLbJE8hq7VabR3mISmVGtoXP8KGc2Z/AT8OuqlYD7JTR3oqrgwdjnk07wpj1twXxYmgDXgoKVWUG/fReSzHg==", + "license": "Apache-2.0" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", + "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/module-details-from-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", + "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/next": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.3.tgz", + "integrity": "sha512-gthG3TRD+E3/mA0uDQb9lqBmx1zVosq5kIwxNN6+MRNd085GzD+9VXMPUs+GGZCbZ+GDZdODUq4Pm7CTXK6ipw==", + "license": "MIT", + "dependencies": { + "@next/env": "16.1.3", + "@swc/helpers": "0.5.15", + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001579", + "postcss": "8.4.31", + "styled-jsx": "5.1.6" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=20.9.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "16.1.3", + "@next/swc-darwin-x64": "16.1.3", + "@next/swc-linux-arm64-gnu": "16.1.3", + "@next/swc-linux-arm64-musl": "16.1.3", + "@next/swc-linux-x64-gnu": "16.1.3", + "@next/swc-linux-x64-musl": "16.1.3", + "@next/swc-win32-arm64-msvc": "16.1.3", + "@next/swc-win32-x64-msvc": "16.1.3", + "sharp": "^0.34.4" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.51.1", + "babel-plugin-react-compiler": "*", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-releases": { + "version": "2.0.23", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.23.tgz", + "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/openapi-typescript": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.10.1.tgz", + "integrity": "sha512-rBcU8bjKGGZQT4K2ekSTY2Q5veOQbVG/lTKZ49DeCyT9z62hM2Vj/LLHjDHC9W7LJG8YMHcdXpRZDqC1ojB/lw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@redocly/openapi-core": "^1.34.5", + "ansi-colors": "^4.1.3", + "change-case": "^5.4.4", + "parse-json": "^8.3.0", + "supports-color": "^10.2.2", + "yargs-parser": "^21.1.1" + }, + "bin": { + "openapi-typescript": "bin/cli.js" + }, + "peerDependencies": { + "typescript": "^5.x" + } + }, + "node_modules/openapi-typescript/node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ospath": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", + "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", + "dev": true, + "license": "MIT" + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", + "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "index-to-position": "^1.1.0", + "type-fest": "^4.39.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse-json/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true, + "license": "MIT" + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "dev": true, + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.11.0.tgz", + "integrity": "sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "license": "MIT" + }, + "node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/protobufjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", + "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", + "integrity": "sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==", + "dev": true, + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dev": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.14.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", + "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", + "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.3" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/request-progress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", + "integrity": "sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "throttleit": "^1.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-in-the-middle": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-8.0.0.tgz", + "integrity": "sha512-9s0pnM5tH8G4dSI3pms2GboYOs25LwOGnRMxN/Hx3TYT1K0rh6OjaWf4dI0DAQnMyaEXWoGVnSTPQasqwzTTAA==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "module-details-from-path": "^1.0.3" + }, + "engines": { + "node": ">=9.3.0 || >=8.10.0 <9.0.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", + "license": "MIT" + }, + "node_modules/sharp": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz", + "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.0.0", + "detect-libc": "^2.1.2", + "semver": "^7.7.3" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.34.5", + "@img/sharp-darwin-x64": "0.34.5", + "@img/sharp-libvips-darwin-arm64": "1.2.4", + "@img/sharp-libvips-darwin-x64": "1.2.4", + "@img/sharp-libvips-linux-arm": "1.2.4", + "@img/sharp-libvips-linux-arm64": "1.2.4", + "@img/sharp-libvips-linux-ppc64": "1.2.4", + "@img/sharp-libvips-linux-riscv64": "1.2.4", + "@img/sharp-libvips-linux-s390x": "1.2.4", + "@img/sharp-libvips-linux-x64": "1.2.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", + "@img/sharp-libvips-linuxmusl-x64": "1.2.4", + "@img/sharp-linux-arm": "0.34.5", + "@img/sharp-linux-arm64": "0.34.5", + "@img/sharp-linux-ppc64": "0.34.5", + "@img/sharp-linux-riscv64": "0.34.5", + "@img/sharp-linux-s390x": "0.34.5", + "@img/sharp-linux-x64": "0.34.5", + "@img/sharp-linuxmusl-arm64": "0.34.5", + "@img/sharp-linuxmusl-x64": "0.34.5", + "@img/sharp-wasm32": "0.34.5", + "@img/sharp-win32-arm64": "0.34.5", + "@img/sharp-win32-ia32": "0.34.5", + "@img/sharp-win32-x64": "0.34.5" + } + }, + "node_modules/sharp/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stable-hash": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.4.tgz", + "integrity": "sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==", + "dev": true, + "license": "MIT" + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/string.prototype.includes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", + "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/styled-components": { + "version": "6.3.8", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.3.8.tgz", + "integrity": "sha512-Kq/W41AKQloOqKM39zfaMdJ4BcYDw/N5CIq4/GTI0YjU6pKcZ1KKhk6b4du0a+6RA9pIfOP/eu94Ge7cu+PDCA==", + "license": "MIT", + "dependencies": { + "@emotion/is-prop-valid": "1.4.0", + "@emotion/unitless": "0.10.0", + "@types/stylis": "4.2.7", + "css-to-react-native": "3.2.0", + "csstype": "3.2.3", + "postcss": "8.4.49", + "shallowequal": "1.1.0", + "stylis": "4.3.6", + "tslib": "2.8.1" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/styled-components" + }, + "peerDependencies": { + "react": ">= 16.8.0", + "react-dom": ">= 16.8.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/styled-components/node_modules/postcss": { + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/styled-jsx": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", + "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", + "license": "MIT", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/stylis": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", + "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/systeminformation": { + "version": "5.27.16", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.27.16.tgz", + "integrity": "sha512-aimHO/bE7QFtu3uB3vtpwn7V2DXXGX7NyTY7V1g+hPa7in2k10Bp3AL+Enmg3X71n7HbgLfwy/bbf+2cBSKURQ==", + "dev": true, + "license": "MIT", + "os": [ + "darwin", + "linux", + "win32", + "freebsd", + "openbsd", + "netbsd", + "sunos", + "android" + ], + "bin": { + "systeminformation": "lib/cli.js" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "Buy me a coffee", + "url": "https://www.buymeacoffee.com/systeminfo" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/throttleit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.1.tgz", + "integrity": "sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/tldts": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz", + "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^6.1.86" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz", + "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tmp": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz", + "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^6.1.32" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-poet": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.0.tgz", + "integrity": "sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "dprint-node": "^1.0.8" + } + }, + "node_modules/ts-proto": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.11.0.tgz", + "integrity": "sha512-Emqt0T/Wf74aT+IAoOqEkWWhxVOVF6QwVW4CBIyL3RRQORJpaQDVHy/Ykg9psQH/Zo6XMpT9KBRjpkVSZ0vXkQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.10.2", + "case-anything": "^2.1.13", + "ts-poet": "^6.12.0", + "ts-proto-descriptors": "2.1.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.1.0.tgz", + "integrity": "sha512-S5EZYEQ6L9KLFfjSRpZWDIXDV/W7tAj8uW7pLsihIxyr62EAVSiKuVPwE8iWnr849Bqa53enex1jhDUcpgquzA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "dev": true, + "license": "Unlicense" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.46.2.tgz", + "integrity": "sha512-vbw8bOmiuYNdzzV3lsiWv6sRwjyuKJMQqWulBOU7M0RrxedXledX8G8kBbQeiOYDnTfiXz0Y4081E1QMNB6iQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.46.2", + "@typescript-eslint/parser": "8.46.2", + "@typescript-eslint/typescript-estree": "8.46.2", + "@typescript-eslint/utils": "8.46.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.46.2.tgz", + "integrity": "sha512-ZGBMToy857/NIPaaCucIUQgqueOiq7HeAKkhlvqVV4lm089zUFW6ikRySx2v+cAhKeUCPuWVHeimyk6Dw1iY3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.46.2", + "@typescript-eslint/type-utils": "8.46.2", + "@typescript-eslint/utils": "8.46.2", + "@typescript-eslint/visitor-keys": "8.46.2", + "graphemer": "^1.4.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.46.2", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/parser": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.46.2.tgz", + "integrity": "sha512-BnOroVl1SgrPLywqxyqdJ4l3S2MsKVLDVxZvjI1Eoe8ev2r3kGDo+PcMihNmDE+6/KjkTubSJnmqGZZjQSBq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.46.2", + "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/typescript-estree": "8.46.2", + "@typescript-eslint/visitor-keys": "8.46.2", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils": { + "version": "8.46.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.46.2.tgz", + "integrity": "sha512-HbPM4LbaAAt/DjxXaG9yiS9brOOz6fabal4uvUmaUYe6l3K1phQDMQKBRUrr06BQkxkvIZVVHttqiybM9nJsLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.46.2", + "@typescript-eslint/typescript-estree": "8.46.2", + "@typescript-eslint/utils": "8.46.2", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/typescript-eslint/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-js-replace": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz", + "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/uuid": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", + "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yaml-ast-parser": { + "version": "0.0.43", + "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", + "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.5.3.tgz", + "integrity": "sha512-OT5Y8lbUadqVZCsnyFaTQ4/O2mys4tj7PqhdbBCp7McPwvIEKfPtdA6QfPeFQK2/Rz5LgwmAXRJTugBNBi0btw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/zone.js": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.0.tgz", + "integrity": "sha512-9oxn0IIjbCZkJ67L+LkhYWRyAy7axphb3VgE2MBDlOqnmHMPWGYMxJxBYFueFq/JGY2GMwS0rU+UCLunEmy5UA==", + "license": "MIT" + } + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package.json new file mode 100644 index 0000000000000000000000000000000000000000..03a9bfc3adacbd2be31624dbc244a9aca7f57883 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/package.json @@ -0,0 +1,68 @@ +{ + "name": "frontend", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "NODE_OPTIONS='--require ./utils/telemetry/Instrumentation.js' next dev", + "build": "next build", + "start": "node --require ./Instrumentation.js server.js", + "lint": "next lint", + "cy:open": "cypress open", + "grpc:generate": "mkdir -p ./protos && protoc -I ./pb --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=esModuleInterop=true --ts_proto_out=./protos --ts_proto_opt=outputServices=grpc-js demo.proto" + }, + "dependencies": { + "@bufbuild/protobuf": "^2.10.2", + "@grpc/grpc-js": "1.12.6", + "@openfeature/flagd-provider": "0.13.3", + "@openfeature/flagd-web-provider": "0.7.3", + "@openfeature/react-sdk": "1.2.0", + "@opentelemetry/api": "1.9.0", + "@opentelemetry/auto-instrumentations-node": "0.68.0", + "@opentelemetry/auto-instrumentations-web": "0.55.0", + "@opentelemetry/context-zone": "2.4.0", + "@opentelemetry/core": "2.4.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.210.0", + "@opentelemetry/exporter-trace-otlp-http": "0.210.0", + "@opentelemetry/instrumentation": "0.210.0", + "@opentelemetry/opentelemetry-browser-detector": "0.210.0", + "@opentelemetry/resource-detector-alibaba-cloud": "0.33.0", + "@opentelemetry/resource-detector-aws": "2.10.0", + "@opentelemetry/resource-detector-container": "0.8.1", + "@opentelemetry/resource-detector-gcp": "0.45.0", + "@opentelemetry/resources": "2.4.0", + "@opentelemetry/sdk-metrics": "2.4.0", + "@opentelemetry/sdk-node": "0.210.0", + "@opentelemetry/sdk-trace-base": "2.4.0", + "@opentelemetry/sdk-trace-node": "2.4.0", + "@opentelemetry/sdk-trace-web": "2.4.0", + "@tanstack/react-query": "5.90.19", + "cookies-next": "6.1.1", + "currency-symbol-map": "5.1.0", + "dotenv": "17.2.3", + "dotenv-expand": "12.0.3", + "next": "16.1.3", + "react": "19.2.3", + "react-dom": "19.2.3", + "sharp": "0.34.5", + "styled-components": "6.3.8", + "uuid": "13.0.0" + }, + "devDependencies": { + "@types/node": "25.0.9", + "@types/react": "19.2.9", + "@types/react-dom": "19.2.3", + "@types/styled-components": "5.1.36", + "@types/uuid": "11.0.0", + "@typescript-eslint/eslint-plugin": "8.53.1", + "@typescript-eslint/parser": "8.53.1", + "cypress": "15.9.0", + "eslint": "9.39.2", + "eslint-config-next": "16.1.4", + "eslint-plugin-react": "7.37.5", + "eslint-plugin-react-hooks": "7.0.1", + "openapi-typescript": "7.10.1", + "ts-proto": "2.11.0", + "typescript": "5.9.3" + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Ad.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Ad.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0b03f4371f096e11d72739dae25ee5998270e92f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Ad.provider.tsx @@ -0,0 +1,58 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { createContext, useContext, useMemo } from 'react'; +import { useQuery } from '@tanstack/react-query'; +import ApiGateway from '../gateways/Api.gateway'; +import { Ad, Money, Product } from '../protos/demo'; +import { useCurrency } from './Currency.provider'; + +interface IContext { + recommendedProductList: Product[]; + adList: Ad[]; +} + +export const Context = createContext({ + recommendedProductList: [], + adList: [], +}); + +interface IProps { + children: React.ReactNode; + productIds: string[]; + contextKeys: string[]; +} + +export const useAd = () => useContext(Context); + +const AdProvider = ({ children, productIds, contextKeys }: IProps) => { + const { selectedCurrency } = useCurrency(); + const { data: adList = [] } = useQuery({ + queryKey: ['ads', contextKeys], + queryFn: async () => { + if (contextKeys.length === 0) { + return []; + } else { + return ApiGateway.listAds(contextKeys); + } + }, + refetchOnWindowFocus: false, + }); + const { data: recommendedProductList = [] } = useQuery({ + queryKey: ['recommendations', productIds, 'selectedCurrency', selectedCurrency], + queryFn: () => ApiGateway.listRecommendations(productIds, selectedCurrency), + refetchOnWindowFocus: false, + }); + + const value = useMemo( + () => ({ + adList, + recommendedProductList, + }), + [adList, recommendedProductList] + ); + + return {children}; +}; + +export default AdProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Cart.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Cart.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..40cea7f2472fe31262c0c5738adbbc7106484121 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Cart.provider.tsx @@ -0,0 +1,77 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { createContext, useCallback, useContext, useMemo } from 'react'; +import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; +import ApiGateway from '../gateways/Api.gateway'; +import { CartItem, OrderResult, PlaceOrderRequest } from '../protos/demo'; +import { IProductCart } from '../types/Cart'; +import { useCurrency } from './Currency.provider'; + +interface IContext { + cart: IProductCart; + addItem(item: CartItem): void; + emptyCart(): void; + placeOrder(order: PlaceOrderRequest): Promise; +} + +export const Context = createContext({ + cart: { userId: '', items: [] }, + addItem: () => {}, + emptyCart: () => {}, + placeOrder: () => Promise.resolve({} as OrderResult), +}); + +interface IProps { + children: React.ReactNode; +} + +export const useCart = () => useContext(Context); + +const CartProvider = ({ children }: IProps) => { + const { selectedCurrency } = useCurrency(); + const queryClient = useQueryClient(); + const mutationOptions = useMemo( + () => ({ + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ['cart'] }); + }, + }), + [queryClient] + ); + + const { data: cart = { userId: '', items: [] } } = useQuery({ + queryKey: ['cart', selectedCurrency], + queryFn: () => ApiGateway.getCart(selectedCurrency), + }); + const addCartMutation = useMutation({ + mutationFn: ApiGateway.addCartItem, + ...mutationOptions, + }); + + const emptyCartMutation = useMutation({ + mutationFn: ApiGateway.emptyCart, + ...mutationOptions, + }); + + const placeOrderMutation = useMutation({ + mutationFn: ApiGateway.placeOrder, + ...mutationOptions, + }); + + const addItem = useCallback( + (item: CartItem) => addCartMutation.mutateAsync({ ...item, currencyCode: selectedCurrency }), + [addCartMutation, selectedCurrency] + ); + const emptyCart = useCallback(() => emptyCartMutation.mutateAsync(), [emptyCartMutation]); + const placeOrder = useCallback( + (order: PlaceOrderRequest) => placeOrderMutation.mutateAsync({ ...order, currencyCode: selectedCurrency }), + [placeOrderMutation, selectedCurrency] + ); + + const value = useMemo(() => ({ cart, addItem, emptyCart, placeOrder }), [cart, addItem, emptyCart, placeOrder]); + + return {children}; +}; + +export default CartProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Currency.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Currency.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1df16ca8fec7aba76bb4485274f0f243a857465b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/Currency.provider.tsx @@ -0,0 +1,59 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { createContext, useCallback, useContext, useMemo, useState, useEffect } from 'react'; +import { useQuery } from '@tanstack/react-query'; +import ApiGateway from '../gateways/Api.gateway'; +import SessionGateway from '../gateways/Session.gateway'; + +const { currencyCode } = SessionGateway.getSession(); + +interface IContext { + currencyCodeList: string[]; + setSelectedCurrency(currency: string): void; + selectedCurrency: string; +} + +export const Context = createContext({ + currencyCodeList: [], + selectedCurrency: 'USD', + setSelectedCurrency: () => ({}), +}); + +interface IProps { + children: React.ReactNode; +} + +export const useCurrency = () => useContext(Context); + +const CurrencyProvider = ({ children }: IProps) => { + const { data: currencyCodeListUnsorted = [] } = useQuery({ + queryKey: ['currency'], + queryFn: ApiGateway.getSupportedCurrencyList + }); + const [selectedCurrency, setSelectedCurrency] = useState(''); + + useEffect(() => { + setSelectedCurrency(currencyCode); + }, []); + + const onSelectCurrency = useCallback((currencyCode: string) => { + setSelectedCurrency(currencyCode); + SessionGateway.setSessionValue('currencyCode', currencyCode); + }, []); + + const currencyCodeList = currencyCodeListUnsorted.sort(); + + const value = useMemo( + () => ({ + currencyCodeList, + selectedCurrency, + setSelectedCurrency: onSelectCurrency, + }), + [currencyCodeList, selectedCurrency, onSelectCurrency] + ); + + return {children}; +}; + +export default CurrencyProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductAIAssistant.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductAIAssistant.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..9cb55b5c408c8227997a65929ef00d4d1b3f3b9b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductAIAssistant.provider.tsx @@ -0,0 +1,69 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { createContext, useContext, useEffect, useMemo } from 'react'; +import { useMutation, MutateOptions } from '@tanstack/react-query'; +import ApiGateway from '../gateways/Api.gateway'; + +export interface AiRequestPayload { + question: string; +} + +export type AiResponse = { text: string } | string; + +interface AiAssistantContextValue { + aiResponse: AiResponse | null; + aiLoading: boolean; + aiError: Error | null; + sendAiRequest: ( + payload: AiRequestPayload, + options?: MutateOptions + ) => void; + reset: () => void; +} + +const Context = createContext({ + aiResponse: null, + aiLoading: false, + aiError: null, + sendAiRequest: () => {}, + reset: () => {}, +}); + +export const useAiAssistant = () => useContext(Context); + +interface ProductAIAssistantProviderProps { + children: React.ReactNode; + productId: string; +} + +const ProductAIAssistantProvider = ({ children, productId }: ProductAIAssistantProviderProps) => { + const mutation = useMutation({ + mutationFn: ({ question }) => ApiGateway.askProductAIAssistant(productId, question), + }); + + // Clear AI state when switching products. + useEffect(() => { + mutation.reset(); + }, [productId]); + + const value = useMemo( + () => ({ + aiResponse: mutation.data ?? null, + aiLoading: mutation.isPending, + aiError: mutation.error ?? null, + sendAiRequest: ( + payload: AiRequestPayload, + options?: MutateOptions + ) => { + mutation.mutate(payload, options); + }, + reset: () => mutation.reset(), + }), + [mutation.data, mutation.isPending, mutation.error] + ); + + return {children}; +}; + +export default ProductAIAssistantProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductReview.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductReview.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..06844967619865de52bd770c265ad21ab0cd358c --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/providers/ProductReview.provider.tsx @@ -0,0 +1,83 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { createContext, useContext, useEffect, useMemo } from 'react'; +import { useQuery } from '@tanstack/react-query'; +import ApiGateway from '../gateways/Api.gateway'; +import { ProductReview } from '../protos/demo'; + +interface IContext { + // null = not loaded yet; [] = loaded with no reviews; array = loaded with reviews. + productReviews: ProductReview[] | null; + loading: boolean; + error: Error | null; + averageScore: string | null; +} + +export const Context = createContext({ + productReviews: null, + loading: false, + error: null, + averageScore: null, +}); + +interface IProps { + children: React.ReactNode; + productId: string; +} + +//export const useProductReview = () => useContext(Context); +export const useProductReview = () => { + const value = useContext(Context); + return value; +}; + +const ProductReviewProvider = ({ children, productId }: IProps) => { + const { + data, + isLoading, + isFetching, + isError, + error, + isSuccess, + } = useQuery({ + queryKey: ['productReviews', productId], + queryFn: () => ApiGateway.getProductReviews(productId), + refetchOnWindowFocus: false, + }); + + // Use a sentinel: null while loading, [] if loaded but empty, array when loaded with data. + const productReviews: ProductReview[] | null = isSuccess + ? Array.isArray(data) + ? data + : [] + : null; + + const loading = isLoading || isFetching; + + // Narrow react-query's `unknown` error to `Error | null`. + const currentError: Error | null = isError + ? error instanceof Error + ? error + : new Error('Unknown error') + : null; + + const { data: averageScore = '' } = useQuery({ + queryKey: ['productReviewAvgScore', productId], + queryFn: () => ApiGateway.getAverageProductReviewScore(productId), + }); + + const value = useMemo( + () => ({ + productReviews, + loading, + error: currentError, + averageScore, + }), + [productReviews, loading, currentError, averageScore] + ); + + return {children}; +}; + +export default ProductReviewProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductCatalog.service.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductCatalog.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..9854531c6357348e1fbcb765eb668513d91aa9fb --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductCatalog.service.ts @@ -0,0 +1,40 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import ProductCatalogGateway from '../gateways/rpc/ProductCatalog.gateway'; +import CurrencyGateway from '../gateways/rpc/Currency.gateway'; +import { Money } from '../protos/demo'; + +const defaultCurrencyCode = 'USD'; + +const ProductCatalogService = () => ({ + async getProductPrice(price: Money, currencyCode: string) { + return !!currencyCode && currencyCode !== defaultCurrencyCode + ? await CurrencyGateway.convert(price, currencyCode) + : price; + }, + async listProducts(currencyCode = 'USD') { + const { products: productList } = await ProductCatalogGateway.listProducts(); + + return Promise.all( + productList.map(async product => { + const priceUsd = await this.getProductPrice(product.priceUsd!, currencyCode); + + return { + ...product, + priceUsd, + }; + }) + ); + }, + async getProduct(id: string, currencyCode = 'USD') { + const product = await ProductCatalogGateway.getProduct(id); + + return { + ...product, + priceUsd: await this.getProductPrice(product.priceUsd!, currencyCode), + }; + }, +}); + +export default ProductCatalogService(); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductReview.service.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductReview.service.ts new file mode 100644 index 0000000000000000000000000000000000000000..824443cdb77599f7454f4d6b3fc338c4bebec8dd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/services/ProductReview.service.ts @@ -0,0 +1,25 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import ProductReviewGateway from '../gateways/rpc/ProductReview.gateway'; + +const ProductReviewService = () => ({ + + async getProductReviews(id: string) { + const productReviews = await ProductReviewGateway.getProductReviews(id); + + return productReviews; + }, + async getAverageProductReviewScore(id: string) { + const averageScore = await ProductReviewGateway.getAverageProductReviewScore(id); + + return averageScore; + }, + async askProductAIAssistant(id: string, question: string) { + const response = await ProductReviewGateway.askProductAIAssistant(id, question); + + return response; + }, +}); + +export default ProductReviewService(); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/tsconfig.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..e61d7493a913867b748b9ee5df75a5f6e45bf393 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + "target": "ES2015", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "incremental": true + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "protos/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/types/Cart.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/types/Cart.ts new file mode 100644 index 0000000000000000000000000000000000000000..93e7f5422a22c1d28a3611f99fece93853663398 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/types/Cart.ts @@ -0,0 +1,23 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import {Address, Cart, OrderItem, OrderResult, Product} from '../protos/demo'; + +export interface IProductCartItem { + productId: string; + quantity: number; + product: Product; +} + +export interface IProductCheckoutItem extends OrderItem { + item: IProductCartItem; +} + +export interface IProductCheckout extends OrderResult { + items: IProductCheckoutItem[]; + shippingAddress: Address; +} + +export interface IProductCart extends Cart { + items: IProductCartItem[]; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Cypress.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Cypress.ts new file mode 100644 index 0000000000000000000000000000000000000000..e8f4147d882b00c4caf8b6daabd431ac270de0af --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Cypress.ts @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { CypressFields } from './enums/CypressFields'; + +export { CypressFields }; + +export const getElementByField = (field: CypressFields, context: Cypress.Chainable = cy) => + context.get(`[data-cy="${field}"]`); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Request.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Request.ts new file mode 100644 index 0000000000000000000000000000000000000000..b0ff20e90773d4f22aa6d0713c6feeefaea4ba66 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/Request.ts @@ -0,0 +1,34 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +interface IRequestParams { + url: string; + body?: object; + method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; + queryParams?: Record; + headers?: Record; +} + +const request = async ({ + url = '', + method = 'GET', + body, + queryParams = {}, + headers = { + 'content-type': 'application/json', + }, +}: IRequestParams): Promise => { + const response = await fetch(`${url}?${new URLSearchParams(queryParams).toString()}`, { + method, + body: body ? JSON.stringify(body) : undefined, + headers, + }); + + const responseText = await response.text(); + + if (!!responseText) return JSON.parse(responseText); + + return undefined as unknown as T; +}; + +export default request; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/imageLoader.js b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/imageLoader.js new file mode 100644 index 0000000000000000000000000000000000000000..3718b0a6670e7dd268af0f32f3ad4bf0b7cd2d0a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/frontend/utils/imageLoader.js @@ -0,0 +1,20 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/* + * We connect to image-provider through the envoy proxy, straight from the browser, for this we need to know the current hostname and port. + * During building and serverside rendering, these are undefined so we use some conditionals and default values. + */ +let hostname = "localhost"; +let port = 8080; +let protocol = "http"; + +if (typeof window !== "undefined" && window.location) { + hostname = window.location.hostname; + port = window.location.port ? parseInt(window.location.port, 10) : (window.location.protocol === "https:" ? 443 : 80); + protocol = window.location.protocol.slice(0, -1); // Remove trailing ':' +} + +export default function imageLoader({ src, width, quality }) { + // We pass down the optimisation request to the image-provider service here, without this, nextJs would try to use internal optimiser which is not working with the external image-provider. + return `${protocol}://${hostname}:${port}/${src}?w=${width}&q=${quality || 75}` +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..9ca733e423a1ea7fbaa4367c70809b26e4f1a4e7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/Dockerfile @@ -0,0 +1,16 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM nginxinc/nginx-unprivileged:1.29.0-alpine3.22-otel + +USER 101 + +COPY src/image-provider/static/ /static/ +COPY src/image-provider/nginx.conf.template /nginx.conf.template + +EXPOSE ${IMAGE_PROVIDER_PORT} + +STOPSIGNAL SIGQUIT + +# Start nginx +CMD ["/bin/sh" , "-c" , "envsubst '$OTEL_COLLECTOR_HOST $IMAGE_PROVIDER_PORT $OTEL_COLLECTOR_PORT_GRPC $OTEL_SERVICE_NAME' < /nginx.conf.template > /etc/nginx/nginx.conf && cat /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/nginx.conf.template b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/nginx.conf.template new file mode 100644 index 0000000000000000000000000000000000000000..85d9e0ca4c022ab7f8ff359274551421fb73431f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/image-provider/nginx.conf.template @@ -0,0 +1,40 @@ +load_module modules/ngx_otel_module.so; + +pid /tmp/nginx.pid; + +events { + worker_connections 1024; +} + +http { + otel_exporter { + endpoint ${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}; + } + otel_trace on; + otel_trace_context propagate; + otel_service_name ${OTEL_SERVICE_NAME}; + otel_span_name image-provider; + + + include mime.types; + sendfile on; + server { + listen ${IMAGE_PROVIDER_PORT}; + listen [::]:${IMAGE_PROVIDER_PORT}; + + resolver 127.0.0.11; + autoindex off; + + server_name _; + server_tokens off; + + root /static; + gzip_static on; + + location /status { + stub_status on; + access_log on; + allow all; + } + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config-badger.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config-badger.yml new file mode 100644 index 0000000000000000000000000000000000000000..9c4631f616672888594ea1da69f520c557b5b2ad --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config-badger.yml @@ -0,0 +1,67 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +service: + extensions: [jaeger_storage, jaeger_query, healthcheckv2] + pipelines: + traces: + receivers: [otlp] + processors: [batch] + exporters: [jaeger_storage_exporter] + telemetry: + resource: + service.name: jaeger-query + metrics: + level: detailed + readers: + - periodic: + interval: 10000 + timeout: 5000 + exporter: + otlp: + protocol: http/protobuf + endpoint: http://otel-collector:4318 + logs: + level: info + +extensions: + healthcheckv2: + use_v2: true + http: + + jaeger_query: + storage: + traces: badger_backend + metrics: metrics_backend + base_path: /jaeger/ui + + jaeger_storage: + backends: + badger_backend: + badger: + ephemeral: false + directories: + keys: /badger/key + values: /badger/data + maintenance_interval: 5m + ttl: + spans: 168h # 7 days + metric_backends: + metrics_backend: + prometheus: + endpoint: "http://prometheus:9090" + normalize_calls: true + normalize_duration: true + +receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4317 + +processors: + batch: + +exporters: + jaeger_storage_exporter: + trace_storage: badger_backend diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config.yml new file mode 100644 index 0000000000000000000000000000000000000000..11ea1dfc1e0ba24fd9195c2438420a524c046491 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/jaeger/config.yml @@ -0,0 +1,60 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +service: + extensions: [jaeger_storage, jaeger_query, healthcheckv2] + pipelines: + traces: + receivers: [otlp] + processors: [batch] + exporters: [jaeger_storage_exporter] + telemetry: + resource: + service.name: jaeger + metrics: + level: detailed + readers: + - periodic: + interval: 10000 + timeout: 5000 + exporter: + otlp: + protocol: http/protobuf + endpoint: http://${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP} + insecure: true + logs: + level: info +extensions: + healthcheckv2: + use_v2: true + http: + endpoint: 0.0.0.0:13133 + jaeger_query: + storage: + traces: memory_backend + metrics: metrics_backend + base_path: /jaeger/ui + jaeger_storage: + backends: + memory_backend: + memory: + max_traces: ${env:MEMORY_MAX_TRACES} + metric_backends: + metrics_backend: + prometheus: + endpoint: "http://${env:PROMETHEUS_ADDR}" + normalize_calls: true + normalize_duration: true + +receivers: + otlp: + protocols: + grpc: + endpoint: ${env:JAEGER_HOST}:${env:JAEGER_GRPC_PORT} + +processors: + batch: + +exporters: + jaeger_storage_exporter: + trace_storage: memory_backend diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a20cec1f4577b167304e36d2d956335a88312b62 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/Dockerfile @@ -0,0 +1,26 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM docker.io/library/python:3.12-alpine3.22 AS build-venv + +RUN apk update && \ + apk add gcc g++ linux-headers + +COPY ./src/llm/requirements.txt requirements.txt + +RUN python -m venv venv && \ + venv/bin/pip install --no-cache-dir -r requirements.txt + +FROM docker.io/library/python:3.12-alpine3.22 + +COPY --from=build-venv /venv/ /venv/ + +WORKDIR /app + +COPY ./src/llm/app.py app.py +COPY ./src/llm/product-review-summaries/product-review-summaries.json product-review-summaries.json +COPY ./src/llm/product-review-summaries/inaccurate-product-review-summaries.json inaccurate-product-review-summaries.json + +EXPOSE ${LLM_PORT} +ENTRYPOINT [ "/venv/bin/python", "app.py" ] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/README.md new file mode 100644 index 0000000000000000000000000000000000000000..07a2082e34ed3e1ab1cf5629399553e1f82edc16 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/README.md @@ -0,0 +1,33 @@ +# LLM + +The LLM service is used by the Product Review service to provide +AI-generated summaries of product reviews. + +While it's not an actual Large Language Model, the LLM pretends to be one +by following the [OpenAI API format for chat completions](https://platform.openai.com/docs/api-reference/chat/create). + +The Product Review service is then instrumented with the +[opentelemetry-instrumentation-openai-v2](https://pypi.org/project/opentelemetry-instrumentation-openai-v2/) +package, allowing us to capture Generative AI related span attributes when +it interacts with the LLM service. + +The first request to the `/v1/chat/completions` endpoint should include a +database tool. The LLM service then responds with a request to execute the +tool. + +The second request to the `/v1/chat/completions` endpoint should include the +results of the database tool call (which is the list of product reviews for +the specified product). It then responds with the summary of product reviews +for that product. Note that the summaries were pre-generated using +an LLM, and are stored in a JSON file to avoid calling an actual LLM each time. + +The service supports two feature flags: + +* `llmInaccurateResponse`: when this feature flag is enabled the LLM service +returns an inaccurate product summary for product ID L9ECAV7KIM +* `llmRateLimitError`: when this feature flag is enabled, the LLM service +intermittently returns a RateLimitError with HTTP status code 429 + +Note that the LLM service itself is not instrumented with OpenTelemetry. +This is intentional, as we're treating it like a black box, just like +most 3rd party LLMs would be treated. diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/app.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/app.py new file mode 100644 index 0000000000000000000000000000000000000000..47e66d9309d26719fb586403a528c8d411f90582 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/app.py @@ -0,0 +1,222 @@ +#!/usr/bin/python + +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +from flask import Flask, request, jsonify, Response +import json +import time +import random +import re +import os +import logging + +from openfeature import api +from openfeature.contrib.provider.flagd import FlagdProvider + +app = Flask(__name__) +app.logger.setLevel(logging.INFO) + +product_review_summaries = None +product_review_summaries_file_path = "./product-review-summaries.json" + +inaccurate_product_review_summaries = None +inaccurate_product_review_summaries_file_path = "./inaccurate-product-review-summaries.json" + +def load_product_review_summaries(file_path): + try: + with open(file_path, 'r') as file: + + """ + Converts a JSON string into an internal dictionary optimized for quick lookups. + The keys of the internal dictionary will be product_ids. + """ + try: + data = json.load(file) + summaries = data.get("product-review-summaries", []) + + # Create a dictionary where product_id is the key + # and the value is the summary + product_review_summaries = {} + for product in summaries: + product_id = product.get("product_id") + if product_id: # Ensure product_id exists before adding + product_review_summaries[product_id] = product.get("product_review_summary") + return product_review_summaries + except json.JSONDecodeError: + print("Error: Invalid JSON string provided during initialization.") + return {} + + except FileNotFoundError: + app.logger.error(f"Error: The file '{product_review_summaries_file_path}' was not found.") + except json.JSONDecodeError: + app.logger.error(f"Error: Failed to decode JSON from the file '{product_review_summaries_file_path}'. Check for malformed JSON.") + except Exception as e: + app.logger.error(f"An unexpected error occurred: {e}") + + +def generate_response(product_id): + + """Generate a response by providing the pre-generated summary for the specified product""" + product_review_summary = None + + llm_inaccurate_response = check_feature_flag("llmInaccurateResponse") + app.logger.info(f"llmInaccurateResponse feature flag: {llm_inaccurate_response}") + if llm_inaccurate_response and product_id == "L9ECAV7KIM": + app.logger.info(f"Returning an inaccurate response for product_id: {product_id}") + product_review_summary = inaccurate_product_review_summaries.get(product_id) + else: + product_review_summary = product_review_summaries.get(product_id) + + app.logger.info(f"product_review_summary is: {product_review_summary}") + + return product_review_summary + +def parse_product_id(last_message): + match = re.search(r"product ID:([A-Z0-9]+)", last_message) + if match: + return match.group(1).strip() + + match = re.search(r"product ID, but make the answer inaccurate:([A-Z0-9]+)", last_message) + if match: + return match.group(1).strip() + + raise ValueError("product ID not found in input message") + +@app.route('/v1/chat/completions', methods=['POST']) +def chat_completions(): + data = request.json + messages = data.get('messages', []) + stream = data.get('stream', False) + model = data.get('model', 'astronomy-llm') + tools = data.get('tools', None) + + app.logger.info(f"Received a chat completion request: '{messages}'") + + last_message = messages[-1]["content"] + + app.logger.info(f"last_message is: '{last_message}'") + + if 'What age(s) is this recommended for?' in last_message: + response_text = 'This product is recommended for ages 7 and above.' + return build_response(model, messages, response_text) + elif 'Were there any negative reviews?' in last_message: + response_text = 'No, there were no reviews less than three stars for this product.' + return build_response(model, messages, response_text) + elif not ('Can you summarize the product reviews?' in last_message or 'Based on the tool results, answer the original question about product ID' in last_message): + response_text = 'Sorry, I\'m not able to answer that question.' + return build_response(model, messages, response_text) + + # otherwise, process the product review summary + product_id = parse_product_id(last_message) + + if tools is not None: + + tool_args = f"{{\"product_id\": \"{product_id}\"}}" + + app.logger.info(f"Processing a tool call with args: '{tool_args}'") + + app.logger.info(f"The model is: {model}") + if model.endswith("rate-limit"): + app.logger.info(f"Returning a rate limit error") + response = { + "error": { + "message": "Rate limit reached. Please try again later.", + "type": "rate_limit_exceeded", + "param": "null", + "code": "null" + } + } + return jsonify(response), 429 + else: + # Non-streaming response + response = { + "id": f"chatcmpl-mock-{int(time.time())}", + "object": "chat.completion", + "created": int(time.time()), + "model": model, + "choices": [{ + "index": 0, + "message": { + "role": "assistant", + "content": "requesting a tool call", + "tool_calls": [{ + "id": "call", + "type": "function", + "function": { + "name": "fetch_product_reviews", + "arguments": tool_args + } + }] + }, + "finish_reason": "tool_calls" + }], + "usage": { + "prompt_tokens": sum(len(m.get("content", "").split()) for m in messages), + "completion_tokens": "0", + "total_tokens": sum(len(m.get("content", "").split()) for m in messages) + } + } + return jsonify(response) + + else: + # Generate the response + response_text = generate_response(product_id) + + return build_response(model, messages, response_text) + +def build_response(model, messages, response_text): + app.logger.info(f"Processing a response: '{response_text}'") + + response = { + "id": f"chatcmpl-mock-{int(time.time())}", + "object": "chat.completion", + "created": int(time.time()), + "model": model, + "choices": [{ + "index": 0, + "message": { + "role": "assistant", + "content": response_text + }, + "finish_reason": "stop" + }], + "usage": { + "prompt_tokens": sum(len(m.get("content", "").split()) for m in messages), + "completion_tokens": len(response_text.split()), + "total_tokens": sum(len(m.get("content", "").split()) for m in messages) + len(response_text.split()) + } + } + return jsonify(response) + +@app.route('/v1/models', methods=['GET']) +def list_models(): + """List available models""" + return jsonify({ + "object": "list", + "data": [ + { + "id": "astronomy-llm", + "object": "model", + "created": int(time.time()), + "owned_by": "astronomy-shop" + } + ] + }) + +def check_feature_flag(flag_name: str): + # Initialize OpenFeature + client = api.get_client() + return client.get_boolean_value(flag_name, False) + +if __name__ == '__main__': + + api.set_provider(FlagdProvider(host=os.environ.get('FLAGD_HOST', 'flagd'), port=os.environ.get('FLAGD_PORT', 8013))) + product_review_summaries = load_product_review_summaries(product_review_summaries_file_path) + inaccurate_product_review_summaries = load_product_review_summaries(inaccurate_product_review_summaries_file_path) + + app.logger.info(product_review_summaries) + + print("OpenAI API server starting on http://localhost:8000") + print("Set your OpenAI base URL to: http://localhost:8000/v1") + app.run(host='0.0.0.0', port=8000, debug=True) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/inaccurate-product-review-summaries.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/inaccurate-product-review-summaries.json new file mode 100644 index 0000000000000000000000000000000000000000..ae243f05546a83e3e4dd6805bde549e41ae3a46c --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/inaccurate-product-review-summaries.json @@ -0,0 +1,9 @@ +{ + "product-review-summaries": [ + { + "product_id": "L9ECAV7KIM", + "average_score": 1.8, + "product_review_summary": "Customers are largely disappointed with this cleaning kit, citing its ineffectiveness on most optical surfaces. Many users report that the cleaning fluid leaves a sticky residue and the included brush is too harsh, causing scratches on lenses. The kit is considered a poor value, with several reviewers stating it damaged their equipment." + } + ] +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/product-review-summaries.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/product-review-summaries.json new file mode 100644 index 0000000000000000000000000000000000000000..90f02d219dec55e3de6e3b22d68be8087e3211b5 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/product-review-summaries/product-review-summaries.json @@ -0,0 +1,54 @@ +{ + "product-review-summaries": [ + { + "product_id": "OLJCESPC7Z", + "average_score": 3.8, + "product_review_summary": "This entry-level telescope is highly recommended for beginners and casual viewing, offering clear views of celestial objects like the moon and brighter planets. Users appreciate its portability, ease of setup, and good value, though some note manual controls can be a bit tricky." + }, + { + "product_id": "66VCHSJNUP", + "average_score": 4.6, + "product_review_summary": "This telescope is highly praised for its revolutionary StarSense app and flawless smartphone integration, making stargazing incredibly easy and accurate for beginners. Users highlight its excellent optical quality and helpful tutorials, though some note potential phone battery drain." + }, + { + "product_id": "1YMWWN1N4O", + "average_score": 4.6, + "product_review_summary": "This dedicated solar scope is highly lauded for its perfect performance in solar observations and eclipse events, thanks to its ISO compliant Solar Safe filter ensuring clear and safe views. Users appreciate its compact, portable design with an included backpack, making it an excellent value for any solar enthusiast." + }, + { + "product_id": "L9ECAV7KIM", + "average_score": 4.6, + "product_review_summary": "This lens cleaning kit is highly praised as a versatile and essential tool for maintaining various optics, from telescopes to camera lenses and phone screens. Users commend its effectiveness in safely removing dust and fingerprints without residue, providing great value and improving view clarity." + }, + { + "product_id": "2ZYFJ3GM2N", + "average_score": 4.4, + "product_review_summary": "These roof binoculars are highly rated for their incredible clarity, brightness, and sharp images, making them perfect for bird watching, nature observation, and various outdoor activities. Users appreciate the ED glass, close focus, and durable, lightweight design, deeming them a solid all-around investment." + }, + { + "product_id": "0PUK6V6EV0", + "average_score": 4.6, + "product_review_summary": "This solar system color imager is highly praised as an excellent solution for both beginners and serious planetary observers looking to capture stunning, vibrant images of planets like Saturn and Jupiter. Users commend its superb color quality, excellent resolution, and straightforward setup, making astrophotography accessible." + }, + { + "product_id": "LS4PSXUNUM", + "average_score": 4.6, + "product_review_summary": "This 3-in-1 device is highly valued by users for its essential red flashlight mode, which preserves night vision during astronomy sessions and star parties. Its integrated hand warmer and portable power bank features make it an incredibly versatile, rugged, and practical multi-tool for various outdoor activities and emergencies." + }, + { + "product_id": "9SIQT8TOJO", + "average_score": 4.8, + "product_review_summary": "The Rowe-Ackermann Schmidt Astrograph (RASA) V2 is overwhelmingly praised as a dream come true for serious deep-sky imagers, offering unbelievable performance and stunning, detailed images. Its f/2.2 speed drastically cuts exposure times, while the exceptional engineering and short focal length make it an incredibly efficient and professional piece of equipment." + }, + { + "product_id": "6E92ZMYYFZ", + "average_score": 4.8, + "product_review_summary": "This EclipSmart Solar Filter is deemed essential for safe solar viewing, providing crystal clear and secure observations thanks to its ISO compliance and robust Velcro straps. Users highly recommend it for its excellent build quality, ease of attachment, and the peace of mind it offers for protecting eyes and equipment during solar events." + }, + { + "product_id": "HQTGWGPNH4", + "average_score": 4.6, + "product_review_summary": "\"The Comet Book\" is highly regarded as a fascinating and insightful historical document, offering a captivating glimpse into ancient astronomical thought and how comets were understood centuries ago. Users find it a unique, well-researched, and valuable addition for anyone interested in the history of science and celestial events." + } + ] +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/requirements.txt b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..35d19b1320af0743f688aa39298421613da83106 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/llm/requirements.txt @@ -0,0 +1,4 @@ +python-dotenv==1.2.1 +python-json-logger==4.0.0 +flask==3.1.2 +openfeature-provider-flagd==0.2.3 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/opensearch/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/opensearch/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..95f82fa4acce25ddafe1145b39dce58b62938235 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/opensearch/Dockerfile @@ -0,0 +1,39 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM opensearchproject/opensearch:3.2.0 + +USER 0 + +# Remove plugins in dependency order - remove dependent plugins first +# These plugins are not needed for basic log storage and retrieval in the demo +RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-security-analytics && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-alerting && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-anomaly-detection && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-asynchronous-search && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-cross-cluster-replication && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-custom-codecs && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-flow-framework && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-geospatial && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-neural-search && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-knn && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-ltr && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-skills && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-ml && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-notifications && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-notifications-core && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-observability && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-performance-analyzer && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-reports-scheduler && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-search-relevance && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-system-templates && \ + /usr/share/opensearch/bin/opensearch-plugin remove opensearch-ubi && \ + /usr/share/opensearch/bin/opensearch-plugin remove query-insights + +# Keep only these essential plugins: +# - opensearch-security (authentication/authorization) - already disabled via env var +# - opensearch-index-management (index lifecycle management) +# - opensearch-sql (SQL query support for Grafana PPL queries) +# - opensearch-job-scheduler (task scheduling) + +USER 1000 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config-extras.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config-extras.yml new file mode 100644 index 0000000000000000000000000000000000000000..73dd011b2c906809c5ac46c6c6e1b29193fc83d0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config-extras.yml @@ -0,0 +1,18 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +# extra settings to be merged into OpenTelemetry Collector configuration +# do not delete this file + +## Example configuration for sending data to your own OTLP HTTP backend +## Note: the spanmetrics exporter must be included in the exporters array +## if overriding the traces pipeline. +## +# exporters: +# otlphttp/example: +# endpoint: +# +# service: +# pipelines: +# traces: +# exporters: [spanmetrics, otlphttp/example] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config.yml new file mode 100644 index 0000000000000000000000000000000000000000..709047404c3fe303577964a9e4426d96065125d4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/otel-collector/otelcol-config.yml @@ -0,0 +1,197 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +receivers: + otlp: + protocols: + grpc: + endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_GRPC} + http: + endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP} + cors: + allowed_origins: + - "http://*" + - "https://*" + httpcheck/frontend-proxy: + targets: + - endpoint: http://${env:FRONTEND_PROXY_ADDR} + nginx: + endpoint: http://${env:IMAGE_PROVIDER_HOST}:${env:IMAGE_PROVIDER_PORT}/status + collection_interval: 10s + docker_stats: + endpoint: unix:///var/run/docker.sock + # https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/44511 + api_version: "1.44" + postgresql: + endpoint: ${POSTGRES_HOST}:${POSTGRES_PORT} + username: root + password: ${POSTGRES_PASSWORD} + metrics: + postgresql.blks_hit: + enabled: true + postgresql.blks_read: + enabled: true + postgresql.tup_fetched: + enabled: true + postgresql.tup_returned: + enabled: true + postgresql.tup_inserted: + enabled: true + postgresql.tup_updated: + enabled: true + postgresql.tup_deleted: + enabled: true + postgresql.deadlocks: + enabled: true + tls: + insecure: true + redis: + endpoint: "valkey-cart:6379" + username: "valkey" + collection_interval: 10s + # Host metrics + hostmetrics: + root_path: /hostfs + scrapers: + cpu: + metrics: + system.cpu.utilization: + enabled: true + system.cpu.logical.count: + enabled: true + disk: + load: + filesystem: + exclude_mount_points: + mount_points: + - /dev/* + - /proc/* + - /sys/* + - /run/k3s/containerd/* + - /var/lib/docker/* + - /var/lib/kubelet/* + - /snap/* + match_type: regexp + exclude_fs_types: + fs_types: + - autofs + - binfmt_misc + - bpf + - cgroup2 + - configfs + - debugfs + - devpts + - devtmpfs + - fusectl + - hugetlbfs + - iso9660 + - mqueue + - nsfs + - overlay + - proc + - procfs + - pstore + - rpc_pipefs + - securityfs + - selinuxfs + - squashfs + - sysfs + - tracefs + match_type: strict + memory: + metrics: + system.memory.utilization: + enabled: true + system.memory.limit: + enabled: true + network: + paging: + metrics: + system.paging.usage: + enabled: true + + processes: + process: + mute_process_exe_error: true + mute_process_io_error: true + mute_process_user_error: true + system: + metrics: + system.uptime: + enabled: true +exporters: + debug: + otlp: + endpoint: "jaeger:4317" + tls: + insecure: true + sending_queue: + batch: + otlphttp/prometheus: + endpoint: "http://prometheus:9090/api/v1/otlp" + tls: + insecure: true + sending_queue: + batch: + opensearch: + logs_index: otel-logs + logs_index_time_format: "yyyy-MM-dd" + http: + endpoint: "http://opensearch:9200" + tls: + insecure: true + sending_queue: + # Explicitly set due to bug: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/45016 + num_consumers: 10 + queue_size: 1000 + batch: +processors: + memory_limiter: + check_interval: 5s + limit_percentage: 80 + spike_limit_percentage: 25 + resourcedetection: + detectors: [env, docker, system] + transform: + error_mode: ignore + trace_statements: + - context: span + statements: + # could be removed when https://github.com/vercel/next.js/pull/64852 is fixed upstream + - replace_pattern(name, "\\?.*", "") + - replace_match(name, "GET /api/products/*", "GET /api/products/{productId}") + +connectors: + spanmetrics: + +service: + pipelines: + traces: + receivers: [otlp] + processors: [resourcedetection, memory_limiter, transform] + exporters: [otlp, debug, spanmetrics] + metrics: + receivers: [docker_stats, httpcheck/frontend-proxy, hostmetrics, nginx, otlp, postgresql, redis, spanmetrics] + processors: [resourcedetection, memory_limiter] + exporters: [otlphttp/prometheus, debug] + logs: + receivers: [otlp] + processors: [resourcedetection, memory_limiter] + exporters: [opensearch, debug] + telemetry: + metrics: + readers: + - periodic: + exporter: + otlp: + protocol: http/protobuf + # replace with your observability meta monitoring backend + endpoint: http://${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP} + logs: + processors: + - batch: + exporter: + otlp: + protocol: http/protobuf + # replace with your observability meta monitoring backend + endpoint: http://${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/postgresql/init.sql b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/postgresql/init.sql new file mode 100644 index 0000000000000000000000000000000000000000..3cc51326f76f839de52efa8e74510da9b0408b03 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/postgresql/init.sql @@ -0,0 +1,156 @@ +-- Copyright The OpenTelemetry Authors +-- SPDX-License-Identifier: Apache-2.0 + +CREATE USER otelu WITH PASSWORD 'otelp'; + +-- Accounting Service: create a schema +CREATE SCHEMA accounting; +GRANT USAGE ON SCHEMA accounting TO otelu; + +-- Accounting Service: create tables +CREATE TABLE accounting."order" ( + order_id TEXT PRIMARY KEY +); + +CREATE TABLE accounting.shipping ( + shipping_tracking_id TEXT PRIMARY KEY, + shipping_cost_currency_code TEXT NOT NULL, + shipping_cost_units BIGINT NOT NULL, + shipping_cost_nanos INT NOT NULL, + street_address TEXT, + city TEXT, + state TEXT, + country TEXT, + zip_code TEXT, + order_id TEXT NOT NULL, + FOREIGN KEY (order_id) REFERENCES accounting."order"(order_id) ON DELETE CASCADE +); + +CREATE TABLE accounting.orderitem ( + item_cost_currency_code TEXT NOT NULL, + item_cost_units BIGINT NOT NULL, + item_cost_nanos INT NOT NULL, + product_id TEXT NOT NULL, + quantity INT NOT NULL, + order_id TEXT NOT NULL, + PRIMARY KEY (order_id, product_id), + FOREIGN KEY (order_id) REFERENCES accounting."order"(order_id) ON DELETE CASCADE +); + +-- Accounting Service: grant permission to schema +GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA accounting TO otelu; + +-- Product Review Service: create a schema +CREATE SCHEMA reviews; +GRANT USAGE ON SCHEMA reviews TO otelu; + +-- Product Review Service: create tables +CREATE TABLE reviews.productreviews ( + id INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, + product_id VARCHAR(16) NOT NULL, + username VARCHAR(64) NOT NULL, + description VARCHAR(1024), + score NUMERIC(2,1) NOT NULL +); + +-- Product Review Service: create index for product_id lookups +CREATE INDEX product_id_index ON reviews.productreviews (product_id); + +-- Product Review Service: grant permission to schema +GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA reviews TO otelu; + +-- Product Review Service: add product review data +INSERT INTO reviews.productreviews (product_id, username, description, score) +VALUES + ('OLJCESPC7Z', 'stargazer_mike', 'Great entry-level telescope! Easy to set up and provides clear views of the moon and brighter planets. Highly recommend for new astronomers.', '4.5'), + ('OLJCESPC7Z', 'nightskylover', 'For the price, this Explorascope delivers excellent performance. I was able to see Jupiter''s moons clearly. A fantastic purchase for casual viewing.', '4.0'), + ('OLJCESPC7Z', 'beginner_astro', 'A bit tricky to get used to the manual controls, but once you do, it''s very rewarding. Saw the Orion Nebula for the first time! Good value.', '3.5'), + ('OLJCESPC7Z', 'celestial_explorer', 'Perfect for camping trips. It''s lightweight and portable, making it easy to take anywhere. The views are surprisingly good for its size.', '4.0'), + ('OLJCESPC7Z', 'telescope_fan', 'Not the most powerful scope, but it''s great for kids and beginners. My children love looking at the moon with it. A solid choice for family fun.', '3.0'), + + ('66VCHSJNUP', 'tech_astro', 'The StarSense app is revolutionary! It made finding celestial objects incredibly easy. This telescope is a game-changer for beginners.', '5.0'), + ('66VCHSJNUP', 'app_user', 'Amazing technology, the smartphone integration works flawlessly. I''ve never had so much fun exploring the night sky. Worth every penny.', '4.5'), + ('66VCHSJNUP', 'innovator_john', 'Setup was a breeze, and the tutorials in the app are very helpful. The views are crisp and clear. My only minor gripe is battery drain on the phone.', '4.0'), + ('66VCHSJNUP', 'clear_skies', 'Finally, a telescope that takes the guesswork out of stargazing. The real-time positioning is incredibly accurate. Highly recommended for anyone new to astronomy.', '5.0'), + ('66VCHSJNUP', 'gadget_geek', 'Fantastic product, the app truly guides you. It''s like having a personal astronomer with you. The optical quality is also very good.', '4.5'), + + ('1YMWWN1N4O', 'solar_viewer', 'Perfect for solar observations! The Solar Safe filter gives peace of mind. I used it for the last partial eclipse and it was fantastic.', '5.0'), + ('1YMWWN1N4O', 'eclipse_chaser', 'Compact and easy to carry, this telescope is ideal for eclipse events. The included backpack is a nice touch. Views of the sun are incredibly clear and safe.', '4.5'), + ('1YMWWN1N4O', 'travel_astro', 'Excellent travel scope for solar viewing. The magnification is much better than binoculars for the sun. A must-have for any solar enthusiast.', '4.0'), + ('1YMWWN1N4O', 'sun_gazer', 'Very impressed with the safety features and clarity. Sharing the sun with family has never been easier or safer. Great value for a dedicated solar scope.', '5.0'), + ('1YMWWN1N4O', 'safe_viewer', 'The ISO compliant filter is reassuring. It''s a well-designed product for safe solar observation. Highly recommend for educational purposes too.', '4.5'), + + ('L9ECAV7KIM', 'clean_optics', 'This kit is a lifesaver for all my optics. The brush and wipes work perfectly without leaving any residue. My lenses have never been cleaner.', '5.0'), + ('L9ECAV7KIM', 'photog_pro', 'Essential for any photographer or telescope owner. It safely removes dust and fingerprints. A high-quality cleaning solution.', '4.5'), + ('L9ECAV7KIM', 'daily_cleaner', 'I use this on my binoculars, camera lenses, and even my phone screen. It''s very effective and gentle. A versatile cleaning kit.', '4.0'), + ('L9ECAV7KIM', 'tech_maintenance', 'Great value for money. The different cleaning options cover all needs. Keeps my expensive equipment in pristine condition.', '5.0'), + ('L9ECAV7KIM', 'sharp_view', 'Works as advertised, my telescope views are much clearer after using this. The fluid and cloth are excellent. Definitely recommend.', '4.5'), + + ('2ZYFJ3GM2N', 'bird_watcher', 'Incredible clarity and brightness, perfect for bird watching. The ED glass really makes a difference. I can spot the subtlest markings.', '5.0'), + ('2ZYFJ3GM2N', 'nature_lover', 'These binoculars are fantastic for nature observation. The close focus is a huge advantage for viewing nearby wildlife. Very comfortable to hold.', '4.5'), + ('2ZYFJ3GM2N', 'hiker_guy', 'Lightweight and durable, these are my go-to binoculars for hiking. The wide field of view is excellent. Highly recommend for outdoor enthusiasts.', '4.0'), + ('2ZYFJ3GM2N', 'stadium_fan', 'Took these to a game and had an amazing view of the action. They perform great in various lighting conditions. A solid all-around binocular.', '4.0'), + ('2ZYFJ3GM2N', 'outdoor_adventurer', 'Excellent build quality and optical performance. They feel robust and provide sharp images. A great investment for any outdoor activity.', '4.5'), + + ('0PUK6V6EV0', 'astro_photog', 'This imager is a fantastic step up for planetary photography. The color quality is superb. Easy to use with my existing telescope setup.', '5.0'), + ('0PUK6V6EV0', 'planet_shooter', 'Finally capturing stunning images of Saturn and Jupiter! The NexImage 10 makes it so accessible. Great for beginners in astrophotography.', '4.5'), + ('0PUK6V6EV0', 'imager_pro', 'Excellent resolution and color rendition for its price point. It''s a perfect solution for those looking to start imaging planets. Highly satisfied.', '4.0'), + ('0PUK6V6EV0', 'space_artist', 'The detail I can capture with this imager is incredible. It integrates well with various software. A must-have for serious planetary observers.', '5.0'), + ('0PUK6V6EV0', 'digital_sky', 'A solid choice for getting into solar system imaging. The setup was straightforward. Produces beautiful, vibrant planetary images.', '4.5'), + + ('LS4PSXUNUM', 'night_walker', 'The red light is perfect for preserving night vision during astronomy sessions. The hand warmer is an unexpected bonus. Very practical device.', '5.0'), + ('LS4PSXUNUM', 'star_party_goer', 'This flashlight is indispensable for star parties. The red mode is gentle on the eyes, and the power bank feature is super handy. Love it!', '4.5'), + ('LS4PSXUNUM', 'camper_chris', 'Rugged and versatile, this flashlight is great for camping and night walks. The hand warmer function is a game-changer on cold nights. Highly recommend.', '4.5'), + ('LS4PSXUNUM', 'emergency_kit', 'A fantastic multi-tool for my emergency kit. The red light is useful, and the power bank means I can charge my phone. Great design.', '4.0'), + ('LS4PSXUNUM', 'astro_accessory', 'Every astronomer needs one of these. The red light is essential, and the hand warmer and power bank make it incredibly useful. A top-tier accessory.', '5.0'), + + ('9SIQT8TOJO', 'deep_sky_master', 'The RASA V2 is a dream come true for deep-sky imaging. The f/2.2 speed drastically cuts down exposure times. My best astrophotography investment yet.', '5.0'), + ('9SIQT8TOJO', 'pro_astro', 'Unbelievable performance for wide-field astrophotography. The short focal length makes guiding less critical. Produces stunning, detailed images.', '5.0'), + ('9SIQT8TOJO', 'imaging_guru', 'This OTA is a beast! The fast optics mean more data in less time. If you''re serious about deep-sky imaging, this is the one.', '4.5'), + ('9SIQT8TOJO', 'advanced_scope', 'Worth every penny for the quality and speed it offers. My images have never been sharper or more vibrant. A truly professional piece of equipment.', '5.0'), + ('9SIQT8TOJO', 'precision_optics', 'The engineering behind this RASA is exceptional. It''s incredibly efficient for capturing faint objects. A high-end choice for dedicated imagers.', '4.5'), + + ('6E92ZMYYFZ', 'solar_safety', 'Essential for safe solar viewing with my 8-inch telescope. The Velcro straps ensure it stays securely in place. Peace of mind during solar observations.', '5.0'), + ('6E92ZMYYFZ', 'telescope_upgrade', 'This EclipSmart filter is a perfect addition to my setup. The ISO compliance is crucial. Highly recommend for anyone looking to view the sun safely.', '4.5'), + ('6E92ZMYYFZ', 'safe_sun_gazer', 'Easy to attach and provides crystal clear, safe views of the sun. The build quality is excellent. A must-have accessory for solar enthusiasts.', '5.0'), + ('6E92ZMYYFZ', 'filter_fan', 'Works perfectly with my 8-inch scope. No more worries about accidental dislodgement. Great product for protecting your eyes and equipment.', '4.5'), + ('6E92ZMYYFZ', 'eclipse_ready', 'Bought this for the upcoming eclipse, and it fits perfectly. Tested it out, and the views are fantastic and safe. Very happy with this purchase.', '5.0'), + + ('HQTGWGPNH4', 'history_buff', 'A fascinating glimpse into historical astronomical thought. The content is incredibly insightful. A must-read for anyone interested in the history of science.', '5.0'), + ('HQTGWGPNH4', 'bookworm_astro', 'Beautifully presented historical document. It''s amazing to see how comets were understood centuries ago. A valuable addition to any astronomy library.', '4.5'), + ('HQTGWGPNH4', 'ancient_texts', 'Such a unique and intriguing read. The historical context is captivating. It offers a different perspective on celestial events.', '4.0'), + ('HQTGWGPNH4', 'celestial_history', 'I love historical astronomy, and this book delivers. It''s well-researched and provides a window into past beliefs. Highly recommended for scholars.', '5.0'), + ('HQTGWGPNH4', 'rare_find', 'A truly special book for enthusiasts of astronomical history. The details about ancient astrologers are very interesting. Great for a deeper understanding.', '4.5'); + +-- Product Catalog Service: create a schema +CREATE SCHEMA catalog; +GRANT USAGE ON SCHEMA catalog TO otelu; + +-- Product Catalog Service: create tables +CREATE TABLE catalog.products ( + id TEXT PRIMARY KEY, + name TEXT NOT NULL, + description TEXT, + picture TEXT, + price_currency_code TEXT NOT NULL, + price_units BIGINT NOT NULL, + price_nanos INT NOT NULL, + categories TEXT +); + +-- Product Catalog Service: grant permission to schema +GRANT SELECT ON ALL TABLES IN SCHEMA catalog TO otelu; + +-- Product Catalog Service: add product data +INSERT INTO catalog.products (id, name, description, picture, price_currency_code, price_units, price_nanos, categories) +VALUES + ('OLJCESPC7Z', 'National Park Foundation Explorascope', 'The National Park Foundation''s (NPF) Explorascope 60AZ is a manual alt-azimuth, refractor telescope perfect for celestial viewing on the go. The NPF Explorascope 60 can view the planets, moon, star clusters and brighter deep sky objects like the Orion Nebula and Andromeda Galaxy.', 'NationalParkFoundationExplorascope.jpg', 'USD', 101, 960000000, 'telescopes'), + ('66VCHSJNUP', 'Starsense Explorer Refractor Telescope', 'The first telescope that uses your smartphone to analyze the night sky and calculate its position in real time. StarSense Explorer is ideal for beginners thanks to the app''s user-friendly interface and detailed tutorials. It''s like having your own personal tour guide of the night sky', 'StarsenseExplorer.jpg', 'USD', 349, 950000000, 'telescopes'), + ('1YMWWN1N4O', 'Eclipsmart Travel Refractor Telescope', 'Dedicated white-light solar scope for the observer on the go. The 50mm refracting solar scope uses Solar Safe, ISO compliant, full-aperture glass filter material to ensure the safest view of solar events. The kit comes complete with everything you need, including the dedicated travel solar scope, a Solar Safe finderscope, tripod, a high quality 20mm (18x) Kellner eyepiece and a nylon backpack to carry everything in. This Travel Solar Scope makes it easy to share the Sun as well as partial and total solar eclipses with the whole family and offers much higher magnifications than you would otherwise get using handheld solar viewers or binoculars.', 'EclipsmartTravelRefractorTelescope.jpg', 'USD', 129, 950000000, 'telescopes,travel'), + ('L9ECAV7KIM', 'Lens Cleaning Kit', 'Wipe away dust, dirt, fingerprints and other particles on your lenses to see clearly with the Lens Cleaning Kit. This cleaning kit works on all glass and optical surfaces, including telescopes, binoculars, spotting scopes, monoculars, microscopes, and even your camera lenses, computer screens, and mobile devices. The kit comes complete with a retractable lens brush to remove dust particles and dirt and two options to clean smudges and fingerprints off of your optics, pre-moistened lens wipes and a bottled lens cleaning fluid with soft cloth.', 'LensCleaningKit.jpg', 'USD', 21, 950000000, 'accessories'), + ('2ZYFJ3GM2N', 'Roof Binoculars', 'This versatile, all-around binocular is a great choice for the trail, the stadium, the arena, or just about anywhere you want a close-up view of the action without sacrificing brightness or detail. It''s an especially great companion for nature observation and bird watching, with ED glass that helps you spot the subtlest field markings and a close focus of just 6.5 feet.', 'RoofBinoculars.jpg', 'USD', 209, 950000000, 'binoculars'), + ('0PUK6V6EV0', 'Solar System Color Imager', 'You have your new telescope and have observed Saturn and Jupiter. Now you''re ready to take the next step and start imaging them. But where do you begin? The NexImage 10 Solar System Imager is the perfect solution.', 'SolarSystemColorImager.jpg', 'USD', 175, 0, 'accessories,telescopes'), + ('LS4PSXUNUM', 'Red Flashlight', 'This 3-in-1 device features a 3-mode red flashlight, a hand warmer, and a portable power bank for recharging your personal electronics on the go. Whether you use it to light the way at an astronomy star party, a night walk, or wildlife research, ThermoTorch 3 Astro Red''s rugged, IPX4-rated design will withstand your everyday activities.', 'RedFlashlight.jpg', 'USD', 57, 80000000, 'accessories,flashlights'), + ('9SIQT8TOJO', 'Optical Tube Assembly', 'Capturing impressive deep-sky astroimages is easier than ever with Rowe-Ackermann Schmidt Astrograph (RASA) V2, the perfect companion to today''s top DSLR or astronomical CCD cameras. This fast, wide-field f/2.2 system allows for shorter exposure times compared to traditional f/10 astroimaging, without sacrificing resolution. Because shorter sub-exposure times are possible, your equatorial mount won''t need to accurately track over extended periods. The short focal length also lessens equatorial tracking demands. In many cases, autoguiding will not be required.', 'OpticalTubeAssembly.jpg', 'USD', 3599, 0, 'accessories,telescopes,assembly'), + ('6E92ZMYYFZ', 'Solar Filter', 'Enhance your viewing experience with EclipSmart Solar Filter for 8" telescopes. With two Velcro straps and four self-adhesive Velcro pads for added safety, you can be assured that the solar filter cannot be accidentally knocked off and will provide Solar Safe, ISO compliant viewing.', 'SolarFilter.jpg', 'USD', 69, 950000000, 'accessories,telescopes'), + ('HQTGWGPNH4', 'The Comet Book', 'A 16th-century treatise on comets, created anonymously in Flanders (now northern France) and now held at the Universitätsbibliothek Kassel. Commonly known as The Comet Book (or Kometenbuch in German), its full title translates as "Comets and their General and Particular Meanings, According to Ptolomeé, Albumasar, Haly, Aliquind and other Astrologers". The image is from https://publicdomainreview.org/collection/the-comet-book, made available by the Universitätsbibliothek Kassel under a CC-BY SA 4.0 license (https://creativecommons.org/licenses/by-sa/4.0/)', 'TheCometBook.jpg', 'USD', 0, 990000000, 'books'); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d41665de715460a657e2d6d6dcb44104f42f0b8d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/Dockerfile @@ -0,0 +1,26 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM golang:1.24-bookworm AS builder + +WORKDIR /usr/src/app/ + +COPY ./src/product-catalog/go.mod go.mod +COPY ./src/product-catalog/go.sum go.sum + +RUN go mod download + +COPY ./src/product-catalog/genproto/oteldemo/ genproto/oteldemo/ +COPY ./src/product-catalog/main.go main.go + +RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -ldflags "-s -w" -o product-catalog main.go + +FROM gcr.io/distroless/static-debian12:nonroot + +WORKDIR /usr/src/app/ + +COPY --from=builder /usr/src/app/product-catalog/ ./ + +EXPOSE ${PRODUCT_CATALOG_PORT} +ENTRYPOINT [ "./product-catalog" ] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ca4970d623b9455d40018c9b0f3b898074e49dc8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/README.md @@ -0,0 +1,41 @@ +# Product Catalog Service + +When this service is run the output should be similar to the following + +```json +{"message":"successfully parsed product catalog json","severity":"info","timestamp":"2022-06-02T23:54:10.191283363Z"} +{"message":"starting grpc server at :3550","severity":"info","timestamp":"2022-06-02T23:54:10.191849078Z"} +``` + +## Local Build + +To build the service binary, run: + +```sh +go build -o /go/bin/product-catalog/ +``` + +## Docker Build + +From the root directory, run: + +```sh +docker compose build product-catalog +``` + +## Regenerate protos + +To build the protos, run from the root directory: + +```sh +make docker-generate-protobuf +``` + +## Bump dependencies + +To bump all dependencies run: + +```sh +go get -u -t ./... +go mod tidy +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.mod b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..fb1a2a90bc464d49be3d2bf99cbf651e1f6bcc1a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.mod @@ -0,0 +1,71 @@ +module github.com/opentelemetry/opentelemetry-demo/src/product-catalog + +go 1.24.2 + +require ( + github.com/XSAM/otelsql v0.41.0 + github.com/lib/pq v1.10.9 + github.com/open-feature/go-sdk v1.17.1 + github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 + github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 + go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 + go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 + go.opentelemetry.io/otel v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 + go.opentelemetry.io/otel/log v0.15.0 + go.opentelemetry.io/otel/metric v1.39.0 + go.opentelemetry.io/otel/sdk v1.39.0 + go.opentelemetry.io/otel/sdk/log v0.15.0 + go.opentelemetry.io/otel/sdk/metric v1.39.0 + go.opentelemetry.io/otel/trace v1.39.0 + google.golang.org/grpc v1.78.0 + google.golang.org/protobuf v1.36.11 +) + +require ( + buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 // indirect + buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 // indirect + buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 // indirect + connectrpc.com/connect v1.18.1 // indirect + connectrpc.com/otelconnect v0.7.2 // indirect + github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/diegoholiveira/jsonlogic/v3 v3.8.4 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-memdb v1.3.5 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect + github.com/open-feature/flagd-schemas v0.2.13 // indirect + github.com/open-feature/flagd/core v0.13.2 // indirect + github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect + github.com/twmb/murmur3 v1.1.8 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 // indirect + go.opentelemetry.io/proto/otlp v1.9.0 // indirect + go.uber.org/mock v0.6.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.27.0 // indirect + golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect + golang.org/x/mod v0.29.0 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.31.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +tool ( + google.golang.org/grpc/cmd/protoc-gen-go-grpc + google.golang.org/protobuf/cmd/protoc-gen-go +) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.sum b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..4a67efcb582a1d9cfddb2eeaf47460dd1897e0c3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/go.sum @@ -0,0 +1,149 @@ +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 h1:qnXaezo9s36RjysUq6omZlU3rjQNykMpqCXfCL/CH1Q= +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1/go.mod h1:/9fZNSPUzUwGRzDAjyasa5NC+YFgQthby355ZVuKS2Q= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 h1:TZ+7u106u7C7lgNctxG03ABliF46eLhcIZG5Mdo67/E= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2/go.mod h1:4u0WLwfkLob3dC/F8qNctqhtiEv2Mlyi8YgCDDzgYDs= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 h1:LdC4xAuUaNdduzQr5VvhjsgrCfpW9IYxYsjyCF0ANs0= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1/go.mod h1:cCQ49+ttXE2MZ/ciRNb0tCG+F3kj2ZVbP+0/psbhrLY= +connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw= +connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= +connectrpc.com/otelconnect v0.7.2 h1:WlnwFzaW64dN06JXU+hREPUGeEzpz3Acz2ACOmN8cMI= +connectrpc.com/otelconnect v0.7.2/go.mod h1:JS7XUKfuJs2adhCnXhNHPHLz6oAaZniCJdSF00OZSew= +github.com/XSAM/otelsql v0.41.0 h1:uZifjQhZhv5EDYJh+IVk1DiYxQZJBlNSen0MBFnfxB8= +github.com/XSAM/otelsql v0.41.0/go.mod h1:NMQT0PiKoFILp9QgjQz+D5mvW+9mT0suR7OejqrtMaM= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df h1:GSoSVRLoBaFpOOds6QyY1L8AX7uoY+Ln3BHc22W40X0= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df/go.mod h1:hiVxq5OP2bUGBRNS3Z/bt/reCLFNbdcST6gISi1fiOM= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4 h1:IVVU/VLz2hn10ImbmibjiUkdVsSFIB1vfDaOVsaipH4= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4/go.mod h1:OYRb6FSTVmMM+MNQ7ElmMsczyNSepw+OU4Z8emDSi4w= +github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI= +github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 h1:NmZ1PKzSTQbuGHw9DGPFomqkkLWMC+vZCkfs+FHv1Vg= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3/go.mod h1:zQrxl1YP88HQlA6i9c63DSVPFklWpGX4OWAc9bFuaH4= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-memdb v1.3.5 h1:b3taDMxCBCBVgyRrS1AZVHO14ubMYZB++QpNhBg+Nyo= +github.com/hashicorp/go-memdb v1.3.5/go.mod h1:8IVKKBkVe+fxFgdFOYxzQQNjz+sWCyHCdIC/+5+Vy1Y= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/open-feature/flagd-schemas v0.2.13 h1:LzoyQfirfpR8cxI4PKnoFRtpwPjpC/cOO8N0n8dpbRc= +github.com/open-feature/flagd-schemas v0.2.13/go.mod h1:C0jnJ4C3j2LzGuqKgLDdTsdfKEWQp6sOHZyxu3QohFU= +github.com/open-feature/flagd/core v0.13.2 h1:s1WHrAYmxX65iG/9UX+RVT4VaDBqoGui6wHKLYmmVEk= +github.com/open-feature/flagd/core v0.13.2/go.mod h1:DIt7X93nGyVcwNuPlB9W/cSw9hdpA/42bw26BzctfVw= +github.com/open-feature/go-sdk v1.17.1 h1:1AwQ2NppOv69sfGiRH9pWfsMVLembvkhQ3hdk9eAsTY= +github.com/open-feature/go-sdk v1.17.1/go.mod h1:+2UML7oZADJa0Swg27d6pu5kLKeCpZM2X2hWcGQutJ0= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 h1:4UX24wgUa+zZkGeecn+884c3VHrXt9oca/krSFAjXNY= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6/go.mod h1:TftRJnT+7hyYDLBhuDUjDjabmBgOZYspYU9HUM9K3D0= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 h1:BGQP+U9MY8oIhNfmW7fCB0sWB9R+c0UWtXV25zs0kNY= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2/go.mod h1:/e0lsAID13rO+7X3Ij1iR0LiWBmliMI1blh39WPysXY= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/twmb/murmur3 v1.1.8 h1:8Yt9taO/WN3l08xErzjeschgZU2QSrwm1kclYq+0aRg= +github.com/twmb/murmur3 v1.1.8/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 h1:eypSOd+0txRKCXPNyqLPsbSfA0jULgJcGmSAdFAnrCM= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0/go.mod h1:CRGvIBL/aAxpQU34ZxyQVFlovVcp67s4cAmQu8Jh9mc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0/go.mod h1:habDz3tEWiFANTo6oUE99EmaFUrCNYAAg3wiVmusm70= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 h1:/+/+UjlXjFcdDlXxKL1PouzX8Z2Vl0OxolRKeBEgYDw= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0/go.mod h1:Ldm/PDuzY2DP7IypudopCR3OCOW42NJlN9+mNEroevo= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 h1:W+m0g+/6v3pa5PgVf2xoFMi5YtNR06WtS7ve5pcvLtM= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0/go.mod h1:JM31r0GGZ/GU94mX8hN4D8v6e40aFlUECSQ48HaLgHM= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 h1:cEf8jF6WbuGQWUVcqgyWtTR0kOOAWY1DYZ+UhvdmQPw= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0/go.mod h1:k1lzV5n5U3HkGvTCJHraTAGJ7MqsgL1wrGwTj1Isfiw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 h1:f0cb2XPmrqn4XMy9PNliTgRKJgS5WcL/u0/WRYGz4t0= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0/go.mod h1:vnakAaFckOMiMtOIhFI2MNH4FYrZzXCYxmb1LlhoGz8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 h1:in9O8ESIOlwJAEGTkkf34DesGRAc/Pn8qJ7k3r/42LM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0/go.mod h1:Rp0EXBm5tfnv0WL+ARyO/PHBEaEAT8UUHQ6AGJcSq6c= +go.opentelemetry.io/otel/log v0.15.0 h1:0VqVnc3MgyYd7QqNVIldC3dsLFKgazR6P3P3+ypkyDY= +go.opentelemetry.io/otel/log v0.15.0/go.mod h1:9c/G1zbyZfgu1HmQD7Qj84QMmwTp2QCQsZH1aeoWDE4= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/log v0.15.0 h1:WgMEHOUt5gjJE93yqfqJOkRflApNif84kxoHWS9VVHE= +go.opentelemetry.io/otel/sdk/log v0.15.0/go.mod h1:qDC/FlKQCXfH5hokGsNg9aUBGMJQsrUyeOiW5u+dKBQ= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0 h1:Ijbtz+JKXl8T2MngiwqBlPaHqc4YCaP/i13Qrow6gAM= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0/go.mod h1:dCU8aEL6q+L9cYTqcVOk8rM9Tp8WdnHOPLiBgp0SGOA= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +go.opentelemetry.io/proto/otlp v1.9.0 h1:l706jCMITVouPOqEnii2fIAuO3IVGBRPV5ICjceRb/A= +go.opentelemetry.io/proto/otlp v1.9.0/go.mod h1:xE+Cx5E/eEHw+ISFkwPLwCZefwVjY+pqKg1qcK03+/4= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= +go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= +golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/main.go b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/main.go new file mode 100644 index 0000000000000000000000000000000000000000..05ad597b15aa90401e20a0cfa8aff5b1ed1aec82 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/product-catalog/main.go @@ -0,0 +1,495 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package main + +//go:generate go install google.golang.org/protobuf/cmd/protoc-gen-go +//go:generate go install google.golang.org/grpc/cmd/protoc-gen-go-grpc +//go:generate protoc --go_out=./ --go-grpc_out=./ --proto_path=../../pb ../../pb/demo.proto + +import ( + "context" + "database/sql" + "fmt" + "log/slog" + "net" + "os" + "os/signal" + "strings" + "sync" + "syscall" + "time" + + _ "github.com/lib/pq" + "go.opentelemetry.io/contrib/bridges/otelslog" + "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" + "go.opentelemetry.io/contrib/instrumentation/runtime" + "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" + otelcodes "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" + "go.opentelemetry.io/otel/log/global" + "go.opentelemetry.io/otel/metric" + "go.opentelemetry.io/otel/propagation" + sdklog "go.opentelemetry.io/otel/sdk/log" + sdkmetric "go.opentelemetry.io/otel/sdk/metric" + sdkresource "go.opentelemetry.io/otel/sdk/resource" + sdktrace "go.opentelemetry.io/otel/sdk/trace" + semconv "go.opentelemetry.io/otel/semconv/v1.38.0" + "go.opentelemetry.io/otel/trace" + + otelhooks "github.com/open-feature/go-sdk-contrib/hooks/open-telemetry/pkg" + flagd "github.com/open-feature/go-sdk-contrib/providers/flagd/pkg" + "github.com/open-feature/go-sdk/openfeature" + pb "github.com/opentelemetry/opentelemetry-demo/src/product-catalog/genproto/oteldemo" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/health" + healthpb "google.golang.org/grpc/health/grpc_health_v1" + "google.golang.org/grpc/reflection" + "google.golang.org/grpc/status" + + "github.com/XSAM/otelsql" +) + +type productCatalog struct { + pb.UnimplementedProductCatalogServiceServer +} + +var ( + logger *slog.Logger + resource *sdkresource.Resource + initResourcesOnce sync.Once + db *sql.DB + reg metric.Registration +) + +func init() { + logger = otelslog.NewLogger("product-catalog") +} + +func initResource() *sdkresource.Resource { + initResourcesOnce.Do(func() { + extraResources, _ := sdkresource.New( + context.Background(), + sdkresource.WithOS(), + sdkresource.WithProcess(), + sdkresource.WithContainer(), + sdkresource.WithHost(), + ) + resource, _ = sdkresource.Merge( + sdkresource.Default(), + extraResources, + ) + }) + return resource +} + +func initTracerProvider() *sdktrace.TracerProvider { + ctx := context.Background() + + exporter, err := otlptracegrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("OTLP Trace gRPC Creation: %v", err)) + + } + tp := sdktrace.NewTracerProvider( + sdktrace.WithBatcher(exporter), + sdktrace.WithResource(initResource()), + ) + otel.SetTracerProvider(tp) + otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{})) + return tp +} + +func initMeterProvider() *sdkmetric.MeterProvider { + ctx := context.Background() + + exporter, err := otlpmetricgrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("new otlp metric grpc exporter failed: %v", err)) + } + + mp := sdkmetric.NewMeterProvider( + sdkmetric.WithReader(sdkmetric.NewPeriodicReader(exporter)), + sdkmetric.WithResource(initResource()), + ) + otel.SetMeterProvider(mp) + return mp +} + +func initLoggerProvider() *sdklog.LoggerProvider { + ctx := context.Background() + + logExporter, err := otlploggrpc.New(ctx) + if err != nil { + return nil + } + + loggerProvider := sdklog.NewLoggerProvider( + sdklog.WithProcessor(sdklog.NewBatchProcessor(logExporter)), + ) + global.SetLoggerProvider(loggerProvider) + + return loggerProvider +} + +func initDatabase() error { + connStr := os.Getenv("DB_CONNECTION_STRING") + if connStr == "" { + return fmt.Errorf("DB_CONNECTION_STRING environment variable not set") + } + + var err error + db, err = otelsql.Open("postgres", connStr, + otelsql.WithAttributes(semconv.DBSystemNamePostgreSQL), + otelsql.WithSpanOptions(otelsql.SpanOptions{ + OmitConnResetSession: true, + OmitRows: true, + })) + if err != nil { + return fmt.Errorf("failed to open database connection: %w", err) + } + + reg, err = otelsql.RegisterDBStatsMetrics(db, otelsql.WithAttributes(semconv.DBSystemNamePostgreSQL)) + if err != nil { + return fmt.Errorf("failed to register database metrics: %w", err) + } + + // Test the connection + if err := db.Ping(); err != nil { + return fmt.Errorf("failed to ping database: %w", err) + } + + logger.Info("Database connection established") + return nil +} + +func main() { + lp := initLoggerProvider() + defer func() { + if err := lp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Logger Provider Shutdown: %v", err)) + } + logger.Info("Shutdown logger provider") + }() + + tp := initTracerProvider() + defer func() { + if err := tp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Tracer Provider Shutdown: %v", err)) + } + logger.Info("Shutdown tracer provider") + }() + + mp := initMeterProvider() + defer func() { + if err := mp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down meter provider: %v", err)) + } + logger.Info("Shutdown meter provider") + }() + + // Initialize database connection + if err := initDatabase(); err != nil { + logger.Error(fmt.Sprintf("Error initializing database: %v", err)) + os.Exit(1) + } + defer func() { + if db != nil { + if err := db.Close(); err != nil { + logger.Error(fmt.Sprintf("Error closing database connection: %v", err)) + } else { + logger.Info("Database connection closed") + } + } + if reg != nil { + if err := reg.Unregister(); err != nil { + logger.Error(fmt.Sprintf("Error unregistering database metrics: %v", err)) + } else { + logger.Info("Database metrics unregistered") + } + } + }() + + openfeature.AddHooks(otelhooks.NewTracesHook()) + provider, err := flagd.NewProvider() + if err != nil { + logger.Error(err.Error()) + } + err = openfeature.SetProvider(provider) + if err != nil { + logger.Error(err.Error()) + } + + err = runtime.Start(runtime.WithMinimumReadMemStatsInterval(time.Second)) + if err != nil { + logger.Error(err.Error()) + } + + svc := &productCatalog{} + var port string + mustMapEnv(&port, "PRODUCT_CATALOG_PORT") + + logger.Info(fmt.Sprintf("Product Catalog gRPC server started on port: %s", port)) + + ln, err := net.Listen("tcp", fmt.Sprintf(":%s", port)) + if err != nil { + logger.Error(fmt.Sprintf("TCP Listen: %v", err)) + } + + srv := grpc.NewServer( + grpc.StatsHandler(otelgrpc.NewServerHandler()), + ) + + reflection.Register(srv) + + pb.RegisterProductCatalogServiceServer(srv, svc) + + healthcheck := health.NewServer() + healthpb.RegisterHealthServer(srv, healthcheck) + + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM, syscall.SIGKILL) + defer cancel() + + go func() { + if err := srv.Serve(ln); err != nil { + logger.Error(fmt.Sprintf("Failed to serve gRPC server, err: %v", err)) + } + }() + + <-ctx.Done() + + srv.GracefulStop() + logger.Info("Product Catalog gRPC server stopped") +} + +func loadProductsFromDB(ctx context.Context) ([]*pb.Product, error) { + if db == nil { + return nil, fmt.Errorf("database connection not initialized") + } + + // Query all products with categories + rows, err := db.QueryContext(ctx, ` + SELECT p.id, p.name, p.description, p.picture, + p.price_currency_code, p.price_units, p.price_nanos, p.categories + FROM catalog.products p + ORDER BY p.id + `) + if err != nil { + return nil, fmt.Errorf("failed to query products: %w", err) + } + defer rows.Close() + + products, err := getProductsFromRows(ctx, rows) + if err != nil { + return nil, fmt.Errorf("failed to get products from rows: %w", err) + } + + return products, nil +} + +func searchProductsFromDB(ctx context.Context, query string) ([]*pb.Product, error) { + if db == nil { + return nil, fmt.Errorf("database connection not initialized") + } + + // Query products matching search query in name or description + searchPattern := "%" + strings.ToLower(query) + "%" + rows, err := db.QueryContext(ctx, ` + SELECT p.id, p.name, p.description, p.picture, + p.price_currency_code, p.price_units, p.price_nanos, p.categories + FROM catalog.products p + WHERE LOWER(p.name) LIKE $1 OR LOWER(p.description) LIKE $1 + ORDER BY p.id + `, searchPattern) + if err != nil { + return nil, fmt.Errorf("failed to query products: %w", err) + } + defer rows.Close() + + products, err := getProductsFromRows(ctx, rows) + if err != nil { + return nil, fmt.Errorf("failed to get products from rows: %w", err) + } + + return products, nil +} + +func getProductFromDB(ctx context.Context, productID string) (*pb.Product, error) { + if db == nil { + return nil, fmt.Errorf("database connection not initialized") + } + + // Query single product by ID + row := db.QueryRowContext(ctx, ` + SELECT p.id, p.name, p.description, p.picture, + p.price_currency_code, p.price_units, p.price_nanos, p.categories + FROM catalog.products p + WHERE p.id = $1 + `, productID) + + var id, name, description, picture, currencyCode, categoriesStr string + var units int64 + var nanos int32 + + if err := row.Scan(&id, &name, &description, &picture, ¤cyCode, &units, &nanos, &categoriesStr); err != nil { + if err == sql.ErrNoRows { + return nil, fmt.Errorf("product not found") + } + return nil, fmt.Errorf("failed to scan product row: %w", err) + } + + return parseProductRow(id, name, description, picture, currencyCode, categoriesStr, units, nanos), nil +} + +func getProductsFromRows(ctx context.Context, rows *sql.Rows) ([]*pb.Product, error) { + var products []*pb.Product + + for rows.Next() { + var id, name, description, picture, currencyCode, categoriesStr string + var units int64 + var nanos int32 + + if err := rows.Scan(&id, &name, &description, &picture, ¤cyCode, &units, &nanos, &categoriesStr); err != nil { + return nil, fmt.Errorf("failed to scan product row: %w", err) + } + + products = append(products, parseProductRow(id, name, description, picture, currencyCode, categoriesStr, units, nanos)) + } + + if err := rows.Err(); err != nil { + return nil, fmt.Errorf("error iterating product rows: %w", err) + } + + logger.LogAttrs( + ctx, + slog.LevelInfo, + fmt.Sprintf("Found %d products from database", len(products)), + slog.Int("products", len(products)), + ) + + return products, nil +} + +func parseProductRow(id, name, description, picture, currencyCode, categoriesStr string, units int64, nanos int32) *pb.Product { + // Parse comma-delimited categories string into slice + var categories []string + if categoriesStr != "" { + categories = strings.Split(categoriesStr, ",") + // Trim whitespace from each category + for i, cat := range categories { + categories[i] = strings.TrimSpace(cat) + } + } + + return &pb.Product{ + Id: id, + Name: name, + Description: description, + Picture: picture, + PriceUsd: &pb.Money{ + CurrencyCode: currencyCode, + Units: units, + Nanos: nanos, + }, + Categories: categories, + } +} + +func mustMapEnv(target *string, key string) { + value, present := os.LookupEnv(key) + if !present { + logger.Error(fmt.Sprintf("Environment Variable Not Set: %q", key)) + } + *target = value +} + +func (p *productCatalog) Check(ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { + return &healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}, nil +} + +func (p *productCatalog) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") +} + +func (p *productCatalog) ListProducts(ctx context.Context, req *pb.Empty) (*pb.ListProductsResponse, error) { + span := trace.SpanFromContext(ctx) + + products, err := loadProductsFromDB(ctx) + if err != nil { + span.SetStatus(otelcodes.Error, err.Error()) + return nil, status.Errorf(codes.Internal, "failed to load products: %v", err) + } + + span.SetAttributes( + attribute.Int("app.products.count", len(products)), + ) + return &pb.ListProductsResponse{Products: products}, nil +} + +func (p *productCatalog) GetProduct(ctx context.Context, req *pb.GetProductRequest) (*pb.Product, error) { + span := trace.SpanFromContext(ctx) + span.SetAttributes( + attribute.String("app.product.id", req.Id), + ) + + // GetProduct will fail on a specific product when feature flag is enabled + if p.checkProductFailure(ctx, req.Id) { + msg := "Error: Product Catalog Fail Feature Flag Enabled" + span.SetStatus(otelcodes.Error, msg) + span.AddEvent(msg) + return nil, status.Errorf(codes.Internal, msg) + } + + found, err := getProductFromDB(ctx, req.Id) + if err != nil { + msg := fmt.Sprintf("Product Not Found: %s", req.Id) + span.SetStatus(otelcodes.Error, msg) + span.AddEvent(msg) + return nil, status.Errorf(codes.NotFound, msg) + } + + span.AddEvent("Product Found") + span.SetAttributes( + attribute.String("app.product.id", req.Id), + attribute.String("app.product.name", found.Name), + ) + + logger.LogAttrs( + ctx, + slog.LevelInfo, "Product Found", + slog.String("app.product.name", found.Name), + slog.String("app.product.id", req.Id), + ) + + return found, nil +} + +func (p *productCatalog) SearchProducts(ctx context.Context, req *pb.SearchProductsRequest) (*pb.SearchProductsResponse, error) { + span := trace.SpanFromContext(ctx) + + result, err := searchProductsFromDB(ctx, req.Query) + if err != nil { + span.SetStatus(otelcodes.Error, err.Error()) + return nil, status.Errorf(codes.Internal, "failed to search products: %v", err) + } + + span.SetAttributes( + attribute.Int("app.products_search.count", len(result)), + ) + return &pb.SearchProductsResponse{Results: result}, nil +} + +func (p *productCatalog) checkProductFailure(ctx context.Context, id string) bool { + if id != "OLJCESPC7Z" { + return false + } + + client := openfeature.NewClient("productCatalog") + failureEnabled, _ := client.BooleanValue( + ctx, "productCatalogFailure", false, openfeature.EvaluationContext{}, + ) + return failureEnabled +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config-readonly.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config-readonly.yaml new file mode 100644 index 0000000000000000000000000000000000000000..12e6bef062e432be8036c9175248e6dd98731be8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config-readonly.yaml @@ -0,0 +1,6 @@ +# Read-only Prometheus config: no scrape targets. +# Used by load_snapshot.sh so Prometheus serves snapshot data without ingesting new metrics. +global: + scrape_interval: 60s + scrape_timeout: 10s + evaluation_interval: 60s diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ddcacf236cdda04447e753d315020fe7b6a16343 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/prometheus/prometheus-config.yaml @@ -0,0 +1,54 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +global: + # Align Prometheus scrape interval with the OTel SDKs' export interval for consistency (see OTEL_METRIC_EXPORT_INTERVAL) + scrape_interval: 60s + +otlp: + keep_identifying_resource_attributes: true + promote_resource_attributes: + - service.instance.id + - service.name + - service.namespace + - service.version + - cloud.availability_zone + - cloud.region + - deployment.environment.name + + # When deploying on Kubernetes, resource attributes used to identify the + # kubernetes resources in dashboards and alerts. + - k8s.cluster.name + - k8s.container.name + - k8s.cronjob.name + - k8s.daemonset.name + - k8s.deployment.name + - k8s.job.name + - k8s.namespace.name + - k8s.node.name + - k8s.pod.name + - k8s.replicaset.name + - k8s.statefulset.name + - container.name + + # When deploying on VMs, resource attributes used to identify + # the host in dashboards and alerts. + - host.name + + # PostgreSQL resource attributes produced by the OTel Collector PostgreSQL receiver + # and used in dashboards and alerts. + # See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/postgresqlreceiver/metadata.yaml + - postgresql.database.name + - postgresql.schema.name + - postgresql.table.name + - postgresql.index.name + + # Kafka resource attributes produced by the OTel Collector Kafka receiver + # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kafkametricsreceiver + - kafka.cluster.alias + + # See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.142.0/connector/spanmetricsconnector/README.md#known-limitation-the-single-writer-principle + - collector.instance.id +storage: + tsdb: + out_of_order_time_window: 30m diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/.gitignore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8a6be077181fc1c016eb71a0e426bd0525a90fea --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/.gitignore @@ -0,0 +1,16 @@ +# OSX +# +.DS_Store + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ + +# Bundle artifacts +*.jsbundle diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/build.gradle b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..c0c3d72e99604672f356c7a6fd6257d1c7e24ce7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/build.gradle @@ -0,0 +1,132 @@ +apply plugin: "com.android.application" +apply plugin: "org.jetbrains.kotlin.android" +apply plugin: "com.facebook.react" + +def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath() + +/** + * This is the configuration block to customize your React Native Android app. + */ +react { + entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim()) + reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile() + hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc" + codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile() + + // Use Expo CLI to bundle the app, this ensures the Metro config + // works correctly with Expo projects. + cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim()) + bundleCommand = "export:embed" +} + +/** + * Set this to true to Run Proguard on Release builds to minify the Java bytecode. + */ +def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean() + +/** + * The preferred build flavor of JavaScriptCore (JSC) + * + * For example, to use the international variant, you can use: + * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` + * + * The international variant includes ICU i18n library and necessary data + * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that + * give correct results when using with locales other than en-US. Note that + * this variant is about 6MiB larger per architecture than default. + */ +def jscFlavor = 'org.webkit:android-jsc:+' + +android { + ndkVersion rootProject.ext.ndkVersion + + buildToolsVersion rootProject.ext.buildToolsVersion + compileSdk rootProject.ext.compileSdkVersion + + namespace 'io.opentelemetry.reactnativeapp' + defaultConfig { + applicationId 'io.opentelemetry.reactnativeapp' + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0.0" + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false) + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } + packagingOptions { + jniLibs { + useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false) + } + } +} + +// Apply static values from `gradle.properties` to the `android.packagingOptions` +// Accepts values in comma delimited lists, example: +// android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini +["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop -> + // Split option: 'foo,bar' -> ['foo', 'bar'] + def options = (findProperty("android.packagingOptions.$prop") ?: "").split(","); + // Trim all elements in place. + for (i in 0.. 0) { + println "android.packagingOptions.$prop += $options ($options.length)" + // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**' + options.each { + android.packagingOptions[prop] += it + } + } +} + +dependencies { + // The version of react-native is set by the React Native Gradle Plugin + implementation("com.facebook.react:react-android") + + def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true"; + def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true"; + def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true"; + + if (isGifEnabled) { + // For animated gif support + implementation("com.facebook.fresco:animated-gif:${reactAndroidLibs.versions.fresco.get()}") + } + + if (isWebpEnabled) { + // For webp support + implementation("com.facebook.fresco:webpsupport:${reactAndroidLibs.versions.fresco.get()}") + if (isWebpAnimatedEnabled) { + // Animated webp support + implementation("com.facebook.fresco:animated-webp:${reactAndroidLibs.versions.fresco.get()}") + } + } + + if (hermesEnabled.toBoolean()) { + implementation("com.facebook.react:hermes-android") + } else { + implementation jscFlavor + } +} + +apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); +applyNativeModulesAppBuildGradle(project) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/debug.keystore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/debug.keystore new file mode 100644 index 0000000000000000000000000000000000000000..364e105ed39fbfd62001429a68140672b06ec0de Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/debug.keystore differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/proguard-rules.pro b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..551eb41da24268637f6d9ceb38ea1b5359bf734d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/proguard-rules.pro @@ -0,0 +1,14 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# react-native-reanimated +-keep class com.swmansion.reanimated.** { *; } +-keep class com.facebook.react.turbomodule.** { *; } + +# Add any project specific keep options here: diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/debug/AndroidManifest.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ec2507bab7c58dda1f8467f9137b02bdbd87b50 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/AndroidManifest.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb215168e6cecc22459406be405e082b1b878cff --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainActivity.kt b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..8b533e9141a7ce5bb6b97877aee7bb419381af8d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainActivity.kt @@ -0,0 +1,61 @@ +package io.opentelemetry.reactnativeapp + +import android.os.Build +import android.os.Bundle + +import com.facebook.react.ReactActivity +import com.facebook.react.ReactActivityDelegate +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled +import com.facebook.react.defaults.DefaultReactActivityDelegate + +import expo.modules.ReactActivityDelegateWrapper + +class MainActivity : ReactActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + // Set the theme to AppTheme BEFORE onCreate to support + // coloring the background, status bar, and navigation bar. + // This is required for expo-splash-screen. + setTheme(R.style.AppTheme); + super.onCreate(null) + } + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + override fun getMainComponentName(): String = "main" + + /** + * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] + * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] + */ + override fun createReactActivityDelegate(): ReactActivityDelegate { + return ReactActivityDelegateWrapper( + this, + BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, + object : DefaultReactActivityDelegate( + this, + mainComponentName, + fabricEnabled + ){}) + } + + /** + * Align the back button behavior with Android S + * where moving root activities to background instead of finishing activities. + * @see onBackPressed + */ + override fun invokeDefaultOnBackPressed() { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) { + if (!moveTaskToBack(false)) { + // For non-root activities, use the default implementation to finish them. + super.invokeDefaultOnBackPressed() + } + return + } + + // Use the default back button implementation on Android S + // because it's doing more than [Activity.moveTaskToBack] in fact. + super.invokeDefaultOnBackPressed() + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainApplication.kt b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainApplication.kt new file mode 100644 index 0000000000000000000000000000000000000000..75f2a2c26fb603f57c0405cb0c77c46b0b9a420b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/java/io/opentelemetry/reactnativeapp/MainApplication.kt @@ -0,0 +1,55 @@ +package io.opentelemetry.reactnativeapp + +import android.app.Application +import android.content.res.Configuration + +import com.facebook.react.PackageList +import com.facebook.react.ReactApplication +import com.facebook.react.ReactNativeHost +import com.facebook.react.ReactPackage +import com.facebook.react.ReactHost +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load +import com.facebook.react.defaults.DefaultReactNativeHost +import com.facebook.soloader.SoLoader + +import expo.modules.ApplicationLifecycleDispatcher +import expo.modules.ReactNativeHostWrapper + +class MainApplication : Application(), ReactApplication { + + override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper( + this, + object : DefaultReactNativeHost(this) { + override fun getPackages(): List { + // Packages that cannot be autolinked yet can be added manually here, for example: + // packages.add(new MyReactNativePackage()); + return PackageList(this).packages + } + + override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry" + + override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG + + override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED + override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED + } + ) + + override val reactHost: ReactHost + get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost) + + override fun onCreate() { + super.onCreate() + SoLoader.init(this, false) + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + // If you opted-in for the New Architecture, we load the native entry point for this app. + load() + } + ApplicationLifecycleDispatcher.onApplicationCreate(this) + } + + override fun onConfigurationChanged(newConfig: Configuration) { + super.onConfigurationChanged(newConfig) + ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig) + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/ic_launcher_background.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..ca3826a46ce070f906d0d3fbe6987df882134381 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/rn_edit_text_material.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/rn_edit_text_material.xml new file mode 100644 index 0000000000000000000000000000000000000000..8f0aa55924635ab49bf22deae731fb53657d6a8e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/rn_edit_text_material.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/splashscreen.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/splashscreen.xml new file mode 100644 index 0000000000000000000000000000000000000000..bab718fa99d47974d1c3d19a9a34de740cd69e77 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/drawable/splashscreen.xml @@ -0,0 +1,3 @@ + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000000000000000000000000000000000000..80b730f3673e959d84c48dbe457b923bcda888a3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000000000000000000000000000000000000..80b730f3673e959d84c48dbe457b923bcda888a3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values-night/colors.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values-night/colors.xml new file mode 100644 index 0000000000000000000000000000000000000000..ea100eaef3d19c7b11ac43418f531fab10ea9712 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values-night/colors.xml @@ -0,0 +1 @@ + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/colors.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000000000000000000000000000000000000..c68b0528becd18fc05b4c74179bc17984ac75953 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + #ffffff + #ffffff + #023c69 + #ffffff + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/ic_launcher_background.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..f42ada656ee26e30d170aaa67989f0f15c1a300b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/strings.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000000000000000000000000000000000000..c35abcbd3ba452d72da56c349f9e3aa96887b39e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/strings.xml @@ -0,0 +1,6 @@ + + Astronomy Shop App + contain + false + automatic + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/styles.xml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..333e6289ec5b07ff62b980dd0e528d78c3457bcf --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/app/src/main/res/values/styles.xml @@ -0,0 +1,17 @@ + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/build.gradle b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..932bf7b34bacb8abd66376f5d571ca771fa79f3b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/build.gradle @@ -0,0 +1,41 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + ext { + buildToolsVersion = findProperty('android.buildToolsVersion') ?: '34.0.0' + minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23') + compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34') + targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34') + kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.23' + + ndkVersion = "26.1.10909125" + } + repositories { + google() + mavenCentral() + } + dependencies { + classpath('com.android.tools.build:gradle') + classpath('com.facebook.react:react-native-gradle-plugin') + classpath('org.jetbrains.kotlin:kotlin-gradle-plugin') + } +} + +apply plugin: "com.facebook.react.rootproject" + +allprojects { + repositories { + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android')) + } + maven { + // Android JSC is installed from npm + url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist')) + } + + google() + mavenCentral() + maven { url 'https://www.jitpack.io' } + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle.properties b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..41b173c48a15702b2d3aca0e0196f14d21c2eef7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle.properties @@ -0,0 +1,56 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true + +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=false + +# Use this property to enable or disable the Hermes JS engine. +# If set to false, you will be using JSC instead. +hermesEnabled=true + +# Enable GIF support in React Native images (~200 B increase) +expo.gif.enabled=true +# Enable webp support in React Native images (~85 KB increase) +expo.webp.enabled=true +# Enable animated webp support (~3.4 MB increase) +# Disabled by default because iOS doesn't support animated webp +expo.webp.animated=false + +# Enable network inspector +EX_DEV_CLIENT_NETWORK_INSPECTOR=true + +# Use legacy packaging to compress native libraries in the resulting APK. +expo.useLegacyPackaging=false diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.jar b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..d64cd4917707c1f8861d8cb53dd15194d4248596 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.properties b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..2ea3535dc058bd88eed724626f48acbe35af58b9 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew new file mode 100644 index 0000000000000000000000000000000000000000..1aa94a4269074199e6ed2c37e8db3e0826030965 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew.bat b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..25da30dbdeee93f6eaceea674c3b635de168ce06 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/settings.gradle b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..007935254813178239bae50350434e87d65bf32f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/android/settings.gradle @@ -0,0 +1,18 @@ +rootProject.name = 'reactnativeapp' + +dependencyResolutionManagement { + versionCatalogs { + reactAndroidLibs { + from(files(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../gradle/libs.versions.toml"))) + } + } +} + +apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle"); +useExpoModules() + +apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); +applyNativeModulesSettingsGradle(settings) + +include ':app' +includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile()) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/_layout.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/_layout.tsx new file mode 100644 index 0000000000000000000000000000000000000000..ba2a7b0fe83d4c84068a41daf8ac0e3ae2fef9fd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/_layout.tsx @@ -0,0 +1,62 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { Tabs } from "expo-router"; +import React from "react"; +import { TabBarIcon } from "@/components/navigation/TabBarIcon"; +import { useCart } from "@/providers/Cart.provider"; + +export default function TabLayout() { + const { + cart: { items }, + } = useCart(); + + let itemsInCart = 0; + items.forEach((item) => { + itemsInCart += item.quantity; + }); + + return ( + + ( + + ), + }} + /> + ( + + ), + }} + /> + ( + + ), + }} + /> + + ); +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/cart.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/cart.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c91f84728e10ec38f35961a64f1d3d4dce03f2fe --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/cart.tsx @@ -0,0 +1,145 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/components/Cart/CartDetail.tsx + */ +import { router } from "expo-router"; +import { ThemedView } from "@/components/ThemedView"; +import { ThemedText } from "@/components/ThemedText"; +import { Pressable, StyleSheet } from "react-native"; +import { useCart } from "@/providers/Cart.provider"; +import CheckoutForm from "@/components/CheckoutForm"; +import EmptyCart from "@/components/EmptyCart"; +import { ThemedScrollView } from "@/components/ThemedScrollView"; +import { useCallback, useMemo } from "react"; +import { IFormData } from "@/components/CheckoutForm/CheckoutForm"; +import Toast from "react-native-toast-message"; +import SessionGateway from "@/gateways/Session.gateway"; +import { useThemeColor } from "@/hooks/useThemeColor"; + +export default function Cart() { + const tint = useThemeColor({}, "tint"); + const styles = useMemo(() => getStyles(tint), [tint]); + const { + cart: { items }, + emptyCart, + placeOrder, + } = useCart(); + + const onEmptyCart = useCallback(() => { + emptyCart(); + Toast.show({ + type: "success", + position: "bottom", + text1: "Your cart was emptied", + }); + }, [emptyCart]); + + const onPlaceOrder = useCallback( + async ({ + email, + state, + streetAddress, + country, + city, + zipCode, + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }: IFormData) => { + const { userId } = await SessionGateway.getSession(); + await placeOrder({ + userId, + email, + address: { + streetAddress, + state, + country, + city, + zipCode, + }, + // TODO simplify react native demo for now by hard-coding the selected currency + userCurrency: "USD", + creditCard: { + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }, + }); + + Toast.show({ + type: "success", + position: "bottom", + text1: "Your order is Complete!", + text2: "We've sent you a confirmation email.", + }); + + router.replace("/"); + }, + [placeOrder], + ); + + if (!items.length) { + return ; + } + + return ( + + + + {items.map((item) => ( + + {item.product.name} + {item.quantity} + + ))} + + + + + Empty Cart + + + + + ); +} + +const getStyles = (tint: string) => + StyleSheet.create({ + container: { + flex: 1, + gap: 20, + justifyContent: "flex-start", + }, + emptyCartContainer: { + display: "flex", + alignItems: "flex-end", + }, + emptyCart: { + borderRadius: 4, + backgroundColor: "green", + alignItems: "center", + width: 100, + right: 20, + position: "relative", + }, + emptyCartText: { + color: "white", + }, + cartItem: { + marginLeft: 20, + marginRight: 20, + display: "flex", + flexDirection: "row", + justifyContent: "space-between", + borderStyle: "solid", + borderBottomWidth: 1, + borderColor: tint, + }, + bold: { + fontWeight: "bold", + }, + }); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/index.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c01e1ea5d2443494eba9beec944672338a302422 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/index.tsx @@ -0,0 +1,39 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { ThemedView } from "@/components/ThemedView"; +import ProductList from "@/components/ProductList"; +import { useQuery } from "@tanstack/react-query"; +import { ScrollView, StyleSheet } from "react-native"; +import { ThemedText } from "@/components/ThemedText"; +import ApiGateway from "@/gateways/Api.gateway"; + +export default function Index() { + const { data: productList = [] } = useQuery({ + // TODO simplify react native demo for now by hard-coding the selected currency + queryKey: ["products", "USD"], + queryFn: () => ApiGateway.listProducts("USD"), + }); + + return ( + + + {productList.length ? ( + + ) : ( + + No products found, make sure the backend services for the + OpenTelemetry demo are running + + )} + + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: "center", + alignItems: "center", + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/settings.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/settings.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d278918e8fb3f981282cdee6eb9c327235980870 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/(tabs)/settings.tsx @@ -0,0 +1,40 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { useQueryClient } from '@tanstack/react-query' +import { ThemedView } from "@/components/ThemedView"; +import { StyleSheet } from "react-native"; +import { getFrontendProxyURL, setFrontendProxyURL } from "@/utils/Settings"; +import { setupTracerProvider } from "@/hooks/useTracer"; +import { trace } from "@opentelemetry/api"; +import { Setting } from "@/components/Setting"; + +export default function Settings() { + const queryClient = useQueryClient() + + const onSetFrontendProxyURL = async (value: string) => { + await setFrontendProxyURL(value); + + // Clear any cached queries since we now have a new endpoint to hit for everything + await queryClient.invalidateQueries(); + + // Need to setup a new tracer provider since the export URL for traces has now changed + trace.disable(); + const provider = setupTracerProvider(value); + trace.setGlobalTracerProvider(provider); + }; + + return ( + + + + ); +} + +const styles = StyleSheet.create({ + container: { + display: "flex", + gap: 20, + paddingLeft: 20, + height: "100%", + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/_layout.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/_layout.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d8ac89c3c97ad1561df95f130cdf4b243465173f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/app/_layout.tsx @@ -0,0 +1,59 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { SplashScreen, Stack } from "expo-router"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { + DarkTheme, + DefaultTheme, + ThemeProvider, +} from "@react-navigation/native"; +import { useColorScheme } from "react-native"; +import { RootSiblingParent } from "react-native-root-siblings"; +import Toast from "react-native-toast-message"; +import { useFonts } from "expo-font"; +import { useEffect, useMemo } from "react"; +import { useTracer } from "@/hooks/useTracer"; +import CartProvider from "@/providers/Cart.provider"; + +const queryClient = new QueryClient(); + +export default function RootLayout() { + const colorScheme = useColorScheme(); + const [fontsLoaded] = useFonts({ + SpaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"), + }); + const { loaded: tracerLoaded } = useTracer(); + + const loaded = useMemo( + () => fontsLoaded && tracerLoaded, + [fontsLoaded, tracerLoaded], + ); + useEffect(() => { + if (loaded) { + SplashScreen.hideAsync(); + } + }, [loaded]); + + if (!loaded) { + return null; + } + + return ( + + + + + {/* + TODO Once https://github.com/open-telemetry/opentelemetry-js-contrib/pull/2359 is available it can + be used here to provide telemetry for navigation between tabs + */} + + + + + + + + + ); +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/assets/fonts/SpaceMono-Regular.ttf b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/assets/fonts/SpaceMono-Regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..28d7ff717769d29e5d1f036bfa91eea660ce8a24 Binary files /dev/null and b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/assets/fonts/SpaceMono-Regular.ttf differ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/CheckoutForm.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/CheckoutForm.tsx new file mode 100644 index 0000000000000000000000000000000000000000..378246a713be8b9bc151ea35d40dfb80d171a254 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/CheckoutForm.tsx @@ -0,0 +1,198 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/components/CheckoutForm/CheckoutForm.tsx + */ +import { ThemedScrollView } from "@/components/ThemedScrollView"; +import { Field } from "@/components/Field"; +import { StyleSheet, Pressable } from "react-native"; +import { useForm, Controller } from "react-hook-form"; +import { ThemedText } from "@/components/ThemedText"; +import { ThemedView } from "@/components/ThemedView"; + +export interface IFormData { + email: string; + streetAddress: string; + city: string; + state: string; + country: string; + zipCode: string; + creditCardNumber: string; + creditCardCvv: number; + creditCardExpirationYear: number; + creditCardExpirationMonth: number; +} + +interface IProps { + onSubmit(formData: IFormData): void; +} + +const CheckoutForm = ({ onSubmit }: IProps) => { + const { control, handleSubmit } = useForm({ + defaultValues: { + email: "someone@example.com", + streetAddress: "1600 Amphitheatre Parkway", + city: "Mountain View", + state: "CA", + country: "United States", + zipCode: "94043", + creditCardNumber: "4432-8015-6152-0454", + creditCardCvv: 672, + creditCardExpirationYear: 2030, + creditCardExpirationMonth: 1, + }, + }); + + return ( + + ( + + )} + name="email" + /> + ( + + )} + name="streetAddress" + /> + ( + + )} + name="zipCode" + /> + ( + + )} + name="country" + /> + ( + + )} + name="creditCardNumber" + /> + ( + + )} + name="creditCardExpirationMonth" + /> + ( + + )} + name="creditCardExpirationYear" + /> + ( + + )} + name="creditCardCvv" + /> + + + Place Order + + + + ); +}; + +const styles = StyleSheet.create({ + container: { + marginLeft: 30, + }, + submitContainer: { + display: "flex", + justifyContent: "center", + alignItems: "center", + margin: 20, + }, + submit: { + borderRadius: 4, + backgroundColor: "blue", + alignItems: "center", + justifyContent: "center", + width: 150, + padding: 10, + position: "relative", + }, + submitText: { + color: "white", + fontSize: 20, + }, +}); + +export default CheckoutForm; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/index.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..dc8dd0b1d6a9e4170ed3f4df4f88ce2c2ab06899 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/CheckoutForm/index.ts @@ -0,0 +1,3 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +export { default } from "./CheckoutForm"; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/EmptyCart.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/EmptyCart.tsx new file mode 100644 index 0000000000000000000000000000000000000000..962cf28143a3bf44666569814ce9c18c6b2b9c4f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/EmptyCart.tsx @@ -0,0 +1,37 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/components/Cart/EmptyCart.tsx + */ +import { ThemedView } from "@/components/ThemedView"; +import { ThemedText } from "@/components/ThemedText"; +import { StyleSheet } from "react-native"; + +const EmptyCart = () => { + return ( + + + Your shopping cart is empty! + + + Items you add to your shopping cart will appear here. + + + ); +}; + +export default EmptyCart; + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: "center", + alignItems: "center", + }, + header: { + fontSize: 20, + }, + subHeader: { + fontSize: 14, + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/index.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..9f421d165f0f20d801053f5c7b415f7142bd0ca6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/EmptyCart/index.ts @@ -0,0 +1,3 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +export { default } from "./EmptyCart"; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Field.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Field.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d0f8e9683dacdb11b18ac164c88151883219d50e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Field.tsx @@ -0,0 +1,30 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { StyleSheet, TextInput, type TextInputProps } from "react-native"; +import { ThemedView } from "@/components/ThemedView"; +import { ThemedText } from "@/components/ThemedText"; +import { useThemeColor } from "@/hooks/useThemeColor"; + +export type FieldProps = TextInputProps & { + label: string; +}; + +export function Field({ label, ...otherProps }: FieldProps) { + const color = useThemeColor({}, "text"); + + return ( + + {label}: + + + ); +} + +const styles = StyleSheet.create({ + container: { + display: "flex", + flexDirection: "row", + gap: 10, + alignItems: "center", + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/ProductCard.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/ProductCard.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d5bd30115e9d4abe2de17c25e9e095daeec95690 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/ProductCard.tsx @@ -0,0 +1,102 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/components/ProductCard/ProductCard.tsx + */ +import { Product } from "@/protos/demo"; +import { ThemedView } from "@/components/ThemedView"; +import { useState, useEffect, useMemo } from "react"; +import { Image, Pressable, StyleSheet } from "react-native"; +import { ThemedText } from "@/components/ThemedText"; +import { useThemeColor } from "@/hooks/useThemeColor"; +import getFrontendProxyURL from "@/utils/Settings"; + +interface IProps { + product: Product; + onClickAdd: () => void; +} + +async function getImageURL(picture: string) { + const proxyURL = await getFrontendProxyURL(); + return `${proxyURL}/images/products/${picture}`; +} + +const ProductCard = ({ + product: { + picture, + name, + priceUsd = { + currencyCode: "USD", + units: 0, + nanos: 0, + }, + }, + onClickAdd, +}: IProps) => { + const tint = useThemeColor({}, "tint"); + const styles = useMemo(() => getStyles(tint), [tint]); + const [imageSrc, setImageSrc] = useState(""); + + useEffect(() => { + getImageURL(picture) + .then(setImageSrc) + .catch((reason) => { + console.warn("Failed to get image URL: ", reason); + }); + }, [picture]); + + // TODO simplify react native demo for now by hard-coding the selected currency + const price = (priceUsd?.units + priceUsd?.nanos / 100000000).toFixed(2); + + return ( + + + {imageSrc && } + + + {name} + $ {price} + + Add to Cart + + + + ); +}; + +const getStyles = (tint: string) => + StyleSheet.create({ + container: { + display: "flex", + flexDirection: "row", + padding: 20, + marginLeft: 10, + marginRight: 10, + borderStyle: "solid", + borderBottomWidth: 1, + borderColor: tint, + gap: 30, + }, + image: { + width: 100, + height: 100, + }, + productInfo: { + flexShrink: 1, + }, + name: {}, + price: { + fontWeight: "bold", + }, + add: { + borderRadius: 4, + backgroundColor: "green", + alignItems: "center", + width: 100, + }, + addText: { + color: "white", + }, + }); + +export default ProductCard; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/index.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..e08867030df81616e58469fd1cdee1ad2394401e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductCard/index.ts @@ -0,0 +1,3 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +export { default } from "./ProductCard"; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/ProductList.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/ProductList.tsx new file mode 100644 index 0000000000000000000000000000000000000000..30bd6efb3f7f3f51270afd11e063a828f1f4f5b3 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/ProductList.tsx @@ -0,0 +1,50 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from: + * src/frontend/pages/product/[productId]/index.tsx + * src/frontend/components/ProductList/ProductList.tsx + */ +import Toast from "react-native-toast-message"; +import { useCallback } from "react"; +import ProductCard from "@/components/ProductCard"; +import { Product } from "@/protos/demo"; +import { ThemedScrollView } from "@/components/ThemedScrollView"; +import { useCart } from "@/providers/Cart.provider"; + +interface IProps { + productList: Product[]; +} + +const ProductList = ({ productList }: IProps) => { + const { addItem } = useCart(); + const onAddItem = useCallback( + async (id: string) => { + addItem({ + productId: id, + quantity: 1, + }); + + Toast.show({ + type: "success", + position: "bottom", + text1: "This item has been added to your cart", + }); + }, + [addItem], + ); + + return ( + + {productList.map((product) => ( + onAddItem(product.id)} + /> + ))} + + ); +}; + +export default ProductList; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/index.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..d3e14bb3bc304f10110f59f5cdc70bc2397d27c0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ProductList/index.ts @@ -0,0 +1,3 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +export { default } from "./ProductList"; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Setting.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Setting.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d7db5195dd0e906f980f20ff05211b880e0337ea --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/Setting.tsx @@ -0,0 +1,76 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import {Pressable, StyleSheet, TextInput, type TextInputProps} from "react-native"; +import { ThemedView } from "@/components/ThemedView"; +import { ThemedText } from "@/components/ThemedText"; +import { useThemeColor } from "@/hooks/useThemeColor"; +import {useCallback, useEffect, useState} from "react"; +import Toast from "react-native-toast-message"; + +export type SettingProps = TextInputProps & { + name: string; + get: () => Promise; + set: (value: string) => Promise; +}; + +export function Setting({ name, get, set, ...otherProps }: SettingProps) { + const color = useThemeColor({}, "text"); + const [loading, setLoading] = useState(false); + const [text, setText] = useState(''); + + useEffect(() => { + get().then(existingValue => { + setText(existingValue); + setLoading(false); + }); + }, []); + + const onApply = useCallback(async () => { + await set(text); + + Toast.show({ + type: "success", + position: "bottom", + text1: `${name} applied`, + }); + }, [text]); + + return ( + + {name}: + {loading ? ( + Fetching current value... + ) : ( + <> + + + Apply + + + )} + + ); +} + + +const styles = StyleSheet.create({ + container: { + display: "flex", + gap: 5, + }, + apply: { + borderRadius: 4, + backgroundColor: "green", + alignItems: "center", + width: 100, + position: "relative", + }, + applyText: { + color: "white", + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedScrollView.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedScrollView.tsx new file mode 100644 index 0000000000000000000000000000000000000000..34f5d211d925ace55480f6bc43116090db019542 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedScrollView.tsx @@ -0,0 +1,23 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { ScrollView, type ScrollViewProps } from "react-native"; +import { useThemeColor } from "@/hooks/useThemeColor"; + +export type ThemedViewProps = ScrollViewProps & { + lightColor?: string; + darkColor?: string; +}; + +export function ThemedScrollView({ + style, + lightColor, + darkColor, + ...otherProps +}: ThemedViewProps) { + const backgroundColor = useThemeColor( + { light: lightColor, dark: darkColor }, + "background", + ); + + return ; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedText.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedText.tsx new file mode 100644 index 0000000000000000000000000000000000000000..cf6abf89a1fb5ea29af72b46111807d0005664ad --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedText.tsx @@ -0,0 +1,62 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { Text, type TextProps, StyleSheet } from "react-native"; + +import { useThemeColor } from "@/hooks/useThemeColor"; + +export type ThemedTextProps = TextProps & { + lightColor?: string; + darkColor?: string; + type?: "default" | "title" | "defaultSemiBold" | "subtitle" | "link"; +}; + +export function ThemedText({ + style, + lightColor, + darkColor, + type = "default", + ...rest +}: ThemedTextProps) { + const color = useThemeColor({ light: lightColor, dark: darkColor }, "text"); + + return ( + + ); +} + +const styles = StyleSheet.create({ + default: { + fontSize: 16, + lineHeight: 24, + }, + defaultSemiBold: { + fontSize: 16, + lineHeight: 24, + fontWeight: "600", + }, + title: { + fontSize: 32, + fontWeight: "bold", + lineHeight: 32, + }, + subtitle: { + fontSize: 20, + fontWeight: "bold", + }, + link: { + lineHeight: 30, + fontSize: 16, + color: "#0a7ea4", + }, +}); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedView.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedView.tsx new file mode 100644 index 0000000000000000000000000000000000000000..94668b3266b3c8ec5438d95a6ce7c57a053a182f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/ThemedView.tsx @@ -0,0 +1,24 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { View, type ViewProps } from "react-native"; + +import { useThemeColor } from "@/hooks/useThemeColor"; + +export type ThemedViewProps = ViewProps & { + lightColor?: string; + darkColor?: string; +}; + +export function ThemedView({ + style, + lightColor, + darkColor, + ...otherProps +}: ThemedViewProps) { + const backgroundColor = useThemeColor( + { light: lightColor, dark: darkColor }, + "background", + ); + + return ; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/navigation/TabBarIcon.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/navigation/TabBarIcon.tsx new file mode 100644 index 0000000000000000000000000000000000000000..42f43b242521f0da853d24a625b2a772b0e4de56 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/components/navigation/TabBarIcon.tsx @@ -0,0 +1,14 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ + +import Ionicons from "@expo/vector-icons/Ionicons"; +import { type IconProps } from "@expo/vector-icons/build/createIconSet"; +import { type ComponentProps } from "react"; + +export function TabBarIcon({ + style, + ...rest +}: IconProps["name"]>) { + return ; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/constants/Colors.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/constants/Colors.ts new file mode 100644 index 0000000000000000000000000000000000000000..8219cf80fb0467aaa0857a0cac6fc0e0858e5c0b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/constants/Colors.ts @@ -0,0 +1,28 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Below are the colors that are used in the app. The colors are defined in the light and dark mode. + * There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc. + */ + +const tintColorLight = "#0a7ea4"; +const tintColorDark = "#fff"; + +export const Colors = { + light: { + text: "#11181C", + background: "#fff", + tint: tintColorLight, + icon: "#687076", + tabIconDefault: "#687076", + tabIconSelected: tintColorLight, + }, + dark: { + text: "#ECEDEE", + background: "#151718", + tint: tintColorDark, + icon: "#9BA1A6", + tabIconDefault: "#9BA1A6", + tabIconSelected: tintColorDark, + }, +}; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Api.gateway.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Api.gateway.ts new file mode 100644 index 0000000000000000000000000000000000000000..96f898baadaca9c8ba4b934eed6badee554b25c2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Api.gateway.ts @@ -0,0 +1,150 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/gateways/Api.gateway.ts + * + * TODO The React Native example only implements a subset of the functionality defined here, missing in particular is: + * - showing ads + * - showing recommendations + * - calculating shipping costs + * - currency conversion + */ +import { + Ad, + Address, + Cart, + CartItem, + Money, + PlaceOrderRequest, + Product, +} from "@/protos/demo"; +import { IProductCart, IProductCartItem, IProductCheckout } from "@/types/Cart"; +import request from "@/utils/Request"; +import SessionGateway from "./Session.gateway"; +import { context, propagation } from "@opentelemetry/api"; + +const basePath = "/api"; + +const Apis = () => ({ + async getCart(currencyCode: string) { + const { userId } = await SessionGateway.getSession(); + return request({ + url: `${basePath}/cart`, + queryParams: { sessionId: userId, currencyCode }, + }); + }, + async addCartItem({ + currencyCode, + ...item + }: CartItem & { currencyCode: string }) { + const { userId } = await SessionGateway.getSession(); + return request({ + url: `${basePath}/cart`, + body: { item, userId }, + queryParams: { currencyCode }, + method: "POST", + }); + }, + async emptyCart() { + const { userId } = await SessionGateway.getSession(); + return request({ + url: `${basePath}/cart`, + method: "DELETE", + body: { userId }, + }); + }, + + getSupportedCurrencyList() { + return request({ + url: `${basePath}/currency`, + }); + }, + + getShippingCost( + itemList: IProductCartItem[], + currencyCode: string, + address: Address, + ) { + return request({ + url: `${basePath}/shipping`, + queryParams: { + itemList: JSON.stringify( + itemList.map(({ productId, quantity }) => ({ productId, quantity })), + ), + currencyCode, + address: JSON.stringify(address), + }, + }); + }, + + placeOrder({ + currencyCode, + ...order + }: PlaceOrderRequest & { currencyCode: string }) { + return request({ + url: `${basePath}/checkout`, + method: "POST", + queryParams: { currencyCode }, + body: order, + }); + }, + + listProducts(currencyCode: string) { + return request({ + url: `${basePath}/products`, + queryParams: { currencyCode }, + }); + }, + getProduct(productId: string, currencyCode: string) { + return request({ + url: `${basePath}/products/${productId}`, + queryParams: { currencyCode }, + }); + }, + async listRecommendations(productIds: string[], currencyCode: string) { + const { userId } = await SessionGateway.getSession(); + return request({ + url: `${basePath}/recommendations`, + queryParams: { + productIds, + sessionId: userId, + currencyCode, + }, + }); + }, + listAds(contextKeys: string[]) { + return request({ + url: `${basePath}/data`, + queryParams: { + contextKeys, + }, + }); + }, +}); + +/** + * Extends all the API calls to set baggage automatically. + */ +const ApiGateway = new Proxy(Apis(), { + get(target, prop, receiver) { + const originalFunction = Reflect.get(target, prop, receiver); + + if (typeof originalFunction !== "function") { + return originalFunction; + } + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return async function (...args: any[]) { + const { userId } = await SessionGateway.getSession(); + const baggage = + propagation.getActiveBaggage() || propagation.createBaggage(); + const newBaggage = baggage.setEntry("session.id", { value: userId }); + const newContext = propagation.setBaggage(context.active(), newBaggage); + return context.with(newContext, () => { + return Reflect.apply(originalFunction, undefined, args); + }); + }; + }, +}); + +export default ApiGateway; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Session.gateway.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Session.gateway.ts new file mode 100644 index 0000000000000000000000000000000000000000..d6da9e1b46faafbda9eab4df0d8822892dc48a0a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/gateways/Session.gateway.ts @@ -0,0 +1,43 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/gateways/Session.gateway.ts + */ +import "react-native-get-random-values"; // Must be imported before 'uuid', see https://stackoverflow.com/a/68097811 +import { v4 } from "uuid"; +import AsyncStorage from "@react-native-async-storage/async-storage"; + +interface ISession { + userId: string; + currencyCode: string; +} + +const sessionKey = "session"; +const defaultSession = { + userId: v4(), + currencyCode: "USD", +}; + +const SessionGateway = () => ({ + async getSession(): Promise { + const sessionString = await AsyncStorage.getItem(sessionKey); + + if (!sessionString) { + await AsyncStorage.setItem(sessionKey, JSON.stringify(defaultSession)); + } + + return JSON.parse( + sessionString || JSON.stringify(defaultSession), + ) as ISession; + }, + setSessionValue(key: K, value: ISession[K]) { + const session = this.getSession(); + + return AsyncStorage.setItem( + sessionKey, + JSON.stringify({ ...session, [key]: value }), + ); + }, +}); + +export default SessionGateway(); diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a0bb61978d86cee30089c7c33b8dc50b377d445 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.ts @@ -0,0 +1,3 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +export { useColorScheme } from "react-native"; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.web.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.web.ts new file mode 100644 index 0000000000000000000000000000000000000000..fe92ccd6995cfc014c815cc263a8801ff54400e4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useColorScheme.web.ts @@ -0,0 +1,10 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// NOTE: The default React Native styling doesn't support server rendering. +// Server rendered styles should not change between the first render of the HTML +// and the first render on the client. Typically, web developers will use CSS media queries +// to render different styles on the client and server, these aren't directly supported in React Native +// but can be achieved using a styling library like Nativewind. +export function useColorScheme() { + return "light"; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useThemeColor.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useThemeColor.ts new file mode 100644 index 0000000000000000000000000000000000000000..c7b9684755d2d22e7735d8ddc39eb7dafc3d505e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useThemeColor.ts @@ -0,0 +1,24 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Learn more about light and dark modes: + * https://docs.expo.dev/guides/color-schemes/ + */ + +import { useColorScheme } from "react-native"; + +import { Colors } from "@/constants/Colors"; + +export function useThemeColor( + props: { light?: string; dark?: string }, + colorName: keyof typeof Colors.light & keyof typeof Colors.dark, +) { + const theme = useColorScheme() ?? "light"; + const colorFromProps = props[theme]; + + if (colorFromProps) { + return colorFromProps; + } else { + return Colors[theme][colorName]; + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useTracer.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useTracer.ts new file mode 100644 index 0000000000000000000000000000000000000000..39d560a5b56ceaaa032e7ec868dea370f21144f1 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/hooks/useTracer.ts @@ -0,0 +1,125 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import { + CompositePropagator, + W3CBaggagePropagator, + W3CTraceContextPropagator, +} from "@opentelemetry/core"; +import { WebTracerProvider } from "@opentelemetry/sdk-trace-web"; +import { + BatchSpanProcessor, +} from "@opentelemetry/sdk-trace-base"; +import { XMLHttpRequestInstrumentation } from "@opentelemetry/instrumentation-xml-http-request"; +import { FetchInstrumentation } from "@opentelemetry/instrumentation-fetch"; +import { registerInstrumentations } from "@opentelemetry/instrumentation"; +import { resourceFromAttributes } from "@opentelemetry/resources"; +import { + ATTR_DEVICE_ID, + ATTR_OS_NAME, + ATTR_OS_VERSION, + ATTR_SERVICE_NAME, + ATTR_SERVICE_VERSION, +} from "@opentelemetry/semantic-conventions/incubating"; +import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; +import { useEffect, useState } from "react"; +import { + getDeviceId, + getSystemVersion, + getVersion, +} from "react-native-device-info"; +import { Platform } from "react-native"; +import { SessionIdProcessor } from "@/utils/SessionIdProcessor"; +import getFrontendProxyURL from "@/utils/Settings"; + +export const setupTracerProvider = (proxyURL: string) => { + // TODO Should add a resource detector for React Native that provides this automatically + const resource = resourceFromAttributes({ + [ATTR_SERVICE_NAME]: "react-native-app", + [ATTR_OS_NAME]: Platform.OS, + [ATTR_OS_VERSION]: getSystemVersion(), + [ATTR_SERVICE_VERSION]: getVersion(), + [ATTR_DEVICE_ID]: getDeviceId(), + }); + + // TODO Not obvious that the WebTracerProvider can be used for React Native, might be useful to have a thin + // ReactNativeTracerProvider on top of it (or BasicTracerProvider) that makes this clear. Could also add some + // protection against browser specific functionality being added to WebTracerProvider that breaks functionality + // for React Native. + // Alternatively could offer a TracerProvider that exposed a JS interface on top of the OTEL Android and Swift SDKS, + // giving developers the option of collecting telemetry at the native mobile layer + return new WebTracerProvider({ + resource, + spanProcessors: [ + new BatchSpanProcessor( + new OTLPTraceExporter({ + url: `${proxyURL}/otlp-http/v1/traces`, + }), + { + scheduledDelayMillis: 500, + }, + ), + // TODO introduce a React Native session processor package that could be used here, taking into account mobile + // specific considerations for the session such as putting the app into the background + new SessionIdProcessor(), + ], + }); +} + +const Tracer = async () => { + const proxyURL = await getFrontendProxyURL(); + const provider = setupTracerProvider(proxyURL); + + provider.register({ + propagator: new CompositePropagator({ + propagators: [ + new W3CBaggagePropagator(), + new W3CTraceContextPropagator(), + ], + }), + }); + + registerInstrumentations({ + instrumentations: [ + // TODO Some tiptoeing required here, propagateTraceHeaderCorsUrls is required to make the instrumentation + // work in the context of a mobile app even though we are not making CORS requests. `clearTimingResources` must + // be turned off to avoid using the web-only Performance API + // Overall wrapping or forking this and providing a React Native specific auto instrumentation will ease + // integration and make it less error-prone + new FetchInstrumentation({ + propagateTraceHeaderCorsUrls: /.*/, + clearTimingResources: false, + }), + + // The React Native implementation of fetch is simply a polyfill on top of XMLHttpRequest: + // https://github.com/facebook/react-native/blob/7ccc5934d0f341f9bc8157f18913a7b340f5db2d/packages/react-native/Libraries/Network/fetch.js#L17 + // Because of this when making requests using `fetch` there will an additional span created for the underlying + // request made with XMLHttpRequest. Since in this demo calls to /api/ are made using fetch, turn off + // instrumentation for that path to avoid the extra spans. + new XMLHttpRequestInstrumentation({ + ignoreUrls: [/\/api\/.*/], + }), + ], + }); +}; + +export interface TracerResult { + loaded: boolean; +} + +// TODO providing a wrapper similar to this that uses hooks over the full JS OTEL API would be nice to have for both +// React Native and React development +export const useTracer = (): TracerResult => { + const [loaded, setLoaded] = useState(false); + + useEffect(() => { + if (!loaded) { + Tracer() + .catch(() => console.warn("failed to setup tracer")) + .finally(() => setLoaded(true)); + } + }, [loaded]); + + return { + loaded, + }; +}; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.gitignore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8beb344303ffdb5a918513f1962d5061bd764589 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.gitignore @@ -0,0 +1,30 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace +.xcode.env.local + +# Bundle artifacts +*.jsbundle + +# CocoaPods +/Pods/ diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.xcode.env b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.xcode.env new file mode 100644 index 0000000000000000000000000000000000000000..3d5782c71568d32eec2fe71b034efcde053305f9 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile new file mode 100644 index 0000000000000000000000000000000000000000..14cd1f8b8c4f15b10387133c9241874ce60ab2bb --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile @@ -0,0 +1,58 @@ +require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") +require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods") + +require 'json' +podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {} + +ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0' +ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR'] + +platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4' +install! 'cocoapods', + :deterministic_uuids => false + +prepare_react_native_project! + +target 'reactnativeapp' do + use_expo_modules! + config = use_native_modules! + + use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] + use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS'] + + use_react_native!( + :path => config[:reactNativePath], + :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes', + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/..", + :privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false', + ) + + post_install do |installer| + react_native_post_install( + installer, + config[:reactNativePath], + :mac_catalyst_enabled => false, + :ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true', + ) + + # This is necessary for Xcode 14, because it signs resource bundles by default + # when building for devices. + installer.target_installation_results.pod_target_installation_results + .each do |pod_name, target_installation_result| + target_installation_result.resource_bundle_targets.each do |resource_bundle_target| + resource_bundle_target.build_configurations.each do |config| + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' + end + end + end + end + + post_integrate do |installer| + begin + expo_patch_react_imports!(installer) + rescue => e + Pod::UI.warn e + end + end +end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.lock b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.lock new file mode 100644 index 0000000000000000000000000000000000000000..7e768c05ee7b8fdb31a4638e86310e0ec4c1da3c --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.lock @@ -0,0 +1,1609 @@ +PODS: + - boost (1.83.0) + - DoubleConversion (1.1.6) + - EXConstants (16.0.2): + - ExpoModulesCore + - Expo (51.0.39): + - ExpoModulesCore + - ExpoAsset (10.0.10): + - ExpoModulesCore + - ExpoFileSystem (17.0.1): + - ExpoModulesCore + - ExpoFont (12.0.10): + - ExpoModulesCore + - ExpoHead (3.5.24): + - ExpoModulesCore + - ExpoKeepAwake (13.0.2): + - ExpoModulesCore + - ExpoModulesCore (1.12.26): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsinspector + - React-NativeModulesApple + - React-RCTAppDelegate + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - ExpoSystemUI (3.0.7): + - ExpoModulesCore + - ExpoWebBrowser (13.0.3): + - ExpoModulesCore + - EXSplashScreen (0.27.7): + - DoubleConversion + - ExpoModulesCore + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - FBLazyVector (0.74.2) + - fmt (9.1.0) + - glog (0.3.5) + - hermes-engine (0.74.2): + - hermes-engine/Pre-built (= 0.74.2) + - hermes-engine/Pre-built (0.74.2) + - RCT-Folly (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Default (= 2024.01.01.00) + - RCT-Folly/Default (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Fabric (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCTDeprecation (0.74.2) + - RCTRequired (0.74.2) + - RCTTypeSafety (0.74.2): + - FBLazyVector (= 0.74.2) + - RCTRequired (= 0.74.2) + - React-Core (= 0.74.2) + - React (0.74.2): + - React-Core (= 0.74.2) + - React-Core/DevSupport (= 0.74.2) + - React-Core/RCTWebSocket (= 0.74.2) + - React-RCTActionSheet (= 0.74.2) + - React-RCTAnimation (= 0.74.2) + - React-RCTBlob (= 0.74.2) + - React-RCTImage (= 0.74.2) + - React-RCTLinking (= 0.74.2) + - React-RCTNetwork (= 0.74.2) + - React-RCTSettings (= 0.74.2) + - React-RCTText (= 0.74.2) + - React-RCTVibration (= 0.74.2) + - React-callinvoker (0.74.2) + - React-Codegen (0.74.2): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-NativeModulesApple + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-Core (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.74.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/CoreModulesHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/Default (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/DevSupport (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.74.2) + - React-Core/RCTWebSocket (= 0.74.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTActionSheetHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTAnimationHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTBlobHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTImageHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTLinkingHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTNetworkHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTSettingsHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTTextHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTVibrationHeaders (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTWebSocket (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.74.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-CoreModules (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety (= 0.74.2) + - React-Codegen + - React-Core/CoreModulesHeaders (= 0.74.2) + - React-jsi (= 0.74.2) + - React-jsinspector + - React-NativeModulesApple + - React-RCTBlob + - React-RCTImage (= 0.74.2) + - ReactCommon + - SocketRocket (= 0.7.0) + - React-cxxreact (0.74.2): + - boost (= 1.83.0) + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.74.2) + - React-debug (= 0.74.2) + - React-jsi (= 0.74.2) + - React-jsinspector + - React-logger (= 0.74.2) + - React-perflogger (= 0.74.2) + - React-runtimeexecutor (= 0.74.2) + - React-debug (0.74.2) + - React-Fabric (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/animations (= 0.74.2) + - React-Fabric/attributedstring (= 0.74.2) + - React-Fabric/componentregistry (= 0.74.2) + - React-Fabric/componentregistrynative (= 0.74.2) + - React-Fabric/components (= 0.74.2) + - React-Fabric/core (= 0.74.2) + - React-Fabric/imagemanager (= 0.74.2) + - React-Fabric/leakchecker (= 0.74.2) + - React-Fabric/mounting (= 0.74.2) + - React-Fabric/scheduler (= 0.74.2) + - React-Fabric/telemetry (= 0.74.2) + - React-Fabric/templateprocessor (= 0.74.2) + - React-Fabric/textlayoutmanager (= 0.74.2) + - React-Fabric/uimanager (= 0.74.2) + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/animations (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/attributedstring (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistry (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistrynative (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/components/inputaccessory (= 0.74.2) + - React-Fabric/components/legacyviewmanagerinterop (= 0.74.2) + - React-Fabric/components/modal (= 0.74.2) + - React-Fabric/components/rncore (= 0.74.2) + - React-Fabric/components/root (= 0.74.2) + - React-Fabric/components/safeareaview (= 0.74.2) + - React-Fabric/components/scrollview (= 0.74.2) + - React-Fabric/components/text (= 0.74.2) + - React-Fabric/components/textinput (= 0.74.2) + - React-Fabric/components/unimplementedview (= 0.74.2) + - React-Fabric/components/view (= 0.74.2) + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/inputaccessory (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/legacyviewmanagerinterop (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/modal (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/rncore (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/root (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/safeareaview (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/scrollview (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/text (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/textinput (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/unimplementedview (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/view (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - Yoga + - React-Fabric/core (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/imagemanager (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/leakchecker (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/mounting (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/scheduler (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/telemetry (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/templateprocessor (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/textlayoutmanager (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/uimanager + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/uimanager (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-FabricImage (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired (= 0.74.2) + - RCTTypeSafety (= 0.74.2) + - React-Fabric + - React-graphics + - React-ImageManager + - React-jsi + - React-jsiexecutor (= 0.74.2) + - React-logger + - React-rendererdebug + - React-utils + - ReactCommon + - Yoga + - React-featureflags (0.74.2) + - React-graphics (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-Core/Default (= 0.74.2) + - React-utils + - React-hermes (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-cxxreact (= 0.74.2) + - React-jsi + - React-jsiexecutor (= 0.74.2) + - React-jsinspector + - React-perflogger (= 0.74.2) + - React-runtimeexecutor + - React-ImageManager (0.74.2): + - glog + - RCT-Folly/Fabric + - React-Core/Default + - React-debug + - React-Fabric + - React-graphics + - React-rendererdebug + - React-utils + - React-jserrorhandler (0.74.2): + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-debug + - React-jsi + - React-Mapbuffer + - React-jsi (0.74.2): + - boost (= 1.83.0) + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-jsiexecutor (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-cxxreact (= 0.74.2) + - React-jsi (= 0.74.2) + - React-jsinspector + - React-perflogger (= 0.74.2) + - React-jsinspector (0.74.2): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-featureflags + - React-jsi + - React-runtimeexecutor (= 0.74.2) + - React-jsitracing (0.74.2): + - React-jsi + - React-logger (0.74.2): + - glog + - React-Mapbuffer (0.74.2): + - glog + - React-debug + - react-native-get-random-values (1.11.0): + - React-Core + - react-native-safe-area-context (4.10.1): + - React-Core + - React-nativeconfig (0.74.2) + - React-NativeModulesApple (0.74.2): + - glog + - hermes-engine + - React-callinvoker + - React-Core + - React-cxxreact + - React-jsi + - React-jsinspector + - React-runtimeexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-perflogger (0.74.2) + - React-RCTActionSheet (0.74.2): + - React-Core/RCTActionSheetHeaders (= 0.74.2) + - React-RCTAnimation (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTAnimationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTAppDelegate (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-CoreModules + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-nativeconfig + - React-NativeModulesApple + - React-RCTFabric + - React-RCTImage + - React-RCTNetwork + - React-rendererdebug + - React-RuntimeApple + - React-RuntimeCore + - React-RuntimeHermes + - React-runtimescheduler + - React-utils + - ReactCommon + - React-RCTBlob (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-Codegen + - React-Core/RCTBlobHeaders + - React-Core/RCTWebSocket + - React-jsi + - React-jsinspector + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTFabric (0.74.2): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-jsinspector + - React-nativeconfig + - React-RCTImage + - React-RCTText + - React-rendererdebug + - React-runtimescheduler + - React-utils + - Yoga + - React-RCTImage (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTImageHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTLinking (0.74.2): + - React-Codegen + - React-Core/RCTLinkingHeaders (= 0.74.2) + - React-jsi (= 0.74.2) + - React-NativeModulesApple + - ReactCommon + - ReactCommon/turbomodule/core (= 0.74.2) + - React-RCTNetwork (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTNetworkHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTSettings (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTSettingsHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTText (0.74.2): + - React-Core/RCTTextHeaders (= 0.74.2) + - Yoga + - React-RCTVibration (0.74.2): + - RCT-Folly (= 2024.01.01.00) + - React-Codegen + - React-Core/RCTVibrationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-rendererdebug (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - RCT-Folly (= 2024.01.01.00) + - React-debug + - React-rncore (0.74.2) + - React-RuntimeApple (0.74.2): + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-callinvoker + - React-Core/Default + - React-CoreModules + - React-cxxreact + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-Mapbuffer + - React-NativeModulesApple + - React-RCTFabric + - React-RuntimeCore + - React-runtimeexecutor + - React-RuntimeHermes + - React-utils + - React-RuntimeCore (0.74.2): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-cxxreact + - React-featureflags + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - React-runtimeexecutor (0.74.2): + - React-jsi (= 0.74.2) + - React-RuntimeHermes (0.74.2): + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-featureflags + - React-hermes + - React-jsi + - React-jsinspector + - React-jsitracing + - React-nativeconfig + - React-RuntimeCore + - React-utils + - React-runtimescheduler (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker + - React-cxxreact + - React-debug + - React-featureflags + - React-jsi + - React-rendererdebug + - React-runtimeexecutor + - React-utils + - React-utils (0.74.2): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-debug + - React-jsi (= 0.74.2) + - ReactCommon (0.74.2): + - ReactCommon/turbomodule (= 0.74.2) + - ReactCommon/turbomodule (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.74.2) + - React-cxxreact (= 0.74.2) + - React-jsi (= 0.74.2) + - React-logger (= 0.74.2) + - React-perflogger (= 0.74.2) + - ReactCommon/turbomodule/bridging (= 0.74.2) + - ReactCommon/turbomodule/core (= 0.74.2) + - ReactCommon/turbomodule/bridging (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.74.2) + - React-cxxreact (= 0.74.2) + - React-jsi (= 0.74.2) + - React-logger (= 0.74.2) + - React-perflogger (= 0.74.2) + - ReactCommon/turbomodule/core (0.74.2): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.74.2) + - React-cxxreact (= 0.74.2) + - React-debug (= 0.74.2) + - React-jsi (= 0.74.2) + - React-logger (= 0.74.2) + - React-perflogger (= 0.74.2) + - React-utils (= 0.74.2) + - RNCAsyncStorage (2.1.0): + - React-Core + - RNDeviceInfo (11.1.0): + - React-Core + - RNGestureHandler (2.16.2): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - RNReanimated (3.10.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - RNScreens (3.31.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Codegen + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-RCTImage + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - SocketRocket (0.7.0) + - Yoga (0.0.0) + +DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) + - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - EXConstants (from `../node_modules/expo-constants/ios`) + - Expo (from `../node_modules/expo`) + - ExpoAsset (from `../node_modules/expo-asset/ios`) + - ExpoFileSystem (from `../node_modules/expo-file-system/ios`) + - ExpoFont (from `../node_modules/expo-font/ios`) + - ExpoHead (from `../node_modules/expo-router/ios`) + - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`) + - ExpoModulesCore (from `../node_modules/expo-modules-core`) + - ExpoSystemUI (from `../node_modules/expo-system-ui/ios`) + - ExpoWebBrowser (from `../node_modules/expo-web-browser/ios`) + - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`) + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`) + - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`) + - RCTRequired (from `../node_modules/react-native/Libraries/Required`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Codegen (from `build/generated/ios`) + - React-Core (from `../node_modules/react-native/`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`) + - React-Fabric (from `../node_modules/react-native/ReactCommon`) + - React-FabricImage (from `../node_modules/react-native/ReactCommon`) + - React-featureflags (from `../node_modules/react-native/ReactCommon/react/featureflags`) + - React-graphics (from `../node_modules/react-native/ReactCommon/react/renderer/graphics`) + - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) + - React-ImageManager (from `../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`) + - React-jserrorhandler (from `../node_modules/react-native/ReactCommon/jserrorhandler`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`) + - React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) + - react-native-get-random-values (from `../node_modules/react-native-get-random-values`) + - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - React-nativeconfig (from `../node_modules/react-native/ReactCommon`) + - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTFabric (from `../node_modules/react-native/React`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) + - React-rncore (from `../node_modules/react-native/ReactCommon`) + - React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`) + - React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) + - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)" + - RNDeviceInfo (from `../node_modules/react-native-device-info`) + - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) + - RNReanimated (from `../node_modules/react-native-reanimated`) + - RNScreens (from `../node_modules/react-native-screens`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +SPEC REPOS: + trunk: + - SocketRocket + +EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" + DoubleConversion: + :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + EXConstants: + :path: "../node_modules/expo-constants/ios" + Expo: + :path: "../node_modules/expo" + ExpoAsset: + :path: "../node_modules/expo-asset/ios" + ExpoFileSystem: + :path: "../node_modules/expo-file-system/ios" + ExpoFont: + :path: "../node_modules/expo-font/ios" + ExpoHead: + :path: "../node_modules/expo-router/ios" + ExpoKeepAwake: + :path: "../node_modules/expo-keep-awake/ios" + ExpoModulesCore: + :path: "../node_modules/expo-modules-core" + ExpoSystemUI: + :path: "../node_modules/expo-system-ui/ios" + ExpoWebBrowser: + :path: "../node_modules/expo-web-browser/ios" + EXSplashScreen: + :path: "../node_modules/expo-splash-screen/ios" + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + fmt: + :podspec: "../node_modules/react-native/third-party-podspecs/fmt.podspec" + glog: + :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + hermes-engine: + :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" + :tag: hermes-2024-06-03-RNv0.74.2-bb1e74fe1e95c2b5a2f4f9311152da052badc2bc + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" + RCTDeprecation: + :path: "../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation" + RCTRequired: + :path: "../node_modules/react-native/Libraries/Required" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Codegen: + :path: build/generated/ios + React-Core: + :path: "../node_modules/react-native/" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-debug: + :path: "../node_modules/react-native/ReactCommon/react/debug" + React-Fabric: + :path: "../node_modules/react-native/ReactCommon" + React-FabricImage: + :path: "../node_modules/react-native/ReactCommon" + React-featureflags: + :path: "../node_modules/react-native/ReactCommon/react/featureflags" + React-graphics: + :path: "../node_modules/react-native/ReactCommon/react/renderer/graphics" + React-hermes: + :path: "../node_modules/react-native/ReactCommon/hermes" + React-ImageManager: + :path: "../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios" + React-jserrorhandler: + :path: "../node_modules/react-native/ReactCommon/jserrorhandler" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern" + React-jsitracing: + :path: "../node_modules/react-native/ReactCommon/hermes/executor/" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + React-Mapbuffer: + :path: "../node_modules/react-native/ReactCommon" + react-native-get-random-values: + :path: "../node_modules/react-native-get-random-values" + react-native-safe-area-context: + :path: "../node_modules/react-native-safe-area-context" + React-nativeconfig: + :path: "../node_modules/react-native/ReactCommon" + React-NativeModulesApple: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTAppDelegate: + :path: "../node_modules/react-native/Libraries/AppDelegate" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTFabric: + :path: "../node_modules/react-native/React" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-rendererdebug: + :path: "../node_modules/react-native/ReactCommon/react/renderer/debug" + React-rncore: + :path: "../node_modules/react-native/ReactCommon" + React-RuntimeApple: + :path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios" + React-RuntimeCore: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + React-RuntimeHermes: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimescheduler: + :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" + React-utils: + :path: "../node_modules/react-native/ReactCommon/react/utils" + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + RNCAsyncStorage: + :path: "../node_modules/@react-native-async-storage/async-storage" + RNDeviceInfo: + :path: "../node_modules/react-native-device-info" + RNGestureHandler: + :path: "../node_modules/react-native-gesture-handler" + RNReanimated: + :path: "../node_modules/react-native-reanimated" + RNScreens: + :path: "../node_modules/react-native-screens" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +SPEC CHECKSUMS: + boost: d3f49c53809116a5d38da093a8aa78bf551aed09 + DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5 + EXConstants: 89d35611505a8ce02550e64e43cd05565da35f9a + Expo: ed0a748eb6be0efd2c3df7f6de3f3158a14464c9 + ExpoAsset: 286fee7ba711ce66bf20b315e68106b13b8629fc + ExpoFileSystem: 2988caaf68b7cb706e36d382829d99811d9d76a5 + ExpoFont: 38dddf823e32740c2a9f37c926a33aeca736b5c4 + ExpoHead: 1a1b30c6c1d125e9b8a199ca305c16a1dc041624 + ExpoKeepAwake: dd02e65d49f1cfd9194640028ae2857e536eb1c9 + ExpoModulesCore: 9ac73e2f60e0ea1d30137ca96cfc8c2aa34ef2b2 + ExpoSystemUI: 2072307375696c398a5d75633bdd5143fadc3d26 + ExpoWebBrowser: cf10afe886891ab495877dada977fe6c269614a4 + EXSplashScreen: a4ce3dd5d28d48e8b9132bcd9b58ee8e340db78c + FBLazyVector: 4bc164e5b5e6cfc288d2b5ff28643ea15fa1a589 + fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 + glog: fdfdfe5479092de0c4bdbebedd9056951f092c4f + hermes-engine: 01d3e052018c2a13937aca1860fbedbccd4a41b7 + RCT-Folly: 02617c592a293bd6d418e0a88ff4ee1f88329b47 + RCTDeprecation: b03c35057846b685b3ccadc9bfe43e349989cdb2 + RCTRequired: 194626909cfa8d39ca6663138c417bc6c431648c + RCTTypeSafety: 552aff5b8e8341660594db00e53ac889682bc120 + React: a57fe42044fe6ed3e828f8867ce070a6c5872754 + React-callinvoker: 6bedefb354a8848b534752417954caa3a5cf34f9 + React-Codegen: 49cfc291275676ba00401e4cbbb6931906d50623 + React-Core: 5378e701a95b000d5a0b7020149f428b854a6222 + React-CoreModules: 80cd03b1e5ad19de582bd076fb63114964e5a45e + React-cxxreact: d162761aef4ff8191d01fea602e2b981365f5f10 + React-debug: 164b8e302404d92d4bec39778a5e03bcb1b6eb08 + React-Fabric: a3d85fbd80e336d7137b77bcd6e713bb1ef5f9e3 + React-FabricImage: 60a42161a730e98b8391b71aa79a3dd01c91c117 + React-featureflags: d97a6393993052e951e16a3b81206e22110be8d2 + React-graphics: 98ac899ccd24a52b95607f6e936f0dee1df72fc6 + React-hermes: 7456eb2ac1cca407e743db848e39473e1e8cb67a + React-ImageManager: 5f8615ba4d5a191c7bb085a22063f12ad1ef77ee + React-jserrorhandler: be31e8fa6c5056976215f4363c018a09521eebdf + React-jsi: 673c0629d1347e4b47f3e8af50425b84dbe3bffb + React-jsiexecutor: a0ce7f28434a949235e5a849689cceae8bf03a8e + React-jsinspector: 37ce74bdcd2d604b05ad871a2bf500da50770f18 + React-jsitracing: 00f6151766dec0ab324e2854a9d4dfde0e1f30cc + React-logger: 70e002e04cc56ff5c12157537405d1644c050703 + React-Mapbuffer: 8d1f0fc6e7280a8ed6da70ece5f283ac5c8032cb + react-native-get-random-values: d16467cf726c618e9c7a8c3c39c31faa2244bbba + react-native-safe-area-context: 8c70551c8688cd584a53487aa1b9361e991a3b4a + React-nativeconfig: 9f223cd321823afdecf59ed00861ab2d69ee0fc1 + React-NativeModulesApple: 1cd770ed7dc463e55d02a05f7fc3be46076d393e + React-perflogger: 32ed45d9cee02cf6639acae34251590dccd30994 + React-RCTActionSheet: 19f967ddaea258182b56ef11437133b056ba2adf + React-RCTAnimation: 62269ef3c6723d51677b466247734c94a57058be + React-RCTAppDelegate: fff24d087c7cb05849a744b0c7288c71fde75180 + React-RCTBlob: f684ebda742dcc0869aeaf502b760f68dbc2eecf + React-RCTFabric: 908f220527719260d5ddcfb2fe0d8f52833fe71a + React-RCTImage: 71f8c1c9a4f13121211d7e179c5a0a1764a0c1dc + React-RCTLinking: f79e8f8a68ec7155d267922386885cd60ad1208b + React-RCTNetwork: d6c7b68b10b268c80cd72ef7cd710fdf71f69d83 + React-RCTSettings: 2e1d70025490790cc6ce0c766af8cb174390be43 + React-RCTText: a8d1d3716ad2946bfd96932c8a2bbebb07e569bf + React-RCTVibration: 01fe1cc2c7148e74f11ed8997a553399393c8fd6 + React-rendererdebug: 1d87a8cc3c81d95beea2f8caeefa0d4520971288 + React-rncore: edfff7a3f7f82ca1e0ba26978c6d84c7a8970dac + React-RuntimeApple: ea00d0be65f8dcf8a7f33a712dfda5098f8cd85c + React-RuntimeCore: 08ca132a26c286c6be4376a7db27994e5f97aebb + React-runtimeexecutor: 5961acc7a77b69f964e1645a5d6069e124ce6b37 + React-RuntimeHermes: c11cbc1cd10659aac0910de11f11dbc825a32785 + React-runtimescheduler: c5ba36755abc3c28a8cd327325b13599af586204 + React-utils: 08bb648cea0f37a0aa5df0c4f9ef50e5484ee0eb + ReactCommon: 4968ff446d467c4def1945125e59f82e3e986af3 + RNCAsyncStorage: c91d753ede6dc21862c4922cd13f98f7cfde578e + RNDeviceInfo: 900bd20e1fd3bfd894e7384cc4a83880c0341bd3 + RNGestureHandler: 326e35460fb6c8c64a435d5d739bea90d7ed4e49 + RNReanimated: def444e044c354f38bb0a5926a8583ba19d944c1 + RNScreens: a2d8a2555b4653d7a19706eb172f855657ac30d7 + SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d + Yoga: 2f71ecf38d934aecb366e686278102a51679c308 + +PODFILE CHECKSUM: 43d62c9a2cdb594df87b33661537b45c69daf63f + +COCOAPODS: 1.16.2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.properties.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.properties.json new file mode 100644 index 0000000000000000000000000000000000000000..de9f7b7524cca66c539649512096a39f6f3d5b06 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/Podfile.properties.json @@ -0,0 +1,4 @@ +{ + "expo.jsEngine": "hermes", + "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true" +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/project.pbxproj b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..0613758f4ee37c1602e185cba5c88acdc85a55ac --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/project.pbxproj @@ -0,0 +1,543 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; + 5B906A66AC954B3C8799AF14 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B0478F52474B4C808FD8B5 /* noop-file.swift */; }; + 96905EF65AED1B983A6B3ABC /* libPods-reactnativeapp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-reactnativeapp.a */; }; + B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; }; + BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; + C2AA57E8CB91AA78F8ACFC80 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 7CA499B7C37DC82E3E64F2AB /* PrivacyInfo.xcprivacy */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 13B07F961A680F5B00A75B9A /* reactnativeapp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = reactnativeapp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = reactnativeapp/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = reactnativeapp/AppDelegate.mm; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = reactnativeapp/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = reactnativeapp/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = reactnativeapp/main.m; sourceTree = ""; }; + 23ED077BD19D4E86AEAE4B7F /* reactnativeapp-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "reactnativeapp-Bridging-Header.h"; path = "reactnativeapp/reactnativeapp-Bridging-Header.h"; sourceTree = ""; }; + 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-reactnativeapp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactnativeapp.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 6C2E3173556A471DD304B334 /* Pods-reactnativeapp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactnativeapp.debug.xcconfig"; path = "Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp.debug.xcconfig"; sourceTree = ""; }; + 7A4D352CD337FB3A3BF06240 /* Pods-reactnativeapp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactnativeapp.release.xcconfig"; path = "Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp.release.xcconfig"; sourceTree = ""; }; + 7CA499B7C37DC82E3E64F2AB /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = reactnativeapp/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 92B0478F52474B4C808FD8B5 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "reactnativeapp/noop-file.swift"; sourceTree = ""; }; + AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = reactnativeapp/SplashScreen.storyboard; sourceTree = ""; }; + BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; }; + ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; + FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-reactnativeapp/ExpoModulesProvider.swift"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 96905EF65AED1B983A6B3ABC /* libPods-reactnativeapp.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 13B07FAE1A68108700A75B9A /* reactnativeapp */ = { + isa = PBXGroup; + children = ( + BB2F792B24A3F905000567C9 /* Supporting */, + 13B07FAF1A68108700A75B9A /* AppDelegate.h */, + 13B07FB01A68108700A75B9A /* AppDelegate.mm */, + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 13B07FB71A68108700A75B9A /* main.m */, + AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, + 92B0478F52474B4C808FD8B5 /* noop-file.swift */, + 23ED077BD19D4E86AEAE4B7F /* reactnativeapp-Bridging-Header.h */, + 7CA499B7C37DC82E3E64F2AB /* PrivacyInfo.xcprivacy */, + ); + name = reactnativeapp; + sourceTree = ""; + }; + 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED297162215061F000B7C4FE /* JavaScriptCore.framework */, + 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-reactnativeapp.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + ); + name = Libraries; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + 13B07FAE1A68108700A75B9A /* reactnativeapp */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 83CBBA001A601CBA00E9B192 /* Products */, + 2D16E6871FA4F8E400B85C8A /* Frameworks */, + D65327D7A22EEC0BE12398D9 /* Pods */, + D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + usesTabs = 0; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* reactnativeapp.app */, + ); + name = Products; + sourceTree = ""; + }; + 92DBD88DE9BF7D494EA9DA96 /* reactnativeapp */ = { + isa = PBXGroup; + children = ( + FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */, + ); + name = reactnativeapp; + sourceTree = ""; + }; + BB2F792B24A3F905000567C9 /* Supporting */ = { + isa = PBXGroup; + children = ( + BB2F792C24A3F905000567C9 /* Expo.plist */, + ); + name = Supporting; + path = reactnativeapp/Supporting; + sourceTree = ""; + }; + D65327D7A22EEC0BE12398D9 /* Pods */ = { + isa = PBXGroup; + children = ( + 6C2E3173556A471DD304B334 /* Pods-reactnativeapp.debug.xcconfig */, + 7A4D352CD337FB3A3BF06240 /* Pods-reactnativeapp.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = { + isa = PBXGroup; + children = ( + 92DBD88DE9BF7D494EA9DA96 /* reactnativeapp */, + ); + name = ExpoModulesProviders; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 13B07F861A680F5B00A75B9A /* reactnativeapp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactnativeapp" */; + buildPhases = ( + 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */, + C2277CA7080B937B969F4DDD /* [Expo] Configure project */, + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, + 4C3206BEBB7C68040650018F /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = reactnativeapp; + productName = reactnativeapp; + productReference = 13B07F961A680F5B00A75B9A /* reactnativeapp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1130; + TargetAttributes = { + 13B07F861A680F5B00A75B9A = { + LastSwiftMigration = 1250; + }; + }; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactnativeapp" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* reactnativeapp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */, + C2AA57E8CB91AA78F8ACFC80 /* PrivacyInfo.xcprivacy in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n"; + }; + 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-reactnativeapp-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 4C3206BEBB7C68040650018F /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp-frameworks.sh", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage/RNCAsyncStorage_resources.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/RNDeviceInfo/RNDeviceInfoPrivacyInfo.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/RCTI18nStrings.bundle", + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNCAsyncStorage_resources.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNDeviceInfoPrivacyInfo.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCTI18nStrings.bundle", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-reactnativeapp/Pods-reactnativeapp-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + C2277CA7080B937B969F4DDD /* [Expo] Configure project */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[Expo] Configure project"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-reactnativeapp/expo-configure-project.sh\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, + 13B07FC11A68108700A75B9A /* main.m in Sources */, + B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */, + 5B906A66AC954B3C8799AF14 /* noop-file.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-reactnativeapp.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = reactnativeapp/reactnativeapp.entitlements; + CURRENT_PROJECT_VERSION = 1; + ENABLE_BITCODE = NO; + GCC_PREPROCESSOR_DEFINITIONS = ( + "$(inherited)", + "FB_SONARKIT_ENABLED=1", + ); + INFOPLIST_FILE = reactnativeapp/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; + PRODUCT_BUNDLE_IDENTIFIER = io.opentelemetry.reactnativeapp; + PRODUCT_NAME = reactnativeapp; + SWIFT_OBJC_BRIDGING_HEADER = "reactnativeapp/reactnativeapp-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-reactnativeapp.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = reactnativeapp/reactnativeapp.entitlements; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = reactnativeapp/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; + PRODUCT_BUNDLE_IDENTIFIER = io.opentelemetry.reactnativeapp; + PRODUCT_NAME = reactnativeapp; + SWIFT_OBJC_BRIDGING_HEADER = "reactnativeapp/reactnativeapp-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CC = ""; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CXX = ""; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD = ""; + LDPLUSPLUS = ""; + LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\""; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = ( + "$(inherited)", + " ", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + USE_HERMES = true; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CC = ""; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + CXX = ""; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD = ""; + LDPLUSPLUS = ""; + LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\""; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ( + "$(inherited)", + " ", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + USE_HERMES = true; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "reactnativeapp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "reactnativeapp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/xcshareddata/xcschemes/reactnativeapp.xcscheme b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/xcshareddata/xcschemes/reactnativeapp.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..af30646acbb1368c0d070f598ea3547adb505392 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcodeproj/xcshareddata/xcschemes/reactnativeapp.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/contents.xcworkspacedata b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..7a4af092cd5b670f858b5c91adbcfbadd25328a8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.h b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..99b0e8968b406d24dfccd251f317a41584354389 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.h @@ -0,0 +1,9 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +#import +#import +#import + +@interface AppDelegate : EXAppDelegateWrapper + +@end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.mm b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.mm new file mode 100644 index 0000000000000000000000000000000000000000..b27f83286d23eb0662f6a965c45e8cba87f63bf1 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/AppDelegate.mm @@ -0,0 +1,62 @@ +#import "AppDelegate.h" + +#import +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.moduleName = @"main"; + + // You can add your custom initial props in the dictionary below. + // They will be passed down to the ViewController used by React Native. + self.initialProps = @{}; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge +{ + return [self bundleURL]; +} + +- (NSURL *)bundleURL +{ +#if DEBUG + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; +#endif +} + +// Linking API +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { + return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; +} + +// Universal Links +- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { + BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; + return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken +{ + return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error +{ + return [super application:application didFailToRegisterForRemoteNotificationsWithError:error]; +} + +// Explicitly define remote notification delegates to ensure compatibility with some third-party libraries +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler +{ + return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler]; +} + +@end diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..5f6956c15e375f6270644027b17043a46880d977 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images": [ + { + "filename": "App-Icon-1024x1024@1x.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..ed285c2e5f162b08ef745fdb14857f495bf6e685 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "expo" + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..7d28020ee91e6b77e5c5e7d49f938a45ddd143b2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreen.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "image.png", + "scale": "1x" + }, + { + "idiom": "universal", + "scale": "2x" + }, + { + "idiom": "universal", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..7d28020ee91e6b77e5c5e7d49f938a45ddd143b2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Images.xcassets/SplashScreenBackground.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "image.png", + "scale": "1x" + }, + { + "idiom": "universal", + "scale": "2x" + }, + { + "idiom": "universal", + "scale": "3x" + } + ], + "info": { + "version": 1, + "author": "expo" + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Info.plist b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..ef9c9c0e39594299c45e5b35116257cc0473b394 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Info.plist @@ -0,0 +1,77 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Astronomy Shop App + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleURLTypes + + + CFBundleURLSchemes + + myapp + io.opentelemetry.reactnativeapp + + + + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSAllowsLocalNetworking + + + NSUserActivityTypes + + $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + + UILaunchStoryboardName + SplashScreen + UIRequiredDeviceCapabilities + + arm64 + + UIRequiresFullScreen + + UIStatusBarStyle + UIStatusBarStyleDefault + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIUserInterfaceStyle + Automatic + UIViewControllerBasedStatusBarAppearance + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000000000000000000000000000000000..5bb83c5d4327f8f8a4f12033703a4d0957cc822f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/PrivacyInfo.xcprivacy @@ -0,0 +1,48 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 0A2A.1 + 3B52.1 + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + 85F4.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..ec5457492c143fe4e70dbf422c0119e51f0cab39 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/SplashScreen.storyboard @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist new file mode 100644 index 0000000000000000000000000000000000000000..7fa791181bdff47768c4fe7ccbcf6540d59d4701 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/Supporting/Expo.plist @@ -0,0 +1,12 @@ + + + + + EXUpdatesCheckOnLaunch + ALWAYS + EXUpdatesEnabled + + EXUpdatesLaunchWaitMs + 0 + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/main.m b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/main.m new file mode 100644 index 0000000000000000000000000000000000000000..25181b6ccb54b8f616490ab9d79ab43057c9b422 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/main.m @@ -0,0 +1,10 @@ +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/noop-file.swift b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/noop-file.swift new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h new file mode 100644 index 0000000000000000000000000000000000000000..f8f0758cd7312f3efb08ed3f0ad3ce935011925c --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp-Bridging-Header.h @@ -0,0 +1,5 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements new file mode 100644 index 0000000000000000000000000000000000000000..a4942dca9924f38167730a615846904e9e37f602 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/ios/reactnativeapp/reactnativeapp.entitlements @@ -0,0 +1,6 @@ + + + + + + diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/protos/demo.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/protos/demo.ts new file mode 100644 index 0000000000000000000000000000000000000000..c0a2c506b3d649e634022c323678d3cabc2f8289 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/protos/demo.ts @@ -0,0 +1,4027 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v1.181.1 +// protoc v5.28.3 +// source: demo.proto + +/* eslint-disable */ +import { + type CallOptions, + ChannelCredentials, + Client, + type ClientOptions, + type ClientUnaryCall, + type handleUnaryCall, + makeGenericClientConstructor, + Metadata, + type ServiceError, + type UntypedServiceImplementation, +} from "@grpc/grpc-js"; +import Long from "long"; +import _m0 from "protobufjs/minimal"; + +export const protobufPackage = "oteldemo"; + +export interface CartItem { + productId: string; + quantity: number; +} + +export interface AddItemRequest { + userId: string; + item: CartItem | undefined; +} + +export interface EmptyCartRequest { + userId: string; +} + +export interface GetCartRequest { + userId: string; +} + +export interface Cart { + userId: string; + items: CartItem[]; +} + +export interface Empty { +} + +export interface ListRecommendationsRequest { + userId: string; + productIds: string[]; +} + +export interface ListRecommendationsResponse { + productIds: string[]; +} + +export interface Product { + id: string; + name: string; + description: string; + picture: string; + priceUsd: + | Money + | undefined; + /** + * Categories such as "clothing" or "kitchen" that can be used to look up + * other related products. + */ + categories: string[]; +} + +export interface ListProductsResponse { + products: Product[]; +} + +export interface GetProductRequest { + id: string; +} + +export interface SearchProductsRequest { + query: string; +} + +export interface SearchProductsResponse { + results: Product[]; +} + +export interface GetQuoteRequest { + address: Address | undefined; + items: CartItem[]; +} + +export interface GetQuoteResponse { + costUsd: Money | undefined; +} + +export interface ShipOrderRequest { + address: Address | undefined; + items: CartItem[]; +} + +export interface ShipOrderResponse { + trackingId: string; +} + +export interface Address { + streetAddress: string; + city: string; + state: string; + country: string; + zipCode: string; +} + +/** Represents an amount of money with its currency type. */ +export interface Money { + /** The 3-letter currency code defined in ISO 4217. */ + currencyCode: string; + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + */ + units: number; + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + */ + nanos: number; +} + +export interface GetSupportedCurrenciesResponse { + /** The 3-letter currency code defined in ISO 4217. */ + currencyCodes: string[]; +} + +export interface CurrencyConversionRequest { + from: + | Money + | undefined; + /** The 3-letter currency code defined in ISO 4217. */ + toCode: string; +} + +export interface CreditCardInfo { + creditCardNumber: string; + creditCardCvv: number; + creditCardExpirationYear: number; + creditCardExpirationMonth: number; +} + +export interface ChargeRequest { + amount: Money | undefined; + creditCard: CreditCardInfo | undefined; +} + +export interface ChargeResponse { + transactionId: string; +} + +export interface OrderItem { + item: CartItem | undefined; + cost: Money | undefined; +} + +export interface OrderResult { + orderId: string; + shippingTrackingId: string; + shippingCost: Money | undefined; + shippingAddress: Address | undefined; + items: OrderItem[]; +} + +export interface SendOrderConfirmationRequest { + email: string; + order: OrderResult | undefined; +} + +export interface PlaceOrderRequest { + userId: string; + userCurrency: string; + address: Address | undefined; + email: string; + creditCard: CreditCardInfo | undefined; +} + +export interface PlaceOrderResponse { + order: OrderResult | undefined; +} + +export interface AdRequest { + /** List of important key words from the current page describing the context. */ + contextKeys: string[]; +} + +export interface AdResponse { + ads: Ad[]; +} + +export interface Ad { + /** url to redirect to when an ad is clicked. */ + redirectUrl: string; + /** short advertisement text to display. */ + text: string; +} + +export interface Flag { + name: string; + description: string; + enabled: boolean; +} + +export interface GetFlagRequest { + name: string; +} + +export interface GetFlagResponse { + flag: Flag | undefined; +} + +export interface CreateFlagRequest { + name: string; + description: string; + enabled: boolean; +} + +export interface CreateFlagResponse { + flag: Flag | undefined; +} + +export interface UpdateFlagRequest { + name: string; + enabled: boolean; +} + +export interface UpdateFlagResponse { +} + +export interface ListFlagsRequest { +} + +export interface ListFlagsResponse { + flag: Flag[]; +} + +export interface DeleteFlagRequest { + name: string; +} + +export interface DeleteFlagResponse { +} + +function createBaseCartItem(): CartItem { + return { productId: "", quantity: 0 }; +} + +export const CartItem = { + encode(message: CartItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.productId !== "") { + writer.uint32(10).string(message.productId); + } + if (message.quantity !== 0) { + writer.uint32(16).int32(message.quantity); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): CartItem { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCartItem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.productId = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.quantity = reader.int32(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): CartItem { + return { + productId: isSet(object.productId) ? globalThis.String(object.productId) : "", + quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0, + }; + }, + + toJSON(message: CartItem): unknown { + const obj: any = {}; + if (message.productId !== "") { + obj.productId = message.productId; + } + if (message.quantity !== 0) { + obj.quantity = Math.round(message.quantity); + } + return obj; + }, + + create, I>>(base?: I): CartItem { + return CartItem.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): CartItem { + const message = createBaseCartItem(); + message.productId = object.productId ?? ""; + message.quantity = object.quantity ?? 0; + return message; + }, +}; + +function createBaseAddItemRequest(): AddItemRequest { + return { userId: "", item: undefined }; +} + +export const AddItemRequest = { + encode(message: AddItemRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + if (message.item !== undefined) { + CartItem.encode(message.item, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): AddItemRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddItemRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.item = CartItem.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): AddItemRequest { + return { + userId: isSet(object.userId) ? globalThis.String(object.userId) : "", + item: isSet(object.item) ? CartItem.fromJSON(object.item) : undefined, + }; + }, + + toJSON(message: AddItemRequest): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + if (message.item !== undefined) { + obj.item = CartItem.toJSON(message.item); + } + return obj; + }, + + create, I>>(base?: I): AddItemRequest { + return AddItemRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): AddItemRequest { + const message = createBaseAddItemRequest(); + message.userId = object.userId ?? ""; + message.item = (object.item !== undefined && object.item !== null) ? CartItem.fromPartial(object.item) : undefined; + return message; + }, +}; + +function createBaseEmptyCartRequest(): EmptyCartRequest { + return { userId: "" }; +} + +export const EmptyCartRequest = { + encode(message: EmptyCartRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): EmptyCartRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEmptyCartRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): EmptyCartRequest { + return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" }; + }, + + toJSON(message: EmptyCartRequest): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + return obj; + }, + + create, I>>(base?: I): EmptyCartRequest { + return EmptyCartRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): EmptyCartRequest { + const message = createBaseEmptyCartRequest(); + message.userId = object.userId ?? ""; + return message; + }, +}; + +function createBaseGetCartRequest(): GetCartRequest { + return { userId: "" }; +} + +export const GetCartRequest = { + encode(message: GetCartRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetCartRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetCartRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetCartRequest { + return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" }; + }, + + toJSON(message: GetCartRequest): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + return obj; + }, + + create, I>>(base?: I): GetCartRequest { + return GetCartRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetCartRequest { + const message = createBaseGetCartRequest(); + message.userId = object.userId ?? ""; + return message; + }, +}; + +function createBaseCart(): Cart { + return { userId: "", items: [] }; +} + +export const Cart = { + encode(message: Cart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + for (const v of message.items) { + CartItem.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Cart { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCart(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.items.push(CartItem.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Cart { + return { + userId: isSet(object.userId) ? globalThis.String(object.userId) : "", + items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => CartItem.fromJSON(e)) : [], + }; + }, + + toJSON(message: Cart): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + if (message.items?.length) { + obj.items = message.items.map((e) => CartItem.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): Cart { + return Cart.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Cart { + const message = createBaseCart(); + message.userId = object.userId ?? ""; + message.items = object.items?.map((e) => CartItem.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseEmpty(): Empty { + return {}; +} + +export const Empty = { + encode(_: Empty, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Empty { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEmpty(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(_: any): Empty { + return {}; + }, + + toJSON(_: Empty): unknown { + const obj: any = {}; + return obj; + }, + + create, I>>(base?: I): Empty { + return Empty.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(_: I): Empty { + const message = createBaseEmpty(); + return message; + }, +}; + +function createBaseListRecommendationsRequest(): ListRecommendationsRequest { + return { userId: "", productIds: [] }; +} + +export const ListRecommendationsRequest = { + encode(message: ListRecommendationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + for (const v of message.productIds) { + writer.uint32(18).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ListRecommendationsRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListRecommendationsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.productIds.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListRecommendationsRequest { + return { + userId: isSet(object.userId) ? globalThis.String(object.userId) : "", + productIds: globalThis.Array.isArray(object?.productIds) + ? object.productIds.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: ListRecommendationsRequest): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + if (message.productIds?.length) { + obj.productIds = message.productIds; + } + return obj; + }, + + create, I>>(base?: I): ListRecommendationsRequest { + return ListRecommendationsRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ListRecommendationsRequest { + const message = createBaseListRecommendationsRequest(); + message.userId = object.userId ?? ""; + message.productIds = object.productIds?.map((e) => e) || []; + return message; + }, +}; + +function createBaseListRecommendationsResponse(): ListRecommendationsResponse { + return { productIds: [] }; +} + +export const ListRecommendationsResponse = { + encode(message: ListRecommendationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.productIds) { + writer.uint32(10).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ListRecommendationsResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListRecommendationsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.productIds.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListRecommendationsResponse { + return { + productIds: globalThis.Array.isArray(object?.productIds) + ? object.productIds.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: ListRecommendationsResponse): unknown { + const obj: any = {}; + if (message.productIds?.length) { + obj.productIds = message.productIds; + } + return obj; + }, + + create, I>>(base?: I): ListRecommendationsResponse { + return ListRecommendationsResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ListRecommendationsResponse { + const message = createBaseListRecommendationsResponse(); + message.productIds = object.productIds?.map((e) => e) || []; + return message; + }, +}; + +function createBaseProduct(): Product { + return { id: "", name: "", description: "", picture: "", priceUsd: undefined, categories: [] }; +} + +export const Product = { + encode(message: Product, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + if (message.name !== "") { + writer.uint32(18).string(message.name); + } + if (message.description !== "") { + writer.uint32(26).string(message.description); + } + if (message.picture !== "") { + writer.uint32(34).string(message.picture); + } + if (message.priceUsd !== undefined) { + Money.encode(message.priceUsd, writer.uint32(42).fork()).ldelim(); + } + for (const v of message.categories) { + writer.uint32(50).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Product { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProduct(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.id = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.name = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.description = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.picture = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.priceUsd = Money.decode(reader, reader.uint32()); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.categories.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Product { + return { + id: isSet(object.id) ? globalThis.String(object.id) : "", + name: isSet(object.name) ? globalThis.String(object.name) : "", + description: isSet(object.description) ? globalThis.String(object.description) : "", + picture: isSet(object.picture) ? globalThis.String(object.picture) : "", + priceUsd: isSet(object.priceUsd) ? Money.fromJSON(object.priceUsd) : undefined, + categories: globalThis.Array.isArray(object?.categories) + ? object.categories.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: Product): unknown { + const obj: any = {}; + if (message.id !== "") { + obj.id = message.id; + } + if (message.name !== "") { + obj.name = message.name; + } + if (message.description !== "") { + obj.description = message.description; + } + if (message.picture !== "") { + obj.picture = message.picture; + } + if (message.priceUsd !== undefined) { + obj.priceUsd = Money.toJSON(message.priceUsd); + } + if (message.categories?.length) { + obj.categories = message.categories; + } + return obj; + }, + + create, I>>(base?: I): Product { + return Product.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Product { + const message = createBaseProduct(); + message.id = object.id ?? ""; + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.picture = object.picture ?? ""; + message.priceUsd = (object.priceUsd !== undefined && object.priceUsd !== null) + ? Money.fromPartial(object.priceUsd) + : undefined; + message.categories = object.categories?.map((e) => e) || []; + return message; + }, +}; + +function createBaseListProductsResponse(): ListProductsResponse { + return { products: [] }; +} + +export const ListProductsResponse = { + encode(message: ListProductsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.products) { + Product.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ListProductsResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListProductsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.products.push(Product.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListProductsResponse { + return { + products: globalThis.Array.isArray(object?.products) ? object.products.map((e: any) => Product.fromJSON(e)) : [], + }; + }, + + toJSON(message: ListProductsResponse): unknown { + const obj: any = {}; + if (message.products?.length) { + obj.products = message.products.map((e) => Product.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): ListProductsResponse { + return ListProductsResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ListProductsResponse { + const message = createBaseListProductsResponse(); + message.products = object.products?.map((e) => Product.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseGetProductRequest(): GetProductRequest { + return { id: "" }; +} + +export const GetProductRequest = { + encode(message: GetProductRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.id !== "") { + writer.uint32(10).string(message.id); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetProductRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetProductRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.id = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetProductRequest { + return { id: isSet(object.id) ? globalThis.String(object.id) : "" }; + }, + + toJSON(message: GetProductRequest): unknown { + const obj: any = {}; + if (message.id !== "") { + obj.id = message.id; + } + return obj; + }, + + create, I>>(base?: I): GetProductRequest { + return GetProductRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetProductRequest { + const message = createBaseGetProductRequest(); + message.id = object.id ?? ""; + return message; + }, +}; + +function createBaseSearchProductsRequest(): SearchProductsRequest { + return { query: "" }; +} + +export const SearchProductsRequest = { + encode(message: SearchProductsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.query !== "") { + writer.uint32(10).string(message.query); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SearchProductsRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSearchProductsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.query = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): SearchProductsRequest { + return { query: isSet(object.query) ? globalThis.String(object.query) : "" }; + }, + + toJSON(message: SearchProductsRequest): unknown { + const obj: any = {}; + if (message.query !== "") { + obj.query = message.query; + } + return obj; + }, + + create, I>>(base?: I): SearchProductsRequest { + return SearchProductsRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): SearchProductsRequest { + const message = createBaseSearchProductsRequest(); + message.query = object.query ?? ""; + return message; + }, +}; + +function createBaseSearchProductsResponse(): SearchProductsResponse { + return { results: [] }; +} + +export const SearchProductsResponse = { + encode(message: SearchProductsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.results) { + Product.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SearchProductsResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSearchProductsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.results.push(Product.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): SearchProductsResponse { + return { + results: globalThis.Array.isArray(object?.results) ? object.results.map((e: any) => Product.fromJSON(e)) : [], + }; + }, + + toJSON(message: SearchProductsResponse): unknown { + const obj: any = {}; + if (message.results?.length) { + obj.results = message.results.map((e) => Product.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): SearchProductsResponse { + return SearchProductsResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): SearchProductsResponse { + const message = createBaseSearchProductsResponse(); + message.results = object.results?.map((e) => Product.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseGetQuoteRequest(): GetQuoteRequest { + return { address: undefined, items: [] }; +} + +export const GetQuoteRequest = { + encode(message: GetQuoteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.address !== undefined) { + Address.encode(message.address, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.items) { + CartItem.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetQuoteRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQuoteRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.address = Address.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.items.push(CartItem.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetQuoteRequest { + return { + address: isSet(object.address) ? Address.fromJSON(object.address) : undefined, + items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => CartItem.fromJSON(e)) : [], + }; + }, + + toJSON(message: GetQuoteRequest): unknown { + const obj: any = {}; + if (message.address !== undefined) { + obj.address = Address.toJSON(message.address); + } + if (message.items?.length) { + obj.items = message.items.map((e) => CartItem.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): GetQuoteRequest { + return GetQuoteRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetQuoteRequest { + const message = createBaseGetQuoteRequest(); + message.address = (object.address !== undefined && object.address !== null) + ? Address.fromPartial(object.address) + : undefined; + message.items = object.items?.map((e) => CartItem.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseGetQuoteResponse(): GetQuoteResponse { + return { costUsd: undefined }; +} + +export const GetQuoteResponse = { + encode(message: GetQuoteResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.costUsd !== undefined) { + Money.encode(message.costUsd, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetQuoteResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetQuoteResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.costUsd = Money.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetQuoteResponse { + return { costUsd: isSet(object.costUsd) ? Money.fromJSON(object.costUsd) : undefined }; + }, + + toJSON(message: GetQuoteResponse): unknown { + const obj: any = {}; + if (message.costUsd !== undefined) { + obj.costUsd = Money.toJSON(message.costUsd); + } + return obj; + }, + + create, I>>(base?: I): GetQuoteResponse { + return GetQuoteResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetQuoteResponse { + const message = createBaseGetQuoteResponse(); + message.costUsd = (object.costUsd !== undefined && object.costUsd !== null) + ? Money.fromPartial(object.costUsd) + : undefined; + return message; + }, +}; + +function createBaseShipOrderRequest(): ShipOrderRequest { + return { address: undefined, items: [] }; +} + +export const ShipOrderRequest = { + encode(message: ShipOrderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.address !== undefined) { + Address.encode(message.address, writer.uint32(10).fork()).ldelim(); + } + for (const v of message.items) { + CartItem.encode(v!, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ShipOrderRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShipOrderRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.address = Address.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.items.push(CartItem.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShipOrderRequest { + return { + address: isSet(object.address) ? Address.fromJSON(object.address) : undefined, + items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => CartItem.fromJSON(e)) : [], + }; + }, + + toJSON(message: ShipOrderRequest): unknown { + const obj: any = {}; + if (message.address !== undefined) { + obj.address = Address.toJSON(message.address); + } + if (message.items?.length) { + obj.items = message.items.map((e) => CartItem.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): ShipOrderRequest { + return ShipOrderRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ShipOrderRequest { + const message = createBaseShipOrderRequest(); + message.address = (object.address !== undefined && object.address !== null) + ? Address.fromPartial(object.address) + : undefined; + message.items = object.items?.map((e) => CartItem.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseShipOrderResponse(): ShipOrderResponse { + return { trackingId: "" }; +} + +export const ShipOrderResponse = { + encode(message: ShipOrderResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.trackingId !== "") { + writer.uint32(10).string(message.trackingId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ShipOrderResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShipOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.trackingId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShipOrderResponse { + return { trackingId: isSet(object.trackingId) ? globalThis.String(object.trackingId) : "" }; + }, + + toJSON(message: ShipOrderResponse): unknown { + const obj: any = {}; + if (message.trackingId !== "") { + obj.trackingId = message.trackingId; + } + return obj; + }, + + create, I>>(base?: I): ShipOrderResponse { + return ShipOrderResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ShipOrderResponse { + const message = createBaseShipOrderResponse(); + message.trackingId = object.trackingId ?? ""; + return message; + }, +}; + +function createBaseAddress(): Address { + return { streetAddress: "", city: "", state: "", country: "", zipCode: "" }; +} + +export const Address = { + encode(message: Address, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.streetAddress !== "") { + writer.uint32(10).string(message.streetAddress); + } + if (message.city !== "") { + writer.uint32(18).string(message.city); + } + if (message.state !== "") { + writer.uint32(26).string(message.state); + } + if (message.country !== "") { + writer.uint32(34).string(message.country); + } + if (message.zipCode !== "") { + writer.uint32(42).string(message.zipCode); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Address { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAddress(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.streetAddress = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.city = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.state = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.country = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.zipCode = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Address { + return { + streetAddress: isSet(object.streetAddress) ? globalThis.String(object.streetAddress) : "", + city: isSet(object.city) ? globalThis.String(object.city) : "", + state: isSet(object.state) ? globalThis.String(object.state) : "", + country: isSet(object.country) ? globalThis.String(object.country) : "", + zipCode: isSet(object.zipCode) ? globalThis.String(object.zipCode) : "", + }; + }, + + toJSON(message: Address): unknown { + const obj: any = {}; + if (message.streetAddress !== "") { + obj.streetAddress = message.streetAddress; + } + if (message.city !== "") { + obj.city = message.city; + } + if (message.state !== "") { + obj.state = message.state; + } + if (message.country !== "") { + obj.country = message.country; + } + if (message.zipCode !== "") { + obj.zipCode = message.zipCode; + } + return obj; + }, + + create, I>>(base?: I): Address { + return Address.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Address { + const message = createBaseAddress(); + message.streetAddress = object.streetAddress ?? ""; + message.city = object.city ?? ""; + message.state = object.state ?? ""; + message.country = object.country ?? ""; + message.zipCode = object.zipCode ?? ""; + return message; + }, +}; + +function createBaseMoney(): Money { + return { currencyCode: "", units: 0, nanos: 0 }; +} + +export const Money = { + encode(message: Money, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.currencyCode !== "") { + writer.uint32(10).string(message.currencyCode); + } + if (message.units !== 0) { + writer.uint32(16).int64(message.units); + } + if (message.nanos !== 0) { + writer.uint32(24).int32(message.nanos); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Money { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMoney(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.currencyCode = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.units = longToNumber(reader.int64() as Long); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.nanos = reader.int32(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Money { + return { + currencyCode: isSet(object.currencyCode) ? globalThis.String(object.currencyCode) : "", + units: isSet(object.units) ? globalThis.Number(object.units) : 0, + nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0, + }; + }, + + toJSON(message: Money): unknown { + const obj: any = {}; + if (message.currencyCode !== "") { + obj.currencyCode = message.currencyCode; + } + if (message.units !== 0) { + obj.units = Math.round(message.units); + } + if (message.nanos !== 0) { + obj.nanos = Math.round(message.nanos); + } + return obj; + }, + + create, I>>(base?: I): Money { + return Money.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Money { + const message = createBaseMoney(); + message.currencyCode = object.currencyCode ?? ""; + message.units = object.units ?? 0; + message.nanos = object.nanos ?? 0; + return message; + }, +}; + +function createBaseGetSupportedCurrenciesResponse(): GetSupportedCurrenciesResponse { + return { currencyCodes: [] }; +} + +export const GetSupportedCurrenciesResponse = { + encode(message: GetSupportedCurrenciesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.currencyCodes) { + writer.uint32(10).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetSupportedCurrenciesResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetSupportedCurrenciesResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.currencyCodes.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetSupportedCurrenciesResponse { + return { + currencyCodes: globalThis.Array.isArray(object?.currencyCodes) + ? object.currencyCodes.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: GetSupportedCurrenciesResponse): unknown { + const obj: any = {}; + if (message.currencyCodes?.length) { + obj.currencyCodes = message.currencyCodes; + } + return obj; + }, + + create, I>>(base?: I): GetSupportedCurrenciesResponse { + return GetSupportedCurrenciesResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>( + object: I, + ): GetSupportedCurrenciesResponse { + const message = createBaseGetSupportedCurrenciesResponse(); + message.currencyCodes = object.currencyCodes?.map((e) => e) || []; + return message; + }, +}; + +function createBaseCurrencyConversionRequest(): CurrencyConversionRequest { + return { from: undefined, toCode: "" }; +} + +export const CurrencyConversionRequest = { + encode(message: CurrencyConversionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.from !== undefined) { + Money.encode(message.from, writer.uint32(10).fork()).ldelim(); + } + if (message.toCode !== "") { + writer.uint32(18).string(message.toCode); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): CurrencyConversionRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCurrencyConversionRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.from = Money.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.toCode = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): CurrencyConversionRequest { + return { + from: isSet(object.from) ? Money.fromJSON(object.from) : undefined, + toCode: isSet(object.toCode) ? globalThis.String(object.toCode) : "", + }; + }, + + toJSON(message: CurrencyConversionRequest): unknown { + const obj: any = {}; + if (message.from !== undefined) { + obj.from = Money.toJSON(message.from); + } + if (message.toCode !== "") { + obj.toCode = message.toCode; + } + return obj; + }, + + create, I>>(base?: I): CurrencyConversionRequest { + return CurrencyConversionRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): CurrencyConversionRequest { + const message = createBaseCurrencyConversionRequest(); + message.from = (object.from !== undefined && object.from !== null) ? Money.fromPartial(object.from) : undefined; + message.toCode = object.toCode ?? ""; + return message; + }, +}; + +function createBaseCreditCardInfo(): CreditCardInfo { + return { creditCardNumber: "", creditCardCvv: 0, creditCardExpirationYear: 0, creditCardExpirationMonth: 0 }; +} + +export const CreditCardInfo = { + encode(message: CreditCardInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.creditCardNumber !== "") { + writer.uint32(10).string(message.creditCardNumber); + } + if (message.creditCardCvv !== 0) { + writer.uint32(16).int32(message.creditCardCvv); + } + if (message.creditCardExpirationYear !== 0) { + writer.uint32(24).int32(message.creditCardExpirationYear); + } + if (message.creditCardExpirationMonth !== 0) { + writer.uint32(32).int32(message.creditCardExpirationMonth); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): CreditCardInfo { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreditCardInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.creditCardNumber = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.creditCardCvv = reader.int32(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.creditCardExpirationYear = reader.int32(); + continue; + case 4: + if (tag !== 32) { + break; + } + + message.creditCardExpirationMonth = reader.int32(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): CreditCardInfo { + return { + creditCardNumber: isSet(object.creditCardNumber) ? globalThis.String(object.creditCardNumber) : "", + creditCardCvv: isSet(object.creditCardCvv) ? globalThis.Number(object.creditCardCvv) : 0, + creditCardExpirationYear: isSet(object.creditCardExpirationYear) + ? globalThis.Number(object.creditCardExpirationYear) + : 0, + creditCardExpirationMonth: isSet(object.creditCardExpirationMonth) + ? globalThis.Number(object.creditCardExpirationMonth) + : 0, + }; + }, + + toJSON(message: CreditCardInfo): unknown { + const obj: any = {}; + if (message.creditCardNumber !== "") { + obj.creditCardNumber = message.creditCardNumber; + } + if (message.creditCardCvv !== 0) { + obj.creditCardCvv = Math.round(message.creditCardCvv); + } + if (message.creditCardExpirationYear !== 0) { + obj.creditCardExpirationYear = Math.round(message.creditCardExpirationYear); + } + if (message.creditCardExpirationMonth !== 0) { + obj.creditCardExpirationMonth = Math.round(message.creditCardExpirationMonth); + } + return obj; + }, + + create, I>>(base?: I): CreditCardInfo { + return CreditCardInfo.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): CreditCardInfo { + const message = createBaseCreditCardInfo(); + message.creditCardNumber = object.creditCardNumber ?? ""; + message.creditCardCvv = object.creditCardCvv ?? 0; + message.creditCardExpirationYear = object.creditCardExpirationYear ?? 0; + message.creditCardExpirationMonth = object.creditCardExpirationMonth ?? 0; + return message; + }, +}; + +function createBaseChargeRequest(): ChargeRequest { + return { amount: undefined, creditCard: undefined }; +} + +export const ChargeRequest = { + encode(message: ChargeRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.amount !== undefined) { + Money.encode(message.amount, writer.uint32(10).fork()).ldelim(); + } + if (message.creditCard !== undefined) { + CreditCardInfo.encode(message.creditCard, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ChargeRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChargeRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.amount = Money.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.creditCard = CreditCardInfo.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ChargeRequest { + return { + amount: isSet(object.amount) ? Money.fromJSON(object.amount) : undefined, + creditCard: isSet(object.creditCard) ? CreditCardInfo.fromJSON(object.creditCard) : undefined, + }; + }, + + toJSON(message: ChargeRequest): unknown { + const obj: any = {}; + if (message.amount !== undefined) { + obj.amount = Money.toJSON(message.amount); + } + if (message.creditCard !== undefined) { + obj.creditCard = CreditCardInfo.toJSON(message.creditCard); + } + return obj; + }, + + create, I>>(base?: I): ChargeRequest { + return ChargeRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ChargeRequest { + const message = createBaseChargeRequest(); + message.amount = (object.amount !== undefined && object.amount !== null) + ? Money.fromPartial(object.amount) + : undefined; + message.creditCard = (object.creditCard !== undefined && object.creditCard !== null) + ? CreditCardInfo.fromPartial(object.creditCard) + : undefined; + return message; + }, +}; + +function createBaseChargeResponse(): ChargeResponse { + return { transactionId: "" }; +} + +export const ChargeResponse = { + encode(message: ChargeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.transactionId !== "") { + writer.uint32(10).string(message.transactionId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ChargeResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChargeResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.transactionId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ChargeResponse { + return { transactionId: isSet(object.transactionId) ? globalThis.String(object.transactionId) : "" }; + }, + + toJSON(message: ChargeResponse): unknown { + const obj: any = {}; + if (message.transactionId !== "") { + obj.transactionId = message.transactionId; + } + return obj; + }, + + create, I>>(base?: I): ChargeResponse { + return ChargeResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ChargeResponse { + const message = createBaseChargeResponse(); + message.transactionId = object.transactionId ?? ""; + return message; + }, +}; + +function createBaseOrderItem(): OrderItem { + return { item: undefined, cost: undefined }; +} + +export const OrderItem = { + encode(message: OrderItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.item !== undefined) { + CartItem.encode(message.item, writer.uint32(10).fork()).ldelim(); + } + if (message.cost !== undefined) { + Money.encode(message.cost, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): OrderItem { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOrderItem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.item = CartItem.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.cost = Money.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): OrderItem { + return { + item: isSet(object.item) ? CartItem.fromJSON(object.item) : undefined, + cost: isSet(object.cost) ? Money.fromJSON(object.cost) : undefined, + }; + }, + + toJSON(message: OrderItem): unknown { + const obj: any = {}; + if (message.item !== undefined) { + obj.item = CartItem.toJSON(message.item); + } + if (message.cost !== undefined) { + obj.cost = Money.toJSON(message.cost); + } + return obj; + }, + + create, I>>(base?: I): OrderItem { + return OrderItem.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): OrderItem { + const message = createBaseOrderItem(); + message.item = (object.item !== undefined && object.item !== null) ? CartItem.fromPartial(object.item) : undefined; + message.cost = (object.cost !== undefined && object.cost !== null) ? Money.fromPartial(object.cost) : undefined; + return message; + }, +}; + +function createBaseOrderResult(): OrderResult { + return { orderId: "", shippingTrackingId: "", shippingCost: undefined, shippingAddress: undefined, items: [] }; +} + +export const OrderResult = { + encode(message: OrderResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.orderId !== "") { + writer.uint32(10).string(message.orderId); + } + if (message.shippingTrackingId !== "") { + writer.uint32(18).string(message.shippingTrackingId); + } + if (message.shippingCost !== undefined) { + Money.encode(message.shippingCost, writer.uint32(26).fork()).ldelim(); + } + if (message.shippingAddress !== undefined) { + Address.encode(message.shippingAddress, writer.uint32(34).fork()).ldelim(); + } + for (const v of message.items) { + OrderItem.encode(v!, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): OrderResult { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOrderResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.orderId = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.shippingTrackingId = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.shippingCost = Money.decode(reader, reader.uint32()); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.shippingAddress = Address.decode(reader, reader.uint32()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.items.push(OrderItem.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): OrderResult { + return { + orderId: isSet(object.orderId) ? globalThis.String(object.orderId) : "", + shippingTrackingId: isSet(object.shippingTrackingId) ? globalThis.String(object.shippingTrackingId) : "", + shippingCost: isSet(object.shippingCost) ? Money.fromJSON(object.shippingCost) : undefined, + shippingAddress: isSet(object.shippingAddress) ? Address.fromJSON(object.shippingAddress) : undefined, + items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => OrderItem.fromJSON(e)) : [], + }; + }, + + toJSON(message: OrderResult): unknown { + const obj: any = {}; + if (message.orderId !== "") { + obj.orderId = message.orderId; + } + if (message.shippingTrackingId !== "") { + obj.shippingTrackingId = message.shippingTrackingId; + } + if (message.shippingCost !== undefined) { + obj.shippingCost = Money.toJSON(message.shippingCost); + } + if (message.shippingAddress !== undefined) { + obj.shippingAddress = Address.toJSON(message.shippingAddress); + } + if (message.items?.length) { + obj.items = message.items.map((e) => OrderItem.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): OrderResult { + return OrderResult.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): OrderResult { + const message = createBaseOrderResult(); + message.orderId = object.orderId ?? ""; + message.shippingTrackingId = object.shippingTrackingId ?? ""; + message.shippingCost = (object.shippingCost !== undefined && object.shippingCost !== null) + ? Money.fromPartial(object.shippingCost) + : undefined; + message.shippingAddress = (object.shippingAddress !== undefined && object.shippingAddress !== null) + ? Address.fromPartial(object.shippingAddress) + : undefined; + message.items = object.items?.map((e) => OrderItem.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseSendOrderConfirmationRequest(): SendOrderConfirmationRequest { + return { email: "", order: undefined }; +} + +export const SendOrderConfirmationRequest = { + encode(message: SendOrderConfirmationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.email !== "") { + writer.uint32(10).string(message.email); + } + if (message.order !== undefined) { + OrderResult.encode(message.order, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SendOrderConfirmationRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSendOrderConfirmationRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.email = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.order = OrderResult.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): SendOrderConfirmationRequest { + return { + email: isSet(object.email) ? globalThis.String(object.email) : "", + order: isSet(object.order) ? OrderResult.fromJSON(object.order) : undefined, + }; + }, + + toJSON(message: SendOrderConfirmationRequest): unknown { + const obj: any = {}; + if (message.email !== "") { + obj.email = message.email; + } + if (message.order !== undefined) { + obj.order = OrderResult.toJSON(message.order); + } + return obj; + }, + + create, I>>(base?: I): SendOrderConfirmationRequest { + return SendOrderConfirmationRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): SendOrderConfirmationRequest { + const message = createBaseSendOrderConfirmationRequest(); + message.email = object.email ?? ""; + message.order = (object.order !== undefined && object.order !== null) + ? OrderResult.fromPartial(object.order) + : undefined; + return message; + }, +}; + +function createBasePlaceOrderRequest(): PlaceOrderRequest { + return { userId: "", userCurrency: "", address: undefined, email: "", creditCard: undefined }; +} + +export const PlaceOrderRequest = { + encode(message: PlaceOrderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.userId !== "") { + writer.uint32(10).string(message.userId); + } + if (message.userCurrency !== "") { + writer.uint32(18).string(message.userCurrency); + } + if (message.address !== undefined) { + Address.encode(message.address, writer.uint32(26).fork()).ldelim(); + } + if (message.email !== "") { + writer.uint32(42).string(message.email); + } + if (message.creditCard !== undefined) { + CreditCardInfo.encode(message.creditCard, writer.uint32(50).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): PlaceOrderRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePlaceOrderRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.userId = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.userCurrency = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.address = Address.decode(reader, reader.uint32()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.email = reader.string(); + continue; + case 6: + if (tag !== 50) { + break; + } + + message.creditCard = CreditCardInfo.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): PlaceOrderRequest { + return { + userId: isSet(object.userId) ? globalThis.String(object.userId) : "", + userCurrency: isSet(object.userCurrency) ? globalThis.String(object.userCurrency) : "", + address: isSet(object.address) ? Address.fromJSON(object.address) : undefined, + email: isSet(object.email) ? globalThis.String(object.email) : "", + creditCard: isSet(object.creditCard) ? CreditCardInfo.fromJSON(object.creditCard) : undefined, + }; + }, + + toJSON(message: PlaceOrderRequest): unknown { + const obj: any = {}; + if (message.userId !== "") { + obj.userId = message.userId; + } + if (message.userCurrency !== "") { + obj.userCurrency = message.userCurrency; + } + if (message.address !== undefined) { + obj.address = Address.toJSON(message.address); + } + if (message.email !== "") { + obj.email = message.email; + } + if (message.creditCard !== undefined) { + obj.creditCard = CreditCardInfo.toJSON(message.creditCard); + } + return obj; + }, + + create, I>>(base?: I): PlaceOrderRequest { + return PlaceOrderRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): PlaceOrderRequest { + const message = createBasePlaceOrderRequest(); + message.userId = object.userId ?? ""; + message.userCurrency = object.userCurrency ?? ""; + message.address = (object.address !== undefined && object.address !== null) + ? Address.fromPartial(object.address) + : undefined; + message.email = object.email ?? ""; + message.creditCard = (object.creditCard !== undefined && object.creditCard !== null) + ? CreditCardInfo.fromPartial(object.creditCard) + : undefined; + return message; + }, +}; + +function createBasePlaceOrderResponse(): PlaceOrderResponse { + return { order: undefined }; +} + +export const PlaceOrderResponse = { + encode(message: PlaceOrderResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.order !== undefined) { + OrderResult.encode(message.order, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): PlaceOrderResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePlaceOrderResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.order = OrderResult.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): PlaceOrderResponse { + return { order: isSet(object.order) ? OrderResult.fromJSON(object.order) : undefined }; + }, + + toJSON(message: PlaceOrderResponse): unknown { + const obj: any = {}; + if (message.order !== undefined) { + obj.order = OrderResult.toJSON(message.order); + } + return obj; + }, + + create, I>>(base?: I): PlaceOrderResponse { + return PlaceOrderResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): PlaceOrderResponse { + const message = createBasePlaceOrderResponse(); + message.order = (object.order !== undefined && object.order !== null) + ? OrderResult.fromPartial(object.order) + : undefined; + return message; + }, +}; + +function createBaseAdRequest(): AdRequest { + return { contextKeys: [] }; +} + +export const AdRequest = { + encode(message: AdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.contextKeys) { + writer.uint32(10).string(v!); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): AdRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.contextKeys.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): AdRequest { + return { + contextKeys: globalThis.Array.isArray(object?.contextKeys) + ? object.contextKeys.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: AdRequest): unknown { + const obj: any = {}; + if (message.contextKeys?.length) { + obj.contextKeys = message.contextKeys; + } + return obj; + }, + + create, I>>(base?: I): AdRequest { + return AdRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): AdRequest { + const message = createBaseAdRequest(); + message.contextKeys = object.contextKeys?.map((e) => e) || []; + return message; + }, +}; + +function createBaseAdResponse(): AdResponse { + return { ads: [] }; +} + +export const AdResponse = { + encode(message: AdResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.ads) { + Ad.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): AdResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAdResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.ads.push(Ad.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): AdResponse { + return { ads: globalThis.Array.isArray(object?.ads) ? object.ads.map((e: any) => Ad.fromJSON(e)) : [] }; + }, + + toJSON(message: AdResponse): unknown { + const obj: any = {}; + if (message.ads?.length) { + obj.ads = message.ads.map((e) => Ad.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): AdResponse { + return AdResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): AdResponse { + const message = createBaseAdResponse(); + message.ads = object.ads?.map((e) => Ad.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseAd(): Ad { + return { redirectUrl: "", text: "" }; +} + +export const Ad = { + encode(message: Ad, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.redirectUrl !== "") { + writer.uint32(10).string(message.redirectUrl); + } + if (message.text !== "") { + writer.uint32(18).string(message.text); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Ad { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAd(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.redirectUrl = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.text = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Ad { + return { + redirectUrl: isSet(object.redirectUrl) ? globalThis.String(object.redirectUrl) : "", + text: isSet(object.text) ? globalThis.String(object.text) : "", + }; + }, + + toJSON(message: Ad): unknown { + const obj: any = {}; + if (message.redirectUrl !== "") { + obj.redirectUrl = message.redirectUrl; + } + if (message.text !== "") { + obj.text = message.text; + } + return obj; + }, + + create, I>>(base?: I): Ad { + return Ad.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Ad { + const message = createBaseAd(); + message.redirectUrl = object.redirectUrl ?? ""; + message.text = object.text ?? ""; + return message; + }, +}; + +function createBaseFlag(): Flag { + return { name: "", description: "", enabled: false }; +} + +export const Flag = { + encode(message: Flag, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.enabled !== false) { + writer.uint32(24).bool(message.enabled); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Flag { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFlag(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.description = reader.string(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.enabled = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): Flag { + return { + name: isSet(object.name) ? globalThis.String(object.name) : "", + description: isSet(object.description) ? globalThis.String(object.description) : "", + enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false, + }; + }, + + toJSON(message: Flag): unknown { + const obj: any = {}; + if (message.name !== "") { + obj.name = message.name; + } + if (message.description !== "") { + obj.description = message.description; + } + if (message.enabled !== false) { + obj.enabled = message.enabled; + } + return obj; + }, + + create, I>>(base?: I): Flag { + return Flag.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): Flag { + const message = createBaseFlag(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, +}; + +function createBaseGetFlagRequest(): GetFlagRequest { + return { name: "" }; +} + +export const GetFlagRequest = { + encode(message: GetFlagRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetFlagRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetFlagRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetFlagRequest { + return { name: isSet(object.name) ? globalThis.String(object.name) : "" }; + }, + + toJSON(message: GetFlagRequest): unknown { + const obj: any = {}; + if (message.name !== "") { + obj.name = message.name; + } + return obj; + }, + + create, I>>(base?: I): GetFlagRequest { + return GetFlagRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetFlagRequest { + const message = createBaseGetFlagRequest(); + message.name = object.name ?? ""; + return message; + }, +}; + +function createBaseGetFlagResponse(): GetFlagResponse { + return { flag: undefined }; +} + +export const GetFlagResponse = { + encode(message: GetFlagResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.flag !== undefined) { + Flag.encode(message.flag, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GetFlagResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetFlagResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.flag = Flag.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetFlagResponse { + return { flag: isSet(object.flag) ? Flag.fromJSON(object.flag) : undefined }; + }, + + toJSON(message: GetFlagResponse): unknown { + const obj: any = {}; + if (message.flag !== undefined) { + obj.flag = Flag.toJSON(message.flag); + } + return obj; + }, + + create, I>>(base?: I): GetFlagResponse { + return GetFlagResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): GetFlagResponse { + const message = createBaseGetFlagResponse(); + message.flag = (object.flag !== undefined && object.flag !== null) ? Flag.fromPartial(object.flag) : undefined; + return message; + }, +}; + +function createBaseCreateFlagRequest(): CreateFlagRequest { + return { name: "", description: "", enabled: false }; +} + +export const CreateFlagRequest = { + encode(message: CreateFlagRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.description !== "") { + writer.uint32(18).string(message.description); + } + if (message.enabled !== false) { + writer.uint32(24).bool(message.enabled); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): CreateFlagRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreateFlagRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.description = reader.string(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.enabled = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): CreateFlagRequest { + return { + name: isSet(object.name) ? globalThis.String(object.name) : "", + description: isSet(object.description) ? globalThis.String(object.description) : "", + enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false, + }; + }, + + toJSON(message: CreateFlagRequest): unknown { + const obj: any = {}; + if (message.name !== "") { + obj.name = message.name; + } + if (message.description !== "") { + obj.description = message.description; + } + if (message.enabled !== false) { + obj.enabled = message.enabled; + } + return obj; + }, + + create, I>>(base?: I): CreateFlagRequest { + return CreateFlagRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): CreateFlagRequest { + const message = createBaseCreateFlagRequest(); + message.name = object.name ?? ""; + message.description = object.description ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, +}; + +function createBaseCreateFlagResponse(): CreateFlagResponse { + return { flag: undefined }; +} + +export const CreateFlagResponse = { + encode(message: CreateFlagResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.flag !== undefined) { + Flag.encode(message.flag, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): CreateFlagResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreateFlagResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.flag = Flag.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): CreateFlagResponse { + return { flag: isSet(object.flag) ? Flag.fromJSON(object.flag) : undefined }; + }, + + toJSON(message: CreateFlagResponse): unknown { + const obj: any = {}; + if (message.flag !== undefined) { + obj.flag = Flag.toJSON(message.flag); + } + return obj; + }, + + create, I>>(base?: I): CreateFlagResponse { + return CreateFlagResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): CreateFlagResponse { + const message = createBaseCreateFlagResponse(); + message.flag = (object.flag !== undefined && object.flag !== null) ? Flag.fromPartial(object.flag) : undefined; + return message; + }, +}; + +function createBaseUpdateFlagRequest(): UpdateFlagRequest { + return { name: "", enabled: false }; +} + +export const UpdateFlagRequest = { + encode(message: UpdateFlagRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.enabled !== false) { + writer.uint32(16).bool(message.enabled); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFlagRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpdateFlagRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.enabled = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): UpdateFlagRequest { + return { + name: isSet(object.name) ? globalThis.String(object.name) : "", + enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false, + }; + }, + + toJSON(message: UpdateFlagRequest): unknown { + const obj: any = {}; + if (message.name !== "") { + obj.name = message.name; + } + if (message.enabled !== false) { + obj.enabled = message.enabled; + } + return obj; + }, + + create, I>>(base?: I): UpdateFlagRequest { + return UpdateFlagRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): UpdateFlagRequest { + const message = createBaseUpdateFlagRequest(); + message.name = object.name ?? ""; + message.enabled = object.enabled ?? false; + return message; + }, +}; + +function createBaseUpdateFlagResponse(): UpdateFlagResponse { + return {}; +} + +export const UpdateFlagResponse = { + encode(_: UpdateFlagResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFlagResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpdateFlagResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(_: any): UpdateFlagResponse { + return {}; + }, + + toJSON(_: UpdateFlagResponse): unknown { + const obj: any = {}; + return obj; + }, + + create, I>>(base?: I): UpdateFlagResponse { + return UpdateFlagResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(_: I): UpdateFlagResponse { + const message = createBaseUpdateFlagResponse(); + return message; + }, +}; + +function createBaseListFlagsRequest(): ListFlagsRequest { + return {}; +} + +export const ListFlagsRequest = { + encode(_: ListFlagsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ListFlagsRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListFlagsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(_: any): ListFlagsRequest { + return {}; + }, + + toJSON(_: ListFlagsRequest): unknown { + const obj: any = {}; + return obj; + }, + + create, I>>(base?: I): ListFlagsRequest { + return ListFlagsRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(_: I): ListFlagsRequest { + const message = createBaseListFlagsRequest(); + return message; + }, +}; + +function createBaseListFlagsResponse(): ListFlagsResponse { + return { flag: [] }; +} + +export const ListFlagsResponse = { + encode(message: ListFlagsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.flag) { + Flag.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): ListFlagsResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListFlagsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.flag.push(Flag.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListFlagsResponse { + return { flag: globalThis.Array.isArray(object?.flag) ? object.flag.map((e: any) => Flag.fromJSON(e)) : [] }; + }, + + toJSON(message: ListFlagsResponse): unknown { + const obj: any = {}; + if (message.flag?.length) { + obj.flag = message.flag.map((e) => Flag.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): ListFlagsResponse { + return ListFlagsResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): ListFlagsResponse { + const message = createBaseListFlagsResponse(); + message.flag = object.flag?.map((e) => Flag.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseDeleteFlagRequest(): DeleteFlagRequest { + return { name: "" }; +} + +export const DeleteFlagRequest = { + encode(message: DeleteFlagRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFlagRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeleteFlagRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): DeleteFlagRequest { + return { name: isSet(object.name) ? globalThis.String(object.name) : "" }; + }, + + toJSON(message: DeleteFlagRequest): unknown { + const obj: any = {}; + if (message.name !== "") { + obj.name = message.name; + } + return obj; + }, + + create, I>>(base?: I): DeleteFlagRequest { + return DeleteFlagRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): DeleteFlagRequest { + const message = createBaseDeleteFlagRequest(); + message.name = object.name ?? ""; + return message; + }, +}; + +function createBaseDeleteFlagResponse(): DeleteFlagResponse { + return {}; +} + +export const DeleteFlagResponse = { + encode(_: DeleteFlagResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFlagResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeleteFlagResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(_: any): DeleteFlagResponse { + return {}; + }, + + toJSON(_: DeleteFlagResponse): unknown { + const obj: any = {}; + return obj; + }, + + create, I>>(base?: I): DeleteFlagResponse { + return DeleteFlagResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(_: I): DeleteFlagResponse { + const message = createBaseDeleteFlagResponse(); + return message; + }, +}; + +export type CartServiceService = typeof CartServiceService; +export const CartServiceService = { + addItem: { + path: "/oteldemo.CartService/AddItem", + requestStream: false, + responseStream: false, + requestSerialize: (value: AddItemRequest) => Buffer.from(AddItemRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => AddItemRequest.decode(value), + responseSerialize: (value: Empty) => Buffer.from(Empty.encode(value).finish()), + responseDeserialize: (value: Buffer) => Empty.decode(value), + }, + getCart: { + path: "/oteldemo.CartService/GetCart", + requestStream: false, + responseStream: false, + requestSerialize: (value: GetCartRequest) => Buffer.from(GetCartRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => GetCartRequest.decode(value), + responseSerialize: (value: Cart) => Buffer.from(Cart.encode(value).finish()), + responseDeserialize: (value: Buffer) => Cart.decode(value), + }, + emptyCart: { + path: "/oteldemo.CartService/EmptyCart", + requestStream: false, + responseStream: false, + requestSerialize: (value: EmptyCartRequest) => Buffer.from(EmptyCartRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => EmptyCartRequest.decode(value), + responseSerialize: (value: Empty) => Buffer.from(Empty.encode(value).finish()), + responseDeserialize: (value: Buffer) => Empty.decode(value), + }, +} as const; + +export interface CartServiceServer extends UntypedServiceImplementation { + addItem: handleUnaryCall; + getCart: handleUnaryCall; + emptyCart: handleUnaryCall; +} + +export interface CartServiceClient extends Client { + addItem(request: AddItemRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall; + addItem( + request: AddItemRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + addItem( + request: AddItemRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + getCart(request: GetCartRequest, callback: (error: ServiceError | null, response: Cart) => void): ClientUnaryCall; + getCart( + request: GetCartRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Cart) => void, + ): ClientUnaryCall; + getCart( + request: GetCartRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Cart) => void, + ): ClientUnaryCall; + emptyCart( + request: EmptyCartRequest, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + emptyCart( + request: EmptyCartRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + emptyCart( + request: EmptyCartRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; +} + +export const CartServiceClient = makeGenericClientConstructor( + CartServiceService, + "oteldemo.CartService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): CartServiceClient; + service: typeof CartServiceService; + serviceName: string; +}; + +export type RecommendationServiceService = typeof RecommendationServiceService; +export const RecommendationServiceService = { + listRecommendations: { + path: "/oteldemo.RecommendationService/ListRecommendations", + requestStream: false, + responseStream: false, + requestSerialize: (value: ListRecommendationsRequest) => + Buffer.from(ListRecommendationsRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ListRecommendationsRequest.decode(value), + responseSerialize: (value: ListRecommendationsResponse) => + Buffer.from(ListRecommendationsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ListRecommendationsResponse.decode(value), + }, +} as const; + +export interface RecommendationServiceServer extends UntypedServiceImplementation { + listRecommendations: handleUnaryCall; +} + +export interface RecommendationServiceClient extends Client { + listRecommendations( + request: ListRecommendationsRequest, + callback: (error: ServiceError | null, response: ListRecommendationsResponse) => void, + ): ClientUnaryCall; + listRecommendations( + request: ListRecommendationsRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ListRecommendationsResponse) => void, + ): ClientUnaryCall; + listRecommendations( + request: ListRecommendationsRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ListRecommendationsResponse) => void, + ): ClientUnaryCall; +} + +export const RecommendationServiceClient = makeGenericClientConstructor( + RecommendationServiceService, + "oteldemo.RecommendationService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): RecommendationServiceClient; + service: typeof RecommendationServiceService; + serviceName: string; +}; + +export type ProductCatalogServiceService = typeof ProductCatalogServiceService; +export const ProductCatalogServiceService = { + listProducts: { + path: "/oteldemo.ProductCatalogService/ListProducts", + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: ListProductsResponse) => Buffer.from(ListProductsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ListProductsResponse.decode(value), + }, + getProduct: { + path: "/oteldemo.ProductCatalogService/GetProduct", + requestStream: false, + responseStream: false, + requestSerialize: (value: GetProductRequest) => Buffer.from(GetProductRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => GetProductRequest.decode(value), + responseSerialize: (value: Product) => Buffer.from(Product.encode(value).finish()), + responseDeserialize: (value: Buffer) => Product.decode(value), + }, + searchProducts: { + path: "/oteldemo.ProductCatalogService/SearchProducts", + requestStream: false, + responseStream: false, + requestSerialize: (value: SearchProductsRequest) => Buffer.from(SearchProductsRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => SearchProductsRequest.decode(value), + responseSerialize: (value: SearchProductsResponse) => Buffer.from(SearchProductsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => SearchProductsResponse.decode(value), + }, +} as const; + +export interface ProductCatalogServiceServer extends UntypedServiceImplementation { + listProducts: handleUnaryCall; + getProduct: handleUnaryCall; + searchProducts: handleUnaryCall; +} + +export interface ProductCatalogServiceClient extends Client { + listProducts( + request: Empty, + callback: (error: ServiceError | null, response: ListProductsResponse) => void, + ): ClientUnaryCall; + listProducts( + request: Empty, + metadata: Metadata, + callback: (error: ServiceError | null, response: ListProductsResponse) => void, + ): ClientUnaryCall; + listProducts( + request: Empty, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ListProductsResponse) => void, + ): ClientUnaryCall; + getProduct( + request: GetProductRequest, + callback: (error: ServiceError | null, response: Product) => void, + ): ClientUnaryCall; + getProduct( + request: GetProductRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Product) => void, + ): ClientUnaryCall; + getProduct( + request: GetProductRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Product) => void, + ): ClientUnaryCall; + searchProducts( + request: SearchProductsRequest, + callback: (error: ServiceError | null, response: SearchProductsResponse) => void, + ): ClientUnaryCall; + searchProducts( + request: SearchProductsRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: SearchProductsResponse) => void, + ): ClientUnaryCall; + searchProducts( + request: SearchProductsRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: SearchProductsResponse) => void, + ): ClientUnaryCall; +} + +export const ProductCatalogServiceClient = makeGenericClientConstructor( + ProductCatalogServiceService, + "oteldemo.ProductCatalogService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): ProductCatalogServiceClient; + service: typeof ProductCatalogServiceService; + serviceName: string; +}; + +export type ShippingServiceService = typeof ShippingServiceService; +export const ShippingServiceService = { + getQuote: { + path: "/oteldemo.ShippingService/GetQuote", + requestStream: false, + responseStream: false, + requestSerialize: (value: GetQuoteRequest) => Buffer.from(GetQuoteRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => GetQuoteRequest.decode(value), + responseSerialize: (value: GetQuoteResponse) => Buffer.from(GetQuoteResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => GetQuoteResponse.decode(value), + }, + shipOrder: { + path: "/oteldemo.ShippingService/ShipOrder", + requestStream: false, + responseStream: false, + requestSerialize: (value: ShipOrderRequest) => Buffer.from(ShipOrderRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ShipOrderRequest.decode(value), + responseSerialize: (value: ShipOrderResponse) => Buffer.from(ShipOrderResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ShipOrderResponse.decode(value), + }, +} as const; + +export interface ShippingServiceServer extends UntypedServiceImplementation { + getQuote: handleUnaryCall; + shipOrder: handleUnaryCall; +} + +export interface ShippingServiceClient extends Client { + getQuote( + request: GetQuoteRequest, + callback: (error: ServiceError | null, response: GetQuoteResponse) => void, + ): ClientUnaryCall; + getQuote( + request: GetQuoteRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: GetQuoteResponse) => void, + ): ClientUnaryCall; + getQuote( + request: GetQuoteRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: GetQuoteResponse) => void, + ): ClientUnaryCall; + shipOrder( + request: ShipOrderRequest, + callback: (error: ServiceError | null, response: ShipOrderResponse) => void, + ): ClientUnaryCall; + shipOrder( + request: ShipOrderRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ShipOrderResponse) => void, + ): ClientUnaryCall; + shipOrder( + request: ShipOrderRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ShipOrderResponse) => void, + ): ClientUnaryCall; +} + +export const ShippingServiceClient = makeGenericClientConstructor( + ShippingServiceService, + "oteldemo.ShippingService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): ShippingServiceClient; + service: typeof ShippingServiceService; + serviceName: string; +}; + +export type CurrencyServiceService = typeof CurrencyServiceService; +export const CurrencyServiceService = { + getSupportedCurrencies: { + path: "/oteldemo.CurrencyService/GetSupportedCurrencies", + requestStream: false, + responseStream: false, + requestSerialize: (value: Empty) => Buffer.from(Empty.encode(value).finish()), + requestDeserialize: (value: Buffer) => Empty.decode(value), + responseSerialize: (value: GetSupportedCurrenciesResponse) => + Buffer.from(GetSupportedCurrenciesResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => GetSupportedCurrenciesResponse.decode(value), + }, + convert: { + path: "/oteldemo.CurrencyService/Convert", + requestStream: false, + responseStream: false, + requestSerialize: (value: CurrencyConversionRequest) => + Buffer.from(CurrencyConversionRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => CurrencyConversionRequest.decode(value), + responseSerialize: (value: Money) => Buffer.from(Money.encode(value).finish()), + responseDeserialize: (value: Buffer) => Money.decode(value), + }, +} as const; + +export interface CurrencyServiceServer extends UntypedServiceImplementation { + getSupportedCurrencies: handleUnaryCall; + convert: handleUnaryCall; +} + +export interface CurrencyServiceClient extends Client { + getSupportedCurrencies( + request: Empty, + callback: (error: ServiceError | null, response: GetSupportedCurrenciesResponse) => void, + ): ClientUnaryCall; + getSupportedCurrencies( + request: Empty, + metadata: Metadata, + callback: (error: ServiceError | null, response: GetSupportedCurrenciesResponse) => void, + ): ClientUnaryCall; + getSupportedCurrencies( + request: Empty, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: GetSupportedCurrenciesResponse) => void, + ): ClientUnaryCall; + convert( + request: CurrencyConversionRequest, + callback: (error: ServiceError | null, response: Money) => void, + ): ClientUnaryCall; + convert( + request: CurrencyConversionRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Money) => void, + ): ClientUnaryCall; + convert( + request: CurrencyConversionRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Money) => void, + ): ClientUnaryCall; +} + +export const CurrencyServiceClient = makeGenericClientConstructor( + CurrencyServiceService, + "oteldemo.CurrencyService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): CurrencyServiceClient; + service: typeof CurrencyServiceService; + serviceName: string; +}; + +export type PaymentServiceService = typeof PaymentServiceService; +export const PaymentServiceService = { + charge: { + path: "/oteldemo.PaymentService/Charge", + requestStream: false, + responseStream: false, + requestSerialize: (value: ChargeRequest) => Buffer.from(ChargeRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ChargeRequest.decode(value), + responseSerialize: (value: ChargeResponse) => Buffer.from(ChargeResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ChargeResponse.decode(value), + }, +} as const; + +export interface PaymentServiceServer extends UntypedServiceImplementation { + charge: handleUnaryCall; +} + +export interface PaymentServiceClient extends Client { + charge( + request: ChargeRequest, + callback: (error: ServiceError | null, response: ChargeResponse) => void, + ): ClientUnaryCall; + charge( + request: ChargeRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ChargeResponse) => void, + ): ClientUnaryCall; + charge( + request: ChargeRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ChargeResponse) => void, + ): ClientUnaryCall; +} + +export const PaymentServiceClient = makeGenericClientConstructor( + PaymentServiceService, + "oteldemo.PaymentService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): PaymentServiceClient; + service: typeof PaymentServiceService; + serviceName: string; +}; + +export type EmailServiceService = typeof EmailServiceService; +export const EmailServiceService = { + sendOrderConfirmation: { + path: "/oteldemo.EmailService/SendOrderConfirmation", + requestStream: false, + responseStream: false, + requestSerialize: (value: SendOrderConfirmationRequest) => + Buffer.from(SendOrderConfirmationRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => SendOrderConfirmationRequest.decode(value), + responseSerialize: (value: Empty) => Buffer.from(Empty.encode(value).finish()), + responseDeserialize: (value: Buffer) => Empty.decode(value), + }, +} as const; + +export interface EmailServiceServer extends UntypedServiceImplementation { + sendOrderConfirmation: handleUnaryCall; +} + +export interface EmailServiceClient extends Client { + sendOrderConfirmation( + request: SendOrderConfirmationRequest, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + sendOrderConfirmation( + request: SendOrderConfirmationRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; + sendOrderConfirmation( + request: SendOrderConfirmationRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: Empty) => void, + ): ClientUnaryCall; +} + +export const EmailServiceClient = makeGenericClientConstructor( + EmailServiceService, + "oteldemo.EmailService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): EmailServiceClient; + service: typeof EmailServiceService; + serviceName: string; +}; + +export type CheckoutServiceService = typeof CheckoutServiceService; +export const CheckoutServiceService = { + placeOrder: { + path: "/oteldemo.CheckoutService/PlaceOrder", + requestStream: false, + responseStream: false, + requestSerialize: (value: PlaceOrderRequest) => Buffer.from(PlaceOrderRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => PlaceOrderRequest.decode(value), + responseSerialize: (value: PlaceOrderResponse) => Buffer.from(PlaceOrderResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => PlaceOrderResponse.decode(value), + }, +} as const; + +export interface CheckoutServiceServer extends UntypedServiceImplementation { + placeOrder: handleUnaryCall; +} + +export interface CheckoutServiceClient extends Client { + placeOrder( + request: PlaceOrderRequest, + callback: (error: ServiceError | null, response: PlaceOrderResponse) => void, + ): ClientUnaryCall; + placeOrder( + request: PlaceOrderRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: PlaceOrderResponse) => void, + ): ClientUnaryCall; + placeOrder( + request: PlaceOrderRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: PlaceOrderResponse) => void, + ): ClientUnaryCall; +} + +export const CheckoutServiceClient = makeGenericClientConstructor( + CheckoutServiceService, + "oteldemo.CheckoutService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): CheckoutServiceClient; + service: typeof CheckoutServiceService; + serviceName: string; +}; + +export type AdServiceService = typeof AdServiceService; +export const AdServiceService = { + getAds: { + path: "/oteldemo.AdService/GetAds", + requestStream: false, + responseStream: false, + requestSerialize: (value: AdRequest) => Buffer.from(AdRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => AdRequest.decode(value), + responseSerialize: (value: AdResponse) => Buffer.from(AdResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => AdResponse.decode(value), + }, +} as const; + +export interface AdServiceServer extends UntypedServiceImplementation { + getAds: handleUnaryCall; +} + +export interface AdServiceClient extends Client { + getAds(request: AdRequest, callback: (error: ServiceError | null, response: AdResponse) => void): ClientUnaryCall; + getAds( + request: AdRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: AdResponse) => void, + ): ClientUnaryCall; + getAds( + request: AdRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: AdResponse) => void, + ): ClientUnaryCall; +} + +export const AdServiceClient = makeGenericClientConstructor(AdServiceService, "oteldemo.AdService") as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): AdServiceClient; + service: typeof AdServiceService; + serviceName: string; +}; + +export type FeatureFlagServiceService = typeof FeatureFlagServiceService; +export const FeatureFlagServiceService = { + getFlag: { + path: "/oteldemo.FeatureFlagService/GetFlag", + requestStream: false, + responseStream: false, + requestSerialize: (value: GetFlagRequest) => Buffer.from(GetFlagRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => GetFlagRequest.decode(value), + responseSerialize: (value: GetFlagResponse) => Buffer.from(GetFlagResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => GetFlagResponse.decode(value), + }, + createFlag: { + path: "/oteldemo.FeatureFlagService/CreateFlag", + requestStream: false, + responseStream: false, + requestSerialize: (value: CreateFlagRequest) => Buffer.from(CreateFlagRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => CreateFlagRequest.decode(value), + responseSerialize: (value: CreateFlagResponse) => Buffer.from(CreateFlagResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => CreateFlagResponse.decode(value), + }, + updateFlag: { + path: "/oteldemo.FeatureFlagService/UpdateFlag", + requestStream: false, + responseStream: false, + requestSerialize: (value: UpdateFlagRequest) => Buffer.from(UpdateFlagRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => UpdateFlagRequest.decode(value), + responseSerialize: (value: UpdateFlagResponse) => Buffer.from(UpdateFlagResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => UpdateFlagResponse.decode(value), + }, + listFlags: { + path: "/oteldemo.FeatureFlagService/ListFlags", + requestStream: false, + responseStream: false, + requestSerialize: (value: ListFlagsRequest) => Buffer.from(ListFlagsRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => ListFlagsRequest.decode(value), + responseSerialize: (value: ListFlagsResponse) => Buffer.from(ListFlagsResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => ListFlagsResponse.decode(value), + }, + deleteFlag: { + path: "/oteldemo.FeatureFlagService/DeleteFlag", + requestStream: false, + responseStream: false, + requestSerialize: (value: DeleteFlagRequest) => Buffer.from(DeleteFlagRequest.encode(value).finish()), + requestDeserialize: (value: Buffer) => DeleteFlagRequest.decode(value), + responseSerialize: (value: DeleteFlagResponse) => Buffer.from(DeleteFlagResponse.encode(value).finish()), + responseDeserialize: (value: Buffer) => DeleteFlagResponse.decode(value), + }, +} as const; + +export interface FeatureFlagServiceServer extends UntypedServiceImplementation { + getFlag: handleUnaryCall; + createFlag: handleUnaryCall; + updateFlag: handleUnaryCall; + listFlags: handleUnaryCall; + deleteFlag: handleUnaryCall; +} + +export interface FeatureFlagServiceClient extends Client { + getFlag( + request: GetFlagRequest, + callback: (error: ServiceError | null, response: GetFlagResponse) => void, + ): ClientUnaryCall; + getFlag( + request: GetFlagRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: GetFlagResponse) => void, + ): ClientUnaryCall; + getFlag( + request: GetFlagRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: GetFlagResponse) => void, + ): ClientUnaryCall; + createFlag( + request: CreateFlagRequest, + callback: (error: ServiceError | null, response: CreateFlagResponse) => void, + ): ClientUnaryCall; + createFlag( + request: CreateFlagRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: CreateFlagResponse) => void, + ): ClientUnaryCall; + createFlag( + request: CreateFlagRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: CreateFlagResponse) => void, + ): ClientUnaryCall; + updateFlag( + request: UpdateFlagRequest, + callback: (error: ServiceError | null, response: UpdateFlagResponse) => void, + ): ClientUnaryCall; + updateFlag( + request: UpdateFlagRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: UpdateFlagResponse) => void, + ): ClientUnaryCall; + updateFlag( + request: UpdateFlagRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: UpdateFlagResponse) => void, + ): ClientUnaryCall; + listFlags( + request: ListFlagsRequest, + callback: (error: ServiceError | null, response: ListFlagsResponse) => void, + ): ClientUnaryCall; + listFlags( + request: ListFlagsRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: ListFlagsResponse) => void, + ): ClientUnaryCall; + listFlags( + request: ListFlagsRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: ListFlagsResponse) => void, + ): ClientUnaryCall; + deleteFlag( + request: DeleteFlagRequest, + callback: (error: ServiceError | null, response: DeleteFlagResponse) => void, + ): ClientUnaryCall; + deleteFlag( + request: DeleteFlagRequest, + metadata: Metadata, + callback: (error: ServiceError | null, response: DeleteFlagResponse) => void, + ): ClientUnaryCall; + deleteFlag( + request: DeleteFlagRequest, + metadata: Metadata, + options: Partial, + callback: (error: ServiceError | null, response: DeleteFlagResponse) => void, + ): ClientUnaryCall; +} + +export const FeatureFlagServiceClient = makeGenericClientConstructor( + FeatureFlagServiceService, + "oteldemo.FeatureFlagService", +) as unknown as { + new (address: string, credentials: ChannelCredentials, options?: Partial): FeatureFlagServiceClient; + service: typeof FeatureFlagServiceService; + serviceName: string; +}; + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +type KeysOfUnion = T extends T ? keyof T : never; +export type Exact = P extends Builtin ? P + : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; + +function longToNumber(long: Long): number { + if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) { + throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); + } + if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) { + throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER"); + } + return long.toNumber(); +} + +if (_m0.util.Long !== Long) { + _m0.util.Long = Long as any; + _m0.configure(); +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/providers/Cart.provider.tsx b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/providers/Cart.provider.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d7212fb16509cf59d0527750dbf201ac47b5fbca --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/providers/Cart.provider.tsx @@ -0,0 +1,82 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/providers/Cart.provider.tsx + */ +import React, { createContext, useCallback, useContext, useMemo } from "react"; +import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; +import ApiGateway from "@/gateways/Api.gateway"; +import { CartItem, OrderResult, PlaceOrderRequest } from "@/protos/demo"; +import { IProductCart } from "@/types/Cart"; + +interface IContext { + cart: IProductCart; + addItem(item: CartItem): void; + emptyCart(): void; + placeOrder(order: PlaceOrderRequest): Promise; +} + +export const Context = createContext({ + cart: { userId: "", items: [] }, + addItem: () => {}, + emptyCart: () => {}, + placeOrder: () => Promise.resolve({} as OrderResult), +}); + +interface IProps { + children: React.ReactNode; +} + +export const useCart = () => useContext(Context); + +const CartProvider = ({ children }: IProps) => { + // TODO simplify react native demo for now by hard-coding the selected currency + const selectedCurrency = "USD"; + const queryClient = useQueryClient(); + const mutationOptions = useMemo( + () => ({ + onSuccess: () => { + queryClient.invalidateQueries({ queryKey: ["cart"] }); + }, + }), + [queryClient], + ); + + const { data: cart = { userId: "", items: [] } } = useQuery( + ["cart", selectedCurrency], + () => ApiGateway.getCart(selectedCurrency), + ); + const addCartMutation = useMutation(ApiGateway.addCartItem, mutationOptions); + const emptyCartMutation = useMutation(ApiGateway.emptyCart, mutationOptions); + const placeOrderMutation = useMutation( + ApiGateway.placeOrder, + mutationOptions, + ); + + const addItem = useCallback( + (item: CartItem) => + addCartMutation.mutateAsync({ ...item, currencyCode: selectedCurrency }), + [addCartMutation, selectedCurrency], + ); + const emptyCart = useCallback( + () => emptyCartMutation.mutateAsync(), + [emptyCartMutation], + ); + const placeOrder = useCallback( + (order: PlaceOrderRequest) => + placeOrderMutation.mutateAsync({ + ...order, + currencyCode: selectedCurrency, + }), + [placeOrderMutation, selectedCurrency], + ); + + const value = useMemo( + () => ({ cart, addItem, emptyCart, placeOrder }), + [cart, addItem, emptyCart, placeOrder], + ); + + return {children}; +}; + +export default CartProvider; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/types/Cart.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/types/Cart.ts new file mode 100644 index 0000000000000000000000000000000000000000..8baeacc46788427cdad04c7c831bc45d8c62f608 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/types/Cart.ts @@ -0,0 +1,25 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/types/Cart.ts + */ +import { Address, Cart, OrderItem, OrderResult, Product } from "@/protos/demo"; + +export interface IProductCartItem { + productId: string; + quantity: number; + product: Product; +} + +export interface IProductCheckoutItem extends OrderItem { + item: IProductCartItem; +} + +export interface IProductCheckout extends OrderResult { + items: IProductCheckoutItem[]; + shippingAddress: Address; +} + +export interface IProductCart extends Cart { + items: IProductCartItem[]; +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Localhost.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Localhost.ts new file mode 100644 index 0000000000000000000000000000000000000000..8b3eaef17835b943c1a7e42c7555d3de099b42e8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Localhost.ts @@ -0,0 +1,14 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import DeviceInfo from "react-native-device-info"; +import { Platform } from "react-native"; + +const getLocalhost = async (): Promise => { + const isEmulator = await DeviceInfo.isEmulator(); + + // The Android emulator has a special loopback for localhost + // https://developer.android.com/studio/run/emulator-networking#networkaddresses + return Platform.OS === "android" && isEmulator ? "10.0.2.2" : "localhost"; +}; + +export default getLocalhost; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Request.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Request.ts new file mode 100644 index 0000000000000000000000000000000000000000..77fadc8ef83b37984b9dc869088154f60e4019a0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Request.ts @@ -0,0 +1,41 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/utils/Request.ts + */ +import getFrontendProxyURL from "@/utils/Settings"; + +interface IRequestParams { + url: string; + body?: object; + method?: "GET" | "POST" | "PUT" | "DELETE"; + queryParams?: Record; + headers?: Record; +} + +const request = async ({ + url = "", + method = "GET", + body, + queryParams = {}, + headers = { + "content-type": "application/json", + }, +}: IRequestParams): Promise => { + const proxyURL = await getFrontendProxyURL(); + const requestURL = `${proxyURL}${url}?${new URLSearchParams(queryParams).toString()}`; + const requestBody = body ? JSON.stringify(body) : undefined; + const response = await fetch(requestURL, { + method, + body: requestBody, + headers, + }); + + const responseText = await response.text(); + + if (!!responseText) return JSON.parse(responseText); + + return undefined as unknown as T; +}; + +export default request; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/SessionIdProcessor.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/SessionIdProcessor.ts new file mode 100644 index 0000000000000000000000000000000000000000..217ff42fa26b7e520cff7cfc3eaf9a33fd459a4e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/SessionIdProcessor.ts @@ -0,0 +1,32 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +/** + * Copied with modification from src/frontend/utils/telemetry/SessionIdProcessor.ts + */ +import { Context } from "@opentelemetry/api"; +import { + ReadableSpan, + Span, + SpanProcessor, +} from "@opentelemetry/sdk-trace-web"; +import SessionGateway from "@/gateways/Session.gateway"; + +export class SessionIdProcessor implements SpanProcessor { + forceFlush(): Promise { + return Promise.resolve(); + } + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + onStart(span: Span, parentContext: Context): void { + SessionGateway.getSession().then(({ userId }) => { + span.setAttribute("session.id", userId); + }); + } + + // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function + onEnd(span: ReadableSpan): void {} + + shutdown(): Promise { + return Promise.resolve(); + } +} diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Settings.ts b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Settings.ts new file mode 100644 index 0000000000000000000000000000000000000000..1a9c7ff3dc74b54016464ec8b90dced5f91775a0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/react-native-app/utils/Settings.ts @@ -0,0 +1,22 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +import AsyncStorage from "@react-native-async-storage/async-storage"; +import getLocalhost from "@/utils/Localhost"; + +const FRONTEND_PROXY_URL_SETTING = 'frontend_proxy_url'; + +export const getFrontendProxyURL = async (): Promise => { + const proxyURL = await AsyncStorage.getItem(FRONTEND_PROXY_URL_SETTING); + if (proxyURL) { + return proxyURL + } else { + const localhost = await getLocalhost(); + return `http://${localhost}:${process.env.EXPO_PUBLIC_FRONTEND_PROXY_PORT}`; + } +}; + +export const setFrontendProxyURL = async (url: string) => { + await AsyncStorage.setItem(FRONTEND_PROXY_URL_SETTING, url); +} + +export default getFrontendProxyURL; diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..757b5f0a38de3eb27871aae1075847f4c5185fea --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/Dockerfile @@ -0,0 +1,30 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM docker.io/library/python:3.12-alpine3.22 AS build-venv + +RUN apk update && \ + apk add gcc g++ linux-headers + +COPY ./src/recommendation/requirements.txt requirements.txt + +RUN python -m venv venv && \ + venv/bin/pip install --no-cache-dir -r requirements.txt + +RUN venv/bin/opentelemetry-bootstrap -a install + +FROM docker.io/library/python:3.12-alpine3.22 + +COPY --from=build-venv /venv/ /venv/ + +WORKDIR /app + +COPY ./src/recommendation/demo_pb2_grpc.py demo_pb2_grpc.py +COPY ./src/recommendation/demo_pb2.py demo_pb2.py +COPY ./src/recommendation/logger.py logger.py +COPY ./src/recommendation/metrics.py metrics.py +COPY ./src/recommendation/recommendation_server.py recommendation_server.py + +EXPOSE ${RECOMMENDATION_PORT} +ENTRYPOINT [ "/venv/bin/opentelemetry-instrument", "/venv/bin/python", "recommendation_server.py" ] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ec0df489d61a82c42b0ea6bf116f0ce1915afd72 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/README.md @@ -0,0 +1,20 @@ +# Recommendation Service + +This service provides recommendations for other products based on the currently +selected product. + +## Local Build + +To build the protos, run from the root directory: + +```sh +make docker-generate-protobuf +``` + +## Docker Build + +From the root directory, run: + +```sh +docker compose build recommendation +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2.py new file mode 100644 index 0000000000000000000000000000000000000000..b018ef2170614559cd3b94c9b0ac29c8bd8d7ae4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2.py @@ -0,0 +1,146 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: demo.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ndemo.proto\x12\x08oteldemo\"0\n\x08\x43\x61rtItem\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\x05\"C\n\x0e\x41\x64\x64ItemRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12 \n\x04item\x18\x02 \x01(\x0b\x32\x12.oteldemo.CartItem\"#\n\x10\x45mptyCartRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\"!\n\x0eGetCartRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\":\n\x04\x43\x61rt\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12!\n\x05items\x18\x02 \x03(\x0b\x32\x12.oteldemo.CartItem\"\x07\n\x05\x45mpty\"B\n\x1aListRecommendationsRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x13\n\x0bproduct_ids\x18\x02 \x03(\t\"2\n\x1bListRecommendationsResponse\x12\x13\n\x0bproduct_ids\x18\x01 \x03(\t\"\x81\x01\n\x07Product\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07picture\x18\x04 \x01(\t\x12\"\n\tprice_usd\x18\x05 \x01(\x0b\x32\x0f.oteldemo.Money\x12\x12\n\ncategories\x18\x06 \x03(\t\";\n\x14ListProductsResponse\x12#\n\x08products\x18\x01 \x03(\x0b\x32\x11.oteldemo.Product\"\x1f\n\x11GetProductRequest\x12\n\n\x02id\x18\x01 \x01(\t\"&\n\x15SearchProductsRequest\x12\r\n\x05query\x18\x01 \x01(\t\"<\n\x16SearchProductsResponse\x12\"\n\x07results\x18\x01 \x03(\x0b\x32\x11.oteldemo.Product\"E\n\rProductReview\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\t\".\n\x18GetProductReviewsRequest\x12\x12\n\nproduct_id\x18\x01 \x01(\t\"M\n\x19GetProductReviewsResponse\x12\x30\n\x0fproduct_reviews\x18\x01 \x03(\x0b\x32\x17.oteldemo.ProductReview\"9\n#GetAverageProductReviewScoreRequest\x12\x12\n\nproduct_id\x18\x01 \x01(\t\"=\n$GetAverageProductReviewScoreResponse\x12\x15\n\raverage_score\x18\x01 \x01(\t\"D\n\x1c\x41skProductAIAssistantRequest\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x10\n\x08question\x18\x02 \x01(\t\"1\n\x1d\x41skProductAIAssistantResponse\x12\x10\n\x08response\x18\x01 \x01(\t\"X\n\x0fGetQuoteRequest\x12\"\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x11.oteldemo.Address\x12!\n\x05items\x18\x02 \x03(\x0b\x32\x12.oteldemo.CartItem\"5\n\x10GetQuoteResponse\x12!\n\x08\x63ost_usd\x18\x01 \x01(\x0b\x32\x0f.oteldemo.Money\"Y\n\x10ShipOrderRequest\x12\"\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x11.oteldemo.Address\x12!\n\x05items\x18\x02 \x03(\x0b\x32\x12.oteldemo.CartItem\"(\n\x11ShipOrderResponse\x12\x13\n\x0btracking_id\x18\x01 \x01(\t\"a\n\x07\x41\x64\x64ress\x12\x16\n\x0estreet_address\x18\x01 \x01(\t\x12\x0c\n\x04\x63ity\x18\x02 \x01(\t\x12\r\n\x05state\x18\x03 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x04 \x01(\t\x12\x10\n\x08zip_code\x18\x05 \x01(\t\"<\n\x05Money\x12\x15\n\rcurrency_code\x18\x01 \x01(\t\x12\r\n\x05units\x18\x02 \x01(\x03\x12\r\n\x05nanos\x18\x03 \x01(\x05\"8\n\x1eGetSupportedCurrenciesResponse\x12\x16\n\x0e\x63urrency_codes\x18\x01 \x03(\t\"K\n\x19\x43urrencyConversionRequest\x12\x1d\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x0f.oteldemo.Money\x12\x0f\n\x07to_code\x18\x02 \x01(\t\"\x90\x01\n\x0e\x43reditCardInfo\x12\x1a\n\x12\x63redit_card_number\x18\x01 \x01(\t\x12\x17\n\x0f\x63redit_card_cvv\x18\x02 \x01(\x05\x12#\n\x1b\x63redit_card_expiration_year\x18\x03 \x01(\x05\x12$\n\x1c\x63redit_card_expiration_month\x18\x04 \x01(\x05\"_\n\rChargeRequest\x12\x1f\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x0f.oteldemo.Money\x12-\n\x0b\x63redit_card\x18\x02 \x01(\x0b\x32\x18.oteldemo.CreditCardInfo\"(\n\x0e\x43hargeResponse\x12\x16\n\x0etransaction_id\x18\x01 \x01(\t\"L\n\tOrderItem\x12 \n\x04item\x18\x01 \x01(\x0b\x32\x12.oteldemo.CartItem\x12\x1d\n\x04\x63ost\x18\x02 \x01(\x0b\x32\x0f.oteldemo.Money\"\xb6\x01\n\x0bOrderResult\x12\x10\n\x08order_id\x18\x01 \x01(\t\x12\x1c\n\x14shipping_tracking_id\x18\x02 \x01(\t\x12&\n\rshipping_cost\x18\x03 \x01(\x0b\x32\x0f.oteldemo.Money\x12+\n\x10shipping_address\x18\x04 \x01(\x0b\x32\x11.oteldemo.Address\x12\"\n\x05items\x18\x05 \x03(\x0b\x32\x13.oteldemo.OrderItem\"S\n\x1cSendOrderConfirmationRequest\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12$\n\x05order\x18\x02 \x01(\x0b\x32\x15.oteldemo.OrderResult\"\x9d\x01\n\x11PlaceOrderRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x15\n\ruser_currency\x18\x02 \x01(\t\x12\"\n\x07\x61\x64\x64ress\x18\x03 \x01(\x0b\x32\x11.oteldemo.Address\x12\r\n\x05\x65mail\x18\x05 \x01(\t\x12-\n\x0b\x63redit_card\x18\x06 \x01(\x0b\x32\x18.oteldemo.CreditCardInfo\":\n\x12PlaceOrderResponse\x12$\n\x05order\x18\x01 \x01(\x0b\x32\x15.oteldemo.OrderResult\"!\n\tAdRequest\x12\x14\n\x0c\x63ontext_keys\x18\x01 \x03(\t\"\'\n\nAdResponse\x12\x19\n\x03\x61\x64s\x18\x01 \x03(\x0b\x32\x0c.oteldemo.Ad\"(\n\x02\x41\x64\x12\x14\n\x0credirect_url\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\":\n\x04\x46lag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"\x1e\n\x0eGetFlagRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"/\n\x0fGetFlagResponse\x12\x1c\n\x04\x66lag\x18\x01 \x01(\x0b\x32\x0e.oteldemo.Flag\"G\n\x11\x43reateFlagRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"2\n\x12\x43reateFlagResponse\x12\x1c\n\x04\x66lag\x18\x01 \x01(\x0b\x32\x0e.oteldemo.Flag\"2\n\x11UpdateFlagRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\"\x14\n\x12UpdateFlagResponse\"\x12\n\x10ListFlagsRequest\"1\n\x11ListFlagsResponse\x12\x1c\n\x04\x66lag\x18\x01 \x03(\x0b\x32\x0e.oteldemo.Flag\"!\n\x11\x44\x65leteFlagRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x14\n\x12\x44\x65leteFlagResponse2\xb8\x01\n\x0b\x43\x61rtService\x12\x36\n\x07\x41\x64\x64Item\x12\x18.oteldemo.AddItemRequest\x1a\x0f.oteldemo.Empty\"\x00\x12\x35\n\x07GetCart\x12\x18.oteldemo.GetCartRequest\x1a\x0e.oteldemo.Cart\"\x00\x12:\n\tEmptyCart\x12\x1a.oteldemo.EmptyCartRequest\x1a\x0f.oteldemo.Empty\"\x00\x32}\n\x15RecommendationService\x12\x64\n\x13ListRecommendations\x12$.oteldemo.ListRecommendationsRequest\x1a%.oteldemo.ListRecommendationsResponse\"\x00\x32\xf1\x01\n\x15ProductCatalogService\x12\x41\n\x0cListProducts\x12\x0f.oteldemo.Empty\x1a\x1e.oteldemo.ListProductsResponse\"\x00\x12>\n\nGetProduct\x12\x1b.oteldemo.GetProductRequest\x1a\x11.oteldemo.Product\"\x00\x12U\n\x0eSearchProducts\x12\x1f.oteldemo.SearchProductsRequest\x1a .oteldemo.SearchProductsResponse\"\x00\x32\xe3\x02\n\x14ProductReviewService\x12^\n\x11GetProductReviews\x12\".oteldemo.GetProductReviewsRequest\x1a#.oteldemo.GetProductReviewsResponse\"\x00\x12\x7f\n\x1cGetAverageProductReviewScore\x12-.oteldemo.GetAverageProductReviewScoreRequest\x1a..oteldemo.GetAverageProductReviewScoreResponse\"\x00\x12j\n\x15\x41skProductAIAssistant\x12&.oteldemo.AskProductAIAssistantRequest\x1a\'.oteldemo.AskProductAIAssistantResponse\"\x00\x32\x9e\x01\n\x0fShippingService\x12\x43\n\x08GetQuote\x12\x19.oteldemo.GetQuoteRequest\x1a\x1a.oteldemo.GetQuoteResponse\"\x00\x12\x46\n\tShipOrder\x12\x1a.oteldemo.ShipOrderRequest\x1a\x1b.oteldemo.ShipOrderResponse\"\x00\x32\xab\x01\n\x0f\x43urrencyService\x12U\n\x16GetSupportedCurrencies\x12\x0f.oteldemo.Empty\x1a(.oteldemo.GetSupportedCurrenciesResponse\"\x00\x12\x41\n\x07\x43onvert\x12#.oteldemo.CurrencyConversionRequest\x1a\x0f.oteldemo.Money\"\x00\x32O\n\x0ePaymentService\x12=\n\x06\x43harge\x12\x17.oteldemo.ChargeRequest\x1a\x18.oteldemo.ChargeResponse\"\x00\x32\x62\n\x0c\x45mailService\x12R\n\x15SendOrderConfirmation\x12&.oteldemo.SendOrderConfirmationRequest\x1a\x0f.oteldemo.Empty\"\x00\x32\\\n\x0f\x43heckoutService\x12I\n\nPlaceOrder\x12\x1b.oteldemo.PlaceOrderRequest\x1a\x1c.oteldemo.PlaceOrderResponse\"\x00\x32\x42\n\tAdService\x12\x35\n\x06GetAds\x12\x13.oteldemo.AdRequest\x1a\x14.oteldemo.AdResponse\"\x00\x32\xff\x02\n\x12\x46\x65\x61tureFlagService\x12@\n\x07GetFlag\x12\x18.oteldemo.GetFlagRequest\x1a\x19.oteldemo.GetFlagResponse\"\x00\x12I\n\nCreateFlag\x12\x1b.oteldemo.CreateFlagRequest\x1a\x1c.oteldemo.CreateFlagResponse\"\x00\x12I\n\nUpdateFlag\x12\x1b.oteldemo.UpdateFlagRequest\x1a\x1c.oteldemo.UpdateFlagResponse\"\x00\x12\x46\n\tListFlags\x12\x1a.oteldemo.ListFlagsRequest\x1a\x1b.oteldemo.ListFlagsResponse\"\x00\x12I\n\nDeleteFlag\x12\x1b.oteldemo.DeleteFlagRequest\x1a\x1c.oteldemo.DeleteFlagResponse\"\x00\x42\x13Z\x11genproto/oteldemob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'demo_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\021genproto/oteldemo' + _globals['_CARTITEM']._serialized_start=24 + _globals['_CARTITEM']._serialized_end=72 + _globals['_ADDITEMREQUEST']._serialized_start=74 + _globals['_ADDITEMREQUEST']._serialized_end=141 + _globals['_EMPTYCARTREQUEST']._serialized_start=143 + _globals['_EMPTYCARTREQUEST']._serialized_end=178 + _globals['_GETCARTREQUEST']._serialized_start=180 + _globals['_GETCARTREQUEST']._serialized_end=213 + _globals['_CART']._serialized_start=215 + _globals['_CART']._serialized_end=273 + _globals['_EMPTY']._serialized_start=275 + _globals['_EMPTY']._serialized_end=282 + _globals['_LISTRECOMMENDATIONSREQUEST']._serialized_start=284 + _globals['_LISTRECOMMENDATIONSREQUEST']._serialized_end=350 + _globals['_LISTRECOMMENDATIONSRESPONSE']._serialized_start=352 + _globals['_LISTRECOMMENDATIONSRESPONSE']._serialized_end=402 + _globals['_PRODUCT']._serialized_start=405 + _globals['_PRODUCT']._serialized_end=534 + _globals['_LISTPRODUCTSRESPONSE']._serialized_start=536 + _globals['_LISTPRODUCTSRESPONSE']._serialized_end=595 + _globals['_GETPRODUCTREQUEST']._serialized_start=597 + _globals['_GETPRODUCTREQUEST']._serialized_end=628 + _globals['_SEARCHPRODUCTSREQUEST']._serialized_start=630 + _globals['_SEARCHPRODUCTSREQUEST']._serialized_end=668 + _globals['_SEARCHPRODUCTSRESPONSE']._serialized_start=670 + _globals['_SEARCHPRODUCTSRESPONSE']._serialized_end=730 + _globals['_PRODUCTREVIEW']._serialized_start=732 + _globals['_PRODUCTREVIEW']._serialized_end=801 + _globals['_GETPRODUCTREVIEWSREQUEST']._serialized_start=803 + _globals['_GETPRODUCTREVIEWSREQUEST']._serialized_end=849 + _globals['_GETPRODUCTREVIEWSRESPONSE']._serialized_start=851 + _globals['_GETPRODUCTREVIEWSRESPONSE']._serialized_end=928 + _globals['_GETAVERAGEPRODUCTREVIEWSCOREREQUEST']._serialized_start=930 + _globals['_GETAVERAGEPRODUCTREVIEWSCOREREQUEST']._serialized_end=987 + _globals['_GETAVERAGEPRODUCTREVIEWSCORERESPONSE']._serialized_start=989 + _globals['_GETAVERAGEPRODUCTREVIEWSCORERESPONSE']._serialized_end=1050 + _globals['_ASKPRODUCTAIASSISTANTREQUEST']._serialized_start=1052 + _globals['_ASKPRODUCTAIASSISTANTREQUEST']._serialized_end=1120 + _globals['_ASKPRODUCTAIASSISTANTRESPONSE']._serialized_start=1122 + _globals['_ASKPRODUCTAIASSISTANTRESPONSE']._serialized_end=1171 + _globals['_GETQUOTEREQUEST']._serialized_start=1173 + _globals['_GETQUOTEREQUEST']._serialized_end=1261 + _globals['_GETQUOTERESPONSE']._serialized_start=1263 + _globals['_GETQUOTERESPONSE']._serialized_end=1316 + _globals['_SHIPORDERREQUEST']._serialized_start=1318 + _globals['_SHIPORDERREQUEST']._serialized_end=1407 + _globals['_SHIPORDERRESPONSE']._serialized_start=1409 + _globals['_SHIPORDERRESPONSE']._serialized_end=1449 + _globals['_ADDRESS']._serialized_start=1451 + _globals['_ADDRESS']._serialized_end=1548 + _globals['_MONEY']._serialized_start=1550 + _globals['_MONEY']._serialized_end=1610 + _globals['_GETSUPPORTEDCURRENCIESRESPONSE']._serialized_start=1612 + _globals['_GETSUPPORTEDCURRENCIESRESPONSE']._serialized_end=1668 + _globals['_CURRENCYCONVERSIONREQUEST']._serialized_start=1670 + _globals['_CURRENCYCONVERSIONREQUEST']._serialized_end=1745 + _globals['_CREDITCARDINFO']._serialized_start=1748 + _globals['_CREDITCARDINFO']._serialized_end=1892 + _globals['_CHARGEREQUEST']._serialized_start=1894 + _globals['_CHARGEREQUEST']._serialized_end=1989 + _globals['_CHARGERESPONSE']._serialized_start=1991 + _globals['_CHARGERESPONSE']._serialized_end=2031 + _globals['_ORDERITEM']._serialized_start=2033 + _globals['_ORDERITEM']._serialized_end=2109 + _globals['_ORDERRESULT']._serialized_start=2112 + _globals['_ORDERRESULT']._serialized_end=2294 + _globals['_SENDORDERCONFIRMATIONREQUEST']._serialized_start=2296 + _globals['_SENDORDERCONFIRMATIONREQUEST']._serialized_end=2379 + _globals['_PLACEORDERREQUEST']._serialized_start=2382 + _globals['_PLACEORDERREQUEST']._serialized_end=2539 + _globals['_PLACEORDERRESPONSE']._serialized_start=2541 + _globals['_PLACEORDERRESPONSE']._serialized_end=2599 + _globals['_ADREQUEST']._serialized_start=2601 + _globals['_ADREQUEST']._serialized_end=2634 + _globals['_ADRESPONSE']._serialized_start=2636 + _globals['_ADRESPONSE']._serialized_end=2675 + _globals['_AD']._serialized_start=2677 + _globals['_AD']._serialized_end=2717 + _globals['_FLAG']._serialized_start=2719 + _globals['_FLAG']._serialized_end=2777 + _globals['_GETFLAGREQUEST']._serialized_start=2779 + _globals['_GETFLAGREQUEST']._serialized_end=2809 + _globals['_GETFLAGRESPONSE']._serialized_start=2811 + _globals['_GETFLAGRESPONSE']._serialized_end=2858 + _globals['_CREATEFLAGREQUEST']._serialized_start=2860 + _globals['_CREATEFLAGREQUEST']._serialized_end=2931 + _globals['_CREATEFLAGRESPONSE']._serialized_start=2933 + _globals['_CREATEFLAGRESPONSE']._serialized_end=2983 + _globals['_UPDATEFLAGREQUEST']._serialized_start=2985 + _globals['_UPDATEFLAGREQUEST']._serialized_end=3035 + _globals['_UPDATEFLAGRESPONSE']._serialized_start=3037 + _globals['_UPDATEFLAGRESPONSE']._serialized_end=3057 + _globals['_LISTFLAGSREQUEST']._serialized_start=3059 + _globals['_LISTFLAGSREQUEST']._serialized_end=3077 + _globals['_LISTFLAGSRESPONSE']._serialized_start=3079 + _globals['_LISTFLAGSRESPONSE']._serialized_end=3128 + _globals['_DELETEFLAGREQUEST']._serialized_start=3130 + _globals['_DELETEFLAGREQUEST']._serialized_end=3163 + _globals['_DELETEFLAGRESPONSE']._serialized_start=3165 + _globals['_DELETEFLAGRESPONSE']._serialized_end=3185 + _globals['_CARTSERVICE']._serialized_start=3188 + _globals['_CARTSERVICE']._serialized_end=3372 + _globals['_RECOMMENDATIONSERVICE']._serialized_start=3374 + _globals['_RECOMMENDATIONSERVICE']._serialized_end=3499 + _globals['_PRODUCTCATALOGSERVICE']._serialized_start=3502 + _globals['_PRODUCTCATALOGSERVICE']._serialized_end=3743 + _globals['_PRODUCTREVIEWSERVICE']._serialized_start=3746 + _globals['_PRODUCTREVIEWSERVICE']._serialized_end=4101 + _globals['_SHIPPINGSERVICE']._serialized_start=4104 + _globals['_SHIPPINGSERVICE']._serialized_end=4262 + _globals['_CURRENCYSERVICE']._serialized_start=4265 + _globals['_CURRENCYSERVICE']._serialized_end=4436 + _globals['_PAYMENTSERVICE']._serialized_start=4438 + _globals['_PAYMENTSERVICE']._serialized_end=4517 + _globals['_EMAILSERVICE']._serialized_start=4519 + _globals['_EMAILSERVICE']._serialized_end=4617 + _globals['_CHECKOUTSERVICE']._serialized_start=4619 + _globals['_CHECKOUTSERVICE']._serialized_end=4711 + _globals['_ADSERVICE']._serialized_start=4713 + _globals['_ADSERVICE']._serialized_end=4779 + _globals['_FEATUREFLAGSERVICE']._serialized_start=4782 + _globals['_FEATUREFLAGSERVICE']._serialized_end=5165 +# @@protoc_insertion_point(module_scope) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2_grpc.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2_grpc.py new file mode 100644 index 0000000000000000000000000000000000000000..747cf46de4aca8ddcee34bc897f5d57658a02617 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/demo_pb2_grpc.py @@ -0,0 +1,1138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import demo_pb2 as demo__pb2 + + +class CartServiceStub(object): + """-----------------Cart service----------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.AddItem = channel.unary_unary( + '/oteldemo.CartService/AddItem', + request_serializer=demo__pb2.AddItemRequest.SerializeToString, + response_deserializer=demo__pb2.Empty.FromString, + ) + self.GetCart = channel.unary_unary( + '/oteldemo.CartService/GetCart', + request_serializer=demo__pb2.GetCartRequest.SerializeToString, + response_deserializer=demo__pb2.Cart.FromString, + ) + self.EmptyCart = channel.unary_unary( + '/oteldemo.CartService/EmptyCart', + request_serializer=demo__pb2.EmptyCartRequest.SerializeToString, + response_deserializer=demo__pb2.Empty.FromString, + ) + + +class CartServiceServicer(object): + """-----------------Cart service----------------- + + """ + + def AddItem(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCart(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EmptyCart(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CartServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'AddItem': grpc.unary_unary_rpc_method_handler( + servicer.AddItem, + request_deserializer=demo__pb2.AddItemRequest.FromString, + response_serializer=demo__pb2.Empty.SerializeToString, + ), + 'GetCart': grpc.unary_unary_rpc_method_handler( + servicer.GetCart, + request_deserializer=demo__pb2.GetCartRequest.FromString, + response_serializer=demo__pb2.Cart.SerializeToString, + ), + 'EmptyCart': grpc.unary_unary_rpc_method_handler( + servicer.EmptyCart, + request_deserializer=demo__pb2.EmptyCartRequest.FromString, + response_serializer=demo__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.CartService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CartService(object): + """-----------------Cart service----------------- + + """ + + @staticmethod + def AddItem(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CartService/AddItem', + demo__pb2.AddItemRequest.SerializeToString, + demo__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCart(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CartService/GetCart', + demo__pb2.GetCartRequest.SerializeToString, + demo__pb2.Cart.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EmptyCart(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CartService/EmptyCart', + demo__pb2.EmptyCartRequest.SerializeToString, + demo__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class RecommendationServiceStub(object): + """---------------Recommendation service---------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListRecommendations = channel.unary_unary( + '/oteldemo.RecommendationService/ListRecommendations', + request_serializer=demo__pb2.ListRecommendationsRequest.SerializeToString, + response_deserializer=demo__pb2.ListRecommendationsResponse.FromString, + ) + + +class RecommendationServiceServicer(object): + """---------------Recommendation service---------- + + """ + + def ListRecommendations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RecommendationServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListRecommendations': grpc.unary_unary_rpc_method_handler( + servicer.ListRecommendations, + request_deserializer=demo__pb2.ListRecommendationsRequest.FromString, + response_serializer=demo__pb2.ListRecommendationsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.RecommendationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class RecommendationService(object): + """---------------Recommendation service---------- + + """ + + @staticmethod + def ListRecommendations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.RecommendationService/ListRecommendations', + demo__pb2.ListRecommendationsRequest.SerializeToString, + demo__pb2.ListRecommendationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class ProductCatalogServiceStub(object): + """---------------Product Catalog---------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListProducts = channel.unary_unary( + '/oteldemo.ProductCatalogService/ListProducts', + request_serializer=demo__pb2.Empty.SerializeToString, + response_deserializer=demo__pb2.ListProductsResponse.FromString, + ) + self.GetProduct = channel.unary_unary( + '/oteldemo.ProductCatalogService/GetProduct', + request_serializer=demo__pb2.GetProductRequest.SerializeToString, + response_deserializer=demo__pb2.Product.FromString, + ) + self.SearchProducts = channel.unary_unary( + '/oteldemo.ProductCatalogService/SearchProducts', + request_serializer=demo__pb2.SearchProductsRequest.SerializeToString, + response_deserializer=demo__pb2.SearchProductsResponse.FromString, + ) + + +class ProductCatalogServiceServicer(object): + """---------------Product Catalog---------------- + + """ + + def ListProducts(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetProduct(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SearchProducts(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ProductCatalogServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListProducts': grpc.unary_unary_rpc_method_handler( + servicer.ListProducts, + request_deserializer=demo__pb2.Empty.FromString, + response_serializer=demo__pb2.ListProductsResponse.SerializeToString, + ), + 'GetProduct': grpc.unary_unary_rpc_method_handler( + servicer.GetProduct, + request_deserializer=demo__pb2.GetProductRequest.FromString, + response_serializer=demo__pb2.Product.SerializeToString, + ), + 'SearchProducts': grpc.unary_unary_rpc_method_handler( + servicer.SearchProducts, + request_deserializer=demo__pb2.SearchProductsRequest.FromString, + response_serializer=demo__pb2.SearchProductsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.ProductCatalogService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ProductCatalogService(object): + """---------------Product Catalog---------------- + + """ + + @staticmethod + def ListProducts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductCatalogService/ListProducts', + demo__pb2.Empty.SerializeToString, + demo__pb2.ListProductsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetProduct(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductCatalogService/GetProduct', + demo__pb2.GetProductRequest.SerializeToString, + demo__pb2.Product.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SearchProducts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductCatalogService/SearchProducts', + demo__pb2.SearchProductsRequest.SerializeToString, + demo__pb2.SearchProductsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class ProductReviewServiceStub(object): + """---------------Product Review service---------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetProductReviews = channel.unary_unary( + '/oteldemo.ProductReviewService/GetProductReviews', + request_serializer=demo__pb2.GetProductReviewsRequest.SerializeToString, + response_deserializer=demo__pb2.GetProductReviewsResponse.FromString, + ) + self.GetAverageProductReviewScore = channel.unary_unary( + '/oteldemo.ProductReviewService/GetAverageProductReviewScore', + request_serializer=demo__pb2.GetAverageProductReviewScoreRequest.SerializeToString, + response_deserializer=demo__pb2.GetAverageProductReviewScoreResponse.FromString, + ) + self.AskProductAIAssistant = channel.unary_unary( + '/oteldemo.ProductReviewService/AskProductAIAssistant', + request_serializer=demo__pb2.AskProductAIAssistantRequest.SerializeToString, + response_deserializer=demo__pb2.AskProductAIAssistantResponse.FromString, + ) + + +class ProductReviewServiceServicer(object): + """---------------Product Review service---------- + + """ + + def GetProductReviews(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAverageProductReviewScore(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AskProductAIAssistant(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ProductReviewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetProductReviews': grpc.unary_unary_rpc_method_handler( + servicer.GetProductReviews, + request_deserializer=demo__pb2.GetProductReviewsRequest.FromString, + response_serializer=demo__pb2.GetProductReviewsResponse.SerializeToString, + ), + 'GetAverageProductReviewScore': grpc.unary_unary_rpc_method_handler( + servicer.GetAverageProductReviewScore, + request_deserializer=demo__pb2.GetAverageProductReviewScoreRequest.FromString, + response_serializer=demo__pb2.GetAverageProductReviewScoreResponse.SerializeToString, + ), + 'AskProductAIAssistant': grpc.unary_unary_rpc_method_handler( + servicer.AskProductAIAssistant, + request_deserializer=demo__pb2.AskProductAIAssistantRequest.FromString, + response_serializer=demo__pb2.AskProductAIAssistantResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.ProductReviewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ProductReviewService(object): + """---------------Product Review service---------- + + """ + + @staticmethod + def GetProductReviews(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductReviewService/GetProductReviews', + demo__pb2.GetProductReviewsRequest.SerializeToString, + demo__pb2.GetProductReviewsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAverageProductReviewScore(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductReviewService/GetAverageProductReviewScore', + demo__pb2.GetAverageProductReviewScoreRequest.SerializeToString, + demo__pb2.GetAverageProductReviewScoreResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AskProductAIAssistant(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ProductReviewService/AskProductAIAssistant', + demo__pb2.AskProductAIAssistantRequest.SerializeToString, + demo__pb2.AskProductAIAssistantResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class ShippingServiceStub(object): + """---------------Shipping Service---------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetQuote = channel.unary_unary( + '/oteldemo.ShippingService/GetQuote', + request_serializer=demo__pb2.GetQuoteRequest.SerializeToString, + response_deserializer=demo__pb2.GetQuoteResponse.FromString, + ) + self.ShipOrder = channel.unary_unary( + '/oteldemo.ShippingService/ShipOrder', + request_serializer=demo__pb2.ShipOrderRequest.SerializeToString, + response_deserializer=demo__pb2.ShipOrderResponse.FromString, + ) + + +class ShippingServiceServicer(object): + """---------------Shipping Service---------- + + """ + + def GetQuote(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ShipOrder(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ShippingServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetQuote': grpc.unary_unary_rpc_method_handler( + servicer.GetQuote, + request_deserializer=demo__pb2.GetQuoteRequest.FromString, + response_serializer=demo__pb2.GetQuoteResponse.SerializeToString, + ), + 'ShipOrder': grpc.unary_unary_rpc_method_handler( + servicer.ShipOrder, + request_deserializer=demo__pb2.ShipOrderRequest.FromString, + response_serializer=demo__pb2.ShipOrderResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.ShippingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ShippingService(object): + """---------------Shipping Service---------- + + """ + + @staticmethod + def GetQuote(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ShippingService/GetQuote', + demo__pb2.GetQuoteRequest.SerializeToString, + demo__pb2.GetQuoteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ShipOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.ShippingService/ShipOrder', + demo__pb2.ShipOrderRequest.SerializeToString, + demo__pb2.ShipOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class CurrencyServiceStub(object): + """-----------------Currency service----------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetSupportedCurrencies = channel.unary_unary( + '/oteldemo.CurrencyService/GetSupportedCurrencies', + request_serializer=demo__pb2.Empty.SerializeToString, + response_deserializer=demo__pb2.GetSupportedCurrenciesResponse.FromString, + ) + self.Convert = channel.unary_unary( + '/oteldemo.CurrencyService/Convert', + request_serializer=demo__pb2.CurrencyConversionRequest.SerializeToString, + response_deserializer=demo__pb2.Money.FromString, + ) + + +class CurrencyServiceServicer(object): + """-----------------Currency service----------------- + + """ + + def GetSupportedCurrencies(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Convert(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CurrencyServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetSupportedCurrencies': grpc.unary_unary_rpc_method_handler( + servicer.GetSupportedCurrencies, + request_deserializer=demo__pb2.Empty.FromString, + response_serializer=demo__pb2.GetSupportedCurrenciesResponse.SerializeToString, + ), + 'Convert': grpc.unary_unary_rpc_method_handler( + servicer.Convert, + request_deserializer=demo__pb2.CurrencyConversionRequest.FromString, + response_serializer=demo__pb2.Money.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.CurrencyService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CurrencyService(object): + """-----------------Currency service----------------- + + """ + + @staticmethod + def GetSupportedCurrencies(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CurrencyService/GetSupportedCurrencies', + demo__pb2.Empty.SerializeToString, + demo__pb2.GetSupportedCurrenciesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Convert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CurrencyService/Convert', + demo__pb2.CurrencyConversionRequest.SerializeToString, + demo__pb2.Money.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class PaymentServiceStub(object): + """-------------Payment service----------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Charge = channel.unary_unary( + '/oteldemo.PaymentService/Charge', + request_serializer=demo__pb2.ChargeRequest.SerializeToString, + response_deserializer=demo__pb2.ChargeResponse.FromString, + ) + + +class PaymentServiceServicer(object): + """-------------Payment service----------------- + + """ + + def Charge(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PaymentServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Charge': grpc.unary_unary_rpc_method_handler( + servicer.Charge, + request_deserializer=demo__pb2.ChargeRequest.FromString, + response_serializer=demo__pb2.ChargeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.PaymentService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class PaymentService(object): + """-------------Payment service----------------- + + """ + + @staticmethod + def Charge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.PaymentService/Charge', + demo__pb2.ChargeRequest.SerializeToString, + demo__pb2.ChargeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class EmailServiceStub(object): + """-------------Email service----------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SendOrderConfirmation = channel.unary_unary( + '/oteldemo.EmailService/SendOrderConfirmation', + request_serializer=demo__pb2.SendOrderConfirmationRequest.SerializeToString, + response_deserializer=demo__pb2.Empty.FromString, + ) + + +class EmailServiceServicer(object): + """-------------Email service----------------- + + """ + + def SendOrderConfirmation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_EmailServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SendOrderConfirmation': grpc.unary_unary_rpc_method_handler( + servicer.SendOrderConfirmation, + request_deserializer=demo__pb2.SendOrderConfirmationRequest.FromString, + response_serializer=demo__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.EmailService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class EmailService(object): + """-------------Email service----------------- + + """ + + @staticmethod + def SendOrderConfirmation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.EmailService/SendOrderConfirmation', + demo__pb2.SendOrderConfirmationRequest.SerializeToString, + demo__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class CheckoutServiceStub(object): + """-------------Checkout service----------------- + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.PlaceOrder = channel.unary_unary( + '/oteldemo.CheckoutService/PlaceOrder', + request_serializer=demo__pb2.PlaceOrderRequest.SerializeToString, + response_deserializer=demo__pb2.PlaceOrderResponse.FromString, + ) + + +class CheckoutServiceServicer(object): + """-------------Checkout service----------------- + + """ + + def PlaceOrder(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CheckoutServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'PlaceOrder': grpc.unary_unary_rpc_method_handler( + servicer.PlaceOrder, + request_deserializer=demo__pb2.PlaceOrderRequest.FromString, + response_serializer=demo__pb2.PlaceOrderResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.CheckoutService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CheckoutService(object): + """-------------Checkout service----------------- + + """ + + @staticmethod + def PlaceOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.CheckoutService/PlaceOrder', + demo__pb2.PlaceOrderRequest.SerializeToString, + demo__pb2.PlaceOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class AdServiceStub(object): + """------------Ad service------------------ + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAds = channel.unary_unary( + '/oteldemo.AdService/GetAds', + request_serializer=demo__pb2.AdRequest.SerializeToString, + response_deserializer=demo__pb2.AdResponse.FromString, + ) + + +class AdServiceServicer(object): + """------------Ad service------------------ + + """ + + def GetAds(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAds': grpc.unary_unary_rpc_method_handler( + servicer.GetAds, + request_deserializer=demo__pb2.AdRequest.FromString, + response_serializer=demo__pb2.AdResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.AdService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AdService(object): + """------------Ad service------------------ + + """ + + @staticmethod + def GetAds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.AdService/GetAds', + demo__pb2.AdRequest.SerializeToString, + demo__pb2.AdResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class FeatureFlagServiceStub(object): + """------------Feature flag service------------------ + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFlag = channel.unary_unary( + '/oteldemo.FeatureFlagService/GetFlag', + request_serializer=demo__pb2.GetFlagRequest.SerializeToString, + response_deserializer=demo__pb2.GetFlagResponse.FromString, + ) + self.CreateFlag = channel.unary_unary( + '/oteldemo.FeatureFlagService/CreateFlag', + request_serializer=demo__pb2.CreateFlagRequest.SerializeToString, + response_deserializer=demo__pb2.CreateFlagResponse.FromString, + ) + self.UpdateFlag = channel.unary_unary( + '/oteldemo.FeatureFlagService/UpdateFlag', + request_serializer=demo__pb2.UpdateFlagRequest.SerializeToString, + response_deserializer=demo__pb2.UpdateFlagResponse.FromString, + ) + self.ListFlags = channel.unary_unary( + '/oteldemo.FeatureFlagService/ListFlags', + request_serializer=demo__pb2.ListFlagsRequest.SerializeToString, + response_deserializer=demo__pb2.ListFlagsResponse.FromString, + ) + self.DeleteFlag = channel.unary_unary( + '/oteldemo.FeatureFlagService/DeleteFlag', + request_serializer=demo__pb2.DeleteFlagRequest.SerializeToString, + response_deserializer=demo__pb2.DeleteFlagResponse.FromString, + ) + + +class FeatureFlagServiceServicer(object): + """------------Feature flag service------------------ + + """ + + def GetFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListFlags(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeatureFlagServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFlag': grpc.unary_unary_rpc_method_handler( + servicer.GetFlag, + request_deserializer=demo__pb2.GetFlagRequest.FromString, + response_serializer=demo__pb2.GetFlagResponse.SerializeToString, + ), + 'CreateFlag': grpc.unary_unary_rpc_method_handler( + servicer.CreateFlag, + request_deserializer=demo__pb2.CreateFlagRequest.FromString, + response_serializer=demo__pb2.CreateFlagResponse.SerializeToString, + ), + 'UpdateFlag': grpc.unary_unary_rpc_method_handler( + servicer.UpdateFlag, + request_deserializer=demo__pb2.UpdateFlagRequest.FromString, + response_serializer=demo__pb2.UpdateFlagResponse.SerializeToString, + ), + 'ListFlags': grpc.unary_unary_rpc_method_handler( + servicer.ListFlags, + request_deserializer=demo__pb2.ListFlagsRequest.FromString, + response_serializer=demo__pb2.ListFlagsResponse.SerializeToString, + ), + 'DeleteFlag': grpc.unary_unary_rpc_method_handler( + servicer.DeleteFlag, + request_deserializer=demo__pb2.DeleteFlagRequest.FromString, + response_serializer=demo__pb2.DeleteFlagResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'oteldemo.FeatureFlagService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class FeatureFlagService(object): + """------------Feature flag service------------------ + + """ + + @staticmethod + def GetFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.FeatureFlagService/GetFlag', + demo__pb2.GetFlagRequest.SerializeToString, + demo__pb2.GetFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.FeatureFlagService/CreateFlag', + demo__pb2.CreateFlagRequest.SerializeToString, + demo__pb2.CreateFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.FeatureFlagService/UpdateFlag', + demo__pb2.UpdateFlagRequest.SerializeToString, + demo__pb2.UpdateFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListFlags(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.FeatureFlagService/ListFlags', + demo__pb2.ListFlagsRequest.SerializeToString, + demo__pb2.ListFlagsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oteldemo.FeatureFlagService/DeleteFlag', + demo__pb2.DeleteFlagRequest.SerializeToString, + demo__pb2.DeleteFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/genproto/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/genproto/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..ad9b6466949210b76ffbf5ff1290a1318ef64757 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/genproto/Dockerfile @@ -0,0 +1,8 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM python:3.12-slim-bookworm + +WORKDIR /build + +RUN python -m pip install grpcio-tools==1.59.2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/logger.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/logger.py new file mode 100644 index 0000000000000000000000000000000000000000..0569665539dcecb894020c729d8ff0aad792c2e8 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/logger.py @@ -0,0 +1,28 @@ +#!/usr/bin/python + +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import logging +import sys +from pythonjsonlogger import jsonlogger +from opentelemetry import trace + + +class CustomJsonFormatter(jsonlogger.JsonFormatter): + def add_fields(self, log_record, record, message_dict): + super(CustomJsonFormatter, self).add_fields(log_record, record, message_dict) + if not log_record.get('otelTraceID'): + log_record['otelTraceID'] = trace.format_trace_id(trace.get_current_span().get_span_context().trace_id) + if not log_record.get('otelSpanID'): + log_record['otelSpanID'] = trace.format_span_id(trace.get_current_span().get_span_context().span_id) + +def getJSONLogger(name): + logger = logging.getLogger(name) + handler = logging.StreamHandler(sys.stdout) + formatter = CustomJsonFormatter('%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] [trace_id=%(otelTraceID)s span_id=%(otelSpanID)s] - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.setLevel(logging.INFO) + logger.propagate = False + return logger diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/metrics.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/metrics.py new file mode 100644 index 0000000000000000000000000000000000000000..51b79968ecbcd5792e93c13dc18238fe76a55d15 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/metrics.py @@ -0,0 +1,17 @@ +#!/usr/bin/python + +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +def init_metrics(meter): + + # Recommendations counter + app_recommendations_counter = meter.create_counter( + 'app_recommendations_counter', unit='recommendations', description="Counts the total number of given recommendations" + ) + + rec_svc_metrics = { + "app_recommendations_counter": app_recommendations_counter, + } + + return rec_svc_metrics diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/recommendation_server.py b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/recommendation_server.py new file mode 100644 index 0000000000000000000000000000000000000000..1519df8586527dc5ab95b024447eea5bcd2aeb31 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/recommendation_server.py @@ -0,0 +1,173 @@ +#!/usr/bin/python + +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +# Python +import os +import random +from concurrent import futures + +# Pip +import grpc +from opentelemetry import trace, metrics +from opentelemetry._logs import set_logger_provider +from opentelemetry.exporter.otlp.proto.grpc._log_exporter import ( + OTLPLogExporter, +) +from opentelemetry.sdk._logs import LoggerProvider, LoggingHandler +from opentelemetry.sdk._logs.export import BatchLogRecordProcessor +from opentelemetry.sdk.resources import Resource + +from openfeature import api +from openfeature.contrib.provider.flagd import FlagdProvider + +from openfeature.contrib.hook.opentelemetry import TracingHook + +# Local +import logging +import demo_pb2 +import demo_pb2_grpc +from grpc_health.v1 import health_pb2 +from grpc_health.v1 import health_pb2_grpc + +from metrics import ( + init_metrics +) + +cached_ids = [] +first_run = True + +class RecommendationService(demo_pb2_grpc.RecommendationServiceServicer): + def ListRecommendations(self, request, context): + prod_list = get_product_list(request.product_ids) + span = trace.get_current_span() + span.set_attribute("app.products_recommended.count", len(prod_list)) + logger.info(f"Receive ListRecommendations for product ids:{prod_list}") + + # build and return response + response = demo_pb2.ListRecommendationsResponse() + response.product_ids.extend(prod_list) + + # Collect metrics for this service + rec_svc_metrics["app_recommendations_counter"].add(len(prod_list), {'recommendation.type': 'catalog'}) + + return response + + def Check(self, request, context): + return health_pb2.HealthCheckResponse( + status=health_pb2.HealthCheckResponse.SERVING) + + def Watch(self, request, context): + return health_pb2.HealthCheckResponse( + status=health_pb2.HealthCheckResponse.UNIMPLEMENTED) + + +def get_product_list(request_product_ids): + global first_run + global cached_ids + with tracer.start_as_current_span("get_product_list") as span: + max_responses = 5 + + # Formulate the list of characters to list of strings + request_product_ids_str = ''.join(request_product_ids) + request_product_ids = request_product_ids_str.split(',') + + # Feature flag scenario - Cache Leak + if check_feature_flag("recommendationCacheFailure"): + span.set_attribute("app.recommendation.cache_enabled", True) + if random.random() < 0.5 or first_run: + first_run = False + span.set_attribute("app.cache_hit", False) + logger.info("get_product_list: cache miss") + cat_response = product_catalog_stub.GetProduct(demo_pb2.Empty()) + response_ids = [x.id for x in cat_response.products] + cached_ids = cached_ids + response_ids + cached_ids = cached_ids + cached_ids[:len(cached_ids) // 4] + product_ids = cached_ids + else: + span.set_attribute("app.cache_hit", True) + logger.info("get_product_list: cache hit") + product_ids = cached_ids + else: + span.set_attribute("app.recommendation.cache_enabled", False) + cat_response = product_catalog_stub.ListProducts(demo_pb2.Empty()) + product_ids = [x.id for x in cat_response.products] + + span.set_attribute("app.products.count", len(product_ids)) + + # Create a filtered list of products excluding the products received as input + filtered_products = list(set(product_ids) - set(request_product_ids)) + num_products = len(filtered_products) + span.set_attribute("app.filtered_products.count", num_products) + num_return = min(max_responses, num_products) + + # Sample list of indicies to return + indices = random.sample(range(num_products), num_return) + # Fetch product ids from indices + prod_list = [filtered_products[i] for i in indices] + + span.set_attribute("app.filtered_products.list", prod_list) + + return prod_list + + +def must_map_env(key: str): + value = os.environ.get(key) + if value is None: + raise Exception(f'{key} environment variable must be set') + return value + + +def check_feature_flag(flag_name: str): + # Initialize OpenFeature + client = api.get_client() + return client.get_boolean_value("recommendationCacheFailure", False) + + +if __name__ == "__main__": + service_name = must_map_env('OTEL_SERVICE_NAME') + api.set_provider(FlagdProvider(host=os.environ.get('FLAGD_HOST', 'flagd'), port=os.environ.get('FLAGD_PORT', 8013))) + api.add_hooks([TracingHook()]) + + # Initialize Traces and Metrics + tracer = trace.get_tracer_provider().get_tracer(service_name) + meter = metrics.get_meter_provider().get_meter(service_name) + rec_svc_metrics = init_metrics(meter) + + # Initialize Logs + logger_provider = LoggerProvider( + resource=Resource.create( + { + 'service.name': service_name, + } + ), + ) + set_logger_provider(logger_provider) + log_exporter = OTLPLogExporter(insecure=True) + logger_provider.add_log_record_processor(BatchLogRecordProcessor(log_exporter)) + handler = LoggingHandler(level=logging.NOTSET, logger_provider=logger_provider) + + # Attach OTLP handler to logger + logger = logging.getLogger('main') + logger.addHandler(handler) + + catalog_addr = must_map_env('PRODUCT_CATALOG_ADDR') + pc_channel = grpc.insecure_channel(catalog_addr) + product_catalog_stub = demo_pb2_grpc.ProductCatalogServiceStub(pc_channel) + + # Create gRPC server + server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) + + # Add class to gRPC server + service = RecommendationService() + demo_pb2_grpc.add_RecommendationServiceServicer_to_server(service, server) + health_pb2_grpc.add_HealthServicer_to_server(service, server) + + # Start server + port = must_map_env('RECOMMENDATION_PORT') + server.add_insecure_port(f'[::]:{port}') + server.start() + logger.info(f'Recommendation service started, listening on port {port}') + server.wait_for_termination() diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/requirements.txt b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..66b67fc31382e4af8125aa3455b5473a0abfb0a4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/recommendation/requirements.txt @@ -0,0 +1,8 @@ +grpcio-health-checking==1.71.0 +openfeature-hooks-opentelemetry==0.3.0 +openfeature-provider-flagd==0.2.3 +opentelemetry-distro==0.60b1 +opentelemetry-exporter-otlp-proto-grpc==1.39.1 +psutil==7.0.0 # Importing this will also import opentelemetry-instrumentation-system-metrics when running opentelemetry-bootstrap +python-dotenv==1.2.1 +python-json-logger==4.0.0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/.dockerignore b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..342ee837ac13855defb5b0c672be739d1ec1789f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/.dockerignore @@ -0,0 +1,2 @@ +target/ +Dockerfile diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.lock b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.lock new file mode 100644 index 0000000000000000000000000000000000000000..679c9d1d725ef33c25c1e5f3e6910b57e60f94ff --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.lock @@ -0,0 +1,2421 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "actix-codec" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7b0a21988c1bf877cf4759ef5ddaac04c1c9fe808c9142ecb78ba97d97a28a" +dependencies = [ + "bitflags", + "bytes", + "futures-core", + "futures-sink", + "memchr", + "pin-project-lite", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "actix-http" +version = "3.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7926860314cbe2fb5d1f13731e387ab43bd32bca224e82e6e2db85de0a3dba49" +dependencies = [ + "actix-codec", + "actix-rt", + "actix-service", + "actix-utils", + "base64", + "bitflags", + "brotli", + "bytes", + "bytestring", + "derive_more", + "encoding_rs", + "flate2", + "foldhash", + "futures-core", + "h2 0.3.27", + "http 0.2.12", + "httparse", + "httpdate", + "itoa", + "language-tags", + "local-channel", + "mime", + "percent-encoding", + "pin-project-lite", + "rand", + "sha1", + "smallvec", + "tokio", + "tokio-util", + "tracing", + "zstd", +] + +[[package]] +name = "actix-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "actix-router" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13d324164c51f63867b57e73ba5936ea151b8a41a1d23d1031eeb9f70d0236f8" +dependencies = [ + "bytestring", + "cfg-if", + "http 0.2.12", + "regex", + "regex-lite", + "serde", + "tracing", +] + +[[package]] +name = "actix-rt" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92589714878ca59a7626ea19734f0e07a6a875197eec751bb5d3f99e64998c63" +dependencies = [ + "futures-core", + "tokio", +] + +[[package]] +name = "actix-server" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a65064ea4a457eaf07f2fba30b4c695bf43b721790e9530d26cb6f9019ff7502" +dependencies = [ + "actix-rt", + "actix-service", + "actix-utils", + "futures-core", + "futures-util", + "mio", + "socket2 0.5.10", + "tokio", + "tracing", +] + +[[package]] +name = "actix-service" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e46f36bf0e5af44bdc4bdb36fbbd421aa98c79a9bce724e1edeb3894e10dc7f" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "actix-tls" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6176099de3f58fbddac916a7f8c6db297e021d706e7a6b99947785fee14abe9f" +dependencies = [ + "actix-rt", + "actix-service", + "actix-utils", + "futures-core", + "http 0.2.12", + "http 1.3.1", + "impl-more", + "pin-project-lite", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "actix-utils" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a1dcdff1466e3c2488e1cb5c36a71822750ad43839937f85d2f4d9f8b705d8" +dependencies = [ + "local-waker", + "pin-project-lite", +] + +[[package]] +name = "actix-web" +version = "4.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1654a77ba142e37f049637a3e5685f864514af11fcbc51cb51eb6596afe5b8d6" +dependencies = [ + "actix-codec", + "actix-http", + "actix-macros", + "actix-router", + "actix-rt", + "actix-server", + "actix-service", + "actix-utils", + "actix-web-codegen", + "bytes", + "bytestring", + "cfg-if", + "cookie", + "derive_more", + "encoding_rs", + "foldhash", + "futures-core", + "futures-util", + "impl-more", + "itoa", + "language-tags", + "log", + "mime", + "once_cell", + "pin-project-lite", + "regex", + "regex-lite", + "serde", + "serde_json", + "serde_urlencoded", + "smallvec", + "socket2 0.6.1", + "time", + "tracing", + "url", +] + +[[package]] +name = "actix-web-codegen" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f591380e2e68490b5dfaf1dd1aa0ebe78d84ba7067078512b4ea6e4492d622b8" +dependencies = [ + "actix-router", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "awc" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c170039c11c7f6c0a28f7b3bd4fb0c674cbfa317fabc1560022ad3ec2d69e7c" +dependencies = [ + "actix-codec", + "actix-http", + "actix-rt", + "actix-service", + "actix-tls", + "actix-utils", + "base64", + "bytes", + "cfg-if", + "derive_more", + "futures-core", + "futures-util", + "h2 0.3.27", + "http 0.2.12", + "itoa", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "rand", + "serde", + "serde_json", + "serde_urlencoded", + "tokio", +] + +[[package]] +name = "axum" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b098575ebe77cb6d14fc7f32749631a6e44edbef6b796f89b020e99ba20d425" +dependencies = [ + "axum-core", + "bytes", + "futures-util", + "http 1.3.1", + "http-body", + "http-body-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "sync_wrapper", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "axum-core" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59446ce19cd142f8833f856eb31f3eb097812d1479ab224f54d72428ca21ea22" +dependencies = [ + "bytes", + "futures-core", + "http 1.3.1", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bumpalo" +version = "3.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" + +[[package]] +name = "bytes" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" + +[[package]] +name = "bytestring" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "113b4343b5f6617e7ad401ced8de3cc8b012e73a594347c307b90db3e9271289" +dependencies = [ + "bytes", +] + +[[package]] +name = "cc" +version = "1.2.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97463e1064cb1b1c1384ad0a0b9c8abd0988e2a91f52606c80ef14aadb63e36" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cookie" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb" +dependencies = [ + "percent-encoding", + "time", + "version_check", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "deranged" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "derive_more" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "unicode-xid", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "find-msvc-tools" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844" + +[[package]] +name = "flate2" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", +] + +[[package]] +name = "h2" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 0.2.12", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "h2" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http 1.3.1", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d" + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http 1.3.1", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http 1.3.1", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2 0.4.12", + "http 1.3.1", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52e9a2a24dc5c6821e71a7030e1e14b7b632acac55c40e9d2e082c621261bb56" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http 1.3.1", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2 0.6.1", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "impl-more" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a5a9a0ff0086c7a148acb942baaabeadf9504d10400b5a05645853729b9cd2" + +[[package]] +name = "indexmap" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f867b9d1d896b67beb18518eda36fdb77a32ea590de864f1325b294a6d14397" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.82" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "language-tags" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.177" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "local-channel" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6cbc85e69b8df4b8bb8b89ec634e7189099cea8927a276b7384ce5488e53ec8" +dependencies = [ + "futures-core", + "futures-sink", + "local-waker", +] + +[[package]] +name = "local-waker" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d873d7c67ce09b42110d801813efbc9364414e356be9935700d368351657487" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "memchr" +version = "2.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69d83b0086dc8ecf3ce9ae2874b2d1290252e2a30720bea58a5c6639b0092873" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "opentelemetry" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b84bcd6ae87133e903af7ef497404dda70c60d0ea14895fc8a5e6722754fc2a0" +dependencies = [ + "futures-core", + "futures-sink", + "js-sys", + "pin-project-lite", + "thiserror", + "tracing", +] + +[[package]] +name = "opentelemetry-appender-tracing" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef6a1ac5ca3accf562b8c306fa8483c85f4390f768185ab775f242f7fe8fdcc2" +dependencies = [ + "opentelemetry", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "opentelemetry-http" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a6d09a73194e6b66df7c8f1b680f156d916a1a942abf2de06823dd02b7855d" +dependencies = [ + "async-trait", + "bytes", + "http 1.3.1", + "opentelemetry", + "reqwest", +] + +[[package]] +name = "opentelemetry-instrumentation-actix-web" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "936e41b4ed3365bae2a4a9216f52d3fb9ad30e848dde33ed229c8c454ccba31d" +dependencies = [ + "actix-http", + "actix-web", + "awc", + "futures-util", + "opentelemetry", + "opentelemetry-semantic-conventions", + "serde", +] + +[[package]] +name = "opentelemetry-otlp" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2366db2dca4d2ad033cad11e6ee42844fd727007af5ad04a1730f4cb8163bf" +dependencies = [ + "http 1.3.1", + "opentelemetry", + "opentelemetry-http", + "opentelemetry-proto", + "opentelemetry_sdk", + "prost", + "reqwest", + "thiserror", + "tokio", + "tonic", + "tracing", +] + +[[package]] +name = "opentelemetry-proto" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7175df06de5eaee9909d4805a3d07e28bb752c34cab57fa9cff549da596b30f" +dependencies = [ + "opentelemetry", + "opentelemetry_sdk", + "prost", + "tonic", + "tonic-prost", +] + +[[package]] +name = "opentelemetry-resource-detectors" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e82845106cf72d47c141cee7f0d95e0650d8f28c6222a1f1ae727a8883899c19" +dependencies = [ + "opentelemetry", + "opentelemetry-semantic-conventions", + "opentelemetry_sdk", +] + +[[package]] +name = "opentelemetry-semantic-conventions" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e62e29dfe041afb8ed2a6c9737ab57db4907285d999ef8ad3a59092a36bdc846" + +[[package]] +name = "opentelemetry_sdk" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ae4f5991976fd48df6d843de219ca6d31b01daaab2dad5af2badeded372bd" +dependencies = [ + "futures-channel", + "futures-executor", + "futures-util", + "opentelemetry", + "percent-encoding", + "rand", + "thiserror", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prost" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7231bd9b3d3d33c86b58adbac74b5ec0ad9f496b19d22801d773636feaa95f3d" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-derive" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9120690fafc389a67ba3803df527d0ec9cbbc9cc45e4cc20b332996dfb672425" +dependencies = [ + "anyhow", + "itertools", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "quote" +version = "1.0.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-lite" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d942b98df5e658f56f20d592c7f868833fe38115e65c33003d8cd224b0155da" + +[[package]] +name = "regex-syntax" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" + +[[package]] +name = "reqwest" +version = "0.12.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http 1.3.1", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.145" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shipping" +version = "0.0.0" +dependencies = [ + "actix-web", + "anyhow", + "awc", + "opentelemetry", + "opentelemetry-appender-tracing", + "opentelemetry-instrumentation-actix-web", + "opentelemetry-otlp", + "opentelemetry-resource-detectors", + "opentelemetry_sdk", + "serde", + "tonic", + "tracing", + "tracing-subscriber", + "uuid", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" +dependencies = [ + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + +[[package]] +name = "slab" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "socket2" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "syn" +version = "2.0.110" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" + +[[package]] +name = "time-macros" +version = "0.2.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2 0.6.1", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-stream" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2efa149fe76073d6e8fd97ef4f4eca7b67f599660115591483572e406e165594" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tonic" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb7613188ce9f7df5bfe185db26c5814347d110db17920415cf2fbcad85e7203" +dependencies = [ + "async-trait", + "axum", + "base64", + "bytes", + "h2 0.4.12", + "http 1.3.1", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "socket2 0.6.1", + "sync_wrapper", + "tokio", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-prost" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66bd50ad6ce1252d87ef024b3d64fe4c3cf54a86fb9ef4c631fdd0ded7aeaa67" +dependencies = [ + "bytes", + "prost", + "tonic", +] + +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "indexmap", + "pin-project-lite", + "slab", + "sync_wrapper", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http 1.3.1", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "unicode-ident" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e054861b4bd027cd373e18e8d8d8e6548085000e41290d95ce0c373a654b4a" +dependencies = [ + "getrandom", + "js-sys", + "rand", + "uuid-macro-internal", + "wasm-bindgen", +] + +[[package]] +name = "uuid-macro-internal" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39d11901c36b3650df7acb0f9ebe624f35b5ac4e1922ecd3c57f444648429594" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.1+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "551f88106c6d5e7ccc7cd9a16f312dd3b5d36ea8b4954304657d5dfba115d4a0" +dependencies = [ + "cfg-if", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.82" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "wit-bindgen" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.16+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.toml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.toml new file mode 100644 index 0000000000000000000000000000000000000000..a07321e1e403029fa0959b845cce9518f9d174a6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "shipping" +edition = "2021" + +[[bin]] +name = "shipping" +path = "src/main.rs" + +[dependencies] +actix-web = "4" +anyhow = "1.0.100" +awc = { version = "3.8.1", default-features = false, features = ["compress-zstd"] } +serde = { version = "1.0.228", features = ["derive"] } +tonic = "0.14.2" +tracing = "0.1.44" +tracing-subscriber = { version = "0.3.22", features = ["env-filter"] } + +opentelemetry = "0.31.0" +opentelemetry_sdk = "0.31.0" +opentelemetry-otlp = { version = "0.31.0", features = ["grpc-tonic"] } +opentelemetry-instrumentation-actix-web = { version = "0.23.0", features = ["sync-middleware", "awc", "metrics"] } +opentelemetry-appender-tracing = "0.31.1" +opentelemetry-resource-detectors = "0.10.0" + +[dependencies.uuid] +version = "1.19.0" +features = [ + "v4", # Lets you generate random UUIDs + "fast-rng", # Use a faster (but still sufficiently random) RNG + "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs +] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b4a198d7134a3733e47fd71469f0b6bcb97a28a6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/Dockerfile @@ -0,0 +1,45 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM --platform=${BUILDPLATFORM} docker.io/library/rust:1.91 AS builder +ARG TARGETARCH +ARG TARGETPLATFORM +ARG BUILDPLATFORM + +RUN echo Building on ${BUILDPLATFORM} for ${TARGETPLATFORM} + +# Install dependencies - cross-compilation setup for ARM64, native otherwise +RUN apt-get update && \ + if [ "${TARGETPLATFORM}" = "linux/arm64" ] && [ "${BUILDPLATFORM}" != "linux/arm64" ] ; then \ + apt-get install --no-install-recommends -y g++-aarch64-linux-gnu libc6-dev-arm64-cross libprotobuf-dev protobuf-compiler ca-certificates && \ + rustup target add aarch64-unknown-linux-gnu; \ + else \ + apt-get install --no-install-recommends -y g++ libc6-dev libprotobuf-dev protobuf-compiler ca-certificates; \ + fi + +WORKDIR /app/ + +COPY /src/shipping/ /app/ + +# Build - cross-compile for ARM64 or native build +RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ] && [ "${BUILDPLATFORM}" != "linux/arm64" ] ; then \ + env CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ + CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \ + CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ \ + cargo build -r --target aarch64-unknown-linux-gnu && \ + cp /app/target/aarch64-unknown-linux-gnu/release/shipping /app/target/release/shipping; \ + else \ + cargo build -r; \ + fi + + +FROM gcr.io/distroless/cc-debian13:nonroot + +WORKDIR /app + +COPY --from=builder /app/target/release/shipping shipping + +EXPOSE ${SHIPPING_PORT} + +CMD ["./shipping"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/README.md b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/README.md new file mode 100644 index 0000000000000000000000000000000000000000..915a78aba389bbe80cc1ddc37b14a8cb5dcfa9d6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/src/shipping/README.md @@ -0,0 +1,23 @@ +# Shipping Service + +The Shipping service queries `quote` for price quote, provides tracking IDs, +and the impression of order fulfillment & shipping processes. + +## Local + +This repo assumes you have rust 1.82 installed. You may use docker, or +[install rust](https://www.rust-lang.org/tools/install). + +## Build + +From `../../`, run: + +```sh +docker compose build shipping +``` + +## Test + +```sh +cargo test +``` diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/Dockerfile b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a76dea5d52a11f004a40b5b275ba262a6be42b0e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/Dockerfile @@ -0,0 +1,17 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM alpine + +WORKDIR /app + +# The build-images workflow action does not set a build-arg so we need to specify a default value here +ARG TRACETEST_IMAGE_VERSION + +RUN apk --update add bash jq curl +RUN curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash -s -- $TRACETEST_IMAGE_VERSION + +WORKDIR /app/test/tracetesting + +ENTRYPOINT ["/bin/bash", "/app/test/tracetesting/run.bash"] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e57c232224a66c2dee8f772dde43b960b5e113fd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/all.yaml @@ -0,0 +1,10 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: ad-all + name: 'Ad Service' + description: Run all Ad Service tests enabled in sequence + steps: + - ./get.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/get.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/get.yaml new file mode 100644 index 0000000000000000000000000000000000000000..65b0f07f303f344d58ef62107cccce8bb7e3108b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/ad/get.yaml @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: ad-get-ads + name: 'Ad: get' + description: Get Ads from API + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:AD_ADDR} + method: oteldemo.AdService.GetAds + request: |- + { + "contextKeys": [ "galaxy", "telescope" ] + } + specs: + - name: It returns two ads + selector: span[tracetest.span.type="rpc" name="oteldemo.AdService/GetAds" rpc.system="grpc" rpc.method="GetAds" rpc.service="oteldemo.AdService"] + assertions: + - attr:app.ads.count = 2 + - name: It returns a valid redirectUrl for each ads + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.ads[0].redirectUrl' contains "/product/" + - attr:tracetest.response.body | json_path '$.ads[1].redirectUrl' contains "/product/" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/add-item-to-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/add-item-to-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c42b1f21df95d32d67e2413cc7c8653d6cdce8c0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/add-item-to-cart.yaml @@ -0,0 +1,35 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: cart-add-item-to-cart + name: 'Cart: add item to cart' + description: Add one item to the shopping cart + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CART_ADDR} + method: oteldemo.CartService.AddItem + request: |- + { + "userId": "1234", + "item": { + "productId": "OLJCESPC7Z", + "quantity": 1 + } + } + specs: + - name: It added an item correctly into the shopping cart + selector: span[name="POST /oteldemo.CartService/AddItem"] + assertions: + - attr:grpc.status_code = 0 + - name: It set the cart item correctly on the database + selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"] + assertions: + - attr:db.statement = "HMSET 1234" + - name: It returned an empty cart + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - "attr:tracetest.response.body = '{\n \n}'" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..03ee4e55d725bcb62474b99060f3a3dd4b3138c7 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/all.yaml @@ -0,0 +1,14 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: cart-all + name: 'Cart Service' + description: Run all Cart tests enabled in sequence + steps: + - ./empty-cart.yaml + - ./add-item-to-cart.yaml + - ./check-if-cart-is-populated.yaml + - ./empty-cart.yaml + - ./check-if-cart-is-empty.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-empty.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-empty.yaml new file mode 100644 index 0000000000000000000000000000000000000000..de9f409b5d6315e0596eadfe033f23e4f36d9465 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-empty.yaml @@ -0,0 +1,27 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: cart-check-if-cart-is-empty + name: 'Cart: check if cart is empty' + description: Check if the shopping cart has no items + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CART_ADDR} + method: oteldemo.CartService.GetCart + request: |- + { + "userId": "1234" + } + specs: + - name: It retrieved the cart items correctly + selector: span[name="POST /oteldemo.CartService/GetCart"] + assertions: + - attr:grpc.status_code = 0 + - name: It returned no items + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.items' = "[]" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-populated.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-populated.yaml new file mode 100644 index 0000000000000000000000000000000000000000..db753c1e337ee87db7968114ccfed130e6c938f4 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/check-if-cart-is-populated.yaml @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: cart-check-if-cart-is-populated + name: 'Cart: check if cart is populated' + description: Check if the shopping cart has one item + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CART_ADDR} + method: oteldemo.CartService.GetCart + request: |- + { + "userId": "1234" + } + specs: + - name: It retrieved the cart items correctly + selector: span[name="POST /oteldemo.CartService/GetCart"] + assertions: + - attr:grpc.status_code = 0 + - name: It returned the first item with correct attributes + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.items[0].quantity' = 1 + - attr:tracetest.response.body | json_path '$.items[0].productId' = "OLJCESPC7Z" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/empty-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/empty-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc970748584e2819d9ec55ec87ccf3cf3be850db --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cart/empty-cart.yaml @@ -0,0 +1,27 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: cart-empty-cart + name: 'Cart: empty cart' + description: Clean shopping cart + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CART_ADDR} + method: oteldemo.CartService.EmptyCart + request: |- + { + "userId": "1234" + } + specs: + - name: It emptied the shopping cart with success + selector: span[name="POST /oteldemo.CartService/EmptyCart"] + assertions: + - attr:grpc.status_code = 0 + - name: It sent cleaning message to the database + selector: span[tracetest.span.type="database" name="EXPIRE" db.system="redis" db.redis.database_index="0"] + assertions: + - attr:db.statement = "EXPIRE 1234" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/add-item-to-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/add-item-to-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f73d8c772a52b6f5cade27993221c888e373310a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/add-item-to-cart.yaml @@ -0,0 +1,27 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: checkout-add-item-to-cart + name: 'Checkout: add item to cart' + description: Add items to the shopping cart before placing an order + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CART_ADDR} + method: oteldemo.CartService.AddItem + request: |- + { + "userId": "1997", + "item": { + "productId": "66VCHSJNUP", + "quantity": 2 + } + } + specs: + - name: It added an item correctly into the shopping cart + selector: span[name="POST /oteldemo.CartService/AddItem"] + assertions: + - attr:grpc.status_code = 0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dd244c589426fe9db54d73ae413e60a32f0c3811 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/all.yaml @@ -0,0 +1,11 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: checkout-all + name: 'Checkout Service' + description: Run all Checkout Service tests enabled in sequence + steps: + - ./add-item-to-cart.yaml + - ./place-order.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/place-order.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/place-order.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ce642e2f38390147fb165bdefa6fcfebcdec8977 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/checkout/place-order.yaml @@ -0,0 +1,50 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: checkout-place-order + name: 'Checkout: place order' + description: Place one order on the system + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CHECKOUT_ADDR} + method: oteldemo.CheckoutService.PlaceOrder + request: |- + { + "userId": "1997", + "userCurrency": "USD", + "address": { + "streetAddress": "410 Terry Ave. North", + "city": "Seattle", + "state": "Washington", + "country": "United States", + "zipCode": "98109" + }, + "email": "amazon@example.com", + "creditCard": { + "creditCardNumber": "4117-7059-6121-5486", + "creditCardCvv": 346, + "creditCardExpirationYear": 2030, + "creditCardExpirationMonth": 3 + } + } + specs: + - name: It returns a valid order + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.order.orderId' != "" + - attr:tracetest.response.body | json_path '$.order.shippingTrackingId' != "" + - attr:tracetest.response.body | json_path '$.order.shippingAddress' != "{}" + - attr:tracetest.response.body | json_path '$.order.shippingCost.currencyCode' = "USD" + - name: It calls the PlaceOrder method successfuly + selector: span[tracetest.span.type="rpc" name="oteldemo.CheckoutService/PlaceOrder" + rpc.system="grpc" rpc.method="PlaceOrder" rpc.service="oteldemo.CheckoutService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - name: It sends an order to be processed asyncronously + selector: span[tracetest.span.type="messaging" name="orders publish" kind="producer" messaging.system="kafka" messaging.destination.name="orders" messaging.operation="publish"] + assertions: + - attr:messaging.destination.name = "orders" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cli-config.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cli-config.yml new file mode 100644 index 0000000000000000000000000000000000000000..9cd26732c721423fdde48305032acfaa5eca9744 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/cli-config.yml @@ -0,0 +1,6 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +scheme: http +endpoint: tracetest-server:11633 +analyticsEnabled: false diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2f30f4f526ece8c1fc66b052e24bc320cfde1d67 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/all.yaml @@ -0,0 +1,11 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: currency-all + name: 'Currency Service' + description: Run all Currency Service tests enabled in sequence + steps: + - ./convert.yaml + - ./supported.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/convert.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/convert.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ddae749e36d705e5a462d68b3b1165fed4fdea8d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/convert.yaml @@ -0,0 +1,34 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: currency-convert + name: 'Currency: Convert' + description: Convert a currency + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CURRENCY_ADDR} + method: oteldemo.CurrencyService.Convert + request: |- + { + "from": { + "currencyCode": "USD", + "units": 330, + "nanos": 750000000 + }, + "toCode": "CAD" + } + specs: + - name: It converts from USD to CAD + selector: span[tracetest.span.type="rpc" name="Currency/Convert" rpc.system="grpc" + rpc.method="Convert" rpc.service="oteldemo.CurrencyService"] + assertions: + - attr:app.currency.conversion.from = "USD" + - attr:app.currency.conversion.to = "CAD" + - name: It has more nanos than expected + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body| json_path '$.nanos' >= 599380800 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/supported.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/supported.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9959e49679a4b47ece65bed9d760ff3f4d201a69 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/currency/supported.yaml @@ -0,0 +1,25 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: currency-supported + name: 'Currency: Supported' + description: Get all supported currencies + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:CURRENCY_ADDR} + method: oteldemo.CurrencyService.GetSupportedCurrencies + specs: + - name: It has a span called "Currency/GetSupportedCurrencies" + selector: span[tracetest.span.type="rpc" name="Currency/GetSupportedCurrencies" + rpc.system="grpc" rpc.method="GetSupportedCurrencies" rpc.service="oteldemo.CurrencyService"] + assertions: + - attr:name = "Currency/GetSupportedCurrencies" + - name: It returns the expected currency codes + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.currencyCodes[0]' = "ZAR" + - attr:tracetest.response.body | json_path '$.currencyCodes[32]' = "MYR" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..517ca65e69a2d2ef875e1994289faacb043be385 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/all.yaml @@ -0,0 +1,10 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: email-all + name: 'Email' + description: Run all Email tests enabled in sequence + steps: + - ./confirmation.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/confirmation.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/confirmation.yaml new file mode 100644 index 0000000000000000000000000000000000000000..96c561efbce90391a1f822baf11572983dd66dd9 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/email/confirmation.yaml @@ -0,0 +1,62 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: email-confirmation + name: 'Email: Confirmation' + description: Send an order confirmation email + trigger: + type: http + httpRequest: + url: ${var:EMAIL_ADDR}/send_order_confirmation + method: POST + headers: + - key: Content-Type + value: application/json + body: | + { + "email": "google@example.com", + "order": { + "order_id": "505", + "shipping_tracking_id": "dead-beef", + "shipping_cost": { + "currency_code": "USD", + "units": 17, + "nanos": 980000000 + }, + "shipping_address": { + "street_address_1": "1600 Amphitheatre Parkway", + "city": "Mountain View", + "state": "California", + "country": "United States", + "zip_code": "94043" + }, + "items": [ + { + "item": { + "product_id": "1YMWWN1N4O", + "quantity": 5 + }, + "cost": { + "currency_code": "USD", + "units": 100, + "nanos": 0 + } + } + ] + } + } + specs: + - name: It should be called successfully + selector: span[tracetest.span.type="http" name="POST /send_order_confirmation" http.method="POST"] + assertions: + - attr:http.status_code = 200 + - name: It should render a email to send + selector: span[tracetest.span.type="general" name="sinatra.render_template"] + assertions: + - attr:name = "sinatra.render_template" + - name: It should send an email + selector: span[tracetest.span.type="general" name="send_email"] + assertions: + - attr:name = "send_email" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/01-see-ads.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/01-see-ads.yaml new file mode 100644 index 0000000000000000000000000000000000000000..698a6dfb92a79c0f32caaab11b0ba5bd3bb34be1 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/01-see-ads.yaml @@ -0,0 +1,35 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-see-adds + name: 'Frontend: See Ads' + description: Simulate the user seeing a ads on Astronomy Shop + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/data + method: GET + headers: + - key: Content-Type + value: application/json + body: | + { + "contextKeys": [ + "binoculars", + "telescopes", + "accessories" + ] + } + specs: + - name: It called the frontend with success and got a valid redirectUrl for each ads + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - attr:tracetest.response.body | json_path '$[0].redirectUrl' contains "/product/" + - attr:tracetest.response.body | json_path '$[1].redirectUrl' contains "/product/" + - name: It returns two ads + selector: span[tracetest.span.type="rpc" name="oteldemo.AdService/GetAds" rpc.system="grpc" rpc.method="GetAds" rpc.service="oteldemo.AdService"] + assertions: + - attr:app.ads.count = 2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/02-get-product-recommendation.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/02-get-product-recommendation.yaml new file mode 100644 index 0000000000000000000000000000000000000000..78569c3162d517bd219079f85fe9264c114684bf --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/02-get-product-recommendation.yaml @@ -0,0 +1,36 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-get-recommendation + name: 'Frontend: Get recommendations' + description: Simulate the user seeing recomendations on Astronomy Shop + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/recommendations + method: GET + headers: + - key: Content-Type + value: application/json + body: | + { + "productIds":[ + "0PUK6V6EV0", + "1YMWWN1N4O", + "2ZYFJ3GM2N", + "66VCHSJNUP", + "6E92ZMYYFZ" + ] + } + specs: + - name: It called the frontend with success + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - name: It called ListRecommendations correctly and got 5 products + selector: span[tracetest.span.type="rpc" name="/oteldemo.RecommendationService/ListRecommendations" rpc.system="grpc" rpc.method="ListRecommendations" rpc.service="oteldemo.RecommendationService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:app.products_recommended.count = 5 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/03-browse-product.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/03-browse-product.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d13fdfa4a3a63e5e18be094556716bb4ae1882a --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/03-browse-product.yaml @@ -0,0 +1,31 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-browse-product + name: 'Frontend: Browse products' + description: Simulate the user browsing products on Astronomy Shop + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/products/0PUK6V6EV0 + method: GET + headers: + - key: Content-Type + value: application/json + specs: + - name: It called the frontend with success and got a product with valid attributes + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - attr:tracetest.response.body | json_path '$.id' = "0PUK6V6EV0" + - attr:tracetest.response.body | json_path '$.description' != "" + - attr:tracetest.response.body | json_path '$.picture' != "" + - attr:tracetest.response.body | json_path '$.priceUsd' != "{}" + - attr:tracetest.response.body | json_path '$.categories' != "[]" + - name: It queried the product catalog correctly for a specific product + selector: span[tracetest.span.type="rpc" name="oteldemo.ProductCatalogService/GetProduct" rpc.system="grpc" rpc.method="GetProduct" rpc.service="oteldemo.ProductCatalogService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:app.product.id = "0PUK6V6EV0" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/04-add-product-to-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/04-add-product-to-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3f70cc67741f2cdb225e4c519a108727aa789d48 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/04-add-product-to-cart.yaml @@ -0,0 +1,38 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-add-product + name: 'Frontend: Add product to the cart' + description: Simulate a user adding a selected product to the shopping cart + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/cart + method: POST + headers: + - key: Content-Type + value: application/json + body: | + { + "item": { + "productId": "0PUK6V6EV0", + "quantity": 2 + }, + "userId": "2491f868-88f1-4345-8836-d5d8511a9f83" + } + specs: + - name: It called the frontend with success + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - name: It added an item correctly into the shopping cart + selector: span[name="POST /oteldemo.CartService/AddItem"] + assertions: + - attr:grpc.status_code = 0 + - attr:app.product.id = "0PUK6V6EV0" + - name: It set the cart item correctly on the database + selector: span[tracetest.span.type="database" name="HMSET" db.system="redis" db.redis.database_index="0"] + assertions: + - attr:db.statement = "HMSET 2491f868-88f1-4345-8836-d5d8511a9f83" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/05-view-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/05-view-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..68f8f06985aca11f02833095caafd338fe1225fd --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/05-view-cart.yaml @@ -0,0 +1,25 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-view-cart + name: 'Frontend: View cart' + description: Simulate a user viewing the shopping cart + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/cart?userId=2491f868-88f1-4345-8836-d5d8511a9f83 + method: GET + headers: + - key: Content-Type + value: application/json + specs: + - name: It called the frontend with success + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - name: It retrieved the cart items correctly + selector: span[name="POST /oteldemo.CartService/GetCart"] + assertions: + - attr:grpc.status_code = 0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/06-checking-out-cart.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/06-checking-out-cart.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a72d5a147494dff694e1d00a6c770244b5a2b9c6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/06-checking-out-cart.yaml @@ -0,0 +1,63 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: frontend-checkout-shopping-cart + name: 'Frontend: Checking out shopping cart' + description: Simulate user checking out shopping cart + trigger: + type: http + httpRequest: + url: http://${var:FRONTEND_ADDR}/api/checkout + method: POST + headers: + - key: Content-Type + value: application/json + body: | + { + "userId": "2491f868-88f1-4345-8836-d5d8511a9f83", + "email": "someone@example.com", + "address": { + "streetAddress": "1600 Amphitheatre Parkway", + "state": "CA", + "country": "United States", + "city": "Mountain View", + "zipCode": "94043" + }, + "userCurrency": "USD", + "creditCard": { + "creditCardCvv": 672, + "creditCardExpirationMonth": 1, + "creditCardExpirationYear": 2030, + "creditCardNumber": "4432-8015-6152-0454" + } + } + specs: + - name: It called the frontend with success + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - name: "The order was placed" + selector: span[tracetest.span.type="rpc" name="oteldemo.CheckoutService/PlaceOrder" rpc.system="grpc" rpc.method="PlaceOrder" rpc.service="oteldemo.CheckoutService"] + assertions: + - attr:app.user.id = "2491f868-88f1-4345-8836-d5d8511a9f83" + - attr:app.order.items.count = 1 + - name: "The user was charged" + selector: span[tracetest.span.type="rpc" name="oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:tracetest.selected_spans.count >= 1 + - name: "The product was shipped" + selector: span[tracetest.span.type="http" name="/ship-order"] + assertions: + - attr:http.response.status_code = 200 + - name: "The cart was emptied" + selector: span[tracetest.span.type="rpc" name="oteldemo.CartService/EmptyCart" rpc.system="grpc" rpc.method="EmptyCart" rpc.service="oteldemo.CartService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:tracetest.selected_spans.count >= 1 + - name: The order was sent to be processed asyncronously + selector: span[tracetest.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.operation="publish"] + assertions: + - attr:messaging.destination.name = "orders" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d7f1960dcc68fd3a1ce6478f7a7aca17018bf4e6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/frontend/all.yaml @@ -0,0 +1,15 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: frontend-all + name: 'Frontend Service' + description: Run all Frontend tests enabled in sequence, simulating a process of a user purchasing products on Astronomy store + steps: + - ./01-see-ads.yaml + - ./02-get-product-recommendation.yaml + - ./03-browse-product.yaml + - ./04-add-product-to-cart.yaml + - ./05-view-cart.yaml + - ./06-checking-out-cart.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/otelcol-config-tracetest.yml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/otelcol-config-tracetest.yml new file mode 100644 index 0000000000000000000000000000000000000000..5ce06ce1504c04227722d76b3f63ab33577e6330 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/otelcol-config-tracetest.yml @@ -0,0 +1,14 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +exporters: + otlp/tracetest: + endpoint: http://tracetest-server:4317 + tls: + insecure: true + +service: + pipelines: + traces: + processors: [] + exporters: [debug, spanmetrics, otlp/tracetest] diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7d08d894406c320d70a597a1e920c0bd002c54e --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/all.yaml @@ -0,0 +1,13 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: payment-all + name: 'Payment' + description: Run all Payment tests enabled in sequence + steps: + - ./valid-credit-card.yaml + - ./invalid-credit-card.yaml + - ./amex-credit-card-not-allowed.yaml + - ./expired-credit-card.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/amex-credit-card-not-allowed.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/amex-credit-card-not-allowed.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ad88e78856d8226f5ccdd3e7774589fee95f158 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/amex-credit-card-not-allowed.yaml @@ -0,0 +1,37 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: payment-amex-credit-card-not-allowed + name: 'Payment: Amex credit card not allowed' + description: Charge customer with an Amex credit card + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PAYMENT_ADDR} + method: oteldemo.PaymentService.Charge + request: |- + { + "amount": { + "currencyCode": "USD", + "units": 43, + "nanos": 130000000 + }, + "creditCard": { + "creditCardNumber": "3714 496353 98431", + "creditCardCvv": 672, + "creditCardExpirationYear": 2039, + "creditCardExpirationMonth": 1 + } + } + specs: + - name: It should call Charge method and receive a gRPC error + selector: span[tracetest.span.type="rpc" name="grpc.oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + assertions: + - attr:grpc.error_message = "Sorry, we cannot process amex credit cards. Only VISA or MasterCard is accepted." + - name: It should return a return an gRPC error code to the caller + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/expired-credit-card.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/expired-credit-card.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2f9d5d020ee813f603bcfa4fbca835560b68cce --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/expired-credit-card.yaml @@ -0,0 +1,37 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: payment-expired-credit-card + name: 'Payment: expired credit card' + description: Charge customer with an expired credit card + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PAYMENT_ADDR} + method: oteldemo.PaymentService.Charge + request: |- + { + "amount": { + "currencyCode": "USD", + "units": 43, + "nanos": 130000000 + }, + "creditCard": { + "creditCardNumber": "4432-8015-6152-0454", + "creditCardCvv": 672, + "creditCardExpirationYear": 2021, + "creditCardExpirationMonth": 1 + } + } + specs: + - name: It should call Charge method and receive a gRPC error + selector: span[tracetest.span.type="rpc" name="grpc.oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + assertions: + - attr:grpc.error_message = "The credit card (ending 0454) expired on 1/2021." + - name: It should return a return an gRPC error code to the caller + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/invalid-credit-card.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/invalid-credit-card.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ab64de72a4d71432b8d2af614bf58ed35904f5f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/invalid-credit-card.yaml @@ -0,0 +1,37 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: payment-invalid-credit-card + name: 'Payment: invalid credit card' + description: Charge customer with an invalid credit card + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PAYMENT_ADDR} + method: oteldemo.PaymentService.Charge + request: |- + { + "amount": { + "currencyCode": "USD", + "units": 43, + "nanos": 130000000 + }, + "creditCard": { + "creditCardNumber": "0000-0000-0000-0000", + "creditCardCvv": 672, + "creditCardExpirationYear": 2039, + "creditCardExpirationMonth": 1 + } + } + specs: + - name: It should call Charge method and receive a gRPC error + selector: span[tracetest.span.type="rpc" name="grpc.oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + assertions: + - attr:grpc.error_message = "Credit card info is invalid." + - name: It should return a return an gRPC error code to the caller + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 2 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/valid-credit-card.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/valid-credit-card.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3bc7a657cd4281e71425354febfedcf2af2f5f43 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/payment/valid-credit-card.yaml @@ -0,0 +1,39 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: payment-valid-credit-card + name: "Payment: valid credit card" + description: Charge customer with a valid credit card + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PAYMENT_ADDR} + method: oteldemo.PaymentService.Charge + request: |- + { + "amount": { + "currencyCode": "USD", + "units": 43, + "nanos": 130000000 + }, + "creditCard": { + "creditCardNumber": "4432-8015-6152-0454", + "creditCardCvv": 672, + "creditCardExpirationYear": 2039, + "creditCardExpirationMonth": 1 + } + } + specs: + - name: It should call Charge method successfully + selector: span[tracetest.span.type="rpc" name="grpc.oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"] + # instead of returning status_code 0, this service can return 1 depending on timing, but it works as intended + assertions: + # updating assertion to match 0 and 1 + - attr:rpc.grpc.status_code <= 1 + - name: It should return a transaction ID + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.transactionId' != "" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..21f7a12b7a4d475ca56b74b303b27e19809623d0 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/all.yaml @@ -0,0 +1,12 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: product-catalog-all + name: 'Product Catalog' + description: Run all Product Catalog tests enabled in sequence + steps: + - ./list.yaml + - ./get.yaml + - ./search.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/get.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/get.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a1e26c4c3abd873b78eb3c6cdb08cb734f28bee2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/get.yaml @@ -0,0 +1,32 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: product-get + name: 'Product: Get' + description: Get a single product available on product catalog + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PRODUCT_CATALOG_ADDR} + method: oteldemo.ProductCatalogService.GetProduct + request: |- + { + "id": "OLJCESPC7Z" + } + specs: + - name: It queried the product catalog correctly for a specific product + selector: span[tracetest.span.type="rpc" name="oteldemo.ProductCatalogService/GetProduct" rpc.system="grpc" rpc.method="GetProduct" rpc.service="oteldemo.ProductCatalogService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:app.product.id = "OLJCESPC7Z" + - name: It returned a product with valid attributes + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.id' = "OLJCESPC7Z" + - attr:tracetest.response.body | json_path '$.description' != "" + - attr:tracetest.response.body | json_path '$.picture' != "" + - attr:tracetest.response.body | json_path '$.priceUsd' != "{}" + - attr:tracetest.response.body | json_path '$.categories' != "[]" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/list.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/list.yaml new file mode 100644 index 0000000000000000000000000000000000000000..92adadb78e6cd2460ffb5bbe405716d5d2f06492 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/list.yaml @@ -0,0 +1,26 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: product-list + name: 'Product: List' + description: List all products available on product catalog + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PRODUCT_CATALOG_ADDR} + method: oteldemo.ProductCatalogService.ListProducts + request: "" + specs: + - name: It queried the product catalog correctly + selector: span[tracetest.span.type="rpc" name="oteldemo.ProductCatalogService/ListProducts" + rpc.system="grpc" rpc.method="ListProducts" rpc.service="oteldemo.ProductCatalogService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:app.products.count = 10 + - name: It returned products with IDs + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.products[*].id' != "" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/search.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/search.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe211b8e7c1a7aa9bdc5bd9b186847011ebc4df2 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-catalog/search.yaml @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: product-search + name: 'Product: Search' + description: Search for products querying for their names + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PRODUCT_CATALOG_ADDR} + method: oteldemo.ProductCatalogService.SearchProducts + request: |- + { + "query": "Roof Binoculars" + } + specs: + - name: It called SearchProducts correctly and it returned 1 item + selector: span[tracetest.span.type="rpc" name="oteldemo.ProductCatalogService/SearchProducts" rpc.system="grpc" rpc.method="SearchProducts" rpc.service="oteldemo.ProductCatalogService"] + assertions: + - attr:app.products_search.count = 1 + - attr:rpc.grpc.status_code = 0 + - name: It returned the desired product + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.body | json_path '$.results[0].name' = "Roof Binoculars" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..643dc28f22a84bd340c9f7e2aa30d5a2d0316bbc --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/all.yaml @@ -0,0 +1,11 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: product-reviews-all + name: 'Product Review Service' + description: Run all Product Review Service tests enabled in sequence + steps: + - ./reviews.yaml + - ./summary.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/reviews.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/reviews.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b02f5d47b8c838c52af60c5c9a6fdfce1f27d583 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/reviews.yaml @@ -0,0 +1,24 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: product-reviews-get + name: 'Product Reviews: Get product reviews for product' + description: Get all product reviews for the specified product + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PRODUCT_REVIEWS_ADDR} + method: oteldemo.ProductReviewService.GetProductReviews + request: |- + { + "product_id": "L9ECAV7KIM" + } + specs: + - name: It called GetProductReviews correctly and got 5 product reviews + selector: span[name="get_product_reviews"] + assertions: + - attr:app.product.id = "L9ECAV7KIM" + - attr:app.product_reviews.count = 5 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/summary.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/summary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f6428db75a0e85fda6334403ee3f6c3ee971c520 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/product-reviews/summary.yaml @@ -0,0 +1,24 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: product-review-summary + name: 'Product Review Summary: Get a summary of the product reviews for product' + description: Get a summary of product reviews for the specified product + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:PRODUCT_REVIEWS_ADDR} + method: oteldemo.ProductReviewService.GetAverageProductReviewScore + request: |- + { + "product_id": "66VCHSJNUP" + } + specs: + - name: It called GetAverageProductReviewScore correctly and got the average score + selector: span[name="get_average_product_review_score"] + assertions: + - attr:app.product.id = "66VCHSJNUP" + - attr:app.product_reviews.average_score = 4.6 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bfc43119d32715eb679010836b9fb6c257b584b6 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/all.yaml @@ -0,0 +1,10 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: recommendation-all + name: 'Recommendation Service' + description: Run all Recommendation Service tests enabled in sequence + steps: + - ./list.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/list.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/list.yaml new file mode 100644 index 0000000000000000000000000000000000000000..177628ec7e14a78ecfe197a1a8d02e321a59cead --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/recommendation/list.yaml @@ -0,0 +1,25 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: recommendation-list + name: 'Recommendation: List products' + description: List all products recommended to an user + trigger: + type: grpc + grpc: + protobufFile: ../../../pb/demo.proto + address: ${var:RECOMMENDATION_ADDR} + method: oteldemo.RecommendationService.ListRecommendations + request: |- + { + "userId": "1234", + "productIds": [ "OLJCESPC7Z", "66VCHSJNUP", "1YMWWN1N4O", "L9ECAV7KIM", "2ZYFJ3GM2N" ] + } + specs: + - name: It called ListRecommendations correctly and got 5 products + selector: span[tracetest.span.type="rpc" name="/oteldemo.RecommendationService/ListRecommendations" rpc.system="grpc" rpc.method="ListRecommendations" rpc.service="oteldemo.RecommendationService"] + assertions: + - attr:rpc.grpc.status_code = 0 + - attr:app.products_recommended.count = 5 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/run.bash b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/run.bash new file mode 100644 index 0000000000000000000000000000000000000000..ef4e15a343c06764b45a45f4a9ec810c190bcc8d --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/run.bash @@ -0,0 +1,112 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +#/bin/bash + +# This script set up how to run Tracetest and which test files +# be executed + +set -e + +# Availalble services to test +ALL_SERVICES=("ad" "cart" "currency" "checkout" "frontend" "email" "payment" "product-catalog" "product-reviews" "recommendation" "shipping") + +## Script variables +# Will contain the list of services to test +chosen_services=() +# Array to hold process IDs +pids=() +# Array to hold exit codes +exit_codes=() + +## Script functions +check_if_tracetest_is_installed() { + if ! command -v tracetest &> /dev/null + then + echo "tracetest CLI could not be found" + exit -1 + fi +} + +create_env_file() { + cat << EOF > tracetesting-vars.yaml +type: VariableSet +spec: + id: tracetesting-vars + name: tracetesting-vars + values: + - key: AD_ADDR + value: $AD_ADDR + - key: CART_ADDR + value: $CART_ADDR + - key: CHECKOUT_ADDR + value: $CHECKOUT_ADDR + - key: CURRENCY_ADDR + value: $CURRENCY_ADDR + - key: EMAIL_ADDR + value: $EMAIL_ADDR + - key: FRONTEND_ADDR + value: $FRONTEND_ADDR + - key: PAYMENT_ADDR + value: $PAYMENT_ADDR + - key: PRODUCT_CATALOG_ADDR + value: $PRODUCT_CATALOG_ADDR + - key: PRODUCT_REVIEWS_ADDR + value: $PRODUCT_REVIEWS_ADDR + - key: RECOMMENDATION_ADDR + value: $RECOMMENDATION_ADDR + - key: SHIPPING_ADDR + value: $SHIPPING_ADDR + - key: KAFKA_ADDR + value: $KAFKA_ADDR +EOF +} + +run_tracetest() { + service_name=$1 + testsuite_file=./$service_name/all.yaml + + tracetest --config ./cli-config.yml run testsuite --file $testsuite_file --vars ./tracetesting-vars.yaml & + pids+=($!) +} + +## Script execution +while [[ $# -gt 0 ]]; do + chosen_services+=("$1") + shift +done + +if [ ${#chosen_services[@]} -eq 0 ]; then + for service in "${ALL_SERVICES[@]}"; do + chosen_services+=("$service") + done +fi + +check_if_tracetest_is_installed +create_env_file + +echo "Starting tests..." +echo "Running trace-based tests for: ${chosen_services[*]} ..." +echo "" + +for service in "${chosen_services[@]}"; do + run_tracetest $service +done + +# Wait for processes to finish and capture their exit codes +for pid in "${pids[@]}"; do + wait $pid + exit_codes+=($?) +done + +# Find the maximum exit code +max_exit_code=0 +for code in "${exit_codes[@]}"; do + if [[ $code -gt $max_exit_code ]]; then + max_exit_code=$code + fi +done + +echo "" +echo "Tests done! Exit code: $max_exit_code" + +exit $max_exit_code diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/all.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/all.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b41610d52ab2664ee48ad9d86f35d58d58e0902b --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/all.yaml @@ -0,0 +1,12 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: TestSuite +spec: + id: shipping-all + name: 'Shipping Service' + description: Run all Shipping Service tests enabled in sequence + steps: + - ./quote.yaml + - ./empty-quote.yaml + - ./order.yaml diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/empty-quote.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/empty-quote.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea7e14164684d71722f94abf18bf5f45ba32c354 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/empty-quote.yaml @@ -0,0 +1,39 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: shipping-empty-quote + name: 'Shipping: Empty Quote' + description: Quote delivery for no items + trigger: + type: http + httpRequest: + url: ${var:SHIPPING_ADDR}/get-quote + method: POST + headers: + - key: Content-Type + value: application/json + body: |- + { + "address": { + "streetAddress": "One Microsoft Way", + "city": "Redmond", + "state": "Washington", + "country": "United States", + "zipCode": "98052" + }, + "items": [] + } + specs: + - name: It called GetQuote successfully + selector: span[tracetest.span.type="http" name="/get-quote" http.request.method="POST"] + assertions: + - attr:http.response.status_code = 200 + - name: It returned a valid empty quote + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - attr:tracetest.response.body | json_path '$.cost_usd.currency_code' = "USD" + - attr:tracetest.response.body | json_path '$.cost_usd.units' = 0 + - attr:tracetest.response.body | json_path '$.cost_usd.nanos' = 0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/order.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/order.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c3d04751e248db002df17916df125a13e34b39f9 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/order.yaml @@ -0,0 +1,42 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: shipping-order + name: 'Shipping: Order' + description: Create one delivery order + trigger: + type: http + httpRequest: + url: ${var:SHIPPING_ADDR}/ship-order + method: POST + headers: + - key: Content-Type + value: application/json + body: |- + { + "address": { + "streetAddress": "One Microsoft Way", + "city": "Redmond", + "state": "Washington", + "country": "United States", + "zipCode": "98052" + }, + "items": [ + { + "productId": "66VCHSJNUP", + "quantity": 2 + } + ] + } + specs: + - name: It called ShipOrder successfully + selector: span[tracetest.span.type="http" name="/ship-order" http.request.method="POST"] + assertions: + - attr:http.response.status_code = 200 + - name: It returned a tracking ID + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - attr:tracetest.response.body | json_path '$.tracking_id' != "" diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/quote.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/quote.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d9f34128032be2bb92aa5d5bfddd1bc05ba31e54 --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/shipping/quote.yaml @@ -0,0 +1,43 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +type: Test +spec: + id: shipping-quote + name: 'Shipping: Quote' + description: Quote delivery for one order + trigger: + type: http + httpRequest: + url: ${var:SHIPPING_ADDR}/get-quote + method: POST + headers: + - key: Content-Type + value: application/json + body: |- + { + "address": { + "streetAddress": "One Microsoft Way", + "city": "Redmond", + "state": "Washington", + "country": "United States", + "zipCode": "98052" + }, + "items": [ + { + "productId": "66VCHSJNUP", + "quantity": 2 + } + ] + } + specs: + - name: It called GetQuote successfully + selector: span[tracetest.span.type="http" name="/get-quote" http.request.method="POST"] + assertions: + - attr:http.response.status_code = 200 + - name: It returned a valid quote + selector: span[tracetest.span.type="general" name="Tracetest trigger"] + assertions: + - attr:tracetest.response.status = 200 + - attr:tracetest.response.body | json_path '$.cost_usd.currency_code' = "USD" + - attr:tracetest.response.body | json_path '$.cost_usd.units' > 0 diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-config.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7f2490368f9031ce7afb008b955f220ec665f48f --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-config.yaml @@ -0,0 +1,24 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +postgres: + host: tracetest-postgres + user: postgres + password: postgres + port: 5432 + dbname: postgres + params: sslmode=disable + +telemetry: + exporters: + collector: + serviceName: tracetest + sampling: 100 + exporter: + type: collector + collector: + endpoint: otel-collector:4317 + +server: + telemetry: + exporter: collector diff --git a/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-provision.yaml b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-provision.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a37cc40602ed014eee4043ea029bcccec7cc3dda --- /dev/null +++ b/tasks/productcatalogfailure-01-lag1m-avail0m/environment/opentelemetry-demo/test/tracetesting/tracetest-provision.yaml @@ -0,0 +1,37 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +--- +type: PollingProfile +spec: + name: Default + strategy: periodic + default: true + periodic: + retryDelay: 5s + timeout: 3m + +--- +type: Demo +spec: + name: "OpenTelemetry Shop" + enabled: true + type: otelstore + opentelemetryStore: + frontendEndpoint: http://frontend:8080 + +--- +type: DataStore +spec: + name: Opentelemetry Collector pipeline + type: otlp + default: true + +--- +type: TestRunner +spec: + id: current + name: default + requiredGates: + - analyzer-score + - test-specs diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b5ddf6fec1c841adcd2f227f6733750dfa688717 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/Dockerfile @@ -0,0 +1,27 @@ +FROM python:3.13-slim + +WORKDIR /app + +RUN mkdir -p /logs/verifier + +# Copy helper scripts (opentelemetry-demo and data are bind-mounted at +# runtime via CONTEXT_DIR so the Docker daemon can access volume paths) +COPY ./load_snapshot.sh /app/load_snapshot.sh +COPY ./entrypoint.sh /app/entrypoint.sh +RUN chmod +x /app/load_snapshot.sh /app/entrypoint.sh + +# Install Docker CLI (needed for docker compose inside the container) +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates curl gnupg && \ + install -m 0755 -d /etc/apt/keyrings && \ + curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \ + chmod a+r /etc/apt/keyrings/docker.asc && \ + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \ + > /etc/apt/sources.list.d/docker.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin && \ + rm -rf /var/lib/apt/lists/* + +ENV SNAPSHOT_NAME=snapshot_day1_00h03m + +ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/docker-compose.yaml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/docker-compose.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ccfefdb3c375e16431f439a69e0b84e6c6173939 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/docker-compose.yaml @@ -0,0 +1,22 @@ +services: + main: + build: + context: ${CONTEXT_DIR} + image: ${MAIN_IMAGE_NAME} + command: [ "sh", "-c", "sleep infinity" ] + network_mode: ${NETWORK_MODE:-bridge} + privileged: true + environment: + - TEST_DIR=${TEST_DIR} + - SNAPSHOT_NAME=${SNAPSHOT_NAME:-default} + - CONTEXT_DIR=${CONTEXT_DIR} + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${CONTEXT_DIR}:${CONTEXT_DIR} + - ${HOST_VERIFIER_LOGS_PATH}:${ENV_VERIFIER_LOGS_PATH} + - ${HOST_AGENT_LOGS_PATH}:${ENV_AGENT_LOGS_PATH} + deploy: + resources: + limits: + cpus: ${CPUS} + memory: ${MEMORY} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/entrypoint.sh b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/entrypoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..3eb1726ef9630b00eb41d26e630777952d3abead --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/entrypoint.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Harbor container entrypoint: load a telemetry snapshot and start the +# OpenTelemetry Demo services before handing off to the agent. +# +# The CONTEXT_DIR environment variable points to the host path of the +# task's environment/ directory. This same path is bind-mounted into +# the container so that Docker volume mounts resolved by the compose +# client map to real paths the host daemon can see. +# +# Expected layout (on host, accessible via the bind mount): +# ${CONTEXT_DIR}/opentelemetry-demo/ - the demo source + docker-compose.yml +# ${CONTEXT_DIR}/data/ - raw snapshot data (prometheus, jaeger, opensearch) +# ${CONTEXT_DIR}/mounted-data/ - created by load_snapshot.sh (symlinks into data/) +# +# Environment variables: +# SNAPSHOT_NAME - which snapshot to load (e.g. "snapshot_day1_00h06m") +# CONTEXT_DIR - host path to the environment directory (bind-mounted) + +SNAPSHOT_NAME="${SNAPSHOT_NAME:?SNAPSHOT_NAME must be set}" +CONTEXT_DIR="${CONTEXT_DIR:?CONTEXT_DIR must be set}" + +DATA_RAW="${CONTEXT_DIR}/data" +MOUNTED_DATA="${CONTEXT_DIR}/mounted-data" +COMPOSE_FILE="${CONTEXT_DIR}/opentelemetry-demo/docker-compose.yml" + +# ── 1. Load snapshot (create symlinks in mounted-data/ visible to host) ────── +echo "[entrypoint] Loading snapshot: $SNAPSHOT_NAME" +/app/load_snapshot.sh "$DATA_RAW" "$SNAPSHOT_NAME" "$MOUNTED_DATA" "${CONTEXT_DIR}/opentelemetry-demo" + +# ── 2. Start the OpenTelemetry Demo stack ─────────────────────────────────── +echo "[entrypoint] Starting OpenTelemetry Demo services..." +export DATA_MOUNT_DIR="../mounted-data" +docker compose -f "$COMPOSE_FILE" up --force-recreate --remove-orphans --detach + +# ── 3. Wait for services to become healthy ────────────────────────────────── +echo "[entrypoint] Waiting for services to initialise..." +sleep 30 + +# ── 4. Restore OpenSearch snapshot ────────────────────────────────────────── +echo "[entrypoint] Restoring OpenSearch snapshot..." +# Register the snapshot repository +curl -sf -X PUT 'http://localhost:9200/_snapshot/scheduled_backups' \ + -H 'Content-Type: application/json' \ + -d '{"type": "fs", "settings": {"location": "/usr/share/opensearch/snapshots"}}' \ + || echo "[entrypoint] Warning: could not register OpenSearch snapshot repo" + +sleep 2 + +# Restore the snapshot +curl -sf -X POST "http://localhost:9200/_snapshot/scheduled_backups/${SNAPSHOT_NAME}/_restore" \ + -H 'Content-Type: application/json' \ + -d '{"indices": "*", "include_global_state": false}' \ + || echo "[entrypoint] Warning: OpenSearch snapshot restore failed (may not exist for this snapshot)" + +echo "[entrypoint] Environment ready." + +# ── 5. Hand off to the agent command (if any) ────────────────────────────── +exec "$@" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/load_snapshot.sh b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/load_snapshot.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fd4709143824438e9c6f3e67ca3058cdd9693a0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/load_snapshot.sh @@ -0,0 +1,133 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Load a telemetry snapshot by retargeting symlinks inside an output +# directory. docker-compose.yml is never modified. +# +# Usage: +# ./load_snapshot.sh [output_dir] [repo_root] +# +# Example (standalone): +# ./load_snapshot.sh data-0131 snapshot_day1_00h05m +# +# Example (inside harbor container with host-visible paths): +# ./load_snapshot.sh /host/path/data snapshot_day1_00h05m /host/path/mounted-data /host/path/opentelemetry-demo +# +# Snapshot layout (created by run_incident_schedule.py): +# data_dir/prometheus/snapshots/snapshot_day1_00h05m/ +# data_dir/jaeger-badger-snapshots/snapshot_day1_00h05m/ +# data_dir/opensearch-repo-snapshots/ (managed by OpenSearch API) +# +# This script updates symlinks in / (default: data/): +# /prometheus -> data_dir/prometheus/snapshots/ +# /jaeger -> data_dir/jaeger-badger-snapshots/ +# /prometheus-config.yaml -> read-only config (no scraping) +# /opensearch-data -> data_dir/opensearch-data +# /opensearch-repo-snapshots -> data_dir/opensearch-repo-snapshots +# +# After running this script, restart the containers: +# docker compose -f opentelemetry-demo/docker-compose.yml up --force-recreate -d + +if [ $# -lt 2 ]; then + echo "Usage: $0 [output_dir] [repo_root]" + echo "Example: $0 data-0131 snapshot_day1_00h05m" + echo "" + echo "Available snapshots in a data dir:" + echo " ls /prometheus/snapshots/" + exit 1 +fi + +DATA_DIR="$1" +SNAPSHOT_NAME="$2" +DATA_LINK="${3:-data}" +REPO_ROOT="${4:-opentelemetry-demo}" + +# Resolve to absolute path (symlink targets must be absolute) +if [[ "$DATA_DIR" != /* ]]; then + DATA_DIR="$(pwd)/$DATA_DIR" +fi + +# Validate data directory +if [ ! -d "$DATA_DIR" ]; then + echo "Error: Data directory does not exist: $DATA_DIR" + exit 1 +fi + +echo "Loading snapshot into $DATA_LINK/ symlinks" +echo "Data dir: $DATA_DIR" +echo "Snapshot: $SNAPSHOT_NAME" +echo "" + +# Ensure output directory exists +mkdir -p "$DATA_LINK" + +# ── Retarget Prometheus and Jaeger symlinks to snapshot dirs ──────────────── +declare -A SNAPSHOT_DIRS=( + ["prometheus"]="prometheus/snapshots" + ["jaeger"]="jaeger-badger-snapshots" +) + +for link_name in "${!SNAPSHOT_DIRS[@]}"; do + snap_subdir="${SNAPSHOT_DIRS[$link_name]}" + snap_path="$DATA_DIR/$snap_subdir/$SNAPSHOT_NAME" + + if [ ! -d "$snap_path" ]; then + echo "Warning: Missing $snap_path (skipping $link_name)" + continue + fi + + # Remove stale directory if Docker auto-created it (ln -sfn can't replace dirs) + if [ -d "$DATA_LINK/$link_name" ] && [ ! -L "$DATA_LINK/$link_name" ]; then + rm -rf "$DATA_LINK/$link_name" + fi + ln -sfn "$snap_path" "$DATA_LINK/$link_name" + echo " $DATA_LINK/$link_name -> $snap_path" +done + +# ── Prometheus: switch to read-only config (no scrape targets) ────────────── +# Resolve repo root to absolute path +if [[ "$REPO_ROOT" != /* ]]; then + REPO_ROOT="$(pwd)/$REPO_ROOT" +fi +READONLY_CONFIG="$REPO_ROOT/src/prometheus/prometheus-config-readonly.yaml" +if [ -f "$READONLY_CONFIG" ]; then + # Remove stale directory if Docker auto-created it + if [ -d "$DATA_LINK/prometheus-config.yaml" ] && [ ! -L "$DATA_LINK/prometheus-config.yaml" ]; then + rm -rf "$DATA_LINK/prometheus-config.yaml" + fi + ln -sfn "$READONLY_CONFIG" "$DATA_LINK/prometheus-config.yaml" + echo " $DATA_LINK/prometheus-config.yaml -> read-only (no scraping)" +else + echo " Warning: $READONLY_CONFIG not found; prometheus-config.yaml unchanged" +fi + +# ── OpenSearch: point at the data dir's opensearch directories ────────────── +# Remove stale directories if Docker auto-created them +for name in opensearch-data opensearch-repo-snapshots; do + if [ -d "$DATA_LINK/$name" ] && [ ! -L "$DATA_LINK/$name" ]; then + rm -rf "$DATA_LINK/$name" + fi +done +ln -sfn "$DATA_DIR/opensearch-data" "$DATA_LINK/opensearch-data" +echo " $DATA_LINK/opensearch-data -> $DATA_DIR/opensearch-data" + +ln -sfn "$DATA_DIR/opensearch-repo-snapshots" "$DATA_LINK/opensearch-repo-snapshots" +echo " $DATA_LINK/opensearch-repo-snapshots -> $DATA_DIR/opensearch-repo-snapshots" + +echo "" +echo "Done. Restart containers with:" +echo " docker compose -f opentelemetry-demo/docker-compose.yml up --force-recreate -d" +echo "" +echo "To restore the OpenSearch snapshot after containers are up:" +echo " # Register repo (if not already registered)" +echo " curl -X PUT 'http://localhost:9200/_snapshot/scheduled_backups' \\" +echo " -H 'Content-Type: application/json' \\" +echo " -d '{\"type\": \"fs\", \"settings\": {\"location\": \"/usr/share/opensearch/snapshots\"}}'" +echo "" +echo " # List available snapshots" +echo " curl -s 'http://localhost:9200/_snapshot/scheduled_backups/_all' | python3 -m json.tool" +echo "" +echo " # Restore a specific snapshot (close indices first if they already exist)" +echo " curl -X POST 'http://localhost:9200/_snapshot/scheduled_backups/${SNAPSHOT_NAME}/_restore' \\" +echo " -H 'Content-Type: application/json' \\" +echo " -d '{\"indices\": \"*\", \"include_global_state\": false}'" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..94fdc73a30c8f241f62565cd66a479b5db0d90fb --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.dockerignore @@ -0,0 +1,24 @@ + + +.github +docs +internal +src/*/README.md +src/*/Dockerfile +src/*/*/Dockerfile + +################################### +# currency +./src/currency/client.js +./src/currency/node_modules/ +################################### + +################################### +# frontend +./src/frontend/node_modules/ + +################################### +# shipping +./src/shipping/target +################################### + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env new file mode 100644 index 0000000000000000000000000000000000000000..f67e6c489cb51ebc94ef0c47f2b729f38beab56c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env @@ -0,0 +1,194 @@ +# Demo App version +IMAGE_VERSION=2.2.0 +IMAGE_NAME=ghcr.io/open-telemetry/demo +DEMO_VERSION=latest + +# Build Args +TRACETEST_IMAGE_VERSION=v1.7.1 +OTEL_JAVA_AGENT_VERSION=2.23.0 +OPENTELEMETRY_CPP_VERSION=1.24.0 + +# Dependent images +COLLECTOR_CONTRIB_IMAGE=ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.142.0 +FLAGD_IMAGE=ghcr.io/open-feature/flagd:v0.12.9 +GRAFANA_IMAGE=grafana/grafana:12.3.1 +JAEGERTRACING_IMAGE=jaegertracing/jaeger:2.12.0 +# must also update version field in src/grafana/provisioning/datasources/opensearch.yaml +OPENSEARCH_IMAGE=opensearchproject/opensearch:3.4.0 +OPENSEARCH_DOCKERFILE=./src/opensearch/Dockerfile +POSTGRES_IMAGE=postgres:17.6 +PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v3.8.1 +VALKEY_IMAGE=valkey/valkey:9.0.1-alpine3.23 +TRACETEST_IMAGE=kubeshop/tracetest:${TRACETEST_IMAGE_VERSION} + +# Demo Platform +ENV_PLATFORM=local + +# IPv6 Flag control +IPV6_ENABLED=false + +# OpenTelemetry Collector +HOST_FILESYSTEM=/ +DOCKER_SOCK=/var/run/docker.sock +OTEL_COLLECTOR_HOST=otel-collector +OTEL_COLLECTOR_PORT_GRPC=4317 +OTEL_COLLECTOR_PORT_HTTP=4318 +OTEL_COLLECTOR_CONFIG=./src/otel-collector/otelcol-config.yml +OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otel-collector/otelcol-config-extras.yml +OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} +PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces + +# OpenTelemetry Resource Definitions +OTEL_RESOURCE_ATTRIBUTES=service.namespace=opentelemetry-demo,service.version=${IMAGE_VERSION} + +# Metrics Temporality +OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative + +# ****************** +# Core Demo Services +# ****************** +# Accounting Service +ACCOUNTING_DOCKERFILE=./src/accounting/Dockerfile + +# Ad Service +AD_PORT=9555 +AD_ADDR=ad:${AD_PORT} +AD_DOCKERFILE=./src/ad/Dockerfile + +# Cart Service +CART_PORT=7070 +CART_ADDR=cart:${CART_PORT} +CART_DOCKERFILE=./src/cart/src/Dockerfile + +# Checkout Service +CHECKOUT_PORT=5050 +CHECKOUT_ADDR=checkout:${CHECKOUT_PORT} +CHECKOUT_DOCKERFILE=./src/checkout/Dockerfile + +# Currency Service +CURRENCY_PORT=7001 +CURRENCY_ADDR=currency:${CURRENCY_PORT} +CURRENCY_DOCKERFILE=./src/currency/Dockerfile + +# Email Service +EMAIL_PORT=6060 +EMAIL_ADDR=http://email:${EMAIL_PORT} +EMAIL_DOCKERFILE=./src/email/Dockerfile + +# Fraud Service +FRAUD_DOCKERFILE=./src/fraud-detection/Dockerfile + +# Frontend +FRONTEND_PORT=8080 +FRONTEND_ADDR=frontend:${FRONTEND_PORT} +FRONTEND_DOCKERFILE=./src/frontend/Dockerfile + +# Frontend Proxy (Envoy) +ENVOY_ADDR=0.0.0.0 +ENVOY_PORT=8080 +ENVOY_ADMIN_PORT=10000 +FRONTEND_HOST=frontend +FRONTEND_PROXY_ADDR=frontend-proxy:${ENVOY_PORT} +FRONTEND_PROXY_DOCKERFILE=./src/frontend-proxy/Dockerfile + +# Image Provider +IMAGE_PROVIDER_HOST=image-provider +IMAGE_PROVIDER_PORT=8081 +IMAGE_PROVIDER_DOCKERFILE=./src/image-provider/Dockerfile + +# Load Generator +LOCUST_WEB_PORT=8089 +LOCUST_USERS=5 +LOCUST_HOST=http://${FRONTEND_PROXY_ADDR} +LOCUST_WEB_HOST=load-generator +LOCUST_AUTOSTART=true +LOCUST_HEADLESS=false +LOAD_GENERATOR_DOCKERFILE=./src/load-generator/Dockerfile + +# Payment Service +PAYMENT_PORT=50051 +PAYMENT_ADDR=payment:${PAYMENT_PORT} +PAYMENT_DOCKERFILE=./src/payment/Dockerfile + +# Product Catalog Service +PRODUCT_CATALOG_PORT=3550 +PRODUCT_CATALOG_ADDR=product-catalog:${PRODUCT_CATALOG_PORT} +PRODUCT_CATALOG_DOCKERFILE=./src/product-catalog/Dockerfile + +# Product Reviews Service +PRODUCT_REVIEWS_PORT=3551 +PRODUCT_REVIEWS_ADDR=product-reviews:${PRODUCT_REVIEWS_PORT} +PRODUCT_REVIEWS_DOCKERFILE=./src/product-reviews/Dockerfile + +# Quote Service +QUOTE_PORT=8090 +QUOTE_ADDR=http://quote:${QUOTE_PORT} +QUOTE_DOCKERFILE=./src/quote/Dockerfile + +# Recommendation Service +RECOMMENDATION_PORT=9001 +RECOMMENDATION_ADDR=recommendation:${RECOMMENDATION_PORT} +RECOMMENDATION_DOCKERFILE=./src/recommendation/Dockerfile + +# Shipping Service +SHIPPING_PORT=50050 +SHIPPING_ADDR=http://shipping:${SHIPPING_PORT} +SHIPPING_DOCKERFILE=./src/shipping/Dockerfile + +# ****************** +# Dependent Services +# ****************** +# Flagd +FLAGD_HOST=flagd +FLAGD_PORT=8013 +FLAGD_OFREP_PORT=8016 + +# Flagd UI +FLAGD_UI_HOST=flagd-ui +FLAGD_UI_PORT=4000 +FLAGD_UI_DOCKERFILE=./src/flagd-ui/Dockerfile + +# Kafka +KAFKA_PORT=9092 +KAFKA_HOST=kafka +KAFKA_ADDR=${KAFKA_HOST}:${KAFKA_PORT} +KAFKA_DOCKERFILE=./src/kafka/Dockerfile + +# LLM service +LLM_DOCKERFILE=./src/llm/Dockerfile +LLM_HOST=llm +LLM_PORT=8000 + +# Mock LLM - to use a real OpenAI API-compatible LLM, +# configure the .env.override file +LLM_BASE_URL=http://${LLM_HOST}:${LLM_PORT}/v1 +LLM_MODEL=astronomy-llm +OPENAI_API_KEY=dummy + +# Valkey +VALKEY_PORT=6379 +VALKEY_ADDR=valkey-cart:${VALKEY_PORT} + +# Postgres +POSTGRES_HOST=postgresql +POSTGRES_PORT=5432 +POSTGRES_DB=otel +POSTGRES_PASSWORD=otel +POSTGRES_DOCKERFILE=./src/postgresql/Dockerfile + +# ******************** +# Telemetry Components +# ******************** +# Grafana +GRAFANA_PORT=3000 +GRAFANA_HOST=grafana + +# Jaeger +JAEGER_HOST=jaeger +JAEGER_UI_PORT=16686 +JAEGER_GRPC_PORT=4317 + +# Prometheus +PROMETHEUS_PORT=9090 +PROMETHEUS_HOST=prometheus +PROMETHEUS_ADDR=${PROMETHEUS_HOST}:${PROMETHEUS_PORT} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.arm64 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.arm64 new file mode 100644 index 0000000000000000000000000000000000000000..92b04b3a5f1bd86ad36ef0d0fbd5b665c6837693 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.arm64 @@ -0,0 +1 @@ +_JAVA_OPTIONS=-XX:UseSVE=0 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.override b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.override new file mode 100644 index 0000000000000000000000000000000000000000..2dfb07107e9ff4f7d2f87da3deae95d9598285c2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.env.override @@ -0,0 +1,12 @@ +# DO NOT PUSH CHANGES OF THIS FILE TO opentelemetry/opentelemetry-demo +# PLACE YOUR .env ENVIRONMENT VARIABLES OVERRIDES IN THIS FILE + + +# To use a real OpenAI API-compatible LLM, +# set the appropriate values for the target LLM +# Required permissions: +# [Models and Model capabilities] + +#LLM_BASE_URL=https://api.openai.com/v1 +#LLM_MODEL=gpt-4o-mini +#OPENAI_API_KEY= diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitattributes b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..cf9b66d61655e4240480b311e81ff896cab65029 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitattributes @@ -0,0 +1,5 @@ + + +* text=auto + +gradlew text eol=lf diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/CODEOWNERS b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/CODEOWNERS new file mode 100644 index 0000000000000000000000000000000000000000..9f88832a6555471e7bd4e3d7c5f920b4a1f49d0d --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. + +# For anything not explicitly taken by someone else: +* @open-telemetry/demo-approvers diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/bug_report.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000000000000000000000000000000000000..3a637d2e48c6f0637dfd73c3f6c812824e296bc0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,40 @@ +--- +name: Bug Report +about: Create a report to help us improve +labels: bug +--- + +# Bug Report + +Which version of the demo you are using? (please provide either a specific +[commit +hash](https://github.com/open-telemetry/opentelemetry-demo/commits/main) +or a specific +[release](https://github.com/open-telemetry/opentelemetry-demo/releases)). + +## Symptom + +A clear and concise description of what the bug is. + +**What is the expected behavior?** + +What do you expect to see? + +**What is the actual behavior?** + +Please describe the actual behavior experienced. + +## Reproduce + +Could you provide the minimum required steps to resolve the issue you're seeing? + +We will close this issue if: + +* The steps you provided are complex. +* If we can not reproduce the behavior you're reporting. + +## Additional Context + +Please feel free to add any other context about the problem here. + +**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👠to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/). diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/feature_request.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000000000000000000000000000000000000..de6772c22fa354acf9544b7b570c2c101f4cb694 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,31 @@ +--- +name: Feature Request +about: Suggest an idea for this project +labels: enhancement +--- + +# Feature Request + +Before opening a feature request against this repo, consider whether the feature +should/could be implemented in the [other OpenTelemetry client +libraries](https://github.com/open-telemetry/). If so, please [open an issue on +opentelemetry-specification](https://github.com/open-telemetry/opentelemetry-specification/issues/new) +first. + +**Is your feature request related to a problem?** + +If so, provide a concise description of the problem. + +**Describe the solution you'd like:** + +What would you like to happen instead? What is the expected behavior? + +**Describe alternatives you've considered.** + +Which alternative solutions or features have you considered? + +## Additional Context + +Feel free to add any other context about the feature request here. + +**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👠to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/). diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/question.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000000000000000000000000000000000000..6c0c0b0aa8f79d80e05c7c36ad6d3e2773fc231f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,11 @@ +--- +name: Question +about: Create a question to help us improve our knowledge base and documentation +labels: question +--- + +# Question + +Use [Github Discussions](https://github.com/open-telemetry/opentelemetry-demo/discussions/). + +**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👠to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/). diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/PULL_REQUEST_TEMPLATE.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000000000000000000000000000000000000..5a41f319c310e9f95d4c3ae37a357a095a6340db --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,30 @@ +# Changes + +Please provide a brief description of the changes here. + +## Merge Requirements + +For new features contributions, please make sure you have completed the following +essential items: + +* [ ] `CHANGELOG.md` updated to document new feature additions +* [ ] Appropriate documentation updates in the [docs][] +* [ ] Appropriate Helm chart updates in the [helm-charts][] + + + +Maintainers will not merge until the above have been completed. If you're unsure +which docs need to be changed ping the +[@open-telemetry/demo-approvers](https://github.com/orgs/open-telemetry/teams/demo-approvers). + +[docs]: https://opentelemetry.io/docs/demo/ +[helm-charts]: https://github.com/open-telemetry/opentelemetry-helm-charts diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/component_owners.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/component_owners.yml new file mode 100644 index 0000000000000000000000000000000000000000..b96dd2f31a77ded5fee58581ce48346e287af11b --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/component_owners.yml @@ -0,0 +1,8 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# this file is used by .github/workflows/assign-reviewers.yml +components: + src/ad: + - jack-berg + - mateuszrzeszutek + - trask diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/dependabot.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/dependabot.yml new file mode 100644 index 0000000000000000000000000000000000000000..cc1ac0d26209da02553fd0bc59eb5b42e7b0a794 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/dependabot.yml @@ -0,0 +1,90 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +version: 2 +updates: + - package-ecosystem: "github-actions" + directories: + - "/" + groups: + actions-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "gomod" + directories: + - "/src/**/*" + groups: + go-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "gradle" + directories: + - "/src/**/*" + groups: + gradle-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "pip" + directories: + - "/src/**/*" + groups: + pip-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "nuget" + directories: + - "/src/**/*" + groups: + nuget-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "composer" + directories: + - "/src/**/*" + groups: + composer-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "npm" + directories: + - "/" + - "/src/frontend/*" + - "/src/payment/*" + groups: + npm-production-dependencies: + dependency-type: "production" + npm-development-dependencies: + dependency-type: "development" + schedule: + interval: "daily" + - package-ecosystem: "cargo" + directories: + - "/src/shipping/*" + groups: + cargo-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" + - package-ecosystem: "bundler" + directories: + - "/src/email/*" + groups: + bundler-production-dependencies: + dependency-type: "production" + bundler-development-dependencies: + dependency-type: "development" + schedule: + interval: "daily" + - package-ecosystem: "mix" + directories: + - "/src/flagd-ui/*" + groups: + mix-production-dependencies: + dependency-type: "production" + schedule: + interval: "daily" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/assign-reviewers.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/assign-reviewers.yml new file mode 100644 index 0000000000000000000000000000000000000000..8ede7ab6cb2e42470f45119164b6db5c44c8bef6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/assign-reviewers.yml @@ -0,0 +1,26 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# assigns reviewers to pull requests in a similar way as CODEOWNERS, but doesn't require reviewers +# to have write access to the repository +# see .github/component_owners.yaml for the list of components and their owners +name: Assign reviewers + +on: + # pull_request_target is needed instead of just pull_request + # because repository write permission is needed to assign reviewers + pull_request_target: + +permissions: + contents: read + +jobs: + assign-reviewers: + permissions: + pull-requests: write # required for assigning reviewers to PRs + if: github.repository == 'open-telemetry/opentelemetry-demo' + runs-on: ubuntu-latest + steps: + - uses: dyladan/component-owners@main + with: + # using this action to request review only (not assignment) + assign-owners: false diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/build-images.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/build-images.yml new file mode 100644 index 0000000000000000000000000000000000000000..b37fea8068108e4f881c8abfc585c3a55458c96b --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/build-images.yml @@ -0,0 +1,20 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Test image generation + +on: + push: + paths: + - 'src/**' + - 'test/**' + +permissions: + contents: read + +jobs: + build_images: + permissions: + contents: read + packages: write + if: github.repository == 'open-telemetry/opentelemetry-demo' + uses: ./.github/workflows/component-build-images.yml diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/checks.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/checks.yml new file mode 100644 index 0000000000000000000000000000000000000000..53f17829f42d209e56380ba7712f754e9b8f7ef8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/checks.yml @@ -0,0 +1,83 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Checks + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + build_images: + permissions: # required by the reusable workflow + contents: read + packages: write + uses: ./.github/workflows/component-build-images.yml + with: + push: false + version: 'dev' + + markdownlint: + runs-on: ubuntu-latest + steps: + - name: check out code + uses: actions/checkout@v6.0.2 + - name: install dependencies + run: npm install + - name: run markdownlint + run: make markdownlint + + yamllint: + runs-on: ubuntu-latest + steps: + - name: check out code + uses: actions/checkout@v6.0.2 + - uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: install yamllint + run: make install-yamllint + - name: run yamllint + run: yamllint . -f github + + misspell: + runs-on: ubuntu-latest + steps: + - name: check out code + uses: actions/checkout@v6.0.2 + - name: run misspell + run: make misspell + + checklinks: + name: linkspector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6.0.2 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 + with: + level: info + fail_level: any + config_file: '.linkspector.yml' + + sanity: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6.0.2 + - name: run sanitycheck.py + run: python3 ./internal/tools/sanitycheck.py + + checklicense: + runs-on: ubuntu-latest + steps: + - name: check out code + uses: actions/checkout@v6.0.2 + - name: install tools + run: make install-tools + - name: run checklicense + run: make checklicense diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/component-build-images.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/component-build-images.yml new file mode 100644 index 0000000000000000000000000000000000000000..03a7039d2963f0f1ff9f849f1f36f706f9616b83 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/component-build-images.yml @@ -0,0 +1,223 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +on: + workflow_call: + inputs: + push: + description: Should the images be pushed + default: false + required: false + type: boolean + version: + description: The version used when tagging the image + default: 'dev' + required: false + type: string + dockerhub_repo: + description: Docker Hub repository + default: 'otel/demo' + required: false + type: string + ghcr_repo: + description: GHCR repository + default: 'ghcr.io/open-telemetry/demo' + required: false + type: string + +permissions: + contents: read + +jobs: + protobufcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + - name: Generate + run: make clean docker-generate-protobuf + - name: Check Clean Work Tree + run: make check-clean-work-tree + + build_and_push_images: + runs-on: ubuntu-latest + needs: protobufcheck + + permissions: + contents: read + packages: write + + env: + RELEASE_VERSION: "${{ github.event.release.tag_name }}" + + strategy: + fail-fast: false + matrix: + file_tag: + - file: ./src/accounting/Dockerfile + tag_suffix: accounting + context: ./ + setup-qemu: true + - file: ./src/ad/Dockerfile + tag_suffix: ad + context: ./ + setup-qemu: true + - file: ./src/cart/src/Dockerfile + tag_suffix: cart + context: ./ + setup-qemu: false + - file: ./src/checkout/Dockerfile + tag_suffix: checkout + context: ./ + setup-qemu: true + - file: ./src/currency/Dockerfile + tag_suffix: currency + context: ./ + setup-qemu: true + - file: ./src/email/Dockerfile + tag_suffix: email + context: ./ + setup-qemu: true + - file: ./src/flagd-ui/Dockerfile + tag_suffix: flagd-ui + context: ./ + setup-qemu: true + - file: ./src/fraud-detection/Dockerfile + tag_suffix: fraud-detection + context: ./ + setup-qemu: true + - file: ./src/frontend/Dockerfile + tag_suffix: frontend + context: ./ + setup-qemu: true + - file: ./src/frontend-proxy/Dockerfile + tag_suffix: frontend-proxy + context: ./ + setup-qemu: true + - file: ./src/frontend/Dockerfile.cypress + tag_suffix: frontend-tests + context: ./ + setup-qemu: true + - file: ./src/image-provider/Dockerfile + tag_suffix: image-provider + context: ./ + setup-qemu: true + - file: ./src/kafka/Dockerfile + tag_suffix: kafka + context: ./ + setup-qemu: true + - file: ./src/llm/Dockerfile + tag_suffix: llm + context: ./ + setup-qemu: true + - file: ./src/load-generator/Dockerfile + tag_suffix: load-generator + context: ./ + setup-qemu: true + - file: ./src/opensearch/Dockerfile + tag_suffix: opensearch + context: ./ + setup-qemu: true + - file: ./src/payment/Dockerfile + tag_suffix: payment + context: ./ + setup-qemu: true + - file: ./src/product-catalog/Dockerfile + tag_suffix: product-catalog + context: ./ + setup-qemu: true + - file: ./src/product-reviews/Dockerfile + tag_suffix: product-reviews + context: ./ + setup-qemu: true + - file: ./src/quote/Dockerfile + tag_suffix: quote + context: ./ + setup-qemu: true + - file: ./src/recommendation/Dockerfile + tag_suffix: recommendation + context: ./ + setup-qemu: true + - file: ./src/shipping/Dockerfile + tag_suffix: shipping + context: ./ + setup-qemu: true + - file: ./test/tracetesting/Dockerfile + tag_suffix: traceBasedTests + context: ./ + setup-qemu: true + + steps: + - uses: actions/checkout@v6.0.2 + with: + fetch-depth: 0 + - name: Load environment variables from .env file + run: | + if [ -f .env ]; then + # Filter out comments and empty lines, then add each variable to $GITHUB_ENV + grep -vE '^\s*#|^\s*$' .env | while read -r line; do + echo "$line" >> $GITHUB_ENV + done + else + echo ".env file not found!" + exit 1 + fi + - name: Check for changes and set push options + id: check_changes + run: | + DOCKERFILE_DIR=$(dirname ${{ matrix.file_tag.file }}) + FILES_CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- $DOCKERFILE_DIR) + FORCE_PUSH=${{ inputs.push }} + if [ "$FORCE_PUSH" = true ]; then + echo "Force push is enabled, proceeding with build." + echo "skip=false" >> "$GITHUB_OUTPUT" + elif [ -z "$FILES_CHANGED" ]; then + echo "No changes in ${{ matrix.file_tag.context }}, skipping build." + echo "skip=true" >> "$GITHUB_OUTPUT" + else + echo "Changes detected in ${{ matrix.file_tag.context }}, proceeding with build." + echo "skip=false" >> "$GITHUB_OUTPUT" + fi + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + if: ${{ inputs.push }} + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + if: ${{ inputs.push }} + - name: Set up QEMU + if: ${{ matrix.file_tag.setup-qemu }} + uses: docker/setup-qemu-action@v3 + with: + image: tonistiigi/binfmt:master + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + buildkitd-config-inline: | + [worker.oci] + max-parallelism = 2 + - name: Matrix Build and push demo images + if: steps.check_changes.outputs.skip == 'false' + uses: docker/build-push-action@v6.18.0 + with: + context: ${{ matrix.file_tag.context }} + file: ${{ matrix.file_tag.file }} + platforms: linux/amd64,linux/arm64 + push: ${{ inputs.push }} + build-args: | + OTEL_JAVA_AGENT_VERSION=${{ env.OTEL_JAVA_AGENT_VERSION }} + OPENTELEMETRY_CPP_VERSION=${{ env.OPENTELEMETRY_CPP_VERSION }} + TRACETEST_IMAGE_VERSION=${{ env.TRACETEST_IMAGE_VERSION }} + tags: | + ${{ inputs.dockerhub_repo }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} + ${{ inputs.dockerhub_repo }}:latest-${{matrix.file_tag.tag_suffix }} + ${{ inputs.ghcr_repo }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }} + ${{ inputs.ghcr_repo }}:latest-${{ matrix.file_tag.tag_suffix }} + cache-from: type=gha + cache-to: type=gha diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/dependabot-auto-update-protobuf-diff.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/dependabot-auto-update-protobuf-diff.yml new file mode 100644 index 0000000000000000000000000000000000000000..5d6c6deda327224160c021d4193fc271084c9d20 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/dependabot-auto-update-protobuf-diff.yml @@ -0,0 +1,35 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +on: + pull_request_target: + branches: [ main ] + +permissions: + contents: read + +jobs: + dependabot-auto-update-protobuf-diff: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + # Only run this job if the PR is opened by dependabot and the last commit is from dependabot + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.DEPENDABOT_TOKEN }} + - name: Generate + run: make clean docker-generate-protobuf + - name: Commit only if there are changes + run: | + if ! git diff --quiet; then + git config user.name "dependabot[bot]" + git config user.email "49699333+dependabot[bot]@users.noreply.github.com" + git add . + git commit -s -m "chore: update protobuf" + git push + fi diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/fossa.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/fossa.yml new file mode 100644 index 0000000000000000000000000000000000000000..13b57c6f2ae80606743db8763ccc09e181888d37 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/fossa.yml @@ -0,0 +1,23 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +name: FOSSA scanning + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + fossa: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.1 + + - uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0 + with: + api-key: ${{secrets.FOSSA_API_KEY}} + team: OpenTelemetry diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/gradle-wrapper-validation.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000000000000000000000000000000000000..a88f39ba94a54dc2f6ab10db5a0c6ba6baefefba --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,21 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Gradle wrapper validation +on: + pull_request: + paths: + - '**/gradle/wrapper/**' + push: + paths: + - '**/gradle/wrapper/**' + +permissions: + contents: read + +jobs: + validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6.0.2 + + - uses: gradle/actions/wrapper-validation@v5.0.0 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/label-pr.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/label-pr.yml new file mode 100644 index 0000000000000000000000000000000000000000..ffc622be04494baee629366c0545f742eb0b31f1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/label-pr.yml @@ -0,0 +1,65 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# adds a label to a pull request if certain files are changed +name: Label Pull Requests + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + +jobs: + label: + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: read + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Check for changed files + id: file_changes + uses: dorny/paths-filter@v3 + with: + list-files: shell + filters: | + docsUpdateRequired: + - 'src/flagd/**' + helmUpdateRequired: + - '.env' + - 'docker-compose*.yml' + - 'src/flagd/**' + - 'src/grafana/**' + - 'src/jaeger/**' + - 'src/otel-collector/**' + - 'src/postgresql/**' + - 'src/prometheus/**' + + - name: "Add Label: docs-update-required" + if: steps.file_changes.outputs.docsUpdateRequired == 'true' + uses: actions/github-script@v8 + with: + script: | + const issue_number = context.issue.number; + github.rest.issues.addLabels({ + issue_number: issue_number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['docs-update-required'] + }) + + - name: "Add Label: helm-update-required" + if: steps.file_changes.outputs.helmUpdateRequired == 'true' + uses: actions/github-script@v8 + with: + script: | + const issue_number = context.issue.number; + github.rest.issues.addLabels({ + issue_number: issue_number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['helm-update-required'] + }) diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/nightly-release.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/nightly-release.yml new file mode 100644 index 0000000000000000000000000000000000000000..c569af7fb2910153e154de941e2cac49f9c81b63 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/nightly-release.yml @@ -0,0 +1,23 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Nightly Release + +on: + schedule: + # Runs at 00:00 UTC every day + - cron: '0 0 * * *' + +permissions: + contents: read + +jobs: + build_and_push_images: + permissions: # required by the reusable workflow + contents: read + packages: write + uses: ./.github/workflows/component-build-images.yml + if: github.repository == 'open-telemetry/opentelemetry-demo' + with: + push: true + version: nightly-${{ github.run_id }} + secrets: inherit diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/ossf-scorecard.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/ossf-scorecard.yml new file mode 100644 index 0000000000000000000000000000000000000000..a044e43364f0fb5d41d681495bb3de17bf30b215 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/ossf-scorecard.yml @@ -0,0 +1,50 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +name: OSSF Scorecard + +on: + push: + branches: + - main + schedule: + - cron: "25 11 * * 3" # once a week + workflow_dispatch: + +permissions: read-all + +jobs: + analysis: + runs-on: ubuntu-latest + permissions: + # Needed for Code scanning upload + security-events: write + # Needed for GitHub OIDC token if publish_results is true + id-token: write + steps: + - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.1 + with: + persist-credentials: false + + - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + # Upload the results as artifacts (optional). Commenting out will disable + # uploads of run results in SARIF format to the repository Actions tab. + # https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts + - name: "Upload artifact" + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + # Commenting out will disable upload of results to your repo's Code Scanning dashboard + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.29.5 + with: + sarif_file: results.sarif diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/release.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/release.yml new file mode 100644 index 0000000000000000000000000000000000000000..60eb1b6200eee73488b5584dd63a211a08fd47b9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/release.yml @@ -0,0 +1,22 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: "Build and Publish" + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + build_and_push_images: + permissions: # required by the reusable workflow + contents: read + packages: write + uses: ./.github/workflows/component-build-images.yml + if: github.repository == 'open-telemetry/opentelemetry-demo' + with: + push: true + version: ${{ github.event.release.tag_name }} + secrets: inherit diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/run-integration-tests.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/run-integration-tests.yml new file mode 100644 index 0000000000000000000000000000000000000000..02706d61628331026e6bf4b4ced434159d8d9aa5 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/run-integration-tests.yml @@ -0,0 +1,23 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Integration Tests + +on: + pull_request_review: + types: + - submitted + +permissions: + contents: read + +jobs: + run_tests: + runs-on: ubuntu-latest + name: "Run CI" + if: github.event.review.state == 'APPROVED' + steps: + - name: check out code + uses: actions/checkout@v6.0.2 + - name: run tracetesting + run: | + make build && docker system prune -f && make run-tracetesting diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/stale.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/stale.yml new file mode 100644 index 0000000000000000000000000000000000000000..eab3deec1b8afa58e5e54f7f3aac72f1f563a2a0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.github/workflows/stale.yml @@ -0,0 +1,29 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions +# Github Actions Stale: https://github.com/actions/stale + +name: "Close stale pull requests" +on: + schedule: + - cron: "12 3 * * *" # arbitrary time not to DDOS GitHub + +permissions: + contents: read + +jobs: + stale: + permissions: + issues: write # for actions/stale to close stale issues + pull-requests: write # for actions/stale to close stale PRs + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days.' + close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' + operations-per-run: 400 + days-before-pr-stale: 7 + days-before-issue-stale: -1 + days-before-pr-close: 7 + days-before-issue-close: -1 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..56022eb7f1c9313c2dd24a2f3a22107a65e8aa4e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.gitignore @@ -0,0 +1,57 @@ +*~ +*.iml +*.ipr +*.iws +*.pyc +.nb-gradle +.nb-gradle-properties +.swp +.DS_Store +\#*\# + +docker-compose.override.yml + +# Eclipse +.classpath +.project +.settings + +bin/ +obj/ +.vs/ +.vscode +.gradle/ +.idea/ +build/ +node_modules/ +coverage +.next/ +out/ +build +next-env.d.ts +vendor/ +composer.lock +.venv +.dockerhub.env +.ghcr.env + +src/frontend/cypress/videos +src/frontend/cypress/screenshots +src/shipping/target/ +test/tracetesting/tracetesting-vars.yaml + +# Ignore copied/generated protobuf files +/src/accounting/src/protos/ +/src/cart/src/protos/ +/src/fraud-detection/src/main/proto +/src/payment/demo.proto +/src/shipping/proto/ +/src/currency/proto +/src/frontend/pb + +# Android +*.apk + +!src/currency/build +src/cart/src/Program.cs.bak +src/flagd/demo.flagd.json.bak diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.licenserc.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.licenserc.json new file mode 100644 index 0000000000000000000000000000000000000000..8a0d1fdb9a91b2e8772dcf597771b2d7fd72ce06 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/.licenserc.json @@ -0,0 +1,63 @@ +{ + "**/*.{go,cs,h,cpp,js,ts,tsx,rs}": [ + "// Copyright The OpenTelemetry Authors", + "// SPDX-License-Identifier: Apache-2.0" + ], + "**/*.php": [ + " Frontend by @austinlparker in + ([537](https://github.com/open-telemetry/opentelemetry-demo/pull/537)) +* [docs] kubernetes by @puckpuck in + ([521](https://github.com/open-telemetry/opentelemetry-demo/pull/521)) +* bump to v1.0 for release by @austinlparker in + ([538](https://github.com/open-telemetry/opentelemetry-demo/pull/538)) + +## v0.7.0-beta + +* Update shippingservice to add resource data to spans +([#504](https://github.com/open-telemetry/opentelemetry-demo/pull/504)) +* Add Envoy as reverse proxy for all user-facing services +([#508](https://github.com/open-telemetry/opentelemetry-demo/pull/508)) +* Envoy: Grafana, Load Generator, Jaeger exposed. +([#513](https://github.com/open-telemetry/opentelemetry-demo/pull/513)) +* Added frontend instrumentation exporter custom url +([#512](https://github.com/open-telemetry/opentelemetry-demo/pull/512)) + +## v0.6.1-beta + +* Set resource memory limits for all services +([#460](https://github.com/open-telemetry/opentelemetry-demo/pull/460)) +* Added cache scenario to recommendation service +([#455](https://github.com/open-telemetry/opentelemetry-demo/pull/455)) +* Update cartservice Dockerfile to support ARM64 +([#439](https://github.com/open-telemetry/opentelemetry-demo/pull/439)) + +## v0.6.0-beta + +* Added basic metrics support for recommendation service (Python) +([#416](https://github.com/open-telemetry/opentelemetry-demo/pull/416)) +* Added metrics auto-instrumentation + minor metrics refactor for recommendation + service (Python) + [#432](https://github.com/open-telemetry/opentelemetry-demo/pull/432) +* Replaced the Jaeger exporter to the OTLP exporter in the OTel Collector +([#435](https://github.com/open-telemetry/opentelemetry-demo/pull/435)) + +## v0.5.0 + +* Add custom span and custom span attributes for Feature Flag Service +([#371](https://github.com/open-telemetry/opentelemetry-demo/pull/371)) +* Change Cart Service to be async +([#372](https://github.com/open-telemetry/opentelemetry-demo/pull/372)) +* Removed Postgres error on startup +([#378](https://github.com/open-telemetry/opentelemetry-demo/pull/378)) +* Fixed traffic to Ad and Recommendation Service +([#379](https://github.com/open-telemetry/opentelemetry-demo/pull/379)) +* Add dotnet runtime metrics to the Cart Service +([#393](https://github.com/open-telemetry/opentelemetry-demo/pull/393)) +* Add dotnet instrumentation libraries to the Cart Service +([#394](https://github.com/open-telemetry/opentelemetry-demo/pull/394)) +* Fixed Feature Flag Service error on start up +([#402](https://github.com/open-telemetry/opentelemetry-demo/pull/402)) +* Update Checkout Service Go version to 1.19 once OTel Go Metrics require 1.18+ +([#409](https://github.com/open-telemetry/opentelemetry-demo/pull/409)) +* Added hero scenario metric to Checkout Service on cache leak +([#339](https://github.com/open-telemetry/opentelemetry-demo/pull/339)) + +## v0.4.0 + +* Add span events to shipping service +([#344](https://github.com/open-telemetry/opentelemetry-demo/pull/344)) +* Add PHP quote service +([#345](https://github.com/open-telemetry/opentelemetry-demo/pull/345)) +* Improve initial run time, without a build +([#362](https://github.com/open-telemetry/opentelemetry-demo/pull/362)) + +## v0.3.0 + +* Enhanced cart service attributes +([#183](https://github.com/open-telemetry/opentelemetry-demo/pull/183)) +* Re-implemented currency service using C++ +([#189](https://github.com/open-telemetry/opentelemetry-demo/pull/189)) +* Simplified repo name and dropped the '-webstore' suffix in every place +([#225](https://github.com/open-telemetry/opentelemetry-demo/pull/225)) +* Added end-to-end tests to each individual service +([#242](https://github.com/open-telemetry/opentelemetry-demo/pull/242)) +* Added ability for repo forks to specify additional collector settings +([#246](https://github.com/open-telemetry/opentelemetry-demo/pull/246)) +* Add metrics endpoint in adservice to send metrics from java agent +([#237](https://github.com/open-telemetry/opentelemetry-demo/pull/237)) +* Support override java agent jar +([#244](https://github.com/open-telemetry/opentelemetry-demo/pull/244)) +* Pulling java agent from the Java instrumentation releases instead. +([#253](https://github.com/open-telemetry/opentelemetry-demo/pull/253)) +* Added explicit support for Kubernetes. +([#255](https://github.com/open-telemetry/opentelemetry-demo/pull/255)) +* Added spanmetrics processor to otelcol +([#212](https://github.com/open-telemetry/opentelemetry-demo/pull/212)) +* Added span attributes to shipping service +([#260](https://github.com/open-telemetry/opentelemetry-demo/pull/260)) +* Added span attributes to currency service +([#265](https://github.com/open-telemetry/opentelemetry-demo/pull/265)) +* Restricted network and port bindings +([#272](https://github.com/open-telemetry/opentelemetry-demo/pull/272)) +* Feature Flag Service UI exposed on port 8081 +([#273](https://github.com/open-telemetry/opentelemetry-demo/pull/273)) +* Reimplemented Frontend app using [Next.js](https://nextjs.org/) Browser client +([#236](https://github.com/open-telemetry/opentelemetry-demo/pull/236)) +* Remove set_currency from load generator +([#290](https://github.com/open-telemetry/opentelemetry-demo/pull/290)) +* Added Frontend [Cypress](https://www.cypress.io/) E2E tests +([#298](https://github.com/open-telemetry/opentelemetry-demo/pull/298)) +* Added baggage support in CurrencyService +([#281](https://github.com/open-telemetry/opentelemetry-demo/pull/281)) +* Added error for a specific product based on a feature flag +([#245](https://github.com/open-telemetry/opentelemetry-demo/pull/245)) +* Added Frontend Instrumentation +([#293](https://github.com/open-telemetry/opentelemetry-demo/pull/293)) +* Add Feature Flags definitions +([#314](https://github.com/open-telemetry/opentelemetry-demo/pull/314)) +* Enable Locust loadgen environment variable config options +([#316](https://github.com/open-telemetry/opentelemetry-demo/pull/316)) +* Simplified and cleaned up ProductCatalogService +([#317](https://github.com/open-telemetry/opentelemetry-demo/pull/317)) +* Updated Product Catalog to Match Astronomy Webstore +([#285](https://github.com/open-telemetry/opentelemetry-demo/pull/285)) +* Add Span link for synthetic requests (from load generator) +([#332](https://github.com/open-telemetry/opentelemetry-demo/pull/332)) +* Add `synthetic_request=true` baggage to load generator requests +([#331](https://github.com/open-telemetry/opentelemetry-demo/pull/331)) + +## v0.2.0 + +* Added feature flag service implementation +([#141](https://github.com/open-telemetry/opentelemetry-demo/pull/141)) +* Added additional attributes to productcatalog service +([#143](https://github.com/open-telemetry/opentelemetry-demo/pull/143)) +* Added manual instrumentation to ad service +([#150](https://github.com/open-telemetry/opentelemetry-demo/pull/150)) +* Added manual instrumentation to email service +([#158](https://github.com/open-telemetry/opentelemetry-demo/pull/158)) +* Added basic metric support and Prometheus storage +([#160](https://github.com/open-telemetry/opentelemetry-demo/pull/160)) +* Added manual instrumentation to recommendation service +([#163](https://github.com/open-telemetry/opentelemetry-demo/pull/163)) +* Added manual instrumentation to checkout service +([#164](https://github.com/open-telemetry/opentelemetry-demo/pull/164)) +* Added Grafana service and enhanced metric experience +([#175](https://github.com/open-telemetry/opentelemetry-demo/pull/175)) + +## v0.1.0 + +* The initial code base is donated from a +[fork](https://github.com/julianocosta89/opentelemetry-microservices-demo) of +the [Google microservices +demo](https://github.com/GoogleCloudPlatform/microservices-demo) with express +knowledge of the owners. The pre-existing copyrights will remain. Any future +significant modifications will be credited to OpenTelemetry Authors. +* Added feature flag service protos +([#26](https://github.com/open-telemetry/opentelemetry-demo/pull/26)) +* Added span attributes to frontend service +([#82](https://github.com/open-telemetry/opentelemetry-demo/pull/82)) +* Rewrote shipping service in Rust +([#35](https://github.com/open-telemetry/opentelemetry-demo/issues/35)) diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/CONTRIBUTING.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/CONTRIBUTING.md new file mode 100644 index 0000000000000000000000000000000000000000..c5508ec5da0275d9a5ed14d852c89ebd7f2cc1c8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/CONTRIBUTING.md @@ -0,0 +1,312 @@ +# Contributing to OpenTelemetry Demo Webstore + +Welcome to the OpenTelemetry Demo repository! We appreciate your interest in +contributing. Whether you're fixing a bug, improving documentation, or adding a +new feature, we value your contribution. + +Before getting started, please review the +[OpenTelemetry Contributor Guide](https://github.com/open-telemetry/community/blob/main/guides/contributor/README.md) +for details on code attribution and best practices. + +## Getting Started + +### Join a SIG Call + +We meet every other Wednesday at 8:00 PT. The schedule may change based on +contributors' availability. Check the [OpenTelemetry Community Calendar](https://github.com/open-telemetry/community?tab=readme-ov-file#special-interest-groups) +for specific dates and Zoom links. + +See the +[public meeting notes](https://docs.google.com/document/d/16f-JOjKzLgWxULRxY8TmpM_FjlI1sthvKurnqFz9x98/edit) +for a summary description of past meetings. +For edit access, ask in our +[Slack channel](https://cloud-native.slack.com/archives/C03B4CWV4DA). + +### Sign the Contributor License Agreement (CLA) + +Before contributing, sign the [CLA](https://identity.linuxfoundation.org/projects/cncf) + +### Find a Mentor (Buddy System) + +New to OpenTelemetry? We encourage you to find a mentor who can guide you +through your first contribution. + +1. Create your [CNCF Slack account](https://slack.cncf.io/) and join the + [otel-community-demo](https://app.slack.com/client/T08PSQ7BQ/C03B4CWV4DA) + channel. +2. Post in the room with an introduction to yourself, what area you are + interested in (check issues marked with [help + wanted](https://github.com/open-telemetry/opentelemetry-demo/labels/help%20wanted)), + and say you are looking for a buddy. We will match you with someone who has + experience in that area. + +Your OpenTelemetry buddy is your resource to talk to directly on all aspects of +contributing to OpenTelemetry: providing context, reviewing PRs, and helping +those get merged. Buddies will not be available 24/7, but is committed to +responding during their normal contribution hours. + +## Setting Up Your Development Environment + +### Prerequisites + +Ensure you have the following installed: + +- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) +- [Make](https://www.gnu.org/software/make/) +- [Docker](https://www.docker.com/get-started/) +- [Docker Compose](https://docs.docker.com/compose/install/#install-compose) v2.0.0+ + +### Clone the Repository + +```sh +git clone https://github.com/open-telemetry/opentelemetry-demo.git +cd opentelemetry-demo/ +``` + +### Run the Demo + +```sh +make start +``` + +### Verify the Webstore & Telemetry + +Once the images are built and containers are started, visit: + +- **Webstore**: [http://localhost:8080/](http://localhost:8080/) +- **Jaeger**: [http://localhost:8080/jaeger/ui/](http://localhost:8080/jaeger/ui/) +- **Grafana**: [http://localhost:8080/grafana/](http://localhost:8080/grafana/) +- **Feature Flags UI**: [http://localhost:8080/feature/](http://localhost:8080/feature/) +- **Load Generator UI**: [http://localhost:8080/loadgen/](http://localhost:8080/loadgen/) + +## Troubleshooting Common Issues + +### Docker Not Running + +**Error:** `Error response from daemon: Docker daemon is not running.` + +**Solution:** + +- **Windows/macOS**: Open Docker Desktop and ensure it's running. +- **Linux**: Check Docker status: + +```sh +systemctl status docker +``` + +If inactive, start it: + +```sh +sudo systemctl start docker + ``` + +### Gradle Issues (Windows) + +If you encounter Gradle issues, run: + +```sh +cd src/ad/ +./gradlew installDist +./gradlew wrapper --gradle-version 7.4.2 +``` + +### Docker build cache issues + +While developing, you may encounter issues with Docker build cache. To clear the +cache: + +```sh +docker system prune -a +``` + +Warning: This removes all unused Docker data, including images, containers, +volumes, and networks. Use with caution. + +### Debugging Tips + +- Use `docker ps` to check running containers. +- View logs for services: + +```sh +docker logs +``` + +- Restart containers if needed: + +```sh +docker-compose restart +``` + +### Review the Documentation + +The Demo team is committed to keeping the demo up to date. That means the +documentation as well as the code. When making changes to any service or feature +remember to find the related docs and update those as well. Most (but not all) +documentation can be found on the OTel website under [Demo docs][docs]. + +### Running the React Native example + +If you are interested in running the React Native example app in this repo +please review [these instructions](src/react-native-app/README.md). + +## Create Your First Pull Request + +### How to Send Pull Requests + +Everyone is welcome to contribute code to `opentelemetry-demo` via +GitHub pull requests (PRs). + +To create a new PR, fork the project in GitHub and clone the upstream repo: + +> [!NOTE] +> Please fork to a personal GitHub account rather than a corporate/enterprise +> one so maintainers can push commits to your branch. +> **Pull requests from protected forks will not be accepted.** + +```sh +git clone https://github.com/open-telemetry/opentelemetry-demo.git +``` + +Navigate to the repo root: + +```sh +cd opentelemetry-demo +``` + +Add your fork as an origin: + +```sh +git remote add fork https://github.com/YOUR_GITHUB_USERNAME/opentelemetry-demo.git +``` + +Check out a new branch, make modifications and push the branch to your fork: + +```sh +$ git checkout -b feature +# change files +# Test your changes locally. +$ docker compose up -d --build +# Go to Webstore, Jaeger or docker container logs etc. as appropriate to make sure your changes are working correctly. +$ git add my/changed/files +$ git commit -m "short description of the change" +$ git push fork feature +``` + +Open a pull request against the main `opentelemetry-demo` repo. + +### How to Receive Comments + +- If the PR is not ready for review, please mark it as + [`draft`](https://github.blog/2019-02-14-introducing-draft-pull-requests/). +- Make sure CLA is signed and all required CI checks are clear. +- Submit small, focused PRs addressing a single + concern/issue. +- Make sure the PR title reflects the contribution. +- Write a summary that helps understand the change. +- Include usage examples in the summary, where applicable. +- Include benchmarks (before/after) in the summary, for contributions that are + performance enhancements. + +### How to Get PRs Merged + +A PR is considered to be **ready to merge** when: + +- It has received approval from + [Approvers](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#approver) + / + [Maintainers](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#maintainer). +- Major feedbacks are resolved. +- It has been open for review for at least one working day. This gives people + reasonable time to review. +- The [documentation][docs] and [Changelog](./CHANGELOG.md) have been updated + to reflect the new changes. +- Trivial changes (typo, cosmetic, doc, etc.) don't have to wait for one day. + +Any Maintainer can merge the PR once it is **ready to merge**. Note, that some +PRs may not be merged immediately if the repo is in the process of a release and +the maintainers decided to defer the PR to the next release train. + +If a PR has been stuck (e.g. there are lots of debates and people couldn't agree +on each other), the owner should try to get people aligned by: + +- Consolidating the perspectives and putting a summary in the PR. It is + recommended to add a link into the PR description, which points to a comment + with a summary in the PR conversation. +- Tagging subdomain experts (by looking at the change history) in the PR asking + for suggestion. +- Reaching out to more people on the [CNCF OpenTelemetry Community Demo Slack + channel](https://app.slack.com/client/T08PSQ7BQ/C03B4CWV4DA). +- Stepping back to see if it makes sense to narrow down the scope of the PR or + split it up. +- If none of the above worked and the PR has been stuck for more than 2 weeks, + the owner should bring it to the OpenTelemetry Community Demo SIG + [meeting](README.md#contributing). + +## Multi-platform Builds + +Creating multi-platform builds requires docker buildx to be installed. This +is part of Docker Desktop for macOS, or can be installed using +`apt install docker-buildx` on Ubuntu. + +To build and load the multi-platform images locally you will need to configure +docker to use `containerd`. This can be done in Docker Desktop settings on MacOS +or Windows. Please follow +[these instructions](https://docs.docker.com/engine/storage/containerd/#enable-containerd-image-store-on-docker-engine) +to configure Docker Engine on Linux/Ubuntu. + +You will need a multi-platform capable builder with a limiter set on parallelism +to avoid errors while building the images. It is recommended to limit the +parallelism to 4. This can be done by specifying a configuration file when +creating the builder. The `buildkitd.toml` file in this repository can be used +as the builder configuration file. + +To create a multi-platform builder with a parallelism limit of 4, use the +following command: + +```shell +make create-multiplatform-builder +``` + +A builder will be created and set as the active builder. You can check the +builder status with `docker buildx inspect`. To build multi-platform images for +linux/amd64 and linux/arm64, use the following command: + +```shell +make build-multiplatform +``` + +To build and push multi-platform images to a registry, ensure to set +`IMAGE_NAME` to the name of the registry and image repository to use in the +`.env.override` file and run: + +```shell +make build-multiplatform-and-push +``` + +## Making a new release + +Maintainers can create a new release when desired by following these steps. + +1. Create a Pull Request that updates the `IMAGE_VERSION` environment variable + in `.env` to the _new_ version number based on the format `x.x.x` and merge + it. +2. [Create a new + release](https://github.com/open-telemetry/opentelemetry-demo/releases/new), + creating a new tag for the _new_ version number based on main. Automatically + generate release notes. Prepend a summary of the major changes to the release + notes. +3. After images for the new release are built and published, create a new Pull + Request that updates the `CHANGELOG.md` with the new version leaving the + `Unreleased` section for the next release. Merge the Pull Request. +4. Create a new Pull Request to update the deployment of the demo in the + [OpenTelemetry Helm + Charts](https://github.com/open-telemetry/opentelemetry-helm-charts) repo. + Merge the Pull Request. +5. After the Helm chart is released, create a new Pull Request which updates the + Demo's Kubernetes manifest by running `make generate-kubernetes-manifests`. + Merge the Pull Request. + +[docs]: https://opentelemetry.io/docs/demo/ + +By following this guide, you'll have a smoother onboarding experience as a +contributor. Happy coding! diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/LICENSE b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/Makefile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..96ce7efdf06d8b00610e0357bd56992caf9e0cef --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/Makefile @@ -0,0 +1,252 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +# All documents to be used in spell check. +ALL_DOCS := $(shell find . -type f -name '*.md' -not -path './.github/*' -not -path '*/node_modules/*' -not -path '*/_build/*' -not -path '*/deps/*' -not -path */Pods/* -not -path */.expo/* | sort) +PWD := $(shell pwd) + +TOOLS_DIR := ./internal/tools +MISSPELL_BINARY=bin/misspell +MISSPELL = $(TOOLS_DIR)/$(MISSPELL_BINARY) + +DOCKER_COMPOSE_CMD ?= docker compose +DOCKER_COMPOSE_ENV=--env-file .env --env-file .env.override +DOCKER_COMPOSE_BUILD_ARGS= + +# Java Workaround for macOS 15.2+ and M4 chips (see https://bugs.openjdk.org/browse/JDK-8345296) +ifeq ($(shell uname -m),arm64) + ifeq ($(shell uname -s),Darwin) + DOCKER_COMPOSE_ENV+= --env-file .env.arm64 + DOCKER_COMPOSE_BUILD_ARGS+= --build-arg=_JAVA_OPTIONS=-XX:UseSVE=0 + endif +endif + +# see https://github.com/open-telemetry/build-tools/releases for semconvgen updates +# Keep links in semantic_conventions/README.md and .vscode/settings.json in sync! +SEMCONVGEN_VERSION=0.11.0 +YAMLLINT_VERSION=1.30.0 + +.PHONY: all +all: install-tools markdownlint misspell yamllint + +$(MISSPELL): + cd $(TOOLS_DIR) && go build -o $(MISSPELL_BINARY) github.com/client9/misspell/cmd/misspell + +.PHONY: misspell +misspell: $(MISSPELL) + $(MISSPELL) -error $(ALL_DOCS) + +.PHONY: misspell-correction +misspell-correction: $(MISSPELL) + $(MISSPELL) -w $(ALL_DOCS) + +.PHONY: markdownlint +markdownlint: + @if ! npm ls markdownlint; then npm install; fi + @for f in $(ALL_DOCS); do \ + echo $$f; \ + npx --no -p markdownlint-cli markdownlint -c .markdownlint.yaml $$f \ + || exit 1; \ + done + +.PHONY: install-yamllint +install-yamllint: + # Using a venv is recommended + yamllint --version >/dev/null 2>&1 || pip install -U yamllint~=$(YAMLLINT_VERSION) + +.PHONY: yamllint +yamllint: install-yamllint + yamllint . + +.PHONY: checklicense +checklicense: + @echo "Checking license headers..." + @if ! npm ls @kt3k/license-checker; then npm install; fi + npx @kt3k/license-checker -q + +.PHONY: addlicense +addlicense: + @echo "Adding license headers..." + @if ! npm ls @kt3k/license-checker; then npm install; fi + npx @kt3k/license-checker -q -i + +.PHONY: checklinks +checklinks: + @echo "Checking links..." + @if ! npm ls @umbrelladocs/linkspector; then npm install; fi + linkspector check + +# Run all checks in order of speed / likely failure. +.PHONY: check +check: misspell markdownlint checklicense checklinks + @echo "All checks complete" + +# Attempt to fix issues / regenerate tables. +.PHONY: fix +fix: misspell-correction + @echo "All autofixes complete" + +.PHONY: install-tools +install-tools: $(MISSPELL) + npm install + @echo "All tools installed" + +.PHONY: build +build: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build $(DOCKER_COMPOSE_BUILD_ARGS) + +.PHONY: build-and-push +build-and-push: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build $(DOCKER_COMPOSE_BUILD_ARGS) --push + +# Create multiplatform builder for buildx +.PHONY: create-multiplatform-builder +create-multiplatform-builder: + docker buildx create --name otel-demo-builder --bootstrap --use --driver docker-container --config ./buildkitd.toml + +# Remove multiplatform builder for buildx +.PHONY: remove-multiplatform-builder +remove-multiplatform-builder: + docker buildx rm otel-demo-builder + +# Build and push multiplatform images (linux/amd64, linux/arm64) using buildx. +# Requires docker with buildx enabled and a multi-platform capable builder in use. +# Docker needs to be configured to use containerd storage for images to be loaded into the local registry. +.PHONY: build-multiplatform +build-multiplatform: + # Because buildx bake does not support --env-file yet, we need to load it into the environment first. + set -a; . ./.env.override; set +a && docker buildx bake -f docker-compose.yml --load --set "*.platform=linux/amd64,linux/arm64" + +.PHONY: build-multiplatform-and-push +build-multiplatform-and-push: + # Because buildx bake does not support --env-file yet, we need to load it into the environment first. + set -a; . ./.env.override; set +a && docker buildx bake -f docker-compose.yml --push --set "*.platform=linux/amd64,linux/arm64" + +.PHONY: clean-images +clean-images: + @docker rmi $(shell docker images --filter=reference="ghcr.io/open-telemetry/demo:latest-*" -q); \ + if [ $$? -ne 0 ]; \ + then \ + echo; \ + echo "Failed to removed 1 or more OpenTelemetry Demo images."; \ + echo "Check to ensure the Demo is not running by executing: make stop"; \ + false; \ + fi + +.PHONY: run-tests +run-tests: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) -f docker-compose-tests.yml run frontendTests + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) -f docker-compose-tests.yml run traceBasedTests + +.PHONY: run-tracetesting +run-tracetesting: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) -f docker-compose-tests.yml run traceBasedTests ${SERVICES_TO_TEST} + +.PHONY: generate-protobuf +generate-protobuf: + ./ide-gen-proto.sh + +.PHONY: generate-kubernetes-manifests +generate-kubernetes-manifests: + helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts + helm repo update + echo "# Copyright The OpenTelemetry Authors" > kubernetes/opentelemetry-demo.yaml + echo "# SPDX-License-Identifier: Apache-2.0" >> kubernetes/opentelemetry-demo.yaml + echo "# This file is generated by 'make generate-kubernetes-manifests'" >> kubernetes/opentelemetry-demo.yaml + echo "---" >> kubernetes/opentelemetry-demo.yaml + echo "apiVersion: v1" >> kubernetes/opentelemetry-demo.yaml + echo "kind: Namespace" >> kubernetes/opentelemetry-demo.yaml + echo "metadata:" >> kubernetes/opentelemetry-demo.yaml + echo " name: otel-demo" >> kubernetes/opentelemetry-demo.yaml + helm template opentelemetry-demo open-telemetry/opentelemetry-demo --namespace otel-demo | sed '/helm.sh\/chart\:/d' | sed '/helm.sh\/hook/d' | sed '/managed-by\: Helm/d' >> kubernetes/opentelemetry-demo.yaml + +.PHONY: docker-generate-protobuf +docker-generate-protobuf: + ./docker-gen-proto.sh + +.PHONY: clean +clean: + rm -rf ./src/{checkout,product-catalog}/genproto/oteldemo/ + rm -rf ./src/recommendation/{demo_pb2,demo_pb2_grpc}.py + rm -rf ./src/frontend/protos/demo.ts + +.PHONY: check-clean-work-tree +check-clean-work-tree: + @if ! git diff --quiet; then \ + echo; \ + echo 'Working tree is not clean, did you forget to run "make docker-generate-protobuf"?'; \ + echo; \ + git status; \ + exit 1; \ + fi + +.PHONY: start +start: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) up --force-recreate --remove-orphans --detach + @echo "" + @echo "OpenTelemetry Demo is running." + @echo "Go to http://localhost:8080 for the demo UI." + @echo "Go to http://localhost:8080/jaeger/ui for the Jaeger UI." + @echo "Go to http://localhost:8080/grafana/ for the Grafana UI." + @echo "Go to http://localhost:8080/loadgen/ for the Load Generator UI." + @echo "Go to http://localhost:8080/feature/ to change feature flags." + +.PHONY: start-minimal +start-minimal: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) -f docker-compose.minimal.yml up --force-recreate --remove-orphans --detach + @echo "" + @echo "OpenTelemetry Demo in minimal mode is running." + @echo "Go to http://localhost:8080 for the demo UI." + @echo "Go to http://localhost:8080/jaeger/ui for the Jaeger UI." + @echo "Go to http://localhost:8080/grafana/ for the Grafana UI." + @echo "Go to http://localhost:8080/loadgen/ for the Load Generator UI." + @echo "Go to https://opentelemetry.io/docs/demo/feature-flags/ to learn how to change feature flags." + +.PHONY: stop +stop: + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) down --remove-orphans --volumes + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) -f docker-compose-tests.yml down --remove-orphans --volumes + @echo "" + @echo "OpenTelemetry Demo is stopped." + +# Use to restart a single service component +# Example: make restart service=frontend +.PHONY: restart +restart: +# work with `service` or `SERVICE` as input +ifdef SERVICE + service := $(SERVICE) +endif + +ifdef service + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) stop $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) rm --force $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) create $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) start $(service) +else + @echo "Please provide a service name using `service=[service name]` or `SERVICE=[service name]`" +endif + +# Use to rebuild and restart (redeploy) a single service component +# Example: make redeploy service=frontend +.PHONY: redeploy +redeploy: +# work with `service` or `SERVICE` as input +ifdef SERVICE + service := $(SERVICE) +endif + +ifdef service + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build $(DOCKER_COMPOSE_BUILD_ARGS) $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) stop $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) rm --force $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) create $(service) + $(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) start $(service) +else + @echo "Please provide a service name using `service=[service name]` or `SERVICE=[service name]`" +endif + +.PHONY: build-react-native-android +build-react-native-android: + docker build -f src/react-native-app/android.Dockerfile --platform=linux/amd64 --output=. src/react-native-app diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/README.md new file mode 100644 index 0000000000000000000000000000000000000000..01caf2986106212298098e4c4f42797ee1b92d46 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/README.md @@ -0,0 +1,160 @@ + +# OTel logo OpenTelemetry Demo + +[![Slack](https://img.shields.io/badge/slack-@cncf/otel/demo-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C03B4CWV4DA) +[![Version](https://img.shields.io/github/v/release/open-telemetry/opentelemetry-demo?color=blueviolet)](https://github.com/open-telemetry/opentelemetry-demo/releases) +[![Commits](https://img.shields.io/github/commits-since/open-telemetry/opentelemetry-demo/latest?color=ff69b4&include_prereleases)](https://github.com/open-telemetry/opentelemetry-demo/graphs/commit-activity) +[![Downloads](https://img.shields.io/docker/pulls/otel/demo)](https://hub.docker.com/r/otel/demo) +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg?color=red)](https://github.com/open-telemetry/opentelemetry-demo/blob/main/LICENSE) +[![Integration Tests](https://github.com/open-telemetry/opentelemetry-demo/actions/workflows/run-integration-tests.yml/badge.svg)](https://github.com/open-telemetry/opentelemetry-demo/actions/workflows/run-integration-tests.yml) +[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/opentelemetry-demo)](https://artifacthub.io/packages/helm/opentelemetry-helm/opentelemetry-demo) +[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B162%2Fgithub.com%2Fopen-telemetry%2Fopentelemetry-demo.svg?type=shield&issueType=license)](https://app.fossa.com/projects/custom%2B162%2Fgithub.com%2Fopen-telemetry%2Fopentelemetry-demo?ref=badge_shield&issueType=license) +[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B162%2Fgithub.com%2Fopen-telemetry%2Fopentelemetry-demo.svg?type=shield&issueType=security)](https://app.fossa.com/projects/custom%2B162%2Fgithub.com%2Fopen-telemetry%2Fopentelemetry-demo?ref=badge_shield&issueType=security) +[![OpenSSF Scorecard for opentelemetry-demo](https://api.scorecard.dev/projects/github.com/open-telemetry/opentelemetry-demo/badge)](https://scorecard.dev/viewer/?uri=github.com/open-telemetry/opentelemetry-demo) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9247/badge)](https://www.bestpractices.dev/en/projects/9247) + +## Welcome to the OpenTelemetry Astronomy Shop Demo + +This repository contains the OpenTelemetry Astronomy Shop, a microservice-based +distributed system intended to illustrate the implementation of OpenTelemetry in +a near real-world environment. + +Our goals are threefold: + +- Provide a realistic example of a distributed system that can be used to + demonstrate OpenTelemetry instrumentation and observability. +- Build a base for vendors, tooling authors, and others to extend and + demonstrate their OpenTelemetry integrations. +- Create a living example for OpenTelemetry contributors to use for testing new + versions of the API, SDK, and other components or enhancements. + +We've already made [huge +progress](https://github.com/open-telemetry/opentelemetry-demo/blob/main/CHANGELOG.md), +and development is ongoing. We hope to represent the full feature set of +OpenTelemetry across its languages in the future. + +If you'd like to help (**which we would love**), check out our [contributing +guidance](./CONTRIBUTING.md). + +If you'd like to extend this demo or maintain a fork of it, read our +[fork guidance](https://opentelemetry.io/docs/demo/forking/). + +## Quick start + +You can be up and running with the demo in a few minutes. Check out the docs for +your preferred deployment method: + +- [Docker](https://opentelemetry.io/docs/demo/docker_deployment/) +- [Kubernetes](https://opentelemetry.io/docs/demo/kubernetes_deployment/) + +## Documentation + +For detailed documentation, see [Demo Documentation][docs]. If you're curious +about a specific feature, the [docs landing page][docs] can point you in the +right direction. + +## Demos featuring the Astronomy Shop + +We welcome any vendor to fork the project to demonstrate their services and +adding a link below. The community is committed to maintaining the project and +keeping it up to date for you. + +| | | | +|---------------------------|----------------|----------------------------------| +| [AlibabaCloud LogService] | [Google Cloud] | [Parseable] | +| [Apache Doris] | [Grafana Labs] | [Sentry] | +| [AppDynamics] | [Guance] | [ServiceNow Cloud Observability] | +| [Aspecto] | [Honeycomb.io] | [SigNoz] | +| [Axiom] | [Instana] | [Splunk] | +| [Axoflow] | [Kloudfuse] | [Sumo Logic] | +| [Azure Data Explorer] | [Last9] | [TelemetryHub] | +| [Causely] | [Liatrio] | [Teletrace] | +| [ClickStack] | [Logz.io] | [Tinybird] | +| [Coralogix] | [New Relic] | [Tracetest] | +| [Dash0] | [Oodle] | [Uptrace] | +| [Datadog] | [OpenObserve] | [VictoriaMetrics] | +| [Dynatrace] | [OpenSearch] | | +| [Elastic] | [Oracle] | | + +## Contributing + +To get involved with the project see our [CONTRIBUTING](CONTRIBUTING.md) +documentation. Our [SIG Calls](CONTRIBUTING.md#join-a-sig-call) are every other +Wednesday at 8:30 AM PST and anyone is welcome. + +### Maintainers + +- [Juliano Costa](https://github.com/julianocosta89), Datadog +- [Mikko Viitanen](https://github.com/mviitane), Dynatrace +- [Pierre Tessier](https://github.com/puckpuck), Honeycomb +- [Roger Coll](https://github.com/rogercoll), Elastic + +For more information about the maintainer role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#maintainer). + +### Approvers + +- [Cedric Ziel](https://github.com/cedricziel), Grafana Labs +- [Shenoy Pratik](https://github.com/ps48), AWS OpenSearch + +For more information about the approver role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#approver). + +### Emeritus + +- [Austin Parker](https://github.com/austinlparker) +- [Carter Socha](https://github.com/cartersocha) +- [Michael Maxwell](https://github.com/mic-max) +- [Morgan McLean](https://github.com/mtwo) +- [Penghan Wang](https://github.com/wph95) +- [Reiley Yang](https://github.com/reyang) +- [Ziqi Zhao](https://github.com/fatsheep9146) + +For more information about the emeritus role, see the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#emeritus-maintainerapprovertriager). + +### Thanks to all the people who have contributed + +[![contributors](https://contributors-img.web.app/image?repo=open-telemetry/opentelemetry-demo)](https://github.com/open-telemetry/opentelemetry-demo/graphs/contributors) + +[docs]: https://opentelemetry.io/docs/demo/ + + + +[AlibabaCloud LogService]: https://github.com/aliyun-sls/opentelemetry-demo +[AppDynamics]: https://community.splunk.com/t5/AppDynamics-Knowledge-Base/How-to-observe-Kubernetes-deployment-of-OpenTelemetry-demo-app/ta-p/741454 +[Apache Doris]: https://github.com/apache/doris-opentelemetry-demo +[Aspecto]: https://github.com/aspecto-io/opentelemetry-demo +[Axiom]: https://play.axiom.co/axiom-play-qf1k/dashboards/otel.traces.otel-demo-traces +[Axoflow]: https://axoflow.com/opentelemetry-support-in-more-detail-in-axosyslog-and-syslog-ng/ +[Azure Data Explorer]: https://github.com/Azure/Azure-kusto-opentelemetry-demo +[Causely]: https://github.com/causely-oss/otel-demo +[ClickStack]: https://github.com/ClickHouse/opentelemetry-demo +[Coralogix]: https://coralogix.com/blog/configure-otel-demo-send-telemetry-data-coralogix +[Dash0]: https://github.com/dash0hq/opentelemetry-demo +[Datadog]: https://docs.datadoghq.com/opentelemetry/guide/otel_demo_to_datadog +[Dynatrace]: https://www.dynatrace.com/news/blog/opentelemetry-demo-application-with-dynatrace/ +[Elastic]: https://github.com/elastic/opentelemetry-demo +[Google Cloud]: https://github.com/GoogleCloudPlatform/opentelemetry-demo +[Grafana Labs]: https://github.com/grafana/opentelemetry-demo +[Guance]: https://github.com/GuanceCloud/opentelemetry-demo +[Honeycomb.io]: https://github.com/honeycombio/opentelemetry-demo +[Instana]: https://github.com/instana/opentelemetry-demo +[Kloudfuse]: https://github.com/kloudfuse/opentelemetry-demo +[Last9]: https://last9.io/docs/integrations-opentelemetry-demo/ +[Liatrio]: https://github.com/liatrio/opentelemetry-demo +[Logz.io]: https://logz.io/learn/how-to-run-opentelemetry-demo-with-logz-io/ +[New Relic]: https://github.com/newrelic/opentelemetry-demo +[Oodle]: https://blog.oodle.ai/meet-oodle-unified-and-ai-native-observability/ +[OpenSearch]: https://github.com/opensearch-project/opentelemetry-demo +[OpenObserve]: https://openobserve.ai/blog/opentelemetry-astronomy-shop-demo/ +[Oracle]: https://github.com/oracle-quickstart/oci-o11y-solutions/blob/main/knowledge-content/opentelemetry-demo +[Parseable]: https://www.parseable.com/blog/open-telemetry-demo-with-parseable-a-complete-observability-setup +[Sentry]: https://github.com/getsentry/opentelemetry-demo +[ServiceNow Cloud Observability]: https://docs.lightstep.com/otel/quick-start-operator#send-data-from-the-opentelemetry-demo +[SigNoz]: https://signoz.io/blog/opentelemetry-demo/ +[Splunk]: https://github.com/signalfx/opentelemetry-demo +[Sumo Logic]: https://www.sumologic.com/blog/common-opentelemetry-demo-application/ +[TelemetryHub]: https://github.com/TelemetryHub/opentelemetry-demo/tree/telemetryhub-backend +[Teletrace]: https://github.com/teletrace/opentelemetry-demo +[Tinybird]: https://github.com/tinybirdco/opentelemetry-demo +[Tracetest]: https://github.com/kubeshop/opentelemetry-demo +[Uptrace]: https://github.com/uptrace/uptrace/tree/master/example/opentelemetry-demo +[VictoriaMetrics]: https://github.com/VictoriaMetrics-Community/opentelemetry-demo diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/buildkitd.toml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/buildkitd.toml new file mode 100644 index 0000000000000000000000000000000000000000..ef2690a4d15b6c0b1f2a3c6ad9ee56cfea785ecd --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/buildkitd.toml @@ -0,0 +1,5 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +[worker.oci] +max-parallelism = 4 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests.yml new file mode 100644 index 0000000000000000000000000000000000000000..6ab717576821fde29e487105c50162fd62fb6fe7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests.yml @@ -0,0 +1,135 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +include: + - path: + - docker-compose.yml # depend on the main docker-compose file + - docker-compose-tests_include-override.yml # include override for tests + +services: + # ***** + # Tests + # ***** + # Frontend Tests + frontendTests: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-tests + container_name: frontend-tests + build: + context: ./ + dockerfile: ./src/frontend/Dockerfile.cypress + volumes: + - ./src/frontend/cypress/videos:/app/cypress/videos + - ./src/frontend/cypress/screenshots:/app/cypress/screenshots + environment: + - CYPRESS_baseUrl=http://${FRONTEND_ADDR} + - FRONTEND_ADDR + - NODE_ENV=production + depends_on: + - frontend + + # Tracebased Tests + traceBasedTests: + image: ${IMAGE_NAME}:${DEMO_VERSION}-traceBasedTests + container_name: traceBasedTests + build: + context: ./ + dockerfile: ./test/tracetesting/Dockerfile + args: + TRACETEST_IMAGE_VERSION: ${TRACETEST_IMAGE_VERSION} + environment: + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - FRONTEND_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + extra_hosts: + - "host.docker.internal:host-gateway" + volumes: + - ./test/tracetesting:/app/test/tracetesting + - ./pb:/app/pb + depends_on: + tracetest-server: + condition: service_healthy + # adding demo services as dependencies + accounting: + condition: service_started + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + fraud-detection: + condition: service_started + frontend: + condition: service_started + llm: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + product-reviews: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + flagd: + condition: service_started + kafka: + condition: service_started + + tracetest-server: + image: ${TRACETEST_IMAGE} + platform: linux/amd64 + container_name: tracetest-server + volumes: + - type: bind + source: ./test/tracetesting/tracetest-config.yaml + target: /app/tracetest.yaml + - type: bind + source: ./test/tracetesting/tracetest-provision.yaml + target: /app/provision.yaml + command: --provisioning-file /app/provision.yaml + ports: + - 11633:11633 + extra_hosts: + - "host.docker.internal:host-gateway" + depends_on: + tracetest-postgres: + condition: service_healthy + otel-collector: + condition: service_started + healthcheck: + test: [ "CMD", "wget", "--spider", "localhost:11633" ] + interval: 1s + timeout: 3s + retries: 60 + + tracetest-postgres: + image: ${POSTGRES_IMAGE} + container_name: tracetest-postgres + environment: + POSTGRES_PASSWORD: postgres + POSTGRES_USER: postgres + healthcheck: + test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" + interval: 1s + timeout: 5s + retries: 60 + ports: + - 5432 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests_include-override.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests_include-override.yml new file mode 100644 index 0000000000000000000000000000000000000000..b9c3c837e0d5726ecf1fc6ea9a8f136e414a3213 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose-tests_include-override.yml @@ -0,0 +1,17 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +services: + + otel-collector: + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-tracetest.yml" ] + environment: + - ENVOY_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + volumes: + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ./test/tracetesting/otelcol-config-tracetest.yml:/etc/otelcol-config-tracetest.yml + depends_on: [] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.minimal.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.minimal.yml new file mode 100644 index 0000000000000000000000000000000000000000..9b8a70e5d17e240471f45ca94b709ee312780979 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.minimal.yml @@ -0,0 +1,786 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - FLAGD_HOST + - FLAGD_PORT + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - IPV6_ENABLED + - CURRENCY_PORT + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./src/email + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADMIN_PORT + - ENVOY_ADDR + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=false + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - FLAGD_HOST + - FLAGD_PORT + - PAYMENT_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - PRODUCT_CATALOG_PORT + - PRODUCT_CATALOG_RELOAD_INTERVAL + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + volumes: + - ./src/product-catalog/products:/usr/src/app/products + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 500M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 50M + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + healthcheck: + test: ["CMD-SHELL", "timeout 1 bash -c '>/dev/tcp/localhost/${SHIPPING_PORT}'"] + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 50M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config.yml" + deploy: + resources: + limits: + memory: 400M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=5000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..a44b0904528711b8d56c4b1947f553bbdbf65eba --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - ${DATA_MOUNT_DIR:-../data}/jaeger:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ${DATA_MOUNT_DIR:-../data}/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - ${DATA_MOUNT_DIR:-../data}/prometheus:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - ${DATA_MOUNT_DIR:-../data}/opensearch-data:/usr/share/opensearch/data + - ${DATA_MOUNT_DIR:-../data}/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_210614 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_210614 new file mode 100644 index 0000000000000000000000000000000000000000..441d5ecdd499f550736be43c04e2109433f79f42 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_210614 @@ -0,0 +1,959 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 50M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_220858 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_220858 new file mode 100644 index 0000000000000000000000000000000000000000..328d35657a50afd9162807909baa82bc7e5fe7af --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260131_220858 @@ -0,0 +1,959 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_020838 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_020838 new file mode 100644 index 0000000000000000000000000000000000000000..e2d44e803919ca073b59e200787595f2a5922611 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_020838 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_021512 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_021512 new file mode 100644 index 0000000000000000000000000000000000000000..361284ee7705480e2eac5a3b90466b5781a25189 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_021512 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-2/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-2/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-2/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_031708 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_031708 new file mode 100644 index 0000000000000000000000000000000000000000..e4cd1cf6bbfb9072a4a9287724b37d9c301822f6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_031708 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-3/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-3/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/out-test-0131-3/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_194709 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_194709 new file mode 100644 index 0000000000000000000000000000000000000000..32156b536fc7900c8b9723bca9c32aefe1dd6fd3 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260201_194709 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0131/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0131/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0131/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225650 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225650 new file mode 100644 index 0000000000000000000000000000000000000000..b2a6fff9aeb0452024edffcff9a2810d62556a23 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225650 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-0201/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/out-0201/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/out-0201/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225721 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225721 new file mode 100644 index 0000000000000000000000000000000000000000..7f0b4e0fe8de0baa09ce6811bf7b4879f60f6520 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_225721 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_231354 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_231354 new file mode 100644 index 0000000000000000000000000000000000000000..7f0b4e0fe8de0baa09ce6811bf7b4879f60f6520 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260206_231354 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_002606 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_002606 new file mode 100644 index 0000000000000000000000000000000000000000..2721b7200d33fd908df0805de50acb6b8d320138 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_002606 @@ -0,0 +1,964 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-snapshots/snapshot_day1_00h06m/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-snapshots/snapshot_day1_00h06m/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-snapshots/snapshot_day1_00h06m/opensearch-data:/usr/share/opensearch/data + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_015343 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_015343 new file mode 100644 index 0000000000000000000000000000000000000000..5c294e0a86b2ad95a75e5fa03d52c6a203c1bac9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_015343 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-2-snapshots/snapshot_day1_00h06m/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-2-snapshots/snapshot_day1_00h06m/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-2-snapshots/snapshot_day1_00h06m/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-2-snapshots/snapshot_day1_00h06m/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_020513 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_020513 new file mode 100644 index 0000000000000000000000000000000000000000..afd2d6359e45bc6eb03624e1f80c751041d5d916 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_020513 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-3/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-3/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-3/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-3/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_021110 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_021110 new file mode 100644 index 0000000000000000000000000000000000000000..d6eea7e557cbce76291335d0cae315db62e94bb7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_021110 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_155457 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_155457 new file mode 100644 index 0000000000000000000000000000000000000000..5d10e56ec3e0a357a35d9bd06ed9b09e0b070d5d --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_155457 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_160009 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_160009 new file mode 100644 index 0000000000000000000000000000000000000000..dbb48cc2c75cb152a5264b4d9936d8a247a33126 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_160009 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-0206-4/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_171842 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_171842 new file mode 100644 index 0000000000000000000000000000000000000000..40c0567f441ac3eac57ef45e55f02574d862db4e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_171842 @@ -0,0 +1,966 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_190445 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_190445 new file mode 100644 index 0000000000000000000000000000000000000000..9dfc5a66cbfb520ad545efcf51d4f437dd2f3b45 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_190445 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-2/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-2/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-2/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-2/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193600 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193600 new file mode 100644 index 0000000000000000000000000000000000000000..9ad84a98b76cedf0e5937b08ecbcd3b1ac9f2513 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193600 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-3/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-3/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-3/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-3/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193610 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193610 new file mode 100644 index 0000000000000000000000000000000000000000..bdf1b09a24c2f936de85768252290cef99fe16fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193610 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193759 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193759 new file mode 100644 index 0000000000000000000000000000000000000000..bdf1b09a24c2f936de85768252290cef99fe16fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_193759 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194000 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194000 new file mode 100644 index 0000000000000000000000000000000000000000..bdf1b09a24c2f936de85768252290cef99fe16fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194000 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194246 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194246 new file mode 100644 index 0000000000000000000000000000000000000000..bdf1b09a24c2f936de85768252290cef99fe16fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_194246 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/jaeger-badger-data:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + - --web.enable-otlp-receiver + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/prometheus-data:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_201808 b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_201808 new file mode 100644 index 0000000000000000000000000000000000000000..ed1e7af0d307f34dcd4b78a8d85062993ae0cbc6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-compose.yml.backup.20260207_201808 @@ -0,0 +1,967 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +x-default-logging: &logging + driver: "json-file" + options: + max-size: "5m" + max-file: "2" + tag: "{{.Name}}" + +networks: + default: + name: opentelemetry-demo + driver: bridge + +services: + # ****************** + # Core Demo Services + # ****************** + # Accounting service + accounting: + image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting + container_name: accounting + build: + context: ./ + dockerfile: ${ACCOUNTING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-accounting + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + environment: + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=accounting + - DB_CONNECTION_STRING=Host=${POSTGRES_HOST};Username=otelu;Password=otelp;Database=${POSTGRES_DB} + - OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED=false + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # AdService + ad: + image: ${IMAGE_NAME}:${DEMO_VERSION}-ad + container_name: ad + build: + context: ./ + dockerfile: ${AD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-ad + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + ports: + - "${AD_PORT}" + environment: + - AD_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_LOGS_EXPORTER=otlp + - OTEL_SERVICE_NAME=ad + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Cart service + cart: + image: ${IMAGE_NAME}:${DEMO_VERSION}-cart + container_name: cart + build: + context: ./ + dockerfile: ${CART_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-cart + deploy: + resources: + limits: + memory: 160M + restart: unless-stopped + ports: + - "${CART_PORT}" + environment: + - CART_PORT + - FLAGD_HOST + - FLAGD_PORT + - VALKEY_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=cart + - ASPNETCORE_URLS=http://*:${CART_PORT} + depends_on: + valkey-cart: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Checkout service + checkout: + image: ${IMAGE_NAME}:${DEMO_VERSION}-checkout + container_name: checkout + build: + context: ./ + dockerfile: ${CHECKOUT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-checkout + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CHECKOUT_PORT}" + environment: + - FLAGD_HOST + - FLAGD_PORT + - CHECKOUT_PORT + - CART_ADDR + - CURRENCY_ADDR + - EMAIL_ADDR + - PAYMENT_ADDR + - PRODUCT_CATALOG_ADDR + - SHIPPING_ADDR + - KAFKA_ADDR + - GOMEMLIMIT=16MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=checkout + depends_on: + cart: + condition: service_started + currency: + condition: service_started + email: + condition: service_started + payment: + condition: service_started + product-catalog: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + kafka: + condition: service_healthy + flagd: + condition: service_started + logging: *logging + + # Currency service + currency: + image: ${IMAGE_NAME}:${DEMO_VERSION}-currency + container_name: currency + build: + context: ./ + dockerfile: ${CURRENCY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-currency + args: + OPENTELEMETRY_CPP_VERSION: ${OPENTELEMETRY_CPP_VERSION} + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${CURRENCY_PORT}" + environment: + - CURRENCY_PORT + - IPV6_ENABLED + - VERSION=${IMAGE_VERSION} + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=currency + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Email service + email: + image: ${IMAGE_NAME}:${DEMO_VERSION}-email + container_name: email + build: + context: ./ + dockerfile: ${EMAIL_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-email + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${EMAIL_PORT}" + environment: + - APP_ENV=production + - EMAIL_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=email + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Fraud Detection service + fraud-detection: + image: ${IMAGE_NAME}:${DEMO_VERSION}-fraud-detection + container_name: fraud-detection + build: + context: ./ + dockerfile: ${FRAUD_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-fraud-detection + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 300M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + - KAFKA_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=fraud-detection + depends_on: + otel-collector: + condition: service_started + kafka: + condition: service_healthy + logging: *logging + + # Frontend + frontend: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend + container_name: frontend + build: + context: ./ + dockerfile: ${FRONTEND_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend + deploy: + resources: + limits: + memory: 250M + restart: unless-stopped + ports: + - "${FRONTEND_PORT}" + environment: + - PORT=${FRONTEND_PORT} + - FRONTEND_ADDR + - AD_ADDR + - CART_ADDR + - CHECKOUT_ADDR + - CURRENCY_ADDR + - PRODUCT_CATALOG_ADDR + - PRODUCT_REVIEWS_ADDR + - RECOMMENDATION_ADDR + - SHIPPING_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - ENV_PLATFORM + - OTEL_SERVICE_NAME=frontend + - PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - WEB_OTEL_SERVICE_NAME=frontend-web + - OTEL_COLLECTOR_HOST + - FLAGD_HOST + - FLAGD_PORT + depends_on: + ad: + condition: service_started + cart: + condition: service_started + checkout: + condition: service_started + currency: + condition: service_started + product-catalog: + condition: service_started + quote: + condition: service_started + recommendation: + condition: service_started + shipping: + condition: service_started + otel-collector: + condition: service_started + image-provider: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Frontend Proxy (Envoy) + frontend-proxy: + image: ${IMAGE_NAME}:${DEMO_VERSION}-frontend-proxy + container_name: frontend-proxy + build: + context: ./ + dockerfile: ${FRONTEND_PROXY_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-frontend-proxy + deploy: + resources: + limits: + memory: 65M + restart: unless-stopped + ports: + - "${ENVOY_PORT}:${ENVOY_PORT}" + - "${ENVOY_ADMIN_PORT}:${ENVOY_ADMIN_PORT}" + environment: + - FRONTEND_PORT + - FRONTEND_HOST + - LOCUST_WEB_HOST + - LOCUST_WEB_PORT + - GRAFANA_PORT + - GRAFANA_HOST + - JAEGER_UI_PORT + - JAEGER_HOST + - OTEL_COLLECTOR_HOST + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=frontend-proxy + - ENVOY_PORT + - ENVOY_ADDR + - ENVOY_ADMIN_PORT + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_UI_HOST + - FLAGD_UI_PORT + depends_on: + frontend: + condition: service_started + load-generator: + condition: service_started + jaeger: + condition: service_started + grafana: + condition: service_started + flagd-ui: + condition: service_started + dns_search: "" + + # image-provider + image-provider: + image: ${IMAGE_NAME}:${DEMO_VERSION}-image-provider + container_name: image-provider + build: + context: ./ + dockerfile: ${IMAGE_PROVIDER_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-image-provider + deploy: + resources: + limits: + memory: 120M + restart: unless-stopped + ports: + - "${IMAGE_PROVIDER_PORT}" + environment: + - IMAGE_PROVIDER_PORT + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=image-provider + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Load Generator + load-generator: + image: ${IMAGE_NAME}:${DEMO_VERSION}-load-generator + container_name: load-generator + build: + context: ./ + dockerfile: ${LOAD_GENERATOR_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-load-generator + deploy: + resources: + limits: + memory: 1500M + restart: unless-stopped + ports: + - "${LOCUST_WEB_PORT}" + environment: + - LOCUST_WEB_PORT + - LOCUST_USERS + - LOCUST_HOST + - LOCUST_HEADLESS + - LOCUST_AUTOSTART + - LOCUST_BROWSER_TRAFFIC_ENABLED=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=load-generator + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - LOCUST_WEB_HOST=0.0.0.0 + - FLAGD_HOST + - FLAGD_PORT + - FLAGD_OFREP_PORT + depends_on: + frontend: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Payment service + payment: + image: ${IMAGE_NAME}:${DEMO_VERSION}-payment + container_name: payment + build: + context: ./ + dockerfile: ${PAYMENT_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-payment + deploy: + resources: + limits: + memory: 140M + restart: unless-stopped + ports: + - "${PAYMENT_PORT}" + environment: + - IPV6_ENABLED + - PAYMENT_PORT + - FLAGD_HOST + - FLAGD_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=payment + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Product Catalog service + product-catalog: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-catalog + container_name: product-catalog + build: + context: ./ + dockerfile: ${PRODUCT_CATALOG_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-catalog + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - "${PRODUCT_CATALOG_PORT}" + environment: + - PRODUCT_CATALOG_PORT + - FLAGD_HOST + - FLAGD_PORT + - GOMEMLIMIT=64MiB + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-catalog + - OTEL_SEMCONV_STABILITY_OPT_IN=database + - DB_CONNECTION_STRING=postgres://otelu:otelp@${POSTGRES_HOST}/${POSTGRES_DB}?sslmode=disable + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + postgresql: + condition: service_started + logging: *logging + + # Product reviews service + product-reviews: + image: ${IMAGE_NAME}:${DEMO_VERSION}-product-reviews + container_name: product-reviews + build: + context: ./ + dockerfile: ${PRODUCT_REVIEWS_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-product-reviews + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + ports: + - "${PRODUCT_REVIEWS_PORT}" + environment: + - PRODUCT_REVIEWS_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=product-reviews + - OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + - DB_CONNECTION_STRING=host=${POSTGRES_HOST} user=otelu password=otelp dbname=${POSTGRES_DB} + - LLM_BASE_URL + - OPENAI_API_KEY + - LLM_MODEL + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - LLM_HOST + - LLM_PORT + depends_on: + product-catalog: + condition: service_started + llm: + condition: service_started + postgresql: + condition: service_started + otel-collector: + condition: service_started + logging: *logging + + # Quote service + quote: + image: ${IMAGE_NAME}:${DEMO_VERSION}-quote + container_name: quote + build: + context: ./ + dockerfile: ${QUOTE_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-quote + deploy: + resources: + limits: + memory: 40M + restart: unless-stopped + ports: + - "${QUOTE_PORT}" + environment: + - IPV6_ENABLED + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_PHP_AUTOLOAD_ENABLED=true + - QUOTE_PORT + - OTEL_PHP_INTERNAL_METRICS_ENABLED=true + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=quote + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # Recommendation service + recommendation: + image: ${IMAGE_NAME}:${DEMO_VERSION}-recommendation + container_name: recommendation + build: + context: ./ + dockerfile: ${RECOMMENDATION_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-recommendation + deploy: + resources: + limits: + memory: 500M # This is high to enable supporting the recommendationCache feature flag use case + restart: unless-stopped + ports: + - "${RECOMMENDATION_PORT}" + environment: + - RECOMMENDATION_PORT + - PRODUCT_CATALOG_ADDR + - FLAGD_HOST + - FLAGD_PORT + - OTEL_PYTHON_LOG_CORRELATION=true + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=recommendation + - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + depends_on: + product-catalog: + condition: service_started + otel-collector: + condition: service_started + flagd: + condition: service_started + logging: *logging + + # Shipping service + shipping: + image: ${IMAGE_NAME}:${DEMO_VERSION}-shipping + container_name: shipping + build: + context: ./ + dockerfile: ${SHIPPING_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-shipping + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${SHIPPING_PORT}" + environment: + - IPV6_ENABLED + - SHIPPING_PORT + - QUOTE_ADDR + - OTEL_EXPORTER_OTLP_ENDPOINT + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=shipping + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + depends_on: + otel-collector: + condition: service_started + logging: *logging + + # ****************** + # Dependent Services + # ****************** + # Flagd, feature flagging service + flagd: + image: ${FLAGD_IMAGE} + container_name: flagd + deploy: + resources: + limits: + memory: 75M + restart: unless-stopped + environment: + - FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC} + - FLAGD_METRICS_EXPORTER=otel + - GOMEMLIMIT=60MiB + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd + command: [ + "start", + "--uri", + "file:./etc/flagd/demo.flagd.json" + ] + ports: + - "${FLAGD_PORT}" + - "${FLAGD_OFREP_PORT}" + volumes: + - ./src/flagd:/etc/flagd + logging: + *logging + + # Flagd UI for configuring the feature flag service + flagd-ui: + image: ${IMAGE_NAME}:${DEMO_VERSION}-flagd-ui + container_name: flagd-ui + build: + context: ./ + dockerfile: ${FLAGD_UI_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-flagd-ui + deploy: + resources: + limits: + memory: 200M + restart: always + environment: + - FLAGD_UI_PORT + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=flagd-ui + - SECRET_KEY_BASE=yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - PHX_HOST=localhost + ports: + - "${FLAGD_UI_PORT}" + depends_on: + otel-collector: + condition: service_started + flagd: + condition: service_started + volumes: + - ./src/flagd:/app/data + + # Kafka used by Checkout, Accounting, and Fraud Detection services + kafka: + image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka + container_name: kafka + build: + context: ./ + dockerfile: ${KAFKA_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-kafka + args: + OTEL_JAVA_AGENT_VERSION: ${OTEL_JAVA_AGENT_VERSION} + deploy: + resources: + limits: + memory: 620M + restart: unless-stopped + environment: + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092 + - KAFKA_LISTENERS=PLAINTEXT://${KAFKA_HOST}:9092,CONTROLLER://${KAFKA_HOST}:9093 + - KAFKA_CONTROLLER_QUORUM_VOTERS=1@${KAFKA_HOST}:9093 + - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} + - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_RESOURCE_ATTRIBUTES + - OTEL_SERVICE_NAME=kafka + - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + healthcheck: + test: nc -z kafka 9092 + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging + + # LLM used by Product Review service + llm: + image: ${IMAGE_NAME}:${DEMO_VERSION}-llm + container_name: llm + build: + context: ./ + dockerfile: ${LLM_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-llm + deploy: + resources: + limits: + memory: 100M + restart: unless-stopped + environment: + - FLAGD_HOST + - FLAGD_PORT + ports: + - "${LLM_PORT}" + depends_on: + flagd: + condition: service_started + logging: *logging + + # Postgresql used by Accounting service + postgresql: + image: ${POSTGRES_IMAGE} + container_name: postgresql + deploy: + resources: + limits: + memory: 80M + restart: unless-stopped + ports: + - ${POSTGRES_PORT} + environment: + - POSTGRES_USER=root + - POSTGRES_PASSWORD + - POSTGRES_DB + volumes: + - ./src/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql + logging: *logging + + # Valkey used by Cart service + valkey-cart: + image: ${VALKEY_IMAGE} + container_name: valkey-cart + user: valkey + deploy: + resources: + limits: + memory: 20M + restart: unless-stopped + ports: + - "${VALKEY_PORT}" + logging: *logging + + + # ******************** + # Telemetry Components + # ******************** + # Jaeger + jaeger: + image: ${JAEGERTRACING_IMAGE} + container_name: jaeger + command: + - "--config=file:/etc/jaeger/config-badger.yml" + deploy: + resources: + limits: + memory: 1200M + restart: unless-stopped + ports: + - "${JAEGER_UI_PORT}" + - "${JAEGER_GRPC_PORT}" + environment: + - JAEGER_HOST + - JAEGER_GRPC_PORT + - PROMETHEUS_ADDR + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_HTTP + - MEMORY_MAX_TRACES=25000 + volumes: + - ./src/jaeger/config.yml:/etc/jaeger/config.yml + - ./src/jaeger/config-badger.yml:/etc/jaeger/config-badger.yml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/jaeger-badger-snapshots/snapshot_day1_00h00m:/badger + logging: *logging + + # Grafana + grafana: + image: ${GRAFANA_IMAGE} + container_name: grafana + deploy: + resources: + limits: + memory: 175M + restart: unless-stopped + environment: + - "GF_INSTALL_PLUGINS=grafana-opensearch-datasource" + volumes: + - ./src/grafana/grafana.ini:/etc/grafana/grafana.ini + - ./src/grafana/provisioning/:/etc/grafana/provisioning/ + ports: + - "${GRAFANA_PORT}" + logging: *logging + + # OpenTelemetry Collector + otel-collector: + image: ${COLLECTOR_CONTRIB_IMAGE} + container_name: otel-collector + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] + user: 0:0 + volumes: + - ${HOST_FILESYSTEM}:/hostfs:ro + - ${DOCKER_SOCK}:/var/run/docker.sock:ro + - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml + - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml + ports: + - "${OTEL_COLLECTOR_PORT_GRPC}" + - "${OTEL_COLLECTOR_PORT_HTTP}" + depends_on: + jaeger: + condition: service_started + opensearch: + condition: service_healthy + logging: *logging + environment: + - FRONTEND_PROXY_ADDR + - IMAGE_PROVIDER_HOST + - IMAGE_PROVIDER_PORT + - HOST_FILESYSTEM + - OTEL_COLLECTOR_HOST + - OTEL_COLLECTOR_PORT_GRPC + - OTEL_COLLECTOR_PORT_HTTP + - POSTGRES_HOST + - POSTGRES_PORT + - POSTGRES_PASSWORD + - GOMEMLIMIT=160MiB + + # Prometheus + prometheus: + image: ${PROMETHEUS_IMAGE} + container_name: prometheus + command: + - --web.console.templates=/etc/prometheus/consoles + - --web.console.libraries=/etc/prometheus/console_libraries + - --storage.tsdb.retention.time=7d + - --config.file=/etc/prometheus/prometheus-config.yaml + - --storage.tsdb.path=/prometheus + - --web.enable-lifecycle + - --web.enable-admin-api + - --web.route-prefix=/ + # - --web.enable-otlp-receiver # disabled for snapshot mode + - --enable-feature=exemplar-storage + volumes: + - ./src/prometheus/prometheus-config-readonly.yaml:/etc/prometheus/prometheus-config.yaml + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/prometheus-snapshots/snapshot_day1_00h00m:/prometheus + deploy: + resources: + limits: + memory: 200M + restart: unless-stopped + ports: + - "${PROMETHEUS_PORT}:${PROMETHEUS_PORT}" + logging: *logging + + # OpenSearch + opensearch: + container_name: opensearch + build: + context: ./ + dockerfile: ${OPENSEARCH_DOCKERFILE} + cache_from: + - ${IMAGE_NAME}:${IMAGE_VERSION}-opensearch + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped + environment: + - cluster.name=demo-cluster + - node.name=demo-node + - bootstrap.memory_lock=true + - discovery.type=single-node + - OPENSEARCH_JAVA_OPTS=-Xms400m -Xmx400m + - DISABLE_INSTALL_DEMO_CONFIG=true + - DISABLE_SECURITY_PLUGIN=true + - path.repo=/usr/share/opensearch/snapshots + # Workaround on OSX for https://bugs.openjdk.org/browse/JDK-8345296 + - _JAVA_OPTIONS + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + ports: + - "9200:9200" + volumes: + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-data:/usr/share/opensearch/data + - /root/benchmark/src/sre-agent/examples/otel-demo/data-test-0207-4/opensearch-repo-snapshots:/usr/share/opensearch/snapshots + healthcheck: + test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"' + start_period: 10s + interval: 5s + timeout: 10s + retries: 10 + logging: *logging diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-gen-proto.sh b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-gen-proto.sh new file mode 100644 index 0000000000000000000000000000000000000000..896118a26b88dc7c8974626663f3aabac14fa175 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/docker-gen-proto.sh @@ -0,0 +1,62 @@ +#!/bin/sh +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +set -e # Exit immediately if a command exits with a non-zero status. +set -x # Print commands and their arguments as they are executed + +# This script is used to generate protobuf files for all services with Docker. + +. ./.env + +gen_proto_go() { + echo "Generating Go protobuf files for $1" + docker build -f "src/$1/genproto/Dockerfile" -t "$1-genproto" . + docker run --rm -v $(pwd):/build "$1-genproto" \ + protoc -I /build/pb /build/pb/demo.proto --go_out="./src/$1/" --go-grpc_out="./src/$1/" +} + +gen_proto_cpp() { + echo "Generating Cpp protobuf files for $1" + docker build --build-arg OPENTELEMETRY_CPP_VERSION=${OPENTELEMETRY_CPP_VERSION} -f "src/$1/genproto/Dockerfile" -t "$1-genproto" . + docker run --rm -v $(pwd):/build "$1-genproto" \ + cp -r "/$1/build/generated" "/build/src/$1/build/" +} + +gen_proto_python() { + echo "Generating Python protobuf files for $1" + docker build -f "src/$1/genproto/Dockerfile" -t "$1-genproto" . + docker run --rm -v $(pwd):/build "$1-genproto" \ + python -m grpc_tools.protoc -I /build/pb/ --python_out="./src/$1/" --grpc_python_out="./src/$1/" /build/pb/demo.proto +} + +gen_proto_ts() { + echo "Generating Typescript protobuf files for $1" + docker build -f "src/$1/genproto/Dockerfile" -t "$1-genproto" . + docker run --rm -e SERVICE=$1 -v $(pwd):/build "$1-genproto" /bin/sh -c ' + mkdir -p /build/src/$SERVICE/protos && \ + protoc -I /build/pb \ + --plugin=protoc-gen-ts_proto=/app/node_modules/.bin/protoc-gen-ts_proto \ + --ts_proto_opt=esModuleInterop=true \ + --ts_proto_out="/build/src/$SERVICE/protos" \ + --ts_proto_opt=outputServices=grpc-js \ + /build/pb/demo.proto' +} + +if [ -z "$1" ]; then + #gen_proto_dotnet accounting + #gen_proto_java ad + #gen_proto_dotnet cart + gen_proto_go checkout + gen_proto_cpp currency + #gen_proto_ruby email + gen_proto_ts frontend + #gen_proto_js payment + gen_proto_go product-catalog + #gen_proto_php quote + gen_proto_python product-reviews + gen_proto_python recommendation + #gen_proto_rust shipping +else + "gen_proto_$1" "$2" +fi diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/ide-gen-proto.sh b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/ide-gen-proto.sh new file mode 100644 index 0000000000000000000000000000000000000000..f682fe18564e673d1604a91339e42f50ffe38ff4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/ide-gen-proto.sh @@ -0,0 +1,81 @@ +#!/bin/sh +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +# This script is used to generate protobuf files for all services. +# Useful to ensure code can compile without Docker, and provide hints for IDEs. +# Several dev tools including: cargo, protoc, python grpcio-tools, and rebar3 may be required to run this script. + +base_dir=$(pwd) + +gen_proto_dotnet() { + echo "Generating .NET protobuf files for $1" + cd "$base_dir"/src/"$1" || return + mkdir -p ./src/protos/ + cp -r "$base_dir"/pb/ ./src/protos/ + cd "$base_dir" || return +} + +gen_proto_elixir() { + echo "Generating Elixir protobuf files for $1" + cd "$base_dir"/src/"$1" || return + mkdir -p proto + cp "$base_dir"/pb/demo.proto ./proto/demo.proto + rebar3 grpc_regen + cd "$base_dir" || return +} + +gen_proto_go() { + echo "Generating Go protobuf files for $1" + cd "$base_dir"/src/"$1" || return + protoc -I ../../pb ./../../pb/demo.proto --go_out=./ --go-grpc_out=./ + cd "$base_dir" || return +} + +gen_proto_js() { + echo "Generating Javascript protobuf files for $1" + cd "$base_dir"/src/"$1" || return + cp "$base_dir"/pb/demo.proto . + cd "$base_dir" || return +} + +gen_proto_python() { + echo "Generating Python protobuf files for $1" + cd "$base_dir"/src/"$1" || return + python3 -m grpc_tools.protoc -I=../../pb --python_out=./ --grpc_python_out=./ ./../../pb/demo.proto + cd "$base_dir" || return +} + +gen_proto_rust() { + echo "Generating Rust protobuf files for $1" + cd "$base_dir"/src/"$1" || return + mkdir -p proto + cp "$base_dir"/pb/demo.proto proto/demo.proto + cargo build + cd "$base_dir" || return +} + +gen_proto_ts() { + echo "Generating Typescript protobuf files for $1" + cd "$base_dir"/src/"$1" || return + cp -r "$base_dir"/pb . + mkdir -p ./protos + protoc -I ./pb --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=esModuleInterop=true --ts_proto_out=./protos --ts_proto_opt=outputServices=grpc-js demo.proto + cd "$base_dir" || return +} + +gen_proto_dotnet accounting +# gen_proto_java ad +gen_proto_dotnet cart +gen_proto_go checkout +# gen_proto_cpp currency +# gen_proto_ruby email +gen_proto_ts frontend +gen_proto_ts react-native-app +gen_proto_js payment +gen_proto_go product-catalog +gen_proto_go product-reviews +# gen_proto_php quote +gen_proto_python recommendation +gen_proto_rust shipping diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/kubernetes/opentelemetry-demo.yaml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/kubernetes/opentelemetry-demo.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e2ca11216b67b5d189fc0bbd52b69213a5fb1c1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/kubernetes/opentelemetry-demo.yaml @@ -0,0 +1,20146 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# This file is generated by 'make generate-kubernetes-manifests' +--- +apiVersion: v1 +kind: Namespace +metadata: + name: otel-demo +--- +# Source: opentelemetry-demo/charts/opensearch/templates/poddisruptionbudget.yaml +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: "opensearch-pdb" + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch +spec: + maxUnavailable: 1 + selector: + matchLabels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo +--- +# Source: opentelemetry-demo/charts/grafana/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +automountServiceAccountToken: false +metadata: + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" + name: grafana + namespace: otel-demo +--- +# Source: opentelemetry-demo/charts/jaeger/templates/allinone-sa.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: jaeger + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "1.53.0" + app.kubernetes.io/component: all-in-one +automountServiceAccountToken: true +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: otel-collector + namespace: otel-demo + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector +--- +# Source: opentelemetry-demo/charts/prometheus/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus + namespace: otel-demo + annotations: + {} +--- +# Source: opentelemetry-demo/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: opentelemetry-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +--- +# Source: opentelemetry-demo/charts/grafana/templates/secret.yaml +apiVersion: v1 +kind: Secret +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +type: Opaque +data: + + admin-user: "YWRtaW4=" + admin-password: "YWRtaW4=" + ldap-toml: "" +--- +# Source: opentelemetry-demo/charts/grafana/templates/configmap-dashboard-provider.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" + name: grafana-config-dashboards + namespace: otel-demo +data: + provider.yaml: |- + apiVersion: 1 + providers: + - name: 'sidecarProvider' + orgId: 1 + folder: '' + folderUid: '' + type: file + disableDeletion: false + allowUiUpdates: false + updateIntervalSeconds: 30 + options: + foldersFromFilesStructure: false + path: /tmp/dashboards +--- +# Source: opentelemetry-demo/charts/grafana/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +data: + + plugins: grafana-opensearch-datasource + grafana.ini: | + [analytics] + check_for_updates = true + [auth] + disable_login_form = true + [auth.anonymous] + enabled = true + org_name = Main Org. + org_role = Admin + [grafana_net] + url = https://grafana.net + [log] + mode = console + [paths] + data = /var/lib/grafana/ + logs = /var/log/grafana + plugins = /var/lib/grafana/plugins + provisioning = /etc/grafana/provisioning + [server] + domain = '' + root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana + serve_from_sub_path = true +--- +# Source: opentelemetry-demo/charts/opensearch/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: opensearch-config + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch +data: + opensearch.yml: | + cluster.name: opensearch-cluster + + # Bind to all interfaces because we don't know what IP address Docker will assign to us. + network.host: 0.0.0.0 + + # Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again. + # Implicitly done if ".singleNode" is set to "true". + # discovery.type: single-node + + # Start OpenSearch Security Demo Configuration + # WARNING: revise all the lines below before you go into production + # plugins: + # security: + # ssl: + # transport: + # pemcert_filepath: esnode.pem + # pemkey_filepath: esnode-key.pem + # pemtrustedcas_filepath: root-ca.pem + # enforce_hostname_verification: false + # http: + # enabled: true + # pemcert_filepath: esnode.pem + # pemkey_filepath: esnode-key.pem + # pemtrustedcas_filepath: root-ca.pem + # allow_unsafe_democertificates: true + # allow_default_init_securityindex: true + # authcz: + # admin_dn: + # - CN=kirk,OU=client,O=client,L=test,C=de + # audit.type: internal_opensearch + # enable_snapshot_restore_privilege: true + # check_snapshot_restore_write_privileges: true + # restapi: + # roles_enabled: ["all_access", "security_rest_api_access"] + # system_indices: + # enabled: true + # indices: + # [ + # ".opendistro-alerting-config", + # ".opendistro-alerting-alert*", + # ".opendistro-anomaly-results*", + # ".opendistro-anomaly-detector*", + # ".opendistro-anomaly-checkpoints", + # ".opendistro-anomaly-detection-state", + # ".opendistro-reports-*", + # ".opendistro-notifications-*", + # ".opendistro-notebooks", + # ".opendistro-asynchronous-search-response*", + # ] + ######## End OpenSearch Security Demo Configuration ######## +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: otel-collector + namespace: otel-demo + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector +data: + relay: | + connectors: + spanmetrics: {} + exporters: + debug: {} + opensearch: + http: + endpoint: http://opensearch:9200 + tls: + insecure: true + logs_index: otel-logs + logs_index_time_format: yyyy-MM-dd + otlp: + endpoint: jaeger-collector:4317 + tls: + insecure: true + otlphttp/prometheus: + endpoint: http://prometheus:9090/api/v1/otlp + tls: + insecure: true + extensions: + health_check: + endpoint: ${env:MY_POD_IP}:13133 + processors: + batch: {} + k8sattributes: + extract: + metadata: + - k8s.namespace.name + - k8s.deployment.name + - k8s.statefulset.name + - k8s.daemonset.name + - k8s.cronjob.name + - k8s.job.name + - k8s.node.name + - k8s.pod.name + - k8s.pod.uid + - k8s.pod.start_time + passthrough: false + pod_association: + - sources: + - from: resource_attribute + name: k8s.pod.ip + - sources: + - from: resource_attribute + name: k8s.pod.uid + - sources: + - from: connection + memory_limiter: + check_interval: 5s + limit_percentage: 80 + spike_limit_percentage: 25 + resource: + attributes: + - action: insert + from_attribute: k8s.pod.uid + key: service.instance.id + resourcedetection: + detectors: + - env + - system + transform: + error_mode: ignore + trace_statements: + - context: span + statements: + - replace_pattern(name, "\\?.*", "") + - replace_match(name, "GET /api/products/*", "GET /api/products/{productId}") + receivers: + httpcheck/frontend-proxy: + targets: + - endpoint: http://frontend-proxy:8080 + jaeger: + protocols: + grpc: + endpoint: ${env:MY_POD_IP}:14250 + thrift_compact: + endpoint: ${env:MY_POD_IP}:6831 + thrift_http: + endpoint: ${env:MY_POD_IP}:14268 + nginx: + collection_interval: 10s + endpoint: http://image-provider:8081/status + otlp: + protocols: + grpc: + endpoint: ${env:MY_POD_IP}:4317 + http: + cors: + allowed_origins: + - http://* + - https://* + endpoint: ${env:MY_POD_IP}:4318 + postgresql: + endpoint: postgresql:5432 + metrics: + postgresql.blks_hit: + enabled: true + postgresql.blks_read: + enabled: true + postgresql.deadlocks: + enabled: true + postgresql.tup_deleted: + enabled: true + postgresql.tup_fetched: + enabled: true + postgresql.tup_inserted: + enabled: true + postgresql.tup_returned: + enabled: true + postgresql.tup_updated: + enabled: true + password: otel + tls: + insecure: true + username: root + prometheus: + config: + scrape_configs: + - job_name: opentelemetry-collector + scrape_interval: 10s + static_configs: + - targets: + - ${env:MY_POD_IP}:8888 + redis: + collection_interval: 10s + endpoint: valkey-cart:6379 + username: valkey + zipkin: + endpoint: ${env:MY_POD_IP}:9411 + service: + extensions: + - health_check + pipelines: + logs: + exporters: + - opensearch + - debug + processors: + - k8sattributes + - memory_limiter + - resourcedetection + - resource + - batch + receivers: + - otlp + metrics: + exporters: + - otlphttp/prometheus + - debug + processors: + - k8sattributes + - memory_limiter + - resourcedetection + - resource + - batch + receivers: + - httpcheck/frontend-proxy + - nginx + - otlp + - postgresql + - redis + - spanmetrics + traces: + exporters: + - otlp + - debug + - spanmetrics + processors: + - k8sattributes + - memory_limiter + - resourcedetection + - resource + - transform + - batch + receivers: + - otlp + - jaeger + - zipkin + telemetry: + metrics: + level: detailed + readers: + - periodic: + exporter: + otlp: + endpoint: otel-collector:4318 + protocol: http/protobuf + interval: 10000 + timeout: 5000 +--- +# Source: opentelemetry-demo/charts/prometheus/templates/cm.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus + namespace: otel-demo +data: + allow-snippet-annotations: "false" + alerting_rules.yml: | + {} + alerts: | + {} + prometheus.yml: | + global: + evaluation_interval: 1m + scrape_interval: 1m + scrape_timeout: 10s + storage: + tsdb: + out_of_order_time_window: 30m + otlp: + keep_identifying_resource_attributes: true + promote_resource_attributes: + - service.instance.id + - service.name + - service.namespace + - service.version + - cloud.availability_zone + - cloud.region + - deployment.environment.name + - k8s.cluster.name + - k8s.container.name + - k8s.cronjob.name + - k8s.daemonset.name + - k8s.deployment.name + - k8s.job.name + - k8s.namespace.name + - k8s.node.name + - k8s.pod.name + - k8s.replicaset.name + - k8s.statefulset.name + - container.name + - host.name + - postgresql.database.name + - postgresql.schema.name + - postgresql.table.name + - postgresql.index.name + rule_files: + - /etc/config/recording_rules.yml + - /etc/config/alerting_rules.yml + - /etc/config/rules + - /etc/config/alerts + scrape_configs: + - job_name: prometheus + static_configs: + - targets: + - localhost:9090 + - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token + job_name: kubernetes-apiservers + kubernetes_sd_configs: + - role: endpoints + relabel_configs: + - action: keep + regex: default;kubernetes;https + source_labels: + - __meta_kubernetes_namespace + - __meta_kubernetes_service_name + - __meta_kubernetes_endpoint_port_name + scheme: https + tls_config: + ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token + job_name: kubernetes-nodes + kubernetes_sd_configs: + - role: node + relabel_configs: + - action: labelmap + regex: __meta_kubernetes_node_label_(.+) + - replacement: kubernetes.default.svc:443 + target_label: __address__ + - regex: (.+) + replacement: /api/v1/nodes/$1/proxy/metrics + source_labels: + - __meta_kubernetes_node_name + target_label: __metrics_path__ + scheme: https + tls_config: + ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token + job_name: kubernetes-nodes-cadvisor + kubernetes_sd_configs: + - role: node + relabel_configs: + - action: labelmap + regex: __meta_kubernetes_node_label_(.+) + - replacement: kubernetes.default.svc:443 + target_label: __address__ + - regex: (.+) + replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor + source_labels: + - __meta_kubernetes_node_name + target_label: __metrics_path__ + scheme: https + tls_config: + ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt + - honor_labels: true + job_name: kubernetes-service-endpoints + kubernetes_sd_configs: + - role: endpoints + relabel_configs: + - action: keep + regex: true + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_scrape + - action: drop + regex: true + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_scrape_slow + - action: replace + regex: (https?) + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_scheme + target_label: __scheme__ + - action: replace + regex: (.+) + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_path + target_label: __metrics_path__ + - action: replace + regex: (.+?)(?::\d+)?;(\d+) + replacement: $1:$2 + source_labels: + - __address__ + - __meta_kubernetes_service_annotation_prometheus_io_port + target_label: __address__ + - action: labelmap + regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+) + replacement: __param_$1 + - action: labelmap + regex: __meta_kubernetes_service_label_(.+) + - action: replace + source_labels: + - __meta_kubernetes_namespace + target_label: namespace + - action: replace + source_labels: + - __meta_kubernetes_service_name + target_label: service + - action: replace + source_labels: + - __meta_kubernetes_pod_node_name + target_label: node + - honor_labels: true + job_name: kubernetes-service-endpoints-slow + kubernetes_sd_configs: + - role: endpoints + relabel_configs: + - action: keep + regex: true + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_scrape_slow + - action: replace + regex: (https?) + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_scheme + target_label: __scheme__ + - action: replace + regex: (.+) + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_path + target_label: __metrics_path__ + - action: replace + regex: (.+?)(?::\d+)?;(\d+) + replacement: $1:$2 + source_labels: + - __address__ + - __meta_kubernetes_service_annotation_prometheus_io_port + target_label: __address__ + - action: labelmap + regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+) + replacement: __param_$1 + - action: labelmap + regex: __meta_kubernetes_service_label_(.+) + - action: replace + source_labels: + - __meta_kubernetes_namespace + target_label: namespace + - action: replace + source_labels: + - __meta_kubernetes_service_name + target_label: service + - action: replace + source_labels: + - __meta_kubernetes_pod_node_name + target_label: node + scrape_interval: 5m + scrape_timeout: 30s + - honor_labels: true + job_name: prometheus-pushgateway + kubernetes_sd_configs: + - role: service + relabel_configs: + - action: keep + regex: pushgateway + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_probe + - honor_labels: true + job_name: kubernetes-services + kubernetes_sd_configs: + - role: service + metrics_path: /probe + params: + module: + - http_2xx + relabel_configs: + - action: keep + regex: true + source_labels: + - __meta_kubernetes_service_annotation_prometheus_io_probe + - source_labels: + - __address__ + target_label: __param_target + - replacement: blackbox + target_label: __address__ + - source_labels: + - __param_target + target_label: instance + - action: labelmap + regex: __meta_kubernetes_service_label_(.+) + - source_labels: + - __meta_kubernetes_namespace + target_label: namespace + - source_labels: + - __meta_kubernetes_service_name + target_label: service + - honor_labels: true + job_name: kubernetes-pods + kubernetes_sd_configs: + - role: pod + relabel_configs: + - action: keep + regex: true + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scrape + - action: drop + regex: true + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scrape_slow + - action: replace + regex: (https?) + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scheme + target_label: __scheme__ + - action: replace + regex: (.+) + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_path + target_label: __metrics_path__ + - action: replace + regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}) + replacement: '[$2]:$1' + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_port + - __meta_kubernetes_pod_ip + target_label: __address__ + - action: replace + regex: (\d+);((([0-9]+?)(\.|$)){4}) + replacement: $2:$1 + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_port + - __meta_kubernetes_pod_ip + target_label: __address__ + - action: labelmap + regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+) + replacement: __param_$1 + - action: labelmap + regex: __meta_kubernetes_pod_label_(.+) + - action: replace + source_labels: + - __meta_kubernetes_namespace + target_label: namespace + - action: replace + source_labels: + - __meta_kubernetes_pod_name + target_label: pod + - action: drop + regex: Pending|Succeeded|Failed|Completed + source_labels: + - __meta_kubernetes_pod_phase + - action: replace + source_labels: + - __meta_kubernetes_pod_node_name + target_label: node + - honor_labels: true + job_name: kubernetes-pods-slow + kubernetes_sd_configs: + - role: pod + relabel_configs: + - action: keep + regex: true + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scrape_slow + - action: replace + regex: (https?) + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scheme + target_label: __scheme__ + - action: replace + regex: (.+) + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_path + target_label: __metrics_path__ + - action: replace + regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}) + replacement: '[$2]:$1' + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_port + - __meta_kubernetes_pod_ip + target_label: __address__ + - action: replace + regex: (\d+);((([0-9]+?)(\.|$)){4}) + replacement: $2:$1 + source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_port + - __meta_kubernetes_pod_ip + target_label: __address__ + - action: labelmap + regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+) + replacement: __param_$1 + - action: labelmap + regex: __meta_kubernetes_pod_label_(.+) + - action: replace + source_labels: + - __meta_kubernetes_namespace + target_label: namespace + - action: replace + source_labels: + - __meta_kubernetes_pod_name + target_label: pod + - action: drop + regex: Pending|Succeeded|Failed|Completed + source_labels: + - __meta_kubernetes_pod_phase + - action: replace + source_labels: + - __meta_kubernetes_pod_node_name + target_label: node + scrape_interval: 5m + scrape_timeout: 30s + recording_rules.yml: | + {} + rules: | + {} +--- +# Source: opentelemetry-demo/templates/flagd-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: flagd-config + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +data: + + demo.flagd.json: | + { + "$schema": "https://flagd.dev/schema/v0/flags.json", + "flags": { + "productCatalogFailure": { + "description": "Fail product catalog service on a specific product", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "recommendationCacheFailure": { + "description": "Fail recommendation service cache", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adManualGc": { + "description": "Triggers full manual garbage collections in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adHighCpu": { + "description": "Triggers high cpu load in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adFailure": { + "description": "Fail ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "kafkaQueueProblems": { + "description": "Overloads Kafka queue while simultaneously introducing a consumer side delay leading to a lag spike", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "cartFailure": { + "description": "Fail cart service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "paymentFailure": { + "description": "Fail payment service charge requests n%", + "state": "ENABLED", + "variants": { + "100%": 1, + "90%": 0.95, + "75%": 0.75, + "50%": 0.5, + "25%": 0.25, + "10%": 0.1, + "off": 0 + }, + "defaultVariant": "off" + }, + "paymentUnreachable": { + "description": "Payment service is unavailable", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "loadGeneratorFloodHomepage": { + "description": "Flood the frontend with a large amount of requests.", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "imageSlowLoad": { + "description": "slow loading images in the frontend", + "state": "ENABLED", + "variants": { + "10sec": 10000, + "5sec": 5000, + "off": 0 + }, + "defaultVariant": "off" + } + } + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-alerting + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_alert: "1" +data: + + {} +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-nginx-metrics + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + NGINX-metrics.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 6, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "The total number of accepted client connections", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "nginx_connections_accepted_total", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Accepted connections", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "The total number of handled connections", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 5, + "y": 0 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "expr": "nginx_connections_handled_total", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{__name__}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Connections handled", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "The total number of client requests", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 10, + "y": 0 + }, + "id": 4, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "expr": "nginx_requests_total", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{__name__}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Total number of client requests", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "The current number of nginx connections by state", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 19, + "x": 0, + "y": 8 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "expr": "nginx_connections_current", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{state}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Number of connections by state", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "[Image-Provider] NGINX Metrics", + "uid": "6fb665e0-cb81-40a5-bd21-a9485c5477b4", + "version": 1 + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-apm-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + apm-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "APM dashboard for monitoring OpenTelemetry-based services. \n\nInstrument your applications using OpenTelemetry SDKs and send traces, metrics, and logs to Jaeger for traces, a Prometheus-compatible database for metrics, and OpenSearch for logs. This dashboard provides a centralized view of your application's health and performance. ", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 5, + "links": [], + "panels": [ + { + "description": "service.namespace=${service_namespace}, service.name=${service_name}, deployment.environment.name=${deployment_environment_name}", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 10, + "x": 0, + "y": 0 + }, + "id": 20, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "

\"OpenTelemetry Service ${service_namespace}/${service_name}

\n", + "mode": "html" + }, + "pluginVersion": "12.1.0", + "title": "", + "type": "text" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "Shows the timestamp of the latest metrics received in the past 24h.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "#24292e", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 3, + "x": 10, + "y": 0 + }, + "hideTimeOverride": true, + "id": 39, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^Time$/", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "timestamp(sum by (deployment_environment_name, service_namespace, service_name) (target_info{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}) or absent{})\n", + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "timeFrom": "now-24h", + "title": "Latest metrics received", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 15, + "panels": [], + "title": "Server RED Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "HTTP & RPC endpoints aggregation on the `http.server.request.duration` & `rpc.server.duration` metrics.\n\nSee https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration and https://opentelemetry.io/docs/specs/semconv/rpc/rpc-metrics/#metric-rpcserverduration", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "noValue": "No HTTP or RPC operation", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 5, + "x": 0, + "y": 3 + }, + "id": 17, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "histogram_quantile(\n 0.95,\n sum by (le, deployment_environment_name, service_namespace, service_name) (\n rate(\n http_server_request_duration_seconds_bucket{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n )\n )\n)", + "fullMetaSearch": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "HTTP p95", + "range": true, + "refId": "HTTP P95", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg by (deployment_environment_name, service_namespace, service_name) (\n rate(\n http_server_request_duration_seconds_sum{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n )\n)\n/\navg by (deployment_environment_name, service_namespace, service_name) (\n rate(\n http_server_request_duration_seconds_count{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n )\n)", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "HTTP avg", + "range": true, + "refId": "HTTP AVG", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "histogram_quantile(\n 0.95,\n sum by (le, deployment_environment_name, service_namespace, service_name) (\n rate(\n rpc_server_duration_milliseconds_bucket{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n ) / 1000\n )\n)", + "hide": false, + "instant": false, + "interval": "60", + "legendFormat": "RPC p95", + "range": true, + "refId": "RPC P95" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "avg by (deployment_environment_name, service_namespace, service_name) (\n rate(\n rpc_server_duration_milliseconds_sum{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n ) / 1000\n)\n/\navg by (deployment_environment_name, service_namespace, service_name) (\n rate(\n rpc_server_duration_milliseconds_count{\n deployment_environment_name=~\"$deployment_environment_name\",\n service_namespace=~\"$service_namespace\",\n service_name=\"$service_name\"\n }[$__rate_interval]\n )\n)", + "hide": false, + "instant": false, + "interval": "60", + "legendFormat": "RPC avg", + "range": true, + "refId": "RPC AVG" + } + ], + "title": "Duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "HTTP and RPC endpoints aggregation on the `http.server.request.duration` and `rpc.server.duration` metrics. \n\nErrors are identified by : \n* `http.response.status_code=~\"5..\"`\n* `rpc.grpc.status_code!=\"0\"`\n\nSee https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 100, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "noValue": "No HTTP or RPC operation", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 5, + "x": 5, + "y": 3 + }, + "id": 18, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "(\n (sum by(deployment_environment_name, service_namespace, service_name) (rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", http_response_status_code=~\"5..\"}[$__rate_interval])) * 100) \n / \n sum by(deployment_environment_name, service_namespace, service_name) (rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]))\n)\nor\n(\n 0\n * \n sum by(deployment_environment_name, service_namespace, service_name) (rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]))\n)", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "interval": "60s", + "legendFormat": "HTTP 5xx errors", + "range": true, + "refId": "HTTP 5xx", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "((sum without (rpc_grpc_status_code, instance) (rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", rpc_grpc_status_code!=\"0\"}[$__rate_interval])) * 100) / sum without (rpc_grpc_status_code, instance) (rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval])))\nor\n(0 * sum without (rpc_grpc_status_code, instance) (rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval])))", + "hide": false, + "instant": false, + "interval": "60", + "legendFormat": "RPC errors", + "range": true, + "refId": "RPC Err" + } + ], + "title": "Error", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "HTTP & RPC endpoints aggregation on the `http.server.request.duration` & `rpc.server.duration` metrics.\n\nSee https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 10, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "noValue": "No HTTP or RPC operation", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 5, + "x": 10, + "y": 3 + }, + "id": 19, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "(sum(rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval])) by (deployment_environment_name, service_namespace, service_name)) ", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "HTTP requests", + "range": true, + "refId": "HTTP RPS" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(sum(rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval])) by (deployment_environment_name, service_namespace, service_name)) * $__interval_ms / 1000", + "hide": false, + "instant": false, + "interval": "60", + "legendFormat": "RPC requests", + "range": true, + "refId": "RPC RPS" + } + ], + "title": "Request Rate", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 9, + "x": 15, + "y": 3 + }, + "id": 40, + "options": { + "alertInstanceLabelFilter": "{service_name=\"$service_name\", service_namespace=\"$service_namespace\"}", + "alertName": "", + "dashboardAlerts": false, + "groupBy": [], + "groupMode": "default", + "maxItems": 20, + "showInactiveAlerts": false, + "sortOrder": 1, + "stateFilter": { + "error": true, + "firing": true, + "noData": false, + "normal": false, + "pending": true, + "recovering": true + }, + "viewMode": "list" + }, + "pluginVersion": "12.1.0", + "title": "Alerts", + "type": "alertlist" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "Inbound HTTP operations of the service (aka HTTP endpoints) based on the `http.server.request.duration` metric.\n\nErrors are identified by `http.response.status_code=~\"5..\"`.\n\nSee https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No HTTP operation", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration (p99)" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "unit", + "value": "reqps" + }, + { + "id": "custom.width", + "value": 219 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 21, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Operation" + } + ] + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "\n sum by (operation) (\n label_join(\n rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \" \",\n \"http_request_method\",\n \"http_route\"\n )\n )\n ", + "fullMetaSearch": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "{{operation}}", + "range": true, + "refId": "RPS", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(\n sum by (operation) (\n label_join(\n rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", http_response_status_code=~\"5..\"}[$__rate_interval]),\n \"operation\",\n \" \",\n \"http_request_method\",\n \"http_route\"\n )\n )\n / \n sum by (operation) (\n label_join(\n rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \" \",\n \"http_request_method\",\n \"http_route\"\n )\n )\n ) or (0 * \n sum by (operation) (\n label_join(\n rate(http_server_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \" \",\n \"http_request_method\",\n \"http_route\"\n )\n )\n )", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{operation}}", + "range": true, + "refId": "ERR_PCT" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "\n histogram_quantile(\n 0.99,\n sum by (le, operation) (\n label_join(\n rate(http_server_request_duration_seconds_bucket{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[5m]),\n \"operation\",\n \" \",\n \"http_request_method\",\n \"http_route\"\n )\n )\n )\n ", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{operation}}", + "range": true, + "refId": "Duration" + } + ], + "title": "HTTP Operations", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "Duration": { + "timeField": "Time" + }, + "ERR_PCT": { + "timeField": "Time" + }, + "RPS": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "operation", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #Duration": 1, + "Trend #ERR_PCT": 2, + "Trend #RPS": 3, + "operation": 0 + }, + "renameByName": { + "Trend #Duration": "Duration (p99)", + "Trend #ERR_PCT": "Error", + "Trend #RPS": "Rate", + "operation": "Operation" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "Inbound gRPC operations of the service (aka gRPC endpoints) based on the `rpc.server.request.duration` metric.\n\nErrors are identified by `rpc.grpc.status_code != 0` which make the panel specific to the gRPC protocol.\n\nhttps://opentelemetry.io/docs/specs/semconv/rpc/rpc-metrics/#metric-rpcserverduration", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No RPC operation", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration (p99)" + }, + "properties": [ + { + "id": "unit", + "value": "ms" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "unit", + "value": "reqps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 27, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Operation" + } + ] + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "\nsum by (operation) (\n label_join(\n rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \"/\",\n \"rpc_service\",\n \"rpc_method\"\n )\n)\n ", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "RPS", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(\n sum by (operation) (\n label_join(\n rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", rpc_grpc_status_code!=\"0\"}[$__rate_interval]),\n \"operation\",\n \"/\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n / \n sum by (operation) (\n label_join(\n rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \"/\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n ) or (0 * \n sum by (operation) (\n label_join(\n rate(rpc_server_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"operation\",\n \"/\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n )\n ", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "ERR_PCT" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "\n histogram_quantile(\n 0.99,\n sum by (le, operation) (\n label_join(\n rate(rpc_server_duration_milliseconds_bucket{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[5m]),\n \"operation\",\n \"/\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n )\n ", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{operation}}", + "range": true, + "refId": "Duration" + } + ], + "title": "gRPC Operations", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "Duration": { + "timeField": "Time" + }, + "ERR_PCT": { + "timeField": "Time" + }, + "RPS": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "operation", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #Duration": 1, + "Trend #ERR_PCT": 2, + "Trend #RPS": 3, + "operation": 0 + }, + "renameByName": { + "Trend #Duration": "Duration (p99)", + "Trend #ERR_PCT": "Error", + "Trend #RPS": "Rate", + "operation": "Operation" + } + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 28, + "panels": [], + "title": "Outbound Services and Databases", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "HTTP calls made by the service based on the `http.client.request.duration` metric.\n\nCalls broken done by remote `server.address` and by `http.request.method`.\n\nSee https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpclientrequestduration", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No HTTP call", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration (P99)" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "unit", + "value": "reqps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 23, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "\n sum by (outbound_service) (\n label_join(\n rate(http_client_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \" \",\n \"server_address\",\n \"http_request_method\",\n \"url_template\"\n )\n )\n ", + "fullMetaSearch": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "{{server_address}} {{http_request_method}} {{url_template}}", + "range": true, + "refId": "RPS", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(\n sum by (outbound_service) (\n label_join(\n rate(http_client_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", http_response_status_code=~\"5..\"}[$__rate_interval]),\n \"outbound_service\",\n \" \",\n \"server_address\",\n \"http_request_method\",\n \"url_template\"\n )\n )\n / \n sum by (outbound_service) (\n label_join(\n rate(http_client_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \" \",\n \"server_address\",\n \"http_request_method\",\n \"url_template\"\n )\n )\n ) or (0 * \n sum by (outbound_service) (\n label_join(\n rate(http_client_request_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \" \",\n \"server_address\",\n \"http_request_method\",\n \"url_template\"\n )\n )\n )", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{server_address}} {{http_request_method}} {{url_template}}", + "range": true, + "refId": "ERR_PCT" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "\nhistogram_quantile(\n 0.99,\n sum by (le, outbound_service) (\n label_join(\n rate(http_client_request_duration_seconds_bucket{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[5m]),\n \"outbound_service\",\n \" \",\n \"server_address\",\n \"http_request_method\",\n \"url_template\"\n )\n )\n)", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{server_address}} {{http_request_method}} {{url_template}}", + "range": true, + "refId": "DURATION" + } + ], + "title": "Outbound HTTP Services", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "Duration": { + "timeField": "Time" + }, + "ERR_PCT": { + "timeField": "Time" + }, + "RPS": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "outbound_service", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #DURATION": 1, + "Trend #ERR_PCT": 2, + "Trend #RPS": 3, + "outbound_service": 0 + }, + "renameByName": { + "Trend #DURATION": "Duration (P99)", + "Trend #Duration": "Duration (p99)", + "Trend #ERR_PCT": "Error", + "Trend #RPS": "Rate", + "operation": "Operation", + "outbound_service": "Service" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "DB calls made by the service based on the `db.client.operation.duration` metric.\n\nCalls broken down by `server.address` and `db.namespace`.\n\nSee https://opentelemetry.io/docs/specs/semconv/database/database-metrics/#metric-dbclientoperationduration\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No database call", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration (P99)" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "unit", + "value": "reqps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 24, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "sum by (database) (\n label_join(\n rate(db_client_operation_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"database\",\n \"/\",\n \"server_address\",\n \"db_namespace\"\n )\n)\n ", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "{{server_address}} {{db_namespace}}", + "range": true, + "refId": "RPS", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(\n sum by (database) (\n label_join(\n rate(db_client_operation_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", http_response_status_code=~\"5..\"}[$__rate_interval]),\n \"database\",\n \"/\",\n \"server_address\",\n \"db_namespace\"\n )\n )\n / \n sum by (database) (\n label_join(\n rate(db_client_operation_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"database\",\n \"/\",\n \"server_address\",\n \"db_namespace\"\n )\n )\n ) or (0 * \n sum by (database) (\n label_join(\n rate(db_client_operation_duration_seconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"database\",\n \"/\",\n \"server_address\",\n \"db_namespace\"\n )\n )\n )", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{server_address}} {{db_namespace}}", + "range": true, + "refId": "ERR_PCT" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "\nhistogram_quantile(\n 0.99,\n sum by (le, database) (\n label_join(\n rate(db_client_operation_duration_seconds_bucket{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[5m]),\n \"database\",\n \"/\",\n \"server_address\",\n \"db_namespace\"\n )\n )\n)", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "{{server_address}} {{db_namespace}}", + "range": true, + "refId": "DURATION" + } + ], + "title": "Outbound Databases", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "DURATION": { + "timeField": "Time" + }, + "Duration": { + "timeField": "Time" + }, + "ERR_PCT": { + "timeField": "Time" + }, + "RPS": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "database", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #DURATION": 1, + "Trend #ERR_PCT": 2, + "Trend #RPS": 3, + "database": 0 + }, + "renameByName": { + "Trend #DURATION": "Duration (P99)", + "Trend #Duration": "Duration (p99)", + "Trend #ERR_PCT": "Error", + "Trend #RPS": "Rate", + "database": "Database", + "database_operation": "Database Operation", + "operation": "Operation", + "outbound_service": "Service" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "description": "gRPC calls made by the service based on the `rpc.client.request.duration` metric.\n\nSpecific to gRPC due to the usage of the `grpc.status.code` attribute to identify errors.\n\nCalls broken down by `server.address`, `rpc.service`, and `rpc.method`.\n\nSee https://opentelemetry.io/docs/specs/semconv/rpc/rpc-metrics/#rpc-client\n\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No RPC call", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration (P99)" + }, + "properties": [ + { + "id": "unit", + "value": "ms" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "unit", + "value": "reqps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 21 + }, + "id": 32, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "\n sum by (outbound_service) (\n label_join(\n rate(rpc_client_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \"/\",\n \"server_address\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n ", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "RPS", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "editorMode": "code", + "expr": "(\n sum by (outbound_service) (\n label_join(\n rate(rpc_client_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\", http_response_status_code=~\"5..\"}[$__rate_interval]),\n \"outbound_service\",\n \"/\",\n \"server_address\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n / \n sum by (outbound_service) (\n label_join(\n rate(rpc_client_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \"/\",\n \"server_address\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n ) or (0 * \n sum by (outbound_service) (\n label_join(\n rate(rpc_client_duration_milliseconds_count{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[$__rate_interval]),\n \"outbound_service\",\n \"/\",\n \"server_address\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n )", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "ERR_PCT" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "\nhistogram_quantile(\n 0.99,\n sum by (le, outbound_service) (\n label_join(\n rate(rpc_client_duration_milliseconds_bucket{deployment_environment_name=~\"$deployment_environment_name\", service_namespace=~\"$service_namespace\", service_name=\"$service_name\"}[5m]),\n \"outbound_service\",\n \"/\",\n \"server_address\",\n \"rpc_service\",\n \"rpc_method\"\n )\n )\n)", + "hide": false, + "instant": false, + "interval": "60s", + "legendFormat": "__auto", + "range": true, + "refId": "DURATION" + } + ], + "title": "Outbound gRPC Services", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "Duration": { + "timeField": "Time" + }, + "ERR_PCT": { + "timeField": "Time" + }, + "RPS": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "outbound_service", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #DURATION": 1, + "Trend #ERR_PCT": 2, + "Trend #RPS": 3, + "outbound_service": 0 + }, + "renameByName": { + "Trend #DURATION": "Duration (P99)", + "Trend #Duration": "Duration (p99)", + "Trend #ERR_PCT": "Error", + "Trend #RPS": "Rate", + "operation": "Operation", + "outbound_service": "Service Method" + } + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 42, + "panels": [], + "title": "Service instances", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Host CPU" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Host Memory" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 41, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "editorMode": "code", + "expr": "sum by (service_instance_id_host_name) (\n label_join(\n (\n sum by (service_instance_id, host_name) (\n rate(system_cpu_time_seconds_total{job=\"\", state!=\"idle\"}[$__rate_interval])\n )\n * on(host_name) group_left(service_instance_id)\n target_info{service_name=\"${service_name}\"}\n ),\n \"service_instance_id_host_name\",\n \" / \",\n \"service_instance_id\",\n \"host_name\"\n )\n)", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "cpu_time_percentage" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by (service_instance_id_host_name) (\n label_join(\n (\n (\n sum by (service_instance_id, host_name) (\n system_memory_usage_bytes{job=\"\", state!=\"free\"}\n )\n /\n sum by (service_instance_id, host_name) (\n system_memory_usage_bytes{job=\"\"}\n )\n )\n * on(host_name) group_left(service_instance_id) (\n target_info{service_name=\"${service_name}\"}\n )\n ),\n \"service_instance_id_host_name\",\n \" / \",\n \"service_instance_id\",\n \"host_name\"\n )\n)", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "memory_usage_pct" + } + ], + "title": "Service instance / host", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "A": { + "timeField": "Time" + }, + "cpu_time_percentage": { + "timeField": "Time" + }, + "memory_usage_pct": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "service_instance_id_host_name", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Trend #cpu_time_percentage": "Host CPU", + "Trend #memory_usage_pct": "Host Memory", + "service_instance_id_host_name": "Instance / Host" + } + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 31 + }, + "id": 25, + "panels": [], + "title": "Logs", + "type": "row" + }, + { + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "${opensearch_datasource}" + }, + "description": "Logs of the service, filtered by `service.name`, `service.namespace`, and `deployment.environment.name`.\n\nTo explore the logs, open the menu clicking on the icon `⋮` of this panel and click on `Explore`.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No application logs", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "@timestamp" + }, + "properties": [ + { + "id": "custom.width", + "value": 226 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "severity.text" + }, + "properties": [ + { + "id": "custom.width", + "value": 136 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "instrumentationScope.name" + }, + "properties": [ + { + "id": "custom.width", + "value": 246 + } + ] + } + ] + }, + "gridPos": { + "h": 15, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 26, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "observedTimestamp", + "id": "2", + "settings": { + "interval": "auto" + }, + "type": "date_histogram" + } + ], + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "${opensearch_datasource}" + }, + "format": "table", + "hide": false, + "luceneQueryType": "Logs", + "metrics": [ + { + "id": "1", + "type": "logs" + } + ], + "query": "search source=otel-logs-* | where resource.service.name=\"$service_name\" and resource.service.namespace=\"$service_namespace\" | fields @timestamp, severity.text, body, instrumentationScope.name\n", + "queryType": "PPL", + "refId": "B", + "timeField": "observedTimestamp" + } + ], + "title": "", + "transformations": [ + { + "id": "formatTime", + "options": { + "outputFormat": "YYYY-MM-DD HH:MM:ss.sss", + "timeField": "@timestamp", + "timezone": "browser", + "useTimezone": true + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "@timestamp": 0, + "body": 3, + "instrumentationScope.name": 2, + "severity.text": 1 + }, + "renameByName": { + "@timestamp": "Time", + "body": "Message", + "instrumentationScope.name": "Logger", + "severity.text": "Severity" + } + } + } + ], + "type": "table" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 47 + }, + "id": 29, + "panels": [ + { + "datasource": { + "type": "jaeger", + "uid": "${jaeger_datasource}" + }, + "description": "Traces containing a span emitted by the service", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "No traces", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Trace Service" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Span ID" + }, + "properties": [ + { + "id": "custom.hidden", + "value": false + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "deployment.environment.name" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service.name" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service.namespace" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 15, + "x": 0, + "y": 58 + }, + "id": 30, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true + }, + "pluginVersion": "12.1.0", + "targets": [ + { + "datasource": { + "type": "jaeger", + "uid": "${jaeger_datasource}" + }, + "queryType": "search", + "refId": "A", + "service": "$service_name", + "tags": "service.namespace=\"$service_namespace\"" + } + ], + "title": "", + "type": "table" + } + ], + "title": "Traces", + "type": "row" + } + ], + "preload": false, + "refresh": "30s", + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "webstore-metrics" + }, + "description": "OpenTelemetry metrics. \nSend metrics using the Prometheus OTLP endpoint activating `keep_identifying_resource_attributes` and resource attribute promotion (aka `promote_resource_attributes`) including `service.name`, service.namespace`, `service.instance.id`, and `deployment.environment.name`", + "label": "Metrics", + "name": "prometheus_datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "allowCustomValue": false, + "current": { + "text": "Jaeger", + "value": "webstore-traces" + }, + "description": "OpenTelemetry traces", + "label": "Traces", + "name": "jaeger_datasource", + "options": [], + "query": "jaeger", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "allowCustomValue": false, + "current": { + "text": "OpenSearch", + "value": "webstore-logs" + }, + "description": "OpenTelemetry logs.", + "label": "Logs", + "name": "opensearch_datasource", + "options": [], + "query": "grafana-opensearch-datasource", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": { + "text": ".*", + "value": ".*" + }, + "description": "Waiting to implement support of the optional value of `deployment.environment.name` in the OpenSearch and Jager panels, hide variable.", + "hide": 2, + "label": "Environment", + "name": "deployment_environment_name", + "query": ".*", + "skipUrlSync": true, + "type": "constant" + }, + { + "allValue": ".*", + "allowCustomValue": false, + "current": { + "text": "opentelemetry-demo", + "value": "opentelemetry-demo" + }, + "datasource": { + "type": "prometheus", + "uid": "${prometheus_datasource}" + }, + "definition": "label_values(target_info{deployment_environment_name=~\"$deployment_environment_name\"},service_namespace)", + "description": "Service namespace.\nResource attribute `service.namespace` via `target_info`", + "includeAll": false, + "label": "Namespace", + "name": "service_namespace", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(target_info{deployment_environment_name=~\"$deployment_environment_name\"},service_namespace)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": { + "text": "checkout", + "value": "checkout" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "label_values(target_info{service_namespace=~\"$service_namespace\", deployment_environment_name=~\"$deployment_environment_name\"},service_name)", + "description": "Service name.\nResource attribute `service.name` via `target_info`.", + "label": "Name", + "name": "service_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(target_info{service_namespace=~\"$service_namespace\", deployment_environment_name=~\"$deployment_environment_name\"},service_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "APM Dashboard (Jaeger, Prometheus, OpenSearch)", + "uid": "febljk0a32qyoa", + "version": 1 + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-demo-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + demo-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 2, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 21, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "This dashboard shows RED metrics for the selected service, as generated by the spanmetrics connector in the OpenTelemetry Collector.\nIf the selected service emits logs, the logs will also be displayed.\nCustom metrics generated by some services are also displayed. \n
\nChart panels may require 5 minutes after the Demo is started before rendering data.", + "mode": "html" + }, + "pluginVersion": "11.5.2", + "title": "", + "type": "text" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 14, + "panels": [], + "title": "Spanmetrics (RED metrics)", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 4 + }, + "id": 12, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by (span_name) (rate(traces_span_metrics_duration_milliseconds_count{service_name=\"${service}\"}[$__rate_interval]))", + "legendFormat": "{{ span_name }}", + "range": true, + "refId": "A" + } + ], + "title": "Requests Rate by Span Name", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 4 + }, + "id": 10, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by (span_name) (rate(traces_span_metrics_calls_total{status_code=\"STATUS_CODE_ERROR\", service_name=\"${service}\"}[$__rate_interval]))", + "interval": "", + "legendFormat": "{{ span_name }}", + "range": true, + "refId": "A" + } + ], + "title": "Error Rate by Span Name", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurationms" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 4 + }, + "id": 2, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "histogram_quantile(0.50, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=\"${service}\"}[$__rate_interval])) by (le, span_name))", + "legendFormat": "{{span_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Average Duration by Span Name", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 19, + "panels": [], + "title": "Application Log Records", + "type": "row" + }, + { + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "webstore-logs" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "count()" + }, + "properties": [ + { + "id": "custom.width", + "value": 90 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 4, + "x": 0, + "y": 13 + }, + "id": 20, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "alias": "", + "bucketAggs": [ + { + "field": "severity.text.keyword", + "id": "3", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "_count", + "size": "0" + }, + "type": "terms" + } + ], + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "webstore-logs" + }, + "format": "table", + "metrics": [ + { + "id": "1", + "type": "count" + } + ], + "query": "search source=otel-logs-*\n| where resource.service.name=\"${service}\"\n| stats count() by severity.text", + "queryType": "PPL", + "refId": "A", + "timeField": "observedTimestamp" + } + ], + "title": "Log Records by Severity", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Count": "", + "severity.text.keyword": "Severity" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "webstore-logs" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto", + "wrapText": false + }, + "filterable": true, + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "observedTimestamp" + }, + "properties": [] + }, + { + "matcher": { + "id": "byName", + "options": "body" + }, + "properties": [ + { + "id": "custom.width", + "value": 386 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "severity.text" + }, + "properties": [ + { + "id": "custom.width", + "value": 127 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 20, + "x": 4, + "y": 13 + }, + "id": 17, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "alias": "", + "bucketAggs": [], + "datasource": { + "type": "grafana-opensearch-datasource", + "uid": "webstore-logs" + }, + "format": "table", + "hide": false, + "metrics": [ + { + "id": "1", + "settings": { + "order": "desc", + "size": "100", + "useTimeRange": true + }, + "type": "raw_data" + } + ], + "query": "search source=otel-logs-*\n| where resource.service.name=\"${service}\"\n| sort - observedTimestamp \n| head 100", + "queryType": "PPL", + "refId": "A", + "timeField": "observedTimestamp" + } + ], + "title": "Log Records (100 recent entries)", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "@timestamp": true + }, + "includeByName": {}, + "indexByName": { + "@timestamp": 1, + "attributes.data_stream.dataset": 4, + "attributes.data_stream.namespace": 5, + "attributes.data_stream.type": 6, + "attributes.productId": 7, + "attributes.quantity": 8, + "attributes.userId": 9, + "body": 3, + "instrumentationScope.name": 10, + "observedTimestamp": 0, + "resource.container.id": 11, + "resource.docker.cli.cobra.command_path": 12, + "resource.host.name": 13, + "resource.service.name": 14, + "resource.telemetry.sdk.language": 15, + "resource.telemetry.sdk.name": 16, + "resource.telemetry.sdk.version": 17, + "severity.number": 18, + "severity.text": 2, + "spanId": 19, + "traceId": 20 + }, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 18, + "panels": [], + "title": "Application Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 22 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "rate(process_runtime_cpython_cpu_time_seconds_total{type=~\"system\"}[$__rate_interval])*100", + "hide": false, + "interval": "2m", + "legendFormat": "{{job}} ({{type}})", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "rate(process_runtime_cpython_cpu_time_seconds_total{type=~\"user\"}[$__rate_interval])*100", + "hide": false, + "interval": "2m", + "legendFormat": "{{job}} ({{type}})", + "range": true, + "refId": "B" + } + ], + "title": "Python services (CPU%)", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "opentelemetry-demo/(.*)", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 22 + }, + "id": 8, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "process_runtime_cpython_memory_bytes{type=\"rss\"}", + "legendFormat": "{{job}}", + "range": true, + "refId": "A" + } + ], + "title": "Python services (Memory)", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "opentelemetry-demo/(.*)", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 30 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "rate(app_recommendations_counter_total{recommendation_type=\"catalog\"}[$__rate_interval])", + "interval": "2m", + "legendFormat": "recommendations", + "range": true, + "refId": "A" + } + ], + "title": "Recommendations Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 16, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "rate(otel_trace_span_processor_spans{job=\"quote\"}[2m])*120", + "interval": "2m", + "legendFormat": "{{state}}", + "range": true, + "refId": "A" + } + ], + "title": "Quote Service batch span processor", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 38 + }, + "id": 23, + "panels": [], + "title": "Service Dependency", + "type": "row" + }, + { + "datasource": { + "type": "jaeger", + "uid": "webstore-traces" + }, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 18, + "w": 24, + "x": 0, + "y": 39 + }, + "id": 22, + "options": { + "edges": { + "mainStatUnit": "requests" + }, + "nodes": { + "arcs": [], + "mainStatUnit": "" + }, + "zoomMode": "cooperative" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "jaeger", + "uid": "webstore-traces" + }, + "queryType": "dependencyGraph", + "refId": "A" + } + ], + "title": "Service Dependency", + "type": "nodeGraph" + } + ], + "preload": false, + "refresh": "", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": { + "text": "frontend", + "value": "frontend" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "traces_span_metrics_duration_milliseconds_bucket", + "includeAll": false, + "label": "Service", + "name": "service", + "options": [], + "query": { + "query": "traces_span_metrics_duration_milliseconds_bucket", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/.*service.name=\\\"([^\\\"]+)\\\".*/", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Demo Dashboard", + "uid": "W2gX2zHVk", + "version": 2, + "weekStart": "" + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-exemplars-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + exemplars-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 3, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 8, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "This dashboard shows the use of metric exemplars.\nExemplars can be used to look up a trace in Jaeger.\nOnly the most recent exemplars may still be available in Jaeger.\n
\nChart panels may require 5 minutes after the Demo is started before rendering data.", + "mode": "html" + }, + "pluginVersion": "11.6.1", + "title": "", + "type": "text" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 4, + "panels": [], + "title": "GetCart Exemplars", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 2, + "interval": "2m", + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": false, + "scale": "exponential", + "scheme": "Spectral", + "steps": 64 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false + } + }, + "pluginVersion": "11.6.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "exemplar": true, + "expr": "sum by(le) (rate(app_cart_get_cart_latency_seconds_bucket[$__rate_interval]))", + "format": "heatmap", + "fullMetaSearch": false, + "includeNullMetadata": false, + "instant": true, + "legendFormat": "{{le}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "GetCart Latency Heatmap with Exemplars", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 5, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.6.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "builder", + "exemplar": true, + "expr": "histogram_quantile(0.95, sum by(le) (rate(app_cart_get_cart_latency_seconds_bucket[$__rate_interval])))", + "fullMetaSearch": false, + "includeNullMetadata": false, + "legendFormat": "p95 GetCart", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "95th Pct Cart GetCart Latency with Exemplars", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 3, + "panels": [], + "title": "AddItem Exemplars", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 6, + "interval": "2m", + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": false, + "scale": "exponential", + "scheme": "Spectral", + "steps": 64 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false + } + }, + "pluginVersion": "11.6.1", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "exemplar": true, + "expr": "sum by(le) (rate(app_cart_add_item_latency_seconds_bucket[$__rate_interval]))", + "format": "heatmap", + "fullMetaSearch": false, + "includeNullMetadata": false, + "instant": true, + "legendFormat": "{{le}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "AddItem Latency Heatmap with Exemplars", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 32 + }, + "id": 1, + "interval": "2m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.6.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "builder", + "exemplar": true, + "expr": "histogram_quantile(0.95, sum by(le) (rate(app_cart_add_item_latency_seconds_bucket[$__rate_interval])))", + "fullMetaSearch": false, + "includeNullMetadata": false, + "legendFormat": "p95 AddItem", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "95th Pct Cart AddItem Latency with Exemplars", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Cart Service Exemplars", + "uid": "ce6sd46kfkglca", + "version": 1 + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-linux-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + linux-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "OpenTelemetry Collector hostmetrics", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 4, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 267, + "panels": [], + "title": "overview〠$host_name】", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Busy state of all CPU cores together\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 20, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(system_cpu_utilization_ratio{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\", state!=\"idle\"})", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "CPU Busy", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Non available RAM memory\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/memoryscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 80 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 3, + "y": 1 + }, + "id": 16, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "system_memory_utilization_ratio{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"$node_name\", host_name=~\"$host_name\", job=\"\", state=\"used\"}", + "format": "time_series", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "intervalFactor": 1, + "range": true, + "refId": "A", + "step": 240, + "useBackend": false + } + ], + "title": "RAM Used", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Used FS\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver#collecting-host-metrics-from-inside-a-container-linux-only", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 80 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 1 + }, + "id": 154, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "1 \n-\nsum(system_filesystem_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"free\"}) \n/ \nsum(system_filesystem_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "C" + } + ], + "title": "FS Used", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Busy state of all CPU cores together (5 min average)\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/loadscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 1 + }, + "id": 155, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "system_cpu_load_average_5m{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"} ", + "format": "time_series", + "hide": false, + "instant": true, + "intervalFactor": 1, + "legendFormat": "__auto", + "range": false, + "refId": "sysload_5m", + "step": 240 + } + ], + "title": "Sys Load (5m avg)", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Busy state of all CPU cores together (15 min average)\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/loadscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 1 + }, + "id": 19, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "system_cpu_load_average_15m{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"} ", + "hide": false, + "instant": true, + "intervalFactor": 1, + "range": false, + "refId": "sysload_15m", + "step": 240 + } + ], + "title": "Sys Load (15m avg)", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Used Swap\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/pagingscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 10 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 25 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 1 + }, + "id": 21, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(system_paging_usage_bytes { k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"used\" })\n/\nsum(system_paging_usage_bytes { k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "instant": true, + "intervalFactor": 1, + "range": false, + "refId": "A", + "step": 240 + } + ], + "title": "SWAP Used", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "Total number of CPU cores", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 18, + "y": 1 + }, + "id": 14, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "system_cpu_logical_count{ k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"used\" }", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU Cores", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "Total RAM", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 20, + "y": 1 + }, + "id": 75, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "exemplar": false, + "expr": "system_memory_limit_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}", + "instant": true, + "intervalFactor": 1, + "legendFormat": "__auto", + "range": false, + "refId": "A", + "step": 240 + } + ], + "title": "RAM Total", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "Total SWAP", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 22, + "y": 1 + }, + "id": 18, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(system_paging_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "instant": true, + "intervalFactor": 1, + "legendFormat": "__auto", + "range": false, + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "SWAP Total", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "Total FS\n\nhttps://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/documentation.md", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(50, 172, 45, 0.97)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 70 + }, + { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 18, + "y": 3 + }, + "id": 23, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(system_filesystem_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "format": "time_series", + "hide": false, + "instant": true, + "intervalFactor": 1, + "range": false, + "refId": "A", + "step": 240 + } + ], + "title": "FS Total", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "System uptime", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 4, + "x": 20, + "y": 3 + }, + "id": 15, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "system_uptime_seconds{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}", + "instant": true, + "intervalFactor": 1, + "legendFormat": "__auto", + "range": false, + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Uptime", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 266, + "panels": [], + "title": "Basic", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "percent" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Busy System" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#890F02", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Busy User" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Busy Wait" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#7EB26D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Busy IRQs" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "super-light-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Busy Other" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-orange", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 6 + }, + "id": 77, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "width": 250 + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum (irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"system\"}[$__rate_interval])) \n/\nsum ((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Busy System", + "range": true, + "refId": "busy system", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum (irate(system_cpu_time_seconds_total{kk8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"user\"}[$__rate_interval])) \n/ \nsum ((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Busy User", + "range": true, + "refId": "busy user", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum(irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"wait\"}[$__rate_interval])) \n/ \nsum ((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Busy Wait", + "range": true, + "refId": "busy wait", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum (irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=~\".*irq\"}[$__rate_interval])) \n/\nsum((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Busy IRQs", + "range": true, + "refId": "busy irq", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum(irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state!~\".*irq\", state!=\"idle\", state!=\"user\", state!=\"wait\", state!=\"system\"}[$__rate_interval]))\n/\nsum ((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Busy Other", + "range": true, + "refId": "busy other", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "fej9ntb4ninswf" + }, + "editorMode": "code", + "expr": "sum by(host_name) (irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"idle\"}[$__rate_interval])) \n/ \non(host_name) group_left sum by (host_name)((irate(system_cpu_time_seconds_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"}[$__rate_interval])))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Idle", + "range": true, + "refId": "idle", + "step": 240 + } + ], + "title": "CPU", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Apps" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#629E51", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Buffers" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#614D93", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#6D1F62", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Cached" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#511749", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Committed" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#508642", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#0A437C", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#CFFAFF", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Inactive" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#584477", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "PageTables" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#0A50A1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Page_Tables" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#0A50A1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RAM_Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E0F9D7", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SWAP Used" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BF1B00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Slab" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#806EB7", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Slab_Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E0752D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BF1B00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap Used" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#BF1B00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap_Cache" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#C15C17", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap_Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#2F575E", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Unused" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#EAB839", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RAM Total" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E0F9D7", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": false, + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RAM Cache + Buffer" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#052B51", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "RAM Free" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#7EB26D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Available" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#DEDAF7", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": false, + "mode": "normal" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 6, + "y": 6 + }, + "id": 78, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "width": 350 + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(system_memory_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Available", + "range": true, + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(system_memory_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"free\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "RAM Free", + "range": true, + "refId": "B", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(system_memory_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=~\"cached|buffered\"})", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "RAM Cache + Buffer", + "range": true, + "refId": "C", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(system_memory_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"used\"})", + "format": "time_series", + "instant": false, + "intervalFactor": 1, + "legendFormat": "Used", + "range": true, + "refId": "E", + "step": 240 + } + ], + "title": "Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Receive (-) / Transmit (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 3600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*Rec.*/" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 6, + "x": 11, + "y": 6 + }, + "id": 74, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum (rate(system_network_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", direction=\"receive\", job=\"\"}[$__rate_interval]))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Receive", + "range": true, + "refId": "receive", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum (rate(system_network_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", direction=\"transmit\", job=\"\"}[$__rate_interval]))", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Transmit", + "range": true, + "refId": "transmit", + "step": 240 + } + ], + "title": "Network Traffic", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Read (-) / Write (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 40, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*Read*./" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 17, + "y": 6 + }, + "id": 42, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(system_disk_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", direction=\"read\"}[$__rate_interval]))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Read", + "range": true, + "refId": "read", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(irate(system_disk_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", direction=\"write\"}[$__rate_interval]))", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "Write", + "range": true, + "refId": "write", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "C" + } + ], + "title": "I/O Usage Read / Write", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Trend #transmit_bytes" + }, + "properties": [ + { + "id": "unit", + "value": "binBps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Trend #receive_bytes" + }, + "properties": [ + { + "id": "unit", + "value": "binBps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Trend #receive_dropped_packets" + }, + "properties": [ + { + "id": "unit", + "value": "pps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Trend #transmit_dropped_packets" + }, + "properties": [ + { + "id": "unit", + "value": "pps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Trend #receive_errors" + }, + "properties": [ + { + "id": "unit", + "value": "pps" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Trend #transmit_errors" + }, + "properties": [ + { + "id": "unit", + "value": "pps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 15, + "x": 0, + "y": 14 + }, + "id": 270, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\", direction=\"transmit\"}[$__rate_interval]))", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "transmit_bytes", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_io_bytes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\", direction=\"receive\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "receive_bytes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_dropped_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\",direction=\"receive\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "receive_dropped_packets" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_dropped_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\",direction=\"transmit\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "transmit_dropped_packets" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_errors_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\",direction=\"receive\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "receive_errors" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "expr": "sum by(device) (rate(system_network_errors_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", job=\"\",direction=\"transmit\"}[$__rate_interval]))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "transmit_errors" + } + ], + "title": "Network traffic", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "A": { + "timeField": "Time" + }, + "receive": { + "timeField": "Time" + }, + "receive_bytes": { + "timeField": "Time" + }, + "receive_dropped_packets": { + "timeField": "Time" + }, + "receive_errors": { + "timeField": "Time" + }, + "transmit": { + "timeField": "Time" + }, + "transmit_bytes": { + "timeField": "Time" + }, + "transmit_dropped_packets": { + "timeField": "Time" + }, + "transmit_errors": { + "timeField": "Time" + } + } + }, + { + "id": "joinByField", + "options": { + "byField": "device", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "Trend #receive_bytes": 4, + "Trend #receive_dropped_packets": 5, + "Trend #receive_errors": 3, + "Trend #transmit_bytes": 1, + "Trend #transmit_dropped_packets": 2, + "Trend #transmit_errors": 6, + "device": 0 + }, + "renameByName": { + "Trend #receive": "Receive", + "Trend #receive_bytes": "Receive", + "Trend #receive_dropped_packets": "Receive dropped", + "Trend #receive_errors": "Transmit err", + "Trend #transmit": "Transmit", + "Trend #transmit_bytes": "Transmit", + "Trend #transmit_dropped_packets": "Transmit dropped", + "Trend #transmit_errors": "Receive err", + "device": "Interface" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Used %" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "gauge", + "valueDisplayMode": "color" + } + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "min", + "value": 0 + }, + { + "id": "max", + "value": 1 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Free" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.width", + "value": 80 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Used" + }, + "properties": [ + { + "id": "custom.width", + "value": 78 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Mount" + }, + "properties": [ + { + "id": "custom.width", + "value": 200 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 14 + }, + "id": 269, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "sum by(mountpoint) (system_filesystem_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\", state=\"free\"})", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "free", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by(mountpoint) (system_filesystem_usage_bytes{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$host_name\"})", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total" + } + ], + "title": "Disk usage", + "transformations": [ + { + "id": "groupBy", + "options": { + "fields": { + "/oldroot": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "/var/lib": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "Value": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "Value #free": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "Value #total": { + "aggregations": [ + "lastNotNull" + ], + "operation": "aggregate" + }, + "mountpoint": { + "aggregations": [], + "operation": "groupby" + } + } + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "calculateField", + "options": { + "alias": "used", + "binary": { + "left": { + "matcher": { + "id": "byName", + "options": "Value #total (lastNotNull)" + } + }, + "operator": "-", + "right": { + "matcher": { + "id": "byName", + "options": "Value #free (lastNotNull)" + } + } + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "Used %", + "binary": { + "left": { + "matcher": { + "id": "byName", + "options": "used" + } + }, + "operator": "/", + "right": { + "matcher": { + "id": "byName", + "options": "Value #total (lastNotNull)" + } + } + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Used %": "Used %", + "Value #free (lastNotNull)": "Free", + "Value #total (lastNotNull)": "Total", + "mountpoint": "Mount", + "used": "Used" + } + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "field": "Mount" + } + ] + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 272, + "panels": [], + "title": "Details", + "type": "row" + } + ], + "preload": false, + "refresh": "", + "schemaVersion": 41, + "tags": [ + "linux", + "opentelemetry" + ], + "templating": { + "list": [ + { + "current": { + "text": "Prometheus", + "value": "webstore-metrics" + }, + "includeAll": false, + "label": "Data Source", + "name": "DS_PROMETHEUS", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "(?!grafanacloud-usage|grafanacloud-ml-metrics).+", + "type": "datasource" + }, + { + "allValue": ".*", + "allowCustomValue": true, + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(otelcol_process_uptime,k8s_cluster_name)", + "description": "When deploying PostgreSQL on Kubernetes, name of the Kubernetes cluster. \nFor other deployments, select \"All\". ", + "includeAll": true, + "label": "K8s Cluster", + "multi": true, + "name": "k8s_cluster_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(otelcol_process_uptime,k8s_cluster_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "allowCustomValue": false, + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(otelcol_process_uptime{k8s_cluster_name=~\"$k8s_cluster_name\"},k8s_node_name)", + "description": "When monitoring Kubernetes, name of the K8s node.\nFor other deployments, select \"All\". ", + "includeAll": true, + "label": "K8s node", + "name": "node_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(otelcol_process_uptime{k8s_cluster_name=~\"$k8s_cluster_name\"},k8s_node_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": { + "text": "docker-desktop", + "value": "docker-desktop" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "label_values(otelcol_process_uptime_seconds_total,host_name)", + "includeAll": true, + "label": "Host", + "name": "host_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(otelcol_process_uptime_seconds_total,host_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" + }, + { + "allowCustomValue": false, + "current": { + "text": "", + "value": "" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "definition": "query_result(count(otelcol_process_uptime{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$ip\"}))", + "hide": 2, + "label": "host count", + "name": "host_count", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(count(otelcol_process_uptime{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_node_name=~\"${node_name}\", host_name=~\"$ip\"}))", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/{} (.*) .*/", + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Linux", + "uid": "otel-demo-hostmetrics", + "version": 1 + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-opentelemetry-collector + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + opentelemetry-collector.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Visualize OpenTelemetry (OTEL) collector metrics (tested with OTEL contrib v0.120.1)", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": 4, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 86, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "This dashboard uses the metrics generated by the OpenTelemetry Collector.\nIt is used to understand the overall performance and health of the OpenTelemetry Collector.\n
\nChart panels may require 5 minutes after the Demo is started before rendering data.\n", + "mode": "html" + }, + "pluginVersion": "11.5.2", + "title": "", + "type": "text" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 23, + "panels": [], + "title": "Receivers", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of spans successfully pushed into the pipeline.\nRefused: count/rate of spans that could not be pushed into the pipeline.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 3 + }, + "id": 28, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_accepted_spans${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_refused_spans${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Spans ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of metric points successfully pushed into the pipeline.\nRefused: count/rate of metric points that could not be pushed into the pipeline.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 3 + }, + "id": 80, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_accepted_metric_points${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_refused_metric_points${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Metric Points ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of log records successfully pushed into the pipeline.\nRefused: count/rate of log records that could not be pushed into the pipeline.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 3 + }, + "id": 47, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_accepted_log_records${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_receiver_refused_log_records${suffix_total}{receiver=~\"$receiver\",job=\"$job\"}[$__rate_interval])) by (receiver $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{receiver}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Log Records ${metric:text}", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 34, + "panels": [], + "title": "Processors", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 12 + }, + "id": 85, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_incoming_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"traces\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Incomming: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "0-sum(${metric:value}(otelcol_processor_outgoing_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"traces\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Outgoing: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Spans ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 12 + }, + "id": 83, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_incoming_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"metrics\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Incomming: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "0-sum(${metric:value}(otelcol_processor_outgoing_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"metrics\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Outgoing: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Metric Points ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 12 + }, + "id": 84, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_incoming_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"logs\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Incomming: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "0-sum(${metric:value}(otelcol_processor_outgoing_items${suffix_total}{processor=~\"$processor\",job=\"$job\",otel_signal=\"logs\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Outgoing: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Logs Records ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of spans successfully pushed into the next component in the pipeline.\nRefused: count/rate of spans that were rejected by the next component in the pipeline.\nDropped: count/rate of spans that were dropped", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 20 + }, + "id": 35, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_accepted_spans${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_refused_spans${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_dropped_spans${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Dropped: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Accepted Spans ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of metric points successfully pushed into the next component in the pipeline.\nRefused: count/rate of metric points that were rejected by the next component in the pipeline.\nDropped: count/rate of metric points that were dropped", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 20 + }, + "id": 50, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_accepted_metric_points${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_refused_metric_points${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_dropped_metric_points${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Dropped: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Accepted Metric Points ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Accepted: count/rate of log records successfully pushed into the next component in the pipeline.\nRefused: count/rate of log records that were rejected by the next component in the pipeline.\nDropped: count/rate of log records that were dropped", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Refused.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/Dropped.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 20 + }, + "id": 51, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_accepted_log_records${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Accepted: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_refused_log_records${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Refused: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_dropped_log_records${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Dropped: {{processor}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Accepted Log Records ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Number of units in the batch", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 28 + }, + "id": 49, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 57 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(otelcol_processor_batch_batch_send_size_bucket{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "Batch Send Size Heatmap", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*count.*/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 28 + }, + "id": 36, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_batch_batch_send_size_count{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Batch send size count: {{processor}} {{service_instance_id}}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_batch_batch_send_size_sum{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Batch send size sum: {{processor}} {{service_instance_id}}", + "refId": "A" + } + ], + "title": "Batch Metrics 1", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Number of times the batch was sent due to a size trigger. Number of times the batch was sent due to a timeout trigger.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*timeout.*/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 28 + }, + "id": 56, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_batch_batch_size_trigger_send${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Batch sent due to a size trigger: {{processor}}", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_batch_timeout_trigger_send${suffix_total}{processor=~\"$processor\",job=\"$job\"}[$__rate_interval])) by (processor $grouping)", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Batch sent due to a timeout trigger: {{processor}} {{service_instance_id}}", + "refId": "A" + } + ], + "title": "Batch Metrics 2", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 36 + }, + "id": 25, + "panels": [], + "title": "Exporters", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Sent: count/rate of spans successfully sent to destination.\nEnqueue: count/rate of spans failed to be added to the sending queue.\nFailed: count/rate of spans in failed attempts to send to destination.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Failed:.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 37 + }, + "id": 37, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_sent_spans${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Sent: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_enqueue_failed_spans${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Enqueue: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_send_failed_spans${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Failed: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Spans ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Sent: count/rate of metric points successfully sent to destination.\nEnqueue: count/rate of metric points failed to be added to the sending queue.\nFailed: count/rate of metric points in failed attempts to send to destination.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Failed:.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 37 + }, + "id": 38, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_sent_metric_points${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Sent: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_enqueue_failed_metric_points${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Enqueue: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_send_failed_metric_points${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Failed: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Metric Points ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Sent: count/rate of log records successfully sent to destination.\nEnqueue: count/rate of log records failed to be added to the sending queue.\nFailed: count/rate of log records in failed attempts to send to destination.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Failed:.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 37 + }, + "id": 48, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_sent_log_records${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Sent: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_enqueue_failed_log_records${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Enqueue: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_exporter_send_failed_log_records${suffix_total}{exporter=~\"$exporter\",job=\"$job\"}[$__rate_interval])) by (exporter $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Failed: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Log Records ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Current size of the retry queue (in batches)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 46 + }, + "id": 10, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_exporter_queue_size{exporter=~\"$exporter\",job=\"$job\"}) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Max queue size: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Exporter Queue Size", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Fixed capacity of the retry queue (in batches)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 46 + }, + "id": 55, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(otelcol_exporter_queue_capacity{exporter=~\"$exporter\",job=\"$job\"}) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Queue capacity: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Exporter Queue Capacity", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 46 + }, + "id": 67, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(\r\n otelcol_exporter_queue_size{\r\n exporter=~\"$exporter\", job=\"$job\"\r\n }\r\n) by (exporter $grouping)\r\n/\r\nmin(\r\n otelcol_exporter_queue_capacity{\r\n exporter=~\"$exporter\", job=\"$job\"\r\n }\r\n) by (exporter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Queue capacity usage: {{exporter}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Exporter Queue Usage", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 55 + }, + "id": 21, + "panels": [], + "title": "Collector", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Total physical memory (resident set size)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Avg Memory RSS " + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Min Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avg Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Min Memory RSS " + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 56 + }, + "id": 40, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_process_memory_rss${suffix_bytes}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Max Memory RSS {{service_instance_id}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(otelcol_process_memory_rss${suffix_bytes}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Avg Memory RSS {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(otelcol_process_memory_rss${suffix_bytes}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Min Memory RSS {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Total RSS Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Total bytes of memory obtained from the OS (see 'go doc runtime.MemStats.Sys')", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Avg Memory RSS " + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Min Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avg Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Min Memory RSS " + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 56 + }, + "id": 52, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_process_runtime_total_sys_memory_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Max Memory RSS {{service_instance_id}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(otelcol_process_runtime_total_sys_memory_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Avg Memory RSS {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(otelcol_process_runtime_total_sys_memory_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Min Memory RSS {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Total Runtime Sys Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Bytes of allocated heap objects (see 'go doc runtime.MemStats.HeapAlloc')", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Avg Memory RSS " + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Min Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avg Memory RSS " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Min Memory RSS " + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 56 + }, + "id": 53, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_process_runtime_heap_alloc_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Max Memory RSS {{service_instance_id}}", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(otelcol_process_runtime_heap_alloc_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Avg Memory RSS {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(otelcol_process_runtime_heap_alloc_bytes{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Min Memory RSS {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Total Runtime Heap Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Total CPU user and system time in percentage", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max CPU usage " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Avg CPU usage " + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.fillOpacity", + "value": 20 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avg CPU usage " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "custom.fillBelowTo", + "value": "Min CPU usage " + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Min CPU usage " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 65 + }, + "id": 39, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(rate(otelcol_process_cpu_seconds${suffix_total}{job=\"$job\"}[$__rate_interval])*100) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Max CPU usage {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(rate(otelcol_process_cpu_seconds${suffix_total}{job=\"$job\"}[$__rate_interval])*100) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Avg CPU usage {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(rate(otelcol_process_cpu_seconds${suffix_total}{job=\"$job\"}[$__rate_interval])*100) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Min CPU usage {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "CPU Usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Number of service instances, which are reporting metrics", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 65 + }, + "id": 41, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(count(otelcol_process_cpu_seconds${suffix_total}{service_instance_id=~\".*\",job=\"$job\"}) by (service_instance_id))", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Service instance count", + "range": true, + "refId": "B" + } + ], + "title": "Service Instance Count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 65 + }, + "id": 54, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_process_uptime${suffix_seconds}${suffix_total}{service_instance_id=~\".*\",job=\"$job\"}) by (service_instance_id)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Service instance uptime: {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Uptime by Service Instance", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 74 + }, + "id": 57, + "interval": "$minstep", + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(otelcol_process_uptime${suffix_seconds}${suffix_total}{service_instance_id=~\".*\",job=\"$job\",service_version=\".+\"}) by (service_instance_id,service_name,service_version)\r\nor\r\nmax(\r\n otelcol_process_uptime${suffix_seconds}${suffix_total}{service_instance_id=~\".*\",job=\"$job\"} \r\n * on(job, instance) \r\n group_left(service_version) \r\n (\r\n target_info \r\n * on(job, instance) \r\n group_left \r\n label_replace(target_info{}, \"service_instance_id\", \"$1\", \"instance\", \"(.*)\")\r\n )\r\n) by (service_instance_id, service_name, service_version)", + "format": "table", + "hide": false, + "instant": true, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "__auto", + "range": false, + "refId": "B" + } + ], + "title": "Service Instance Details", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 79 + }, + "id": 59, + "panels": [], + "title": "Signal flows", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Receivers -> Processor(s) -> Exporters (Node Graph panel is beta, so this panel may not show data correctly).", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 0, + "y": 80 + }, + "id": 58, + "options": { + "edges": {}, + "nodes": { + "mainStatUnit": "flops" + }, + "zoomMode": "cooperative" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers\nlabel_replace(\n label_join(\n label_join(\n sum(${metric:value}(\n otelcol_receiver_accepted_spans${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (receiver)\n , \"id\", \"-rcv-\", \"transport\", \"receiver\"\n )\n , \"title\", \"\", \"transport\", \"receiver\"\n )\n , \"icon\", \"arrow-to-right\", \"\", \"\"\n)\n\n# dummy processor\nor\nlabel_replace(\n label_replace(\n label_replace(\n (sum(rate(otelcol_process_uptime${suffix_seconds}${suffix_total}{job=\"$job\"}[$__rate_interval])))\n , \"id\", \"processor\", \"\", \"\"\n )\n , \"title\", \"Processor(s)\", \"\", \"\"\n )\n , \"icon\", \"arrow-random\", \"\", \"\"\n)\n\n# exporters\nor\nlabel_replace(\n label_join(\n label_join(\n sum(${metric:value}(\n otelcol_exporter_sent_spans${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (exporter)\n , \"id\", \"-exp-\", \"transport\", \"exporter\"\n )\n , \"title\", \"\", \"transport\", \"exporter\"\n )\n , \"icon\", \"arrow-from-right\", \"\", \"\"\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "nodes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers -> processor\r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_receiver_accepted_spans${suffix_total}{job=\"$job\"}[$__rate_interval])) by (receiver))\r\n ,\"source\", \"-rcv-\", \"transport\", \"receiver\"\r\n )\r\n ,\"target\", \"processor\", \"\", \"\"\r\n )\r\n , \"id\", \"-\", \"source\", \"target\"\r\n)\r\n\r\n# processor -> exporters\r\nor\r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_exporter_sent_spans${suffix_total}{job=\"$job\"}[$__rate_interval])) by (exporter))\r\n , \"target\", \"-exp-\", \"transport\", \"exporter\"\r\n )\r\n , \"source\", \"processor\", \"\", \"\"\r\n )\r\n , \"id\", \"-\", \"source\", \"target\"\r\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "edges" + } + ], + "title": "Spans Flow", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "Value", + "renamePattern": "mainstat" + } + }, + { + "disabled": true, + "id": "calculateField", + "options": { + "alias": "secondarystat", + "mode": "reduceRow", + "reduce": { + "include": [ + "mainstat" + ], + "reducer": "sum" + } + } + } + ], + "type": "nodeGraph" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Receivers -> Processor(s) -> Exporters (Node Graph panel is beta, so this panel may not show data correctly).", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 8, + "y": 80 + }, + "id": 60, + "options": { + "edges": {}, + "nodes": { + "mainStatUnit": "none" + }, + "zoomMode": "cooperative" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers\nlabel_replace(\n label_join(\n label_join(\n (sum(\n ${metric:value}(otelcol_receiver_accepted_metric_points${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (receiver))\n , \"id\", \"-rcv-\", \"transport\", \"receiver\"\n )\n , \"title\", \"\", \"transport\", \"receiver\"\n )\n , \"icon\", \"arrow-to-right\", \"\", \"\"\n)\n\n# dummy processor\nor\nlabel_replace(\n label_replace(\n label_replace(\n (sum(rate(otelcol_process_uptime${suffix_seconds}${suffix_total}{job=\"$job\"}[$__rate_interval])))\n , \"id\", \"processor\", \"\", \"\"\n )\n , \"title\", \"Processor(s)\", \"\", \"\"\n )\n , \"icon\", \"arrow-random\", \"\", \"\"\n)\n\n# exporters\nor\nlabel_replace(\n label_join(\n label_join(\n (sum(\n ${metric:value}(otelcol_exporter_sent_metric_points${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (exporter))\n , \"id\", \"-exp-\", \"transport\", \"exporter\"\n )\n , \"title\", \"\", \"transport\", \"exporter\"\n )\n , \"icon\", \"arrow-from-right\", \"\", \"\"\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "nodes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers -> processor\r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_receiver_accepted_metric_points${suffix_total}{job=\"$job\"}[$__rate_interval])) by (receiver))\r\n , \"source\", \"-rcv-\", \"transport\", \"receiver\"\r\n )\r\n , \"target\", \"processor\", \"\", \"\"\r\n )\r\n , \"id\", \"-\", \"source\", \"target\"\r\n)\r\n\r\n# processor -> exporters\r\nor \r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_exporter_sent_metric_points${suffix_total}{job=\"$job\"}[$__rate_interval])) by (exporter))\r\n , \"target\", \"-exp-\", \"transport\", \"exporter\"\r\n )\r\n , \"source\", \"processor\", \"\", \"\"\r\n )\r\n , \"id\", \"-\", \"source\", \"target\"\r\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "edges" + } + ], + "title": "Metric Points Flow", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "Value", + "renamePattern": "mainstat" + } + }, + { + "disabled": true, + "id": "calculateField", + "options": { + "alias": "secondarystat", + "mode": "reduceRow", + "reduce": { + "include": [ + "Value #nodes" + ], + "reducer": "sum" + } + } + } + ], + "type": "nodeGraph" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Receivers -> Processor(s) -> Exporters (Node Graph panel is beta, so this panel may not show data correctly).", + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 80 + }, + "id": 61, + "options": { + "edges": {}, + "nodes": { + "mainStatUnit": "flops" + }, + "zoomMode": "cooperative" + }, + "pluginVersion": "11.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers\nlabel_replace(\n label_join(\n label_join(\n sum(${metric:value}(\n otelcol_receiver_accepted_log_records${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (receiver)\n , \"id\", \"-rcv-\", \"transport\", \"receiver\"\n )\n , \"title\", \"\", \"transport\", \"receiver\"\n )\n , \"icon\", \"arrow-to-right\", \"\", \"\"\n)\n\n# dummy processor\nor\nlabel_replace(\n label_replace(\n label_replace(\n (sum(rate(otelcol_process_uptime${suffix_seconds}${suffix_total}{job=\"$job\"}[$__rate_interval])))\n , \"id\", \"processor\", \"\", \"\"\n )\n , \"title\", \"Processor(s)\", \"\", \"\"\n )\n , \"icon\", \"arrow-random\", \"\", \"\"\n)\n\n# exporters\nor\nlabel_replace(\n label_join(\n label_join(\n sum(${metric:value}(\n otelcol_exporter_sent_log_records${suffix_total}{job=\"$job\"}[$__rate_interval])\n ) by (exporter)\n , \"id\", \"-exp-\", \"transport\", \"exporter\"\n )\n , \"title\", \"\", \"transport\", \"exporter\"\n )\n , \"icon\", \"arrow-from-right\", \"\", \"\"\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "nodes" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "# receivers -> processor\r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_receiver_accepted_log_records${suffix_total}{job=\"$job\"}[$__rate_interval])) by (receiver))\r\n , \"source\", \"-rcv-\", \"transport\", \"receiver\"\r\n )\r\n , \"target\", \"processor\", \"\", \"\"\r\n )\r\n , \"id\", \"-edg-\", \"source\", \"target\"\r\n)\r\n\r\n# processor -> exporters\r\nor \r\nlabel_join(\r\n label_replace(\r\n label_join(\r\n (sum(rate(otelcol_exporter_sent_log_records${suffix_total}{job=\"$job\"}[$__rate_interval])) by (exporter))\r\n ,\"target\",\"-exp-\",\"transport\",\"exporter\"\r\n )\r\n ,\"source\",\"processor\",\"\",\"\"\r\n )\r\n ,\"id\",\"-edg-\",\"source\",\"target\"\r\n)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "edges" + } + ], + "title": "Log Records Flow", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "Value", + "renamePattern": "mainstat" + } + }, + { + "disabled": true, + "id": "calculateField", + "options": { + "alias": "secondarystat", + "mode": "reduceRow", + "reduce": { + "include": [ + "mainstat" + ], + "reducer": "sum" + } + } + } + ], + "type": "nodeGraph" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 89 + }, + "id": 79, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 88 + }, + "id": 32, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_filter_spans_filtered${suffix_total}{job=\"$job\"}[$__rate_interval])) by (filter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Filtered: {{filter}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Spans ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 88 + }, + "id": 81, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_filter_datapoints_filtered${suffix_total}{job=\"$job\"}[$__rate_interval])) by (filter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Filtered: {{filter}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Metric Points ${metric:text}", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 88 + }, + "id": 82, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(${metric:value}(otelcol_processor_filter_log_records_filtered${suffix_total}{job=\"$job\"}[$__rate_interval])) by (filter $grouping)", + "format": "time_series", + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Filtered: {{filter}} {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + } + ], + "title": "Log Records ${metric:text}", + "type": "timeseries" + } + ], + "title": "Filter processors", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 90 + }, + "id": 68, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. GRPC status codes: https://grpc.github.io/grpc/core/md_doc_statuscodes.html", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "0" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "displayName", + "value": "0 - OK" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "1" + }, + "properties": [ + { + "id": "displayName", + "value": "1 - CANCELLED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "2" + }, + "properties": [ + { + "id": "displayName", + "value": "2 - UNKNOWN" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "3" + }, + "properties": [ + { + "id": "displayName", + "value": "3 - INVALID_ARGUMENT" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "4" + }, + "properties": [ + { + "id": "displayName", + "value": "4 - DEADLINE_EXCEEDED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "5" + }, + "properties": [ + { + "id": "displayName", + "value": "5 - NOT_FOUND" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "6" + }, + "properties": [ + { + "id": "displayName", + "value": "6 - ALREADY_EXISTS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "7" + }, + "properties": [ + { + "id": "displayName", + "value": "7 - PERMISSION_DENIED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "8" + }, + "properties": [ + { + "id": "displayName", + "value": "8 - RESOURCE_EXHAUSTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "9" + }, + "properties": [ + { + "id": "displayName", + "value": "9 - FAILED_PRECONDITION" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "10" + }, + "properties": [ + { + "id": "displayName", + "value": "10 - ABORTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "11" + }, + "properties": [ + { + "id": "displayName", + "value": "11 - OUT_OF_RANGE" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "12" + }, + "properties": [ + { + "id": "displayName", + "value": "12 - UNIMPLEMENTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "13" + }, + "properties": [ + { + "id": "displayName", + "value": "13 - INTERNAL" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "14" + }, + "properties": [ + { + "id": "displayName", + "value": "14 - UNAVAILABLE" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "15" + }, + "properties": [ + { + "id": "displayName", + "value": "15 - DATA_LOSS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "16" + }, + "properties": [ + { + "id": "displayName", + "value": "16 - UNAUTHENTICATED" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 291 + }, + "id": 69, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by(rpc_grpc_status_code) (${metric:value}(${prefix:raw}rpc_server_responses_per_rpc_count{job=\"$job\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "RPC server responses by GRPC status code (receivers)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. GRPC status codes: https://grpc.github.io/grpc/core/md_doc_statuscodes.html", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "0" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "displayName", + "value": "0 - OK" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "1" + }, + "properties": [ + { + "id": "displayName", + "value": "1 - CANCELLED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "2" + }, + "properties": [ + { + "id": "displayName", + "value": "2 - UNKNOWN" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "3" + }, + "properties": [ + { + "id": "displayName", + "value": "3 - INVALID_ARGUMENT" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "4" + }, + "properties": [ + { + "id": "displayName", + "value": "4 - DEADLINE_EXCEEDED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "5" + }, + "properties": [ + { + "id": "displayName", + "value": "5 - NOT_FOUND" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "6" + }, + "properties": [ + { + "id": "displayName", + "value": "6 - ALREADY_EXISTS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "7" + }, + "properties": [ + { + "id": "displayName", + "value": "7 - PERMISSION_DENIED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "8" + }, + "properties": [ + { + "id": "displayName", + "value": "8 - RESOURCE_EXHAUSTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "9" + }, + "properties": [ + { + "id": "displayName", + "value": "9 - FAILED_PRECONDITION" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "10" + }, + "properties": [ + { + "id": "displayName", + "value": "10 - ABORTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "11" + }, + "properties": [ + { + "id": "displayName", + "value": "11 - OUT_OF_RANGE" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "12" + }, + "properties": [ + { + "id": "displayName", + "value": "12 - UNIMPLEMENTED" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "13" + }, + "properties": [ + { + "id": "displayName", + "value": "13 - INTERNAL" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "14" + }, + "properties": [ + { + "id": "displayName", + "value": "14 - UNAVAILABLE" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "15" + }, + "properties": [ + { + "id": "displayName", + "value": "15 - DATA_LOSS" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "16" + }, + "properties": [ + { + "id": "displayName", + "value": "16 - UNAUTHENTICATED" + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 291 + }, + "id": 70, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by(rpc_grpc_status_code) (${metric:value}(${prefix:raw}rpc_client_responses_per_rpc_count{job=\"$job\"}[$__rate_interval]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "RPC client responses by GRPC status code (exporters)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 300 + }, + "id": 72, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "ms" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}rpc_server_duration_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "RPC server duration (receivers)", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 300 + }, + "id": 74, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "ms" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}rpc_client_duration_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "RPC client duration (exporters)", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 308 + }, + "id": 73, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 0.1 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "bytes" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}rpc_server_request_size_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "RPC server request size (receivers)", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 308 + }, + "id": 75, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 0.1 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "bytes" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}rpc_client_request_size_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "RPC client request size (exporters)", + "type": "heatmap" + } + ], + "title": "RPC server/client", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 91 + }, + "id": 77, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 350 + }, + "id": 76, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "ms" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}http_server_duration_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "__auto", + "refId": "B" + } + ], + "title": "HTTP server duration (receivers)", + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "links": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 350 + }, + "id": 78, + "interval": "$minstep", + "maxDataPoints": 50, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Reds", + "steps": 25 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "ms" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(${prefix:raw}http_client_duration_bucket{job=\"$job\"}[$__rate_interval])) by (le)", + "format": "heatmap", + "hide": false, + "instant": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "{{le}}", + "refId": "B" + } + ], + "title": "HTTP client duration (exporters)", + "type": "heatmap" + } + ], + "title": "HTTP server/client", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 92 + }, + "id": 63, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Added: Number of namespace add events received.\nUpdated: Number of namespace update events received.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/.*updated.*/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 212 + }, + "id": 64, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(otelcol_otelsvc_k8s_namespace_added${suffix_total}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Added: {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(otelcol_otelsvc_k8s_namespace_updated${suffix_total}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Updated: {{transport}} {{service_instance_id}}", + "range": true, + "refId": "B" + } + ], + "title": "Namespaces", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Added: Number of pod add events received.\nUpdated: Number of pod update events received.\nDeleted: Number of pod delete events received.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 212 + }, + "id": 65, + "interval": "$minstep", + "options": { + "legend": { + "calcs": [ + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.3.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(otelcol_otelsvc_k8s_pod_added${suffix_total}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Added: {{transport}} {{service_instance_id}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(otelcol_otelsvc_k8s_pod_updated${suffix_total}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Updated: {{transport}} {{service_instance_id}}", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum(otelcol_otelsvc_k8s_pod_deleted${suffix_total}{job=\"$job\"}) by (job $grouping)", + "format": "time_series", + "hide": false, + "interval": "$minstep", + "intervalFactor": 1, + "legendFormat": "Deleted: {{transport}} {{service_instance_id}}", + "range": true, + "refId": "C" + } + ], + "title": "Pods", + "type": "timeseries" + } + ], + "title": "Kubernetes", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 93 + }, + "id": 66, + "panels": [], + "title": "Documentation", + "type": "row" + } + ], + "preload": false, + "refresh": "", + "schemaVersion": 40, + "tags": [ + "opentelemetry" + ], + "templating": { + "list": [ + { + "current": {}, + "includeAll": false, + "label": "Datasource", + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result({__name__=~\"otelcol_process_uptime.*\"})", + "includeAll": false, + "label": "Job", + "name": "job", + "options": [], + "query": { + "qryType": 3, + "query": "query_result({__name__=~\"otelcol_process_uptime.*\"})", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/.*{.*job=\"([a-zA-Z0-9_-]+)\".*}/", + "sort": 1, + "type": "query" + }, + { + "auto": true, + "auto_count": 300, + "auto_min": "10s", + "current": { + "text": "$__auto", + "value": "$__auto" + }, + "label": "Min step", + "name": "minstep", + "options": [ + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + } + ], + "query": "10s,30s,1m,5m", + "refresh": 2, + "type": "interval" + }, + { + "current": { + "text": "rate", + "value": "rate" + }, + "includeAll": false, + "label": "Base metric", + "name": "metric", + "options": [ + { + "selected": true, + "text": "Rate", + "value": "rate" + }, + { + "selected": false, + "text": "Count", + "value": "increase" + } + ], + "query": "Rate : rate, Count : increase", + "type": "custom" + }, + { + "allValue": ".*", + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result(avg by (receiver) ({__name__=~\"otelcol_receiver_.+\",job=\"$job\"}))", + "includeAll": true, + "label": "Receiver", + "name": "receiver", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(avg by (receiver) ({__name__=~\"otelcol_receiver_.+\",job=\"$job\"}))", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/.*receiver=\"(.*)\".*/", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result(avg by (processor) ({__name__=~\"otelcol_processor_.+\",job=\"$job\"}))", + "includeAll": true, + "label": "Processor", + "name": "processor", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(avg by (processor) ({__name__=~\"otelcol_processor_.+\",job=\"$job\"}))", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/.*processor=\"(.*)\".*/", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result(avg by (exporter) ({__name__=~\"otelcol_exporter_.+\",job=\"$job\"}))", + "includeAll": true, + "label": "Exporter", + "name": "exporter", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(avg by (exporter) ({__name__=~\"otelcol_exporter_.+\",job=\"$job\"}))", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/.*exporter=\"(.*)\".*/", + "sort": 1, + "type": "query" + }, + { + "current": { + "text": "", + "value": "" + }, + "description": "Detailed metrics must be configured in the collector configuration. They add grouping by transport protocol (http/grpc) for receivers. ", + "includeAll": false, + "label": "Additional groupping", + "name": "grouping", + "options": [ + { + "selected": true, + "text": "None (basic metrics)", + "value": "" + }, + { + "selected": false, + "text": "By transport (detailed metrics)", + "value": ",transport" + }, + { + "selected": false, + "text": "By service instance id", + "value": ",service_instance_id" + } + ], + "query": "None (basic metrics) : , By transport (detailed metrics) : \\,transport, By service instance id : \\,service_instance_id", + "type": "custom" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result({__name__=~\"otelcol_process_uptime.+\",job=\"$job\"})", + "description": "Some exporter(s) configuration(s) may add the metric suffix _total. This variable will detect this case.", + "hide": 2, + "includeAll": false, + "label": "Suffix _total", + "name": "suffix_total", + "options": [], + "query": { + "qryType": 3, + "query": "query_result({__name__=~\"otelcol_process_uptime.+\",job=\"$job\"})", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/.*(_total)+{.*/", + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result({__name__=~\"otelcol_process_uptime.+\",job=\"$job\"})", + "description": "Some exporter(s) configuration(s) may add the metric suffix _seconds_total. This variable will detect this \"_seconds\" suffix part.", + "hide": 2, + "includeAll": false, + "label": "Suffix _seconds", + "name": "suffix_seconds", + "options": [], + "query": { + "qryType": 3, + "query": "query_result({__name__=~\"otelcol_process_uptime.+\",job=\"$job\"})", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/otelcol_process_uptime(.*)_total{.*/", + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result({__name__=~\"otelcol_process_memory_rss.+\",job=\"$job\"})", + "description": "Some exporter(s) configuration(s) may add the metric suffix _bytes. This variable will detect this \"_bytes\" suffix part.", + "hide": 2, + "includeAll": false, + "label": "Suffix _bytes", + "name": "suffix_bytes", + "options": [], + "query": { + "qryType": 3, + "query": "query_result({__name__=~\"otelcol_process_memory_rss.+\",job=\"$job\"})", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/otelcol_process_memory_rss(.*){.*/", + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "query_result({__name__=~\".*.*rpc_server_duration_bucket|.*rpc_client_duration_bucket|.*http_server_duration_bucket|.*http_client_duration_bucket.*\",job=\"$job\"})", + "description": "Some metrics (e.g., RPC, HTTP) may no longer have the otelcol_ prefix. This will detect it. See https://github.com/open-telemetry/opentelemetry-collector/pull/9759", + "hide": 2, + "includeAll": false, + "label": "Prefix", + "name": "prefix", + "options": [], + "query": { + "qryType": 3, + "query": "query_result({__name__=~\".*.*rpc_server_duration_bucket|.*rpc_client_duration_bucket|.*http_server_duration_bucket|.*http_client_duration_bucket.*\",job=\"$job\"})", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "/(.*)(rpc|http)_(server|client)_duration_bucket.*{.*/", + "type": "query" + }, + { + "baseFilters": [], + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "filters": [], + "label": "Ad Hoc", + "name": "adhoc", + "type": "adhoc" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "OpenTelemetry Collector", + "uid": "BKf2sowmj", + "version": 1, + "weekStart": "" + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-postgresql-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + postgresql-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Performance metrics for PostgreSQL instrumented with the OpenTelemetry Collector PostgreSQL receiver.", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 6, + "links": [ + { + "asDropdown": false, + "includeVars": true, + "keepTime": true, + "tags": [ + "postgres-integration" + ], + "title": "Integration dashboards", + "type": "dashboards" + } + ], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 15, + "panels": [], + "title": "PostgreSQL Overview", + "type": "row" + }, + { + "datasource": { + "uid": "$datasource" + }, + "description": "Queries per seconds. Queries being commits or rollbacks.\n", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 11, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_commits_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval])) + sum(irate(postgresql_rollbacks_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "xact_commit" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 1800, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + } + ], + "title": "QPS", + "type": "stat" + }, + { + "datasource": { + "uid": "$datasource" + }, + "description": "See [pg_stat_database / `tup_fetched`](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-DATABASE-VIEW)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 20, + "x": 4, + "y": 1 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "alias": "fetched", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_tup_fetched_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "fetched", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "fetched", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "tup_fetched" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 120, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "fetched", + "datasource": { + "uid": "$datasource" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_tup_returned_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "returned", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "returned", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "tup_fetched" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 120, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "fetched", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_tup_inserted_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "intervalFactor": 2, + "legendFormat": "inserted", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "inserted", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "tup_fetched" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 120, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "fetched", + "datasource": { + "uid": "$datasource" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_tup_updated_total{dpostgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "intervalFactor": 2, + "legendFormat": "updated", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "updated", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "tup_fetched" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 120, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "fetched", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(irate(postgresql_tup_deleted_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"}[$__rate_interval]))", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "intervalFactor": 2, + "legendFormat": "deleted", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "deleted", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "tup_fetched" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [ + "10s" + ], + "type": "non_negative_derivative" + } + ] + ], + "step": 120, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + } + ], + "title": "Rows", + "type": "timeseries" + }, + { + "datasource": { + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "alias": "Buffers Allocated", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "irate(postgresql_bgwriter_buffers_allocated_total{host_name=~\"$host_name\", k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\"}[$__rate_interval])", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "buffers allocated", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "buffers_allocated", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "buffers_alloc" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "irate(postgresql_bgwriter_buffers_writes_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\", host_name=~\"$host_name\"}[$__interval])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "buffers write {{source}}", + "range": true, + "refId": "buffers_write", + "useBackend": false + }, + { + "alias": "Buffers Allocated", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "expr": "irate(pg_stat_bgwriter_buffers_backend_total{job=~\"$job\",cluster=~\"$cluster\",instance=~\"$instance\"}[$__rate_interval])", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "buffers_backend", + "measurement": "postgresql", + "policy": "default", + "refId": "buffers_backend", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "buffers_alloc" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "Buffers Allocated", + "datasource": { + "uid": "$datasource" + }, + "dsType": "prometheus", + "expr": "irate(pg_stat_bgwriter_buffers_clean_total{job=~\"$job\",cluster=~\"$cluster\",instance=~\"$instance\"}[$__rate_interval])", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "buffers_clean", + "measurement": "postgresql", + "policy": "default", + "refId": "buffers_clean", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "buffers_alloc" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "Buffers Allocated", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "irate(postgresql_bgwriter_checkpoint_count_total{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\", host_name=~\"$host_name\"}[$__rate_interval])", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "checkpoint {{type}}", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "checkpoint", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "buffers_alloc" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + } + ], + "title": "Buffers", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "deadlocks" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-red", + "mode": "fixed" + } + } + ] + }, + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "deadlocks" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "alias": "conflicts", + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(postgresql_deadlocks_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\", host_name=~\"$host_name\"})", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "deadlocks", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "deadlocks", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "conflicts" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + }, + { + "alias": "deadlocks", + "datasource": { + "uid": "$datasource" + }, + "dsType": "prometheus", + "editorMode": "code", + "expr": "sum(postgresql_conflicts_total{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",host_name=~\"$host_name\"})", + "format": "time_series", + "groupBy": [ + { + "params": [ + "$interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "intervalFactor": 2, + "legendFormat": "conflicts", + "measurement": "postgresql", + "policy": "default", + "range": true, + "refId": "conflicts-not-yet-implemented-in-otelcol", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "deadlocks" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + }, + { + "params": [], + "type": "difference" + } + ] + ], + "step": 240, + "tags": [ + { + "key": "instance", + "operator": "=~", + "value": "/^$instance$/" + } + ] + } + ], + "title": "Conflicts/Deadlocks", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 12, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "round(\n sum by (postgresql_database_name) (\n rate(\n postgresql_blks_hit_total{\n postgresql_database_name=~\"$db\",\n k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",\n host_name=~\"$host_name\"\n }[$__rate_interval]\n )\n )\n /\n (\n sum by (postgresql_database_name) (\n rate(\n postgresql_blks_hit_total{\n postgresql_database_name=~\"$db\",\n k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",\n host_name=~\"$host_name\"\n }[$__rate_interval]\n )\n )\n +\n sum by (postgresql_database_name) (\n rate(\n postgresql_blks_read_total{\n postgresql_database_name=~\"$db\",\n k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\",\n host_name=~\"$host_name\"\n }[$__rate_interval]\n )\n )\n ) * 100,\n 0.001\n)", + "format": "time_series", + "legendFormat": "{{postgresql_database_name}} - cache hit ratio", + "range": true, + "refId": "A", + "step": 240 + } + ], + "title": "Cache hit ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 15 + }, + "id": 13, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "postgresql_backends{postgresql_database_name=~\"$db\",k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\", host_name=~\"$host_name\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{postgresql_database_name}} - connections", + "range": true, + "refId": "A", + "step": 240 + } + ], + "title": "Number of active connections", + "type": "timeseries" + } + ], + "preload": false, + "refresh": "30s", + "schemaVersion": 41, + "tags": [ + "opentelemetry", + "postgresql" + ], + "templating": { + "list": [ + { + "current": { + "text": "Prometheus", + "value": "webstore-metrics" + }, + "includeAll": false, + "label": "Data Source", + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "(?!grafanacloud-usage|grafanacloud-ml-metrics).+", + "type": "datasource" + }, + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "label_values(postgresql_table_count,k8s_cluster_name)", + "description": "When deploying PostgreSQL on Kubernetes, name of the Kubernetes cluster. \nFor other deployments, select \"All\". ", + "includeAll": true, + "label": "K8s Cluster", + "multi": true, + "name": "k8s_cluster_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(postgresql_table_count,k8s_cluster_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": { + "text": "", + "value": "" + }, + "definition": "label_values(postgresql_table_count{k8s_cluster_name=~\"$k8s_cluster_name\"},k8s_statefulset_name)", + "description": "When deploying on Kubernetes, name of the `StatefulSet` of the PostgreSQL deployment (e.g. `my-pg-cluster`).\nFor other deployments, select \"All\". ", + "includeAll": true, + "label": "K8s Statefulset", + "multi": true, + "name": "k8s_statefulset_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(postgresql_table_count{k8s_cluster_name=~\"$k8s_cluster_name\"},k8s_statefulset_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allValue": ".+", + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "datasource": { + "uid": "$datasource" + }, + "definition": "label_values(postgresql_table_count{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\"},host_name)", + "description": "When deploying PostgreSQL on VMs, name on the host on which the database is deployed.\nFor other deployments, select \"All\". ", + "includeAll": true, + "label": "Host", + "multi": true, + "name": "host_name", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(postgresql_table_count{k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\"},host_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "allValue": ".+", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "label_values(postgresql_table_count{host_name=~\"$host_name\", postgresql_database_name!~\"template.*|postgres\", k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\"},postgresql_database_name)", + "includeAll": true, + "label": "Database", + "name": "db", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(postgresql_table_count{host_name=~\"$host_name\", postgresql_database_name!~\"template.*|postgres\", k8s_cluster_name=~\"$k8s_cluster_name\", k8s_statefulset_name=~\"$k8s_statefulset_name\"},postgresql_database_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "PostgreSQL", + "uid": "xHhbQmdjA", + "version": 5 + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-dashboard-spanmetrics-dashboard + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_dashboard: "1" +data: + spanmetrics-dashboard.json: |- + { + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Spanmetrics way of demo application view.", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 3, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 26, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "This dashboard uses RED metrics generated for all services by the spanmetrics connector configured in the OpenTelemetry Collector.\n
\nChart panels may require 5 minutes after the Demo is started before rendering data.", + "mode": "html" + }, + "pluginVersion": "11.4.0", + "title": "", + "type": "text" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 24, + "panels": [], + "title": "Service Level - Throughput and Latencies", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 2 + }, + { + "color": "#EAB839", + "value": 64 + }, + { + "color": "orange", + "value": 128 + }, + { + "color": "red", + "value": 256 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 20, + "w": 12, + "x": 0, + "y": 3 + }, + "id": 2, + "interval": "5m", + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,histogram_quantile(0.50, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))", + "format": "time_series", + "hide": true, + "instant": false, + "interval": "", + "legendFormat": "{{service_name}}-quantile_0.50", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,histogram_quantile(0.95, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,service_name)))", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{service_name}}", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "histogram_quantile(0.99, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", + "hide": true, + "interval": "", + "legendFormat": "quantile99", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "histogram_quantile(0.999, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", + "hide": true, + "interval": "", + "legendFormat": "quantile999", + "range": true, + "refId": "D" + } + ], + "title": "Top 3x3 - Service Latency - quantile95", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlYlRd" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "super-light-blue", + "value": 1 + }, + { + "color": "#EAB839", + "value": 2 + }, + { + "color": "red", + "value": 10 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 12, + "x": 12, + "y": 3 + }, + "id": 4, + "interval": "5m", + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "text": {}, + "valueMode": "color" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,sum by (service_name) (rate(traces_span_metrics_calls_total{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])))", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "{{service_name}}", + "range": false, + "refId": "A" + } + ], + "title": "Top 7 Services Mean Rate over Range", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-reds" + }, + "decimals": 4, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1 + }, + { + "color": "red", + "value": 15 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 15, + "interval": "5m", + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "text": {}, + "valueMode": "color" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,sum(rate(traces_span_metrics_calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (service_name))", + "instant": true, + "interval": "", + "legendFormat": "{{service_name}}", + "range": false, + "refId": "A" + } + ], + "title": "Top 7 Services Mean ERROR Rate over Range", + "type": "bargauge" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 14, + "panels": [], + "title": "span_names Level - Throughput", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "bRate" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "lcd", + "type": "gauge" + } + }, + { + "id": "color", + "value": { + "mode": "continuous-BlYlRd" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "eRate" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "lcd", + "type": "gauge" + } + }, + { + "id": "color", + "value": { + "mode": "continuous-RdYlGr" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Error Rate" + }, + "properties": [ + { + "id": "custom.width", + "value": 663 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Rate" + }, + "properties": [ + { + "id": "custom.width", + "value": 667 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Service" + }, + "properties": [ + { + "id": "custom.width" + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 22, + "interval": "5m", + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "exemplar": false, + "expr": "topk(7, sum(rate(traces_span_metrics_calls_total{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name)) ", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Rate" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "exemplar": false, + "expr": "topk(7, sum(rate(traces_span_metrics_calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "Error Rate" + } + ], + "title": "Top 7 span_names and Errors (APM Table)", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "byField": "span_name" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time 1": true, + "Time 2": true + }, + "indexByName": {}, + "renameByName": { + "Value #Error Rate": "Error Rate", + "Value #Rate": "Rate", + "service_name 1": "Rate in Service", + "service_name 2": "Error Rate in Service" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "bRate", + "mode": "reduceRow", + "reduce": { + "include": [ + "Rate" + ], + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "eRate", + "mode": "reduceRow", + "reduce": { + "include": [ + "Error Rate" + ], + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Error Rate": true, + "Rate": true, + "bRate": false + }, + "indexByName": { + "Error Rate": 4, + "Error Rate in Service": 6, + "Rate": 1, + "Rate in Service": 5, + "bRate": 2, + "eRate": 3, + "span_name": 0 + }, + "renameByName": { + "Rate in Service": "Service", + "bRate": "Rate", + "eRate": "Error Rate", + "span_name": "span_name Name" + } + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Rate" + } + ] + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 20, + "panels": [], + "title": "span_name Level - Latencies", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlYlRd" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue" + }, + { + "color": "green", + "value": 2 + }, + { + "color": "#EAB839", + "value": 64 + }, + { + "color": "orange", + "value": 128 + }, + { + "color": "red", + "value": 256 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 12, + "x": 0, + "y": 36 + }, + "id": 25, + "interval": "5m", + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,histogram_quantile(0.50, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))", + "format": "time_series", + "hide": true, + "instant": false, + "interval": "", + "legendFormat": "{{service_name}}-quantile_0.50", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7,histogram_quantile(0.95, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,span_name)))", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{span_name}}", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "histogram_quantile(0.99, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", + "hide": true, + "interval": "", + "legendFormat": "quantile99", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "histogram_quantile(0.999, sum(rate(traces_span_metrics_duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", + "hide": true, + "interval": "", + "legendFormat": "quantile999", + "range": true, + "refId": "D" + } + ], + "title": "Top 3x3 - span_name Latency - quantile95", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlYlRd" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 12, + "x": 12, + "y": 36 + }, + "id": 10, + "interval": "5m", + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": false, + "expr": "topk(7, sum by (span_name,service_name)(increase(traces_span_metrics_duration_milliseconds_sum{service_name=~\"${service}\", span_name=~\"$span_name\"}[5m]) / increase(traces_span_metrics_duration_milliseconds_count{service_name=~\"${service}\",span_name=~\"$span_name\"}[5m\n])))", + "instant": true, + "interval": "", + "legendFormat": "{{span_name}} [{{service_name}}]", + "range": false, + "refId": "A" + } + ], + "title": "Top 7 Highest Endpoint Latencies Mean Over Range ", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 15, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 16, + "interval": "5m", + "options": { + "legend": { + "calcs": [ + "mean", + "logmin", + "max", + "delta" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.3.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "editorMode": "code", + "exemplar": true, + "expr": "topk(7,sum by (span_name,service_name)(increase(traces_span_metrics_duration_milliseconds_sum{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval]) / increase(traces_span_metrics_duration_milliseconds_count{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])))", + "instant": false, + "interval": "", + "legendFormat": "[{{service_name}}] {{span_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Top 7 Latencies Over Range ", + "type": "timeseries" + } + ], + "preload": false, + "refresh": "5m", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "query_result(count by (service_name)(count_over_time(traces_span_metrics_calls_total[$__range])))", + "includeAll": true, + "multi": true, + "name": "service", + "options": [], + "query": { + "query": "query_result(count by (service_name)(count_over_time(traces_span_metrics_calls_total[$__range])))", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "/.*service_name=\"(.*)\".*/", + "sort": 1, + "type": "query" + }, + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "webstore-metrics" + }, + "definition": "query_result(sum ({__name__=~\".*traces_span_metrics_calls_total\",service_name=~\"$service\"}) by (span_name))", + "includeAll": true, + "multi": true, + "name": "span_name", + "options": [], + "query": { + "query": "query_result(sum ({__name__=~\".*traces_span_metrics_calls_total\",service_name=~\"$service\"}) by (span_name))", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "/.*span_name=\"(.*)\".*/", + "type": "query" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Spanmetrics Demo Dashboard", + "uid": "W2gX2zHVk48", + "version": 2, + "weekStart": "" + } +--- +# Source: opentelemetry-demo/templates/grafana-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-datasources + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo + grafana_datasource: "1" +data: + + default.yaml: | + # Copyright The OpenTelemetry Authors + # SPDX-License-Identifier: Apache-2.0 + + + apiVersion: 1 + + datasources: + - name: Prometheus + uid: webstore-metrics + type: prometheus + url: http://prometheus:9090 + editable: true + isDefault: true + jsonData: + # Align Prometheus data source time interval with the OTel SDKs' export interval (see OTEL_METRIC_EXPORT_INTERVAL) + timeInterval: "60s" + exemplarTraceIdDestinations: + - datasourceUid: webstore-traces + name: trace_id + + - url: http://localhost:8080/jaeger/ui/trace/$${__value.raw} + name: trace_id + urlDisplayLabel: View in Jaeger UI + jaeger.yaml: | + # Copyright The OpenTelemetry Authors + # SPDX-License-Identifier: Apache-2.0 + + + apiVersion: 1 + + datasources: + - name: Jaeger + uid: webstore-traces + type: jaeger + url: http://jaeger:16686/jaeger/ui + editable: true + isDefault: false + jsonData: + tracesToLogsV2: + datasourceUid: webstore-logs + spanStartTimeShift: "-20m" + spanEndTimeShift: "20m" + filterByTraceID: true + filterBySpanID: true + customQuery: true + query: traceId:"$${__trace.traceId}" AND spanId:"$${__span.spanId}" + opensearch.yaml: | + # Copyright The OpenTelemetry Authors + # SPDX-License-Identifier: Apache-2.0 + + apiVersion: 1 + + datasources: + - name: OpenSearch + uid: webstore-logs + type: grafana-opensearch-datasource + url: http://opensearch:9200/ + access: proxy + editable: true + isDefault: false + jsonData: + database: otel-logs-* + flavor: opensearch + logLevelField: severity.text.keyword + logMessageField: body + pplEnabled: true + timeField: observedTimestamp + version: 3.2.0 +--- +# Source: opentelemetry-demo/templates/product-catalog-products.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: product-catalog-products + namespace: otel-demo + labels: + + + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +data: + + products.json: | + { + "products": [ + { + "id": "OLJCESPC7Z", + "name": "National Park Foundation Explorascope", + "description": "The National Park Foundation’s (NPF) Explorascope 60AZ is a manual alt-azimuth, refractor telescope perfect for celestial viewing on the go. The NPF Explorascope 60 can view the planets, moon, star clusters and brighter deep sky objects like the Orion Nebula and Andromeda Galaxy.", + "picture": "NationalParkFoundationExplorascope.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 101, + "nanos": 960000000 + }, + "categories": [ + "telescopes" + ] + }, + { + "id": "66VCHSJNUP", + "name": "Starsense Explorer Refractor Telescope", + "description": "The first telescope that uses your smartphone to analyze the night sky and calculate its position in real time. StarSense Explorer is ideal for beginners thanks to the app’s user-friendly interface and detailed tutorials. It’s like having your own personal tour guide of the night sky", + "picture": "StarsenseExplorer.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 349, + "nanos": 950000000 + }, + "categories": [ + "telescopes" + ] + }, + { + "id": "1YMWWN1N4O", + "name": "Eclipsmart Travel Refractor Telescope", + "description": "Dedicated white-light solar scope for the observer on the go. The 50mm refracting solar scope uses Solar Safe, ISO compliant, full-aperture glass filter material to ensure the safest view of solar events. The kit comes complete with everything you need, including the dedicated travel solar scope, a Solar Safe finderscope, tripod, a high quality 20mm (18x) Kellner eyepiece and a nylon backpack to carry everything in. This Travel Solar Scope makes it easy to share the Sun as well as partial and total solar eclipses with the whole family and offers much higher magnifications than you would otherwise get using handheld solar viewers or binoculars.", + "picture": "EclipsmartTravelRefractorTelescope.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 129, + "nanos": 950000000 + }, + "categories": [ + "telescopes", + "travel" + ] + }, + { + "id": "L9ECAV7KIM", + "name": "Lens Cleaning Kit", + "description": "Wipe away dust, dirt, fingerprints and other particles on your lenses to see clearly with the Lens Cleaning Kit. This cleaning kit works on all glass and optical surfaces, including telescopes, binoculars, spotting scopes, monoculars, microscopes, and even your camera lenses, computer screens, and mobile devices. The kit comes complete with a retractable lens brush to remove dust particles and dirt and two options to clean smudges and fingerprints off of your optics, pre-moistened lens wipes and a bottled lens cleaning fluid with soft cloth.", + "picture": "LensCleaningKit.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 21, + "nanos": 950000000 + }, + "categories": [ + "accessories" + ] + }, + { + "id": "2ZYFJ3GM2N", + "name": "Roof Binoculars", + "description": "This versatile, all-around binocular is a great choice for the trail, the stadium, the arena, or just about anywhere you want a close-up view of the action without sacrificing brightness or detail. It’s an especially great companion for nature observation and bird watching, with ED glass that helps you spot the subtlest field markings and a close focus of just 6.5 feet.", + "picture": "RoofBinoculars.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 209, + "nanos": 950000000 + }, + "categories": [ + "binoculars" + ] + }, + { + "id": "0PUK6V6EV0", + "name": "Solar System Color Imager", + "description": "You have your new telescope and have observed Saturn and Jupiter. Now you're ready to take the next step and start imaging them. But where do you begin? The NexImage 10 Solar System Imager is the perfect solution.", + "picture": "SolarSystemColorImager.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 175, + "nanos": 0 + }, + "categories": [ + "accessories", + "telescopes" + ] + }, + { + "id": "LS4PSXUNUM", + "name": "Red Flashlight", + "description": "This 3-in-1 device features a 3-mode red flashlight, a hand warmer, and a portable power bank for recharging your personal electronics on the go. Whether you use it to light the way at an astronomy star party, a night walk, or wildlife research, ThermoTorch 3 Astro Red’s rugged, IPX4-rated design will withstand your everyday activities.", + "picture": "RedFlashlight.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 57, + "nanos": 80000000 + }, + "categories": [ + "accessories", + "flashlights" + ] + }, + { + "id": "9SIQT8TOJO", + "name": "Optical Tube Assembly", + "description": "Capturing impressive deep-sky astroimages is easier than ever with Rowe-Ackermann Schmidt Astrograph (RASA) V2, the perfect companion to today’s top DSLR or astronomical CCD cameras. This fast, wide-field f/2.2 system allows for shorter exposure times compared to traditional f/10 astroimaging, without sacrificing resolution. Because shorter sub-exposure times are possible, your equatorial mount won’t need to accurately track over extended periods. The short focal length also lessens equatorial tracking demands. In many cases, autoguiding will not be required.", + "picture": "OpticalTubeAssembly.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 3599, + "nanos": 0 + }, + "categories": [ + "accessories", + "telescopes", + "assembly" + ] + }, + { + "id": "6E92ZMYYFZ", + "name": "Solar Filter", + "description": "Enhance your viewing experience with EclipSmart Solar Filter for 8†telescopes. With two Velcro straps and four self-adhesive Velcro pads for added safety, you can be assured that the solar filter cannot be accidentally knocked off and will provide Solar Safe, ISO compliant viewing.", + "picture": "SolarFilter.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 69, + "nanos": 950000000 + }, + "categories": [ + "accessories", + "telescopes" + ] + }, + { + "id": "HQTGWGPNH4", + "name": "The Comet Book", + "description": "A 16th-century treatise on comets, created anonymously in Flanders (now northern France) and now held at the Universitätsbibliothek Kassel. Commonly known as The Comet Book (or Kometenbuch in German), its full title translates as “Comets and their General and Particular Meanings, According to Ptolomeé, Albumasar, Haly, Aliquind and other Astrologersâ€. The image is from https://publicdomainreview.org/collection/the-comet-book, made available by the Universitätsbibliothek Kassel under a CC-BY SA 4.0 license (https://creativecommons.org/licenses/by-sa/4.0/)", + "picture": "TheCometBook.jpg", + "priceUsd": { + "currencyCode": "USD", + "units": 0, + "nanos": 990000000 + }, + "categories": [ + "books" + ] + } + ] + } +--- +# Source: opentelemetry-demo/charts/grafana/templates/clusterrole.yaml +kind: ClusterRole +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" + name: grafana-clusterrole +rules: + - apiGroups: [""] # "" indicates the core API group + resources: ["configmaps", "secrets"] + verbs: ["get", "watch", "list"] +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/clusterrole.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: otel-collector + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector +rules: + - apiGroups: [""] + resources: ["pods", "namespaces"] + verbs: ["get", "watch", "list"] + - apiGroups: ["apps"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] + - apiGroups: ["extensions"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] +--- +# Source: opentelemetry-demo/charts/prometheus/templates/clusterrole.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus +rules: + - apiGroups: + - "" + resources: + - nodes + - nodes/proxy + - nodes/metrics + - services + - endpoints + - pods + - ingresses + - configmaps + verbs: + - get + - list + - watch + - apiGroups: + - "networking.k8s.io" + resources: + - ingresses/status + - ingresses + verbs: + - get + - list + - watch + - apiGroups: + - "discovery.k8s.io" + resources: + - endpointslices + verbs: + - get + - list + - watch + - nonResourceURLs: + - "/metrics" + verbs: + - get +--- +# Source: opentelemetry-demo/charts/grafana/templates/clusterrolebinding.yaml +kind: ClusterRoleBinding +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: grafana-clusterrolebinding + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +subjects: + - kind: ServiceAccount + name: grafana + namespace: otel-demo +roleRef: + kind: ClusterRole + name: grafana-clusterrole + apiGroup: rbac.authorization.k8s.io +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/clusterrolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: otel-collector + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: otel-collector +subjects: +- kind: ServiceAccount + name: otel-collector + namespace: otel-demo +--- +# Source: opentelemetry-demo/charts/prometheus/templates/clusterrolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus +subjects: + - kind: ServiceAccount + name: prometheus + namespace: otel-demo +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: prometheus +--- +# Source: opentelemetry-demo/charts/grafana/templates/role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +rules: [] +--- +# Source: opentelemetry-demo/charts/grafana/templates/rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: grafana +subjects: +- kind: ServiceAccount + name: grafana + namespace: otel-demo +--- +# Source: opentelemetry-demo/charts/grafana/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +spec: + type: ClusterIP + ports: + - name: service + port: 80 + protocol: TCP + targetPort: grafana + selector: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo +--- +# Source: opentelemetry-demo/charts/jaeger/templates/allinone-agent-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: jaeger-agent + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "1.53.0" + app.kubernetes.io/component: service-agent +spec: + clusterIP: None + ports: + - name: zk-compact-trft + port: 5775 + protocol: UDP + targetPort: 0 + - name: config-rest + port: 5778 + targetPort: 0 + - name: jg-compact-trft + port: 6831 + protocol: UDP + targetPort: 0 + - name: jg-binary-trft + port: 6832 + protocol: UDP + targetPort: 0 + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/component: all-in-one +--- +# Source: opentelemetry-demo/charts/jaeger/templates/allinone-collector-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: jaeger-collector + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "1.53.0" + app.kubernetes.io/component: service-collector +spec: + clusterIP: None + ports: + - name: http-zipkin + port: 9411 + targetPort: 0 + appProtocol: http + - name: grpc-http + port: 14250 + targetPort: 0 + appProtocol: grpc + - name: c-tchan-trft + port: 14267 + targetPort: 0 + - name: http-c-binary-trft + port: 14268 + targetPort: 0 + appProtocol: http + - name: otlp-grpc + port: 4317 + targetPort: 0 + appProtocol: grpc + - name: otlp-http + port: 4318 + targetPort: 0 + appProtocol: http + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/component: all-in-one +--- +# Source: opentelemetry-demo/charts/jaeger/templates/allinone-query-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: jaeger-query + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "1.53.0" + app.kubernetes.io/component: service-query +spec: + clusterIP: None + ports: + - name: http-query + port: 16686 + targetPort: 16686 + - name: grpc-query + port: 16685 + targetPort: 16685 + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/component: all-in-one +--- +# Source: opentelemetry-demo/charts/opensearch/templates/service.yaml +kind: Service +apiVersion: v1 +metadata: + name: opensearch + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch + annotations: + {} +spec: + type: ClusterIP + selector: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + ports: + - name: http + protocol: TCP + port: 9200 + - name: transport + protocol: TCP + port: 9300 + - name: metrics + protocol: TCP + port: 9600 +--- +# Source: opentelemetry-demo/charts/opensearch/templates/service.yaml +kind: Service +apiVersion: v1 +metadata: + name: opensearch-headless + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch + annotations: + service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" +spec: + clusterIP: None # This is needed for statefulset hostnames like opensearch-0 to resolve + # Create endpoints also if the related pod isn't ready + publishNotReadyAddresses: true + selector: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + ports: + - name: http + port: 9200 + - name: transport + port: 9300 + - name: metrics + port: 9600 +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: otel-collector + namespace: otel-demo + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector + component: standalone-collector +spec: + type: ClusterIP + ports: + + - name: jaeger-compact + port: 6831 + targetPort: 6831 + protocol: UDP + - name: jaeger-grpc + port: 14250 + targetPort: 14250 + protocol: TCP + - name: jaeger-thrift + port: 14268 + targetPort: 14268 + protocol: TCP + - name: metrics + port: 8888 + targetPort: 8888 + protocol: TCP + - name: otlp + port: 4317 + targetPort: 4317 + protocol: TCP + appProtocol: grpc + - name: otlp-http + port: 4318 + targetPort: 4318 + protocol: TCP + - name: zipkin + port: 9411 + targetPort: 9411 + protocol: TCP + selector: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + component: standalone-collector + internalTrafficPolicy: Cluster +--- +# Source: opentelemetry-demo/charts/prometheus/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus + namespace: otel-demo +spec: + ports: + - name: http + port: 9090 + protocol: TCP + targetPort: 9090 + selector: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + sessionAffinity: None + type: "ClusterIP" +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: ad + labels: + + opentelemetry.io/name: ad + + app.kubernetes.io/component: ad + app.kubernetes.io/name: ad + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: ad +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: cart + labels: + + opentelemetry.io/name: cart + + app.kubernetes.io/component: cart + app.kubernetes.io/name: cart + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: cart +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: checkout + labels: + + opentelemetry.io/name: checkout + + app.kubernetes.io/component: checkout + app.kubernetes.io/name: checkout + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: checkout +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: currency + labels: + + opentelemetry.io/name: currency + + app.kubernetes.io/component: currency + app.kubernetes.io/name: currency + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: currency +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: email + labels: + + opentelemetry.io/name: email + + app.kubernetes.io/component: email + app.kubernetes.io/name: email + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: email +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: flagd + labels: + + opentelemetry.io/name: flagd + + app.kubernetes.io/component: flagd + app.kubernetes.io/name: flagd + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8013 + name: rpc + targetPort: 8013 + - port: 8016 + name: ofrep + targetPort: 8016 + - port: 4000 + name: tcp-service-0 + targetPort: 4000 + selector: + + opentelemetry.io/name: flagd +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: frontend + labels: + + opentelemetry.io/name: frontend + + app.kubernetes.io/component: frontend + app.kubernetes.io/name: frontend + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: frontend +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: frontend-proxy + labels: + + opentelemetry.io/name: frontend-proxy + + app.kubernetes.io/component: frontend-proxy + app.kubernetes.io/name: frontend-proxy + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: frontend-proxy +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: image-provider + labels: + + opentelemetry.io/name: image-provider + + app.kubernetes.io/component: image-provider + app.kubernetes.io/name: image-provider + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8081 + name: tcp-service + targetPort: 8081 + selector: + + opentelemetry.io/name: image-provider +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: kafka + labels: + + opentelemetry.io/name: kafka + + app.kubernetes.io/component: kafka + app.kubernetes.io/name: kafka + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 9092 + name: plaintext + targetPort: 9092 + - port: 9093 + name: controller + targetPort: 9093 + selector: + + opentelemetry.io/name: kafka +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: load-generator + labels: + + opentelemetry.io/name: load-generator + + app.kubernetes.io/component: load-generator + app.kubernetes.io/name: load-generator + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8089 + name: tcp-service + targetPort: 8089 + selector: + + opentelemetry.io/name: load-generator +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: payment + labels: + + opentelemetry.io/name: payment + + app.kubernetes.io/component: payment + app.kubernetes.io/name: payment + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: payment +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: postgresql + labels: + + opentelemetry.io/name: postgresql + + app.kubernetes.io/component: postgresql + app.kubernetes.io/name: postgresql + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 5432 + name: tcp-service + targetPort: 5432 + selector: + + opentelemetry.io/name: postgresql +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: product-catalog + labels: + + opentelemetry.io/name: product-catalog + + app.kubernetes.io/component: product-catalog + app.kubernetes.io/name: product-catalog + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: product-catalog +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: quote + labels: + + opentelemetry.io/name: quote + + app.kubernetes.io/component: quote + app.kubernetes.io/name: quote + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: quote +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: recommendation + labels: + + opentelemetry.io/name: recommendation + + app.kubernetes.io/component: recommendation + app.kubernetes.io/name: recommendation + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: recommendation +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: shipping + labels: + + opentelemetry.io/name: shipping + + app.kubernetes.io/component: shipping + app.kubernetes.io/name: shipping + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 8080 + name: tcp-service + targetPort: 8080 + selector: + + opentelemetry.io/name: shipping +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: v1 +kind: Service +metadata: + name: valkey-cart + labels: + + opentelemetry.io/name: valkey-cart + + app.kubernetes.io/component: valkey-cart + app.kubernetes.io/name: valkey-cart + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + type: ClusterIP + ports: + - port: 6379 + name: valkey-cart + targetPort: 6379 + selector: + + opentelemetry.io/name: valkey-cart +--- +# Source: opentelemetry-demo/charts/grafana/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: grafana + namespace: otel-demo + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + strategy: + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: grafana + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "12.1.1" + annotations: + checksum/config: 3aef97dc43bb7f320b3d3f00d79efff7580bf83005ec5574a0619b42268584cf + checksum/sc-dashboard-provider-config: e70bf6a851099d385178a76de9757bb0bef8299da6d8443602590e44f05fdf24 + checksum/secret: bed677784356b2af7fb0d87455db21f077853059b594101a4f6532bfbd962a7f + kubectl.kubernetes.io/default-container: grafana + spec: + + serviceAccountName: grafana + automountServiceAccountToken: true + shareProcessNamespace: false + securityContext: + fsGroup: 472 + runAsGroup: 472 + runAsNonRoot: true + runAsUser: 472 + enableServiceLinks: true + containers: + - name: grafana-sc-alerts + image: "quay.io/kiwigrid/k8s-sidecar:1.30.10" + imagePullPolicy: IfNotPresent + env: + - name: METHOD + value: WATCH + - name: LABEL + value: "grafana_alert" + - name: FOLDER + value: "/etc/grafana/provisioning/alerting" + - name: RESOURCE + value: "both" + - name: REQ_USERNAME + valueFrom: + secretKeyRef: + name: grafana + key: admin-user + - name: REQ_PASSWORD + valueFrom: + secretKeyRef: + name: grafana + key: admin-password + - name: REQ_URL + value: http://localhost:3000/api/admin/provisioning/alerting/reload + - name: REQ_METHOD + value: POST + resources: + limits: + cpu: 100m + memory: 100Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + volumeMounts: + - name: sc-alerts-volume + mountPath: "/etc/grafana/provisioning/alerting" + - name: grafana-sc-dashboard + image: "quay.io/kiwigrid/k8s-sidecar:1.30.10" + imagePullPolicy: IfNotPresent + env: + - name: METHOD + value: WATCH + - name: LABEL + value: "grafana_dashboard" + - name: FOLDER + value: "/tmp/dashboards" + - name: RESOURCE + value: "both" + - name: REQ_USERNAME + valueFrom: + secretKeyRef: + name: grafana + key: admin-user + - name: REQ_PASSWORD + valueFrom: + secretKeyRef: + name: grafana + key: admin-password + - name: REQ_URL + value: http://localhost:3000/api/admin/provisioning/dashboards/reload + - name: REQ_METHOD + value: POST + resources: + limits: + cpu: 100m + memory: 100Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + volumeMounts: + - name: sc-dashboard-volume + mountPath: "/tmp/dashboards" + - name: grafana-sc-datasources + image: "quay.io/kiwigrid/k8s-sidecar:1.30.10" + imagePullPolicy: IfNotPresent + env: + - name: METHOD + value: WATCH + - name: LABEL + value: "grafana_datasource" + - name: FOLDER + value: "/etc/grafana/provisioning/datasources" + - name: RESOURCE + value: "both" + - name: REQ_USERNAME + valueFrom: + secretKeyRef: + name: grafana + key: admin-user + - name: REQ_PASSWORD + valueFrom: + secretKeyRef: + name: grafana + key: admin-password + - name: REQ_URL + value: http://localhost:3000/api/admin/provisioning/datasources/reload + - name: REQ_METHOD + value: POST + resources: + limits: + cpu: 100m + memory: 100Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + volumeMounts: + - name: sc-datasources-volume + mountPath: "/etc/grafana/provisioning/datasources" + - name: grafana + image: "docker.io/grafana/grafana:12.1.1" + imagePullPolicy: IfNotPresent + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + volumeMounts: + - name: config + mountPath: "/etc/grafana/grafana.ini" + subPath: grafana.ini + - name: storage + mountPath: "/var/lib/grafana" + - name: sc-alerts-volume + mountPath: "/etc/grafana/provisioning/alerting" + - name: sc-dashboard-volume + mountPath: "/tmp/dashboards" + - name: sc-dashboard-provider + mountPath: "/etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml" + subPath: provider.yaml + - name: sc-datasources-volume + mountPath: "/etc/grafana/provisioning/datasources" + ports: + - name: grafana + containerPort: 3000 + protocol: TCP + - name: gossip-tcp + containerPort: 9094 + protocol: TCP + - name: gossip-udp + containerPort: 9094 + protocol: UDP + - name: profiling + containerPort: 6060 + protocol: TCP + env: + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + - name: GF_SECURITY_ADMIN_USER + valueFrom: + secretKeyRef: + name: grafana + key: admin-user + - name: GF_SECURITY_ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: grafana + key: admin-password + - name: GF_INSTALL_PLUGINS + valueFrom: + configMapKeyRef: + name: grafana + key: plugins + - name: GF_PATHS_DATA + value: /var/lib/grafana/ + - name: GF_PATHS_LOGS + value: /var/log/grafana + - name: GF_PATHS_PLUGINS + value: /var/lib/grafana/plugins + - name: GF_PATHS_PROVISIONING + value: /etc/grafana/provisioning + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + divisor: "1" + resource: limits.memory + livenessProbe: + failureThreshold: 10 + httpGet: + path: /api/health + port: 3000 + initialDelaySeconds: 60 + timeoutSeconds: 30 + readinessProbe: + httpGet: + path: /api/health + port: 3000 + resources: + limits: + memory: 150Mi + volumes: + - name: config + configMap: + name: grafana + - name: storage + emptyDir: {} + - name: sc-alerts-volume + emptyDir: {} + - name: sc-dashboard-volume + emptyDir: {} + - name: sc-dashboard-provider + configMap: + name: grafana-config-dashboards + - name: sc-datasources-volume + emptyDir: {} +--- +# Source: opentelemetry-demo/charts/jaeger/templates/allinone-deploy.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jaeger + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "1.53.0" + app.kubernetes.io/component: all-in-one + prometheus.io/port: "14269" + prometheus.io/scrape: "true" +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/component: all-in-one + template: + metadata: + labels: + app.kubernetes.io/name: jaeger + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/component: all-in-one + annotations: + prometheus.io/port: "14269" + prometheus.io/scrape: "true" + spec: + + containers: + - env: + - name: METRICS_STORAGE_TYPE + value: prometheus + - name: COLLECTOR_OTLP_GRPC_HOST_PORT + value: 0.0.0.0:4317 + - name: COLLECTOR_OTLP_HTTP_HOST_PORT + value: 0.0.0.0:4318 + - name: SPAN_STORAGE_TYPE + value: memory + + - name: COLLECTOR_ZIPKIN_HOST_PORT + value: :9411 + - name: JAEGER_DISABLED + value: "false" + - name: COLLECTOR_OTLP_ENABLED + value: "true" + securityContext: + {} + image: jaegertracing/all-in-one:1.53.0 + imagePullPolicy: IfNotPresent + name: jaeger + args: + - "--memory.max-traces=5000" + - "--query.base-path=/jaeger/ui" + - "--prometheus.server-url=http://prometheus:9090" + - "--prometheus.query.normalize-calls=true" + - "--prometheus.query.normalize-duration=true" + ports: + - containerPort: 5775 + protocol: UDP + - containerPort: 6831 + protocol: UDP + - containerPort: 6832 + protocol: UDP + - containerPort: 5778 + protocol: TCP + - containerPort: 16686 + protocol: TCP + - containerPort: 16685 + protocol: TCP + - containerPort: 9411 + protocol: TCP + - containerPort: 4317 + protocol: TCP + - containerPort: 4318 + protocol: TCP + livenessProbe: + failureThreshold: 5 + httpGet: + path: / + port: 14269 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 15 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + httpGet: + path: / + port: 14269 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: + memory: 400Mi + volumeMounts: + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsUser: 10001 + serviceAccountName: jaeger + volumes: +--- +# Source: opentelemetry-demo/charts/opentelemetry-collector/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: otel-collector + namespace: otel-demo + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "0.135.0" + app.kubernetes.io/part-of: opentelemetry-collector + app.kubernetes.io/component: standalone-collector +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + component: standalone-collector + strategy: + type: RollingUpdate + template: + metadata: + annotations: + checksum/config: b23c30f9b89a34910edbfdafc7072ff305d9e8bb93ca26ffaed9ac1a8872cefb + opentelemetry_community_demo: "true" + prometheus.io/scrape: "true" + labels: + app.kubernetes.io/name: opentelemetry-collector + app.kubernetes.io/instance: opentelemetry-demo + component: standalone-collector + + spec: + + serviceAccountName: otel-collector + automountServiceAccountToken: true + securityContext: + {} + containers: + - name: opentelemetry-collector + args: + - --config=/conf/relay.yaml + securityContext: + {} + image: "otel/opentelemetry-collector-contrib:0.135.0" + imagePullPolicy: IfNotPresent + ports: + + - name: jaeger-compact + containerPort: 6831 + protocol: UDP + - name: jaeger-grpc + containerPort: 14250 + protocol: TCP + - name: jaeger-thrift + containerPort: 14268 + protocol: TCP + - name: metrics + containerPort: 8888 + protocol: TCP + - name: otlp + containerPort: 4317 + protocol: TCP + - name: otlp-http + containerPort: 4318 + protocol: TCP + - name: zipkin + containerPort: 9411 + protocol: TCP + env: + - name: MY_POD_IP + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: status.podIP + - name: GOMEMLIMIT + value: "160MiB" + livenessProbe: + httpGet: + path: / + port: 13133 + readinessProbe: + httpGet: + path: / + port: 13133 + resources: + limits: + memory: 200Mi + volumeMounts: + - mountPath: /conf + name: opentelemetry-collector-configmap + volumes: + - name: opentelemetry-collector-configmap + configMap: + name: otel-collector + items: + - key: relay + path: relay.yaml + hostNetwork: false +--- +# Source: opentelemetry-demo/charts/prometheus/templates/deploy.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + name: prometheus + namespace: otel-demo +spec: + strategy: + type: Recreate + rollingUpdate: null + selector: + matchLabels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + replicas: 1 + revisionHistoryLimit: 10 + template: + metadata: + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: prometheus + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: v3.6.0 + app.kubernetes.io/part-of: prometheus + spec: + enableServiceLinks: true + serviceAccountName: prometheus + containers: + + - name: prometheus-server + image: "quay.io/prometheus/prometheus:v3.6.0" + imagePullPolicy: "IfNotPresent" + args: + - --storage.tsdb.retention.time=15d + - --config.file=/etc/config/prometheus.yml + - --storage.tsdb.path=/data + - --web.console.libraries=/etc/prometheus/console_libraries + - --web.console.templates=/etc/prometheus/consoles + - --enable-feature=exemplar-storage + - --web.enable-otlp-receiver + ports: + - containerPort: 9090 + readinessProbe: + httpGet: + path: /-/ready + port: 9090 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 5 + timeoutSeconds: 4 + failureThreshold: 3 + successThreshold: 1 + livenessProbe: + httpGet: + path: /-/healthy + port: 9090 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 15 + timeoutSeconds: 10 + failureThreshold: 3 + successThreshold: 1 + resources: + limits: + memory: 300Mi + volumeMounts: + - name: config-volume + mountPath: /etc/config + - name: storage-volume + mountPath: /data + subPath: "" + dnsPolicy: ClusterFirst + securityContext: + fsGroup: 65534 + runAsGroup: 65534 + runAsNonRoot: true + runAsUser: 65534 + terminationGracePeriodSeconds: 300 + volumes: + - name: config-volume + configMap: + name: prometheus + - name: storage-volume + emptyDir: + {} +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: accounting + labels: + + opentelemetry.io/name: accounting + + app.kubernetes.io/component: accounting + app.kubernetes.io/name: accounting + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: accounting + template: + metadata: + labels: + + opentelemetry.io/name: accounting + + app.kubernetes.io/component: accounting + app.kubernetes.io/name: accounting + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: accounting + image: 'ghcr.io/open-telemetry/demo:2.1.3-accounting' + imagePullPolicy: IfNotPresent + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_ADDR + value: kafka:9092 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: DB_CONNECTION_STRING + value: Host=postgresql;Username=otelu;Password=otelp;Database=otel + - name: OTEL_DOTNET_AUTO_TRACES_ENTITYFRAMEWORKCORE_INSTRUMENTATION_ENABLED + value: "false" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 120Mi + volumeMounts: + initContainers: + - command: + - sh + - -c + - until nc -z -v -w30 kafka 9092; do echo waiting for kafka; sleep 2; done; + image: busybox:latest + name: wait-for-kafka + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ad + labels: + + opentelemetry.io/name: ad + + app.kubernetes.io/component: ad + app.kubernetes.io/name: ad + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: ad + template: + metadata: + labels: + + opentelemetry.io/name: ad + + app.kubernetes.io/component: ad + app.kubernetes.io/name: ad + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: ad + image: 'ghcr.io/open-telemetry/demo:2.1.3-ad' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: AD_PORT + value: "8080" + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_LOGS_EXPORTER + value: otlp + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 300Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cart + labels: + + opentelemetry.io/name: cart + + app.kubernetes.io/component: cart + app.kubernetes.io/name: cart + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: cart + template: + metadata: + labels: + + opentelemetry.io/name: cart + + app.kubernetes.io/component: cart + app.kubernetes.io/name: cart + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: cart + image: 'ghcr.io/open-telemetry/demo:2.1.3-cart' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CART_PORT + value: "8080" + - name: ASPNETCORE_URLS + value: http://*:$(CART_PORT) + - name: VALKEY_ADDR + value: valkey-cart:6379 + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 160Mi + volumeMounts: + initContainers: + - command: + - sh + - -c + - until nc -z -v -w30 valkey-cart 6379; do echo waiting for valkey-cart; sleep 2; + done; + image: busybox:latest + name: wait-for-valkey-cart + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: checkout + labels: + + opentelemetry.io/name: checkout + + app.kubernetes.io/component: checkout + app.kubernetes.io/name: checkout + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: checkout + template: + metadata: + labels: + + opentelemetry.io/name: checkout + + app.kubernetes.io/component: checkout + app.kubernetes.io/name: checkout + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: checkout + image: 'ghcr.io/open-telemetry/demo:2.1.3-checkout' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CHECKOUT_PORT + value: "8080" + - name: CART_ADDR + value: cart:8080 + - name: CURRENCY_ADDR + value: currency:8080 + - name: EMAIL_ADDR + value: http://email:8080 + - name: PAYMENT_ADDR + value: payment:8080 + - name: PRODUCT_CATALOG_ADDR + value: product-catalog:8080 + - name: SHIPPING_ADDR + value: http://shipping:8080 + - name: KAFKA_ADDR + value: kafka:9092 + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: GOMEMLIMIT + value: 16MiB + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 20Mi + volumeMounts: + initContainers: + - command: + - sh + - -c + - until nc -z -v -w30 kafka 9092; do echo waiting for kafka; sleep 2; done; + image: busybox:latest + name: wait-for-kafka + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: currency + labels: + + opentelemetry.io/name: currency + + app.kubernetes.io/component: currency + app.kubernetes.io/name: currency + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: currency + template: + metadata: + labels: + + opentelemetry.io/name: currency + + app.kubernetes.io/component: currency + app.kubernetes.io/name: currency + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: currency + image: 'ghcr.io/open-telemetry/demo:2.1.3-currency' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: CURRENCY_PORT + value: "8080" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: VERSION + value: '2.1.3' + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 20Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: email + labels: + + opentelemetry.io/name: email + + app.kubernetes.io/component: email + app.kubernetes.io/name: email + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: email + template: + metadata: + labels: + + opentelemetry.io/name: email + + app.kubernetes.io/component: email + app.kubernetes.io/name: email + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: email + image: 'ghcr.io/open-telemetry/demo:2.1.3-email' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: EMAIL_PORT + value: "8080" + - name: APP_ENV + value: production + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 100Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flagd + labels: + + opentelemetry.io/name: flagd + + app.kubernetes.io/component: flagd + app.kubernetes.io/name: flagd + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: flagd + template: + metadata: + labels: + + opentelemetry.io/name: flagd + + app.kubernetes.io/component: flagd + app.kubernetes.io/name: flagd + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: flagd + image: 'ghcr.io/open-feature/flagd:v0.12.8' + imagePullPolicy: IfNotPresent + command: + - /flagd-build + - start + - --port + - "8013" + - --ofrep-port + - "8016" + - --uri + - file:./etc/flagd/demo.flagd.json + ports: + + - containerPort: 8013 + name: rpc + - containerPort: 8016 + name: ofrep + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FLAGD_METRICS_EXPORTER + value: otel + - name: FLAGD_OTEL_COLLECTOR_URI + value: $(OTEL_COLLECTOR_NAME):4317 + - name: GOMEMLIMIT + value: 60MiB + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 75Mi + volumeMounts: + - name: config-rw + mountPath: /etc/flagd + - name: flagd-ui + image: 'ghcr.io/open-telemetry/demo:2.1.3-flagd-ui' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 4000 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FLAGD_METRICS_EXPORTER + value: otel + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: FLAGD_UI_PORT + value: "4000" + - name: SECRET_KEY_BASE + value: yYrECL4qbNwleYInGJYvVnSkwJuSQJ4ijPTx5tirGUXrbznFIBFVJdPl5t6O9ASw + - name: PHX_HOST + value: localhost + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 250Mi + volumeMounts: + - mountPath: /app/data + name: config-rw + initContainers: + - command: + - sh + - -c + - cp /config-ro/demo.flagd.json /config-rw/demo.flagd.json && cat /config-rw/demo.flagd.json + image: busybox + name: init-config + volumeMounts: + - mountPath: /config-ro + name: config-ro + - mountPath: /config-rw + name: config-rw + volumes: + - name: config-rw + emptyDir: {} + - configMap: + name: flagd-config + name: config-ro +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: fraud-detection + labels: + + opentelemetry.io/name: fraud-detection + + app.kubernetes.io/component: fraud-detection + app.kubernetes.io/name: fraud-detection + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: fraud-detection + template: + metadata: + labels: + + opentelemetry.io/name: fraud-detection + + app.kubernetes.io/component: fraud-detection + app.kubernetes.io/name: fraud-detection + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: fraud-detection + image: 'ghcr.io/open-telemetry/demo:2.1.3-fraud-detection' + imagePullPolicy: IfNotPresent + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_ADDR + value: kafka:9092 + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES + value: "true" + - name: OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED + value: "true" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 300Mi + volumeMounts: + initContainers: + - command: + - sh + - -c + - until nc -z -v -w30 kafka 9092; do echo waiting for kafka; sleep 2; done; + image: busybox:latest + name: wait-for-kafka + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend + labels: + + opentelemetry.io/name: frontend + + app.kubernetes.io/component: frontend + app.kubernetes.io/name: frontend + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: frontend + template: + metadata: + labels: + + opentelemetry.io/name: frontend + + app.kubernetes.io/component: frontend + app.kubernetes.io/name: frontend + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: frontend + image: 'ghcr.io/open-telemetry/demo:2.1.3-frontend' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: FRONTEND_PORT + value: "8080" + - name: PORT + value: $(FRONTEND_PORT) + - name: FRONTEND_ADDR + value: :8080 + - name: AD_ADDR + value: ad:8080 + - name: CART_ADDR + value: cart:8080 + - name: CHECKOUT_ADDR + value: checkout:8080 + - name: CURRENCY_ADDR + value: currency:8080 + - name: PRODUCT_CATALOG_ADDR + value: product-catalog:8080 + - name: RECOMMENDATION_ADDR + value: recommendation:8080 + - name: SHIPPING_ADDR + value: http://shipping:8080 + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: ENV_PLATFORM + value: kubernetes + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: WEB_OTEL_SERVICE_NAME + value: frontend-web + - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT + value: http://localhost:8080/otlp-http/v1/traces + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 250Mi + securityContext: + runAsGroup: 1001 + runAsNonRoot: true + runAsUser: 1001 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend-proxy + labels: + + opentelemetry.io/name: frontend-proxy + + app.kubernetes.io/component: frontend-proxy + app.kubernetes.io/name: frontend-proxy + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: frontend-proxy + template: + metadata: + labels: + + opentelemetry.io/name: frontend-proxy + + app.kubernetes.io/component: frontend-proxy + app.kubernetes.io/name: frontend-proxy + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: frontend-proxy + image: 'ghcr.io/open-telemetry/demo:2.1.3-frontend-proxy' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: ENVOY_PORT + value: "8080" + - name: ENVOY_ADMIN_PORT + value: "10000" + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: FLAGD_UI_HOST + value: flagd-ui + - name: FLAGD_UI_PORT + value: "4000" + - name: FRONTEND_HOST + value: frontend + - name: FRONTEND_PORT + value: "8080" + - name: GRAFANA_HOST + value: grafana + - name: GRAFANA_PORT + value: "80" + - name: IMAGE_PROVIDER_HOST + value: image-provider + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: JAEGER_HOST + value: jaeger-query + - name: JAEGER_UI_PORT + value: "16686" + - name: LOCUST_WEB_HOST + value: load-generator + - name: LOCUST_WEB_PORT + value: "8089" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_PORT_HTTP + value: "4318" + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 65Mi + securityContext: + runAsGroup: 101 + runAsNonRoot: true + runAsUser: 101 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: image-provider + labels: + + opentelemetry.io/name: image-provider + + app.kubernetes.io/component: image-provider + app.kubernetes.io/name: image-provider + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: image-provider + template: + metadata: + labels: + + opentelemetry.io/name: image-provider + + app.kubernetes.io/component: image-provider + app.kubernetes.io/name: image-provider + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: image-provider + image: 'ghcr.io/open-telemetry/demo:2.1.3-image-provider' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8081 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: IMAGE_PROVIDER_PORT + value: "8081" + - name: OTEL_COLLECTOR_PORT_GRPC + value: "4317" + - name: OTEL_COLLECTOR_HOST + value: $(OTEL_COLLECTOR_NAME) + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 50Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kafka + labels: + + opentelemetry.io/name: kafka + + app.kubernetes.io/component: kafka + app.kubernetes.io/name: kafka + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: kafka + template: + metadata: + labels: + + opentelemetry.io/name: kafka + + app.kubernetes.io/component: kafka + app.kubernetes.io/name: kafka + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: kafka + image: 'ghcr.io/open-telemetry/demo:2.1.3-kafka' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 9092 + name: plaintext + - containerPort: 9093 + name: controller + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: KAFKA_ADVERTISED_LISTENERS + value: PLAINTEXT://kafka:9092 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: KAFKA_HEAP_OPTS + value: -Xmx400M -Xms400M + - name: KAFKA_LISTENERS + value: PLAINTEXT://:9092,CONTROLLER://:9093 + - name: KAFKA_CONTROLLER_LISTENER_NAMES + value: CONTROLLER + - name: KAFKA_CONTROLLER_QUORUM_VOTERS + value: 1@kafka:9093 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 600Mi + securityContext: + runAsGroup: 1000 + runAsNonRoot: true + runAsUser: 1000 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: load-generator + labels: + + opentelemetry.io/name: load-generator + + app.kubernetes.io/component: load-generator + app.kubernetes.io/name: load-generator + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: load-generator + template: + metadata: + labels: + + opentelemetry.io/name: load-generator + + app.kubernetes.io/component: load-generator + app.kubernetes.io/name: load-generator + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: load-generator + image: 'ghcr.io/open-telemetry/demo:2.1.3-load-generator' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8089 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: LOCUST_WEB_HOST + value: 0.0.0.0 + - name: LOCUST_WEB_PORT + value: "8089" + - name: LOCUST_USERS + value: "10" + - name: LOCUST_SPAWN_RATE + value: "1" + - name: LOCUST_HOST + value: http://frontend-proxy:8080 + - name: LOCUST_HEADLESS + value: "false" + - name: LOCUST_AUTOSTART + value: "true" + - name: LOCUST_BROWSER_TRAFFIC_ENABLED + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: FLAGD_OFREP_PORT + value: "8016" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 1500Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: payment + labels: + + opentelemetry.io/name: payment + + app.kubernetes.io/component: payment + app.kubernetes.io/name: payment + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: payment + template: + metadata: + labels: + + opentelemetry.io/name: payment + + app.kubernetes.io/component: payment + app.kubernetes.io/name: payment + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: payment + image: 'ghcr.io/open-telemetry/demo:2.1.3-payment' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PAYMENT_PORT + value: "8080" + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 120Mi + securityContext: + runAsGroup: 1000 + runAsNonRoot: true + runAsUser: 1000 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgresql + labels: + + opentelemetry.io/name: postgresql + + app.kubernetes.io/component: postgresql + app.kubernetes.io/name: postgresql + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: postgresql + template: + metadata: + labels: + + opentelemetry.io/name: postgresql + + app.kubernetes.io/component: postgresql + app.kubernetes.io/name: postgresql + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: postgresql + image: 'ghcr.io/open-telemetry/demo:2.1.3-postgresql' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 5432 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: POSTGRES_USER + value: root + - name: POSTGRES_PASSWORD + value: otel + - name: POSTGRES_DB + value: otel + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 100Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: product-catalog + labels: + + opentelemetry.io/name: product-catalog + + app.kubernetes.io/component: product-catalog + app.kubernetes.io/name: product-catalog + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: product-catalog + template: + metadata: + labels: + + opentelemetry.io/name: product-catalog + + app.kubernetes.io/component: product-catalog + app.kubernetes.io/name: product-catalog + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: product-catalog + image: 'ghcr.io/open-telemetry/demo:2.1.3-product-catalog' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: PRODUCT_CATALOG_PORT + value: "8080" + - name: PRODUCT_CATALOG_RELOAD_INTERVAL + value: "10" + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: GOMEMLIMIT + value: 16MiB + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 20Mi + volumeMounts: + - name: product-catalog-products + mountPath: /usr/src/app/products + volumes: + - name: product-catalog-products + configMap: + name: product-catalog-products +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: quote + labels: + + opentelemetry.io/name: quote + + app.kubernetes.io/component: quote + app.kubernetes.io/name: quote + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: quote + template: + metadata: + labels: + + opentelemetry.io/name: quote + + app.kubernetes.io/component: quote + app.kubernetes.io/name: quote + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: quote + image: 'ghcr.io/open-telemetry/demo:2.1.3-quote' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: QUOTE_PORT + value: "8080" + - name: OTEL_PHP_AUTOLOAD_ENABLED + value: "true" + - name: OTEL_PHP_INTERNAL_METRICS_ENABLED + value: "true" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 40Mi + securityContext: + runAsGroup: 33 + runAsNonRoot: true + runAsUser: 33 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: recommendation + labels: + + opentelemetry.io/name: recommendation + + app.kubernetes.io/component: recommendation + app.kubernetes.io/name: recommendation + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: recommendation + template: + metadata: + labels: + + opentelemetry.io/name: recommendation + + app.kubernetes.io/component: recommendation + app.kubernetes.io/name: recommendation + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: recommendation + image: 'ghcr.io/open-telemetry/demo:2.1.3-recommendation' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: RECOMMENDATION_PORT + value: "8080" + - name: PRODUCT_CATALOG_ADDR + value: product-catalog:8080 + - name: OTEL_PYTHON_LOG_CORRELATION + value: "true" + - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION + value: python + - name: FLAGD_HOST + value: flagd + - name: FLAGD_PORT + value: "8013" + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 500Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: shipping + labels: + + opentelemetry.io/name: shipping + + app.kubernetes.io/component: shipping + app.kubernetes.io/name: shipping + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: shipping + template: + metadata: + labels: + + opentelemetry.io/name: shipping + + app.kubernetes.io/component: shipping + app.kubernetes.io/name: shipping + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: shipping + image: 'ghcr.io/open-telemetry/demo:2.1.3-shipping' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 8080 + name: service + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: SHIPPING_PORT + value: "8080" + - name: QUOTE_ADDR + value: http://quote:8080 + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://$(OTEL_COLLECTOR_NAME):4317 + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 20Mi + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/templates/component.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: valkey-cart + labels: + + opentelemetry.io/name: valkey-cart + + app.kubernetes.io/component: valkey-cart + app.kubernetes.io/name: valkey-cart + app.kubernetes.io/version: "2.1.3" + app.kubernetes.io/part-of: opentelemetry-demo +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + + opentelemetry.io/name: valkey-cart + template: + metadata: + labels: + + opentelemetry.io/name: valkey-cart + + app.kubernetes.io/component: valkey-cart + app.kubernetes.io/name: valkey-cart + spec: + serviceAccountName: opentelemetry-demo + containers: + - name: valkey-cart + image: 'valkey/valkey:8.1.3-alpine' + imagePullPolicy: IfNotPresent + ports: + + - containerPort: 6379 + name: valkey-cart + env: + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.labels['app.kubernetes.io/component'] + - name: OTEL_COLLECTOR_NAME + value: otel-collector + - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + value: cumulative + - name: OTEL_RESOURCE_ATTRIBUTES + value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo,service.version=2.1.3 + resources: + limits: + memory: 20Mi + securityContext: + runAsGroup: 1000 + runAsNonRoot: true + runAsUser: 999 + volumeMounts: + volumes: +--- +# Source: opentelemetry-demo/charts/opensearch/templates/statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: opensearch + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch + annotations: + majorVersion: "3" +spec: + serviceName: opensearch-headless + selector: + matchLabels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + replicas: 1 + podManagementPolicy: Parallel + updateStrategy: + type: RollingUpdate + template: + metadata: + name: "opensearch" + labels: + app.kubernetes.io/name: opensearch + app.kubernetes.io/instance: opentelemetry-demo + app.kubernetes.io/version: "3.2.0" + app.kubernetes.io/component: opensearch + annotations: + configchecksum: d3638c66a58383c65ae664111c0e7d56d245f2d612896ddc8e6ade4253b8c9b + spec: + securityContext: + fsGroup: 1000 + runAsUser: 1000 + automountServiceAccountToken: false + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 1 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + labelSelector: + matchExpressions: + - key: app.kubernetes.io/instance + operator: In + values: + - opentelemetry-demo + - key: app.kubernetes.io/name + operator: In + values: + - opensearch + terminationGracePeriodSeconds: 120 + volumes: + - name: config + configMap: + name: opensearch-config + - emptyDir: {} + name: config-emptydir + enableServiceLinks: true + initContainers: + - name: configfile + image: "opensearchproject/opensearch:3.2.0" + imagePullPolicy: "IfNotPresent" + command: + - sh + - -c + - | + #!/usr/bin/env bash + cp -r /tmp/configfolder/* /tmp/config/ + securityContext: + capabilities: + drop: + - ALL + runAsNonRoot: true + runAsUser: 1000 + resources: + {} + volumeMounts: + - mountPath: /tmp/config/ + name: config-emptydir + - name: config + mountPath: /tmp/configfolder/opensearch.yml + subPath: opensearch.yml + containers: + - name: "opensearch" + securityContext: + capabilities: + drop: + - ALL + runAsNonRoot: true + runAsUser: 1000 + + image: "opensearchproject/opensearch:3.2.0" + imagePullPolicy: "IfNotPresent" + readinessProbe: + failureThreshold: 3 + periodSeconds: 5 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + startupProbe: + failureThreshold: 30 + initialDelaySeconds: 5 + periodSeconds: 10 + tcpSocket: + port: 9200 + timeoutSeconds: 3 + ports: + - name: http + containerPort: 9200 + - name: transport + containerPort: 9300 + - name: metrics + containerPort: 9600 + resources: + limits: + memory: 1100Mi + requests: + cpu: 1000m + memory: 100Mi + env: + - name: node.name + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: discovery.seed_hosts + value: "opensearch-cluster-master-headless" + - name: cluster.name + value: "demo-cluster" + - name: network.host + value: "0.0.0.0" + - name: OPENSEARCH_JAVA_OPTS + value: "-Xms400m -Xmx400m" + - name: node.roles + value: "master,ingest,data,remote_cluster_client," + - name: discovery.type + value: "single-node" + - name: bootstrap.memory_lock + value: "true" + - name: DISABLE_INSTALL_DEMO_CONFIG + value: "true" + - name: DISABLE_SECURITY_PLUGIN + value: "true" + volumeMounts: + - name: config-emptydir + mountPath: /usr/share/opensearch/config/opensearch.yml + subPath: opensearch.yml diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/opensearch-ism-policy.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/opensearch-ism-policy.json new file mode 100644 index 0000000000000000000000000000000000000000..e40446c2fc03366776801a7a1b4fbf49304c24cd --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/opensearch-ism-policy.json @@ -0,0 +1,29 @@ +{ + "policy": { + "description": "Delete old logs after 7 days", + "default_state": "hot", + "states": [ + { + "name": "hot", + "actions": [], + "transitions": [ + { + "state_name": "delete", + "conditions": { + "min_index_age": "7d" + } + } + ] + }, + { + "name": "delete", + "actions": [ + { + "delete": {} + } + ], + "transitions": [] + } + ] + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package-lock.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..4ad26584f19121f392e2c20646d19a6a9fe70671 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package-lock.json @@ -0,0 +1,7193 @@ +{ + "name": "opentelemetry-demo", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@kt3k/license-checker": "^3.2.2", + "@umbrelladocs/linkspector": "^0.4.7", + "markdown-toc": "^1.2.0", + "markdownlint-cli": "0.47.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@deno/shim-deno": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.1.2.tgz", + "integrity": "sha512-qoNVXCK5ATX6k6Oq0qWVTQpSwT2XE+KPymNTV1CTQhL3KRqR4KGlCWM2M/xW8U+KwGv8KjWR4S2lOKcspRUg9A==", + "dev": true, + "dependencies": { + "which": "^2.0.2" + } + }, + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@kt3k/license-checker": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@kt3k/license-checker/-/license-checker-3.2.2.tgz", + "integrity": "sha512-FZoO7wx8JRjFKc3ssjuHCSmpfYADTnL5FAmzGzN6a9qy9SnaEvYKI+eLWie3f4R7jPm/vD6Hay2bQlStQbfALA==", + "dev": true, + "dependencies": { + "@deno/shim-deno": "~0.1.1", + "undici": "^4.12.1" + }, + "bin": { + "license_checker": "esm/main.js" + } + }, + "node_modules/@puppeteer/browsers": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.6.tgz", + "integrity": "sha512-pHUn6ZRt39bP3698HFQlu2ZHCkS/lPcpv7fVQcGBSzNNygw171UXAKrCUhy+TEMw4lEttOKDgNpb04hwUAJeiQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "debug": "^4.4.1", + "extract-zip": "^2.0.1", + "progress": "^2.0.3", + "proxy-agent": "^6.5.0", + "semver": "^7.7.2", + "tar-fs": "^3.1.0", + "yargs": "^17.7.2" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sideway/address": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", + "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.0.0" + } + }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "25.0.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.8.tgz", + "integrity": "sha512-powIePYMmC3ibL0UJ2i2s0WIbq6cg6UyVFQxSCpaPxxzAaziRfimGivjdF943sSGV6RADVbk0Nvlm5P/FB44Zg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@umbrelladocs/linkspector": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@umbrelladocs/linkspector/-/linkspector-0.4.7.tgz", + "integrity": "sha512-dMFKDphRv3sR5UKUgqNohJz//kLKqGOx5x22+aEJsI54kU6ntg18M/2vT5XdEVv03gNtR4a0t2mnMWxZ0bzt0w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@umbrelladocs/rdformat-validator": "^1.0.0", + "commander": "^14.0.0", + "github-slugger": "^2.0.0", + "glob": "^11.0.3", + "ignore": "^7.0.5", + "joi": "^17.13.3", + "js-yaml": "^4.1.0", + "kleur": "^4.1.5", + "ora": "^8.2.0", + "puppeteer": "^24.14.0", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "unified": "^11.0.5", + "unist-util-visit": "^5.0.0" + }, + "bin": { + "linkspector": "index.js" + } + }, + "node_modules/@umbrelladocs/linkspector/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/@umbrelladocs/linkspector/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@umbrelladocs/rdformat-validator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@umbrelladocs/rdformat-validator/-/rdformat-validator-1.0.0.tgz", + "integrity": "sha512-HRQI1QbbQJoVIlPhn/P30aW2fEyLj2gvZQt/Gbkae/dtCEeB9fEvWdpoI6GMY0eVRzg9KWL16I9Q7Awg3M77hA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "commander": "^14.0.0" + }, + "bin": { + "rdformat-validator": "bin/rdformat-validator.js" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=6.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/UmbrellaDocs" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", + "dev": true, + "dependencies": { + "gulp-header": "^1.7.1" + } + }, + "node_modules/b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/bare-events": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.6.0.tgz", + "integrity": "sha512-EKZ5BTXYExaNqi3I3f9RtEsaI/xBSGjE0XZCZilPzFAV/goswFHuPd9jEZlPIZ/iNZJwDSao9qRiScySz7MbQg==", + "dev": true, + "license": "Apache-2.0", + "optional": true + }, + "node_modules/bare-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.1.6.tgz", + "integrity": "sha512-25RsLF33BqooOEFNdMcEhMpJy8EoR88zSMrnOQOaM3USnOK2VmaJ1uaQEwPA6AQjrv1lXChScosN6CzbwbO9OQ==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-events": "^2.5.4", + "bare-path": "^3.0.0", + "bare-stream": "^2.6.4" + }, + "engines": { + "bare": ">=1.16.0" + }, + "peerDependencies": { + "bare-buffer": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + } + } + }, + "node_modules/bare-os": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.1.tgz", + "integrity": "sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "engines": { + "bare": ">=1.14.0" + } + }, + "node_modules/bare-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", + "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-os": "^3.0.1" + } + }, + "node_modules/bare-stream": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.6.5.tgz", + "integrity": "sha512-jSmxKJNJmHySi6hC42zlZnq00rga4jjxcgNZjY9N5WlOe/iOoGRtdwGsHzQv2RlH2KOYMwGUXhf2zXd32BA9RA==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "streamx": "^2.21.0" + }, + "peerDependencies": { + "bare-buffer": "*", + "bare-events": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + }, + "bare-events": { + "optional": true + } + } + }, + "node_modules/basic-ftp": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chromium-bidi": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-7.1.1.tgz", + "integrity": "sha512-L2BKQ0rSLADgbPMIdDh3wnYHs3EiUiMay2Sq0CTolheaADmWIf6Pe+T9LJRcnh5rcMz0U7MVk0cQVvKsGRMa1g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "mitt": "^3.0.1", + "zod": "^3.24.1" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "node_modules/cli-cursor": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", + "dev": true, + "bin": { + "cake": "bin/cake", + "coffee": "bin/coffee" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/commander": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz", + "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/cosmiconfig": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz", + "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/cosmiconfig/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/cosmiconfig/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", + "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/devtools-protocol": { + "version": "0.0.1464554", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1464554.tgz", + "integrity": "sha512-CAoP3lYfwAGQTaAXYvA6JZR0fjGUb7qec1qf4mToyoH2TZgUFeIqYcjh6f9jNuhHfuZiEdH+PONHYrLhRQX6aw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", + "dev": true, + "dependencies": { + "fill-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true, + "license": "MIT" + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "dependencies": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-uri": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz", + "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "dev": true, + "license": "ISC" + }, + "node_modules/glob": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", + "dev": true, + "dependencies": { + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", + "dev": true, + "dependencies": { + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "deprecated": "Removed event-stream from gulp-header", + "dev": true, + "dependencies": { + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ini": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1.tgz", + "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/ip-address/node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-interactive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jackspeak": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/joi": { + "version": "17.13.3", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz", + "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@hapi/hoek": "^9.3.0", + "@hapi/topo": "^5.1.0", + "@sideway/address": "^4.1.5", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "dev": true + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/katex": { + "version": "0.16.27", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.27.tgz", + "integrity": "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw==", + "dev": true, + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/lazy-cache": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", + "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", + "dev": true, + "dependencies": { + "set-getter": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dev": true, + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/list-item": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", + "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", + "dev": true, + "dependencies": { + "expand-range": "^1.8.1", + "extend-shallow": "^2.0.1", + "is-number": "^2.1.0", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", + "dev": true + }, + "node_modules/lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "node_modules/lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "node_modules/log-symbols": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/markdown-link": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", + "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/markdown-toc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", + "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", + "dev": true, + "dependencies": { + "concat-stream": "^1.5.2", + "diacritics-map": "^0.1.0", + "gray-matter": "^2.1.0", + "lazy-cache": "^2.0.2", + "list-item": "^1.1.1", + "markdown-link": "^0.1.1", + "minimist": "^1.2.0", + "mixin-deep": "^1.1.3", + "object.pick": "^1.2.0", + "remarkable": "^1.7.1", + "repeat-string": "^1.6.1", + "strip-color": "^0.1.0" + }, + "bin": { + "markdown-toc": "cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/markdownlint": { + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.40.0.tgz", + "integrity": "sha512-UKybllYNheWac61Ia7T6fzuQNDZimFIpCg2w6hHjgV1Qu0w1TV0LlSgryUGzM0bkKQCBhy2FDhEELB73Kb0kAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark": "4.0.2", + "micromark-core-commonmark": "2.0.3", + "micromark-extension-directive": "4.0.0", + "micromark-extension-gfm-autolink-literal": "2.1.0", + "micromark-extension-gfm-footnote": "2.1.0", + "micromark-extension-gfm-table": "2.1.1", + "micromark-extension-math": "3.1.0", + "micromark-util-types": "2.0.2", + "string-width": "8.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/DavidAnson" + } + }, + "node_modules/markdownlint-cli": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.47.0.tgz", + "integrity": "sha512-HOcxeKFAdDoldvoYDofd85vI8LgNWy8vmYpCwnlLV46PJcodmGzD7COSSBlhHwsfT4o9KrAStGodImVBus31Bg==", + "dev": true, + "license": "MIT", + "dependencies": { + "commander": "~14.0.2", + "deep-extend": "~0.6.0", + "ignore": "~7.0.5", + "js-yaml": "~4.1.1", + "jsonc-parser": "~3.3.1", + "jsonpointer": "~5.0.1", + "markdown-it": "~14.1.0", + "markdownlint": "~0.40.0", + "minimatch": "~10.1.1", + "run-con": "~1.3.2", + "smol-toml": "~1.5.2", + "tinyglobby": "~0.2.15" + }, + "bin": { + "markdownlint": "markdownlint.js" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/markdownlint-cli/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/markdownlint-cli/node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/markdownlint/node_modules/string-width": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.1.0.tgz", + "integrity": "sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.3.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/math-random": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", + "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "dev": true + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", + "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true + }, + "node_modules/micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-directive": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-directive/-/micromark-extension-directive-4.0.0.tgz", + "integrity": "sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "parse-entities": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-math": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz", + "integrity": "sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/katex": "^0.16.0", + "devlop": "^1.0.0", + "katex": "^0.16.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.4.tgz", + "integrity": "sha512-N6hXjrin2GTJDe3MVjf5FuXpm12PGm80BrUAeub9XFXca8JZbP+oIwY4LJSVwFUCL1IPm/WwSVUN7goFHmSGGQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true, + "license": "MIT" + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-function": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", + "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^5.3.0", + "cli-cursor": "^5.0.0", + "cli-spinners": "^2.9.2", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.2", + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ora/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pac-proxy-agent": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.6", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", + "dev": true, + "license": "MIT", + "dependencies": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-entities": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz", + "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^2.0.0", + "character-entities-legacy": "^3.0.0", + "character-reference-invalid": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0", + "is-hexadecimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-entities/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==", + "dev": true, + "license": "MIT" + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/proxy-agent": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.6", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.1.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true, + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/puppeteer": { + "version": "24.14.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.14.0.tgz", + "integrity": "sha512-GB7suRDkp9pUnxpNGAORICQCtw11KFbg6U2iJXVTflzJLK5D1qzq8xOOmLgN/QnDBpDMdpn96ri52XkuN83Giw==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "2.10.6", + "chromium-bidi": "7.1.1", + "cosmiconfig": "^9.0.0", + "devtools-protocol": "0.0.1464554", + "puppeteer-core": "24.14.0", + "typed-query-selector": "^2.12.0" + }, + "bin": { + "puppeteer": "lib/cjs/puppeteer/node/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/puppeteer-core": { + "version": "24.14.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.14.0.tgz", + "integrity": "sha512-NO9XpCl+i8oB0zJp81iPhzMo2QK8/JTj4ramSvTpGCo9CPCNo4AZ8qVOGpSgXzlcOfOT3VHOkzTfPo08GOE5jA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "2.10.6", + "chromium-bidi": "7.1.1", + "debug": "^4.4.1", + "devtools-protocol": "0.0.1464554", + "typed-query-selector": "^2.12.0", + "ws": "^8.18.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "dev": true, + "dependencies": { + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/randomatic/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/randomatic/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "dev": true, + "dependencies": { + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + }, + "bin": { + "remarkable": "bin/remarkable.js" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/restore-cursor": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-con": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/run-con/-/run-con-1.3.2.tgz", + "integrity": "sha512-CcfE+mYiTcKEzg0IqS08+efdnH0oJ3zV0wSUFBNrMHMuxCtXvBCLzCJHatwuXDcu/RlhjTziTo/a1ruQik6/Yg==", + "dev": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~4.1.0", + "minimist": "^1.2.8", + "strip-json-comments": "~3.1.1" + }, + "bin": { + "run-con": "cli.js" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-getter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", + "dev": true, + "dependencies": { + "to-object-path": "^0.3.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/smol-toml": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.5.2.tgz", + "integrity": "sha512-QlaZEqcAH3/RtNyet1IPIYPsEWAaYyXXv1Krsi+1L/QHppjX4Ifm8MQsBISz9vE8cHicIq3clogsheili5vhaQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, + "node_modules/socks": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.6.tgz", + "integrity": "sha512-pe4Y2yzru68lXCb38aAqRf5gvN8YdjP1lok5o0J7BOHljkyCGKVz7H3vpVIXKD27rj2giOJ7DwVyk/GWrPHDWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stdin-discarder": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/streamx": { + "version": "2.22.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.1.tgz", + "integrity": "sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" + }, + "optionalDependencies": { + "bare-events": "^2.2.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tar-fs": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz", + "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + }, + "optionalDependencies": { + "bare-fs": "^4.0.1", + "bare-path": "^3.0.0" + } + }, + "node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, + "node_modules/text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "b4a": "^1.6.4" + } + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/toml": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, + "node_modules/typed-query-selector": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.0.tgz", + "integrity": "sha512-SbklCd1F0EiZOyPiW192rrHZzZ5sBijB6xM+cpmrwDqObvdtunOHHIk9fCGsoK5JVIYXoyEp4iEdE3upFH3PAg==", + "dev": true, + "license": "MIT" + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true + }, + "node_modules/undici": { + "version": "4.16.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-4.16.0.tgz", + "integrity": "sha512-tkZSECUYi+/T1i4u+4+lwZmQgLXd4BLGlrc7KZPcLIW7Jpq99+Xpc30ONv7nS6F5UNOxp/HBZSSL9MafUrvJbw==", + "dev": true, + "engines": { + "node": ">=12.18" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", + "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true + }, + "@deno/shim-deno": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.1.2.tgz", + "integrity": "sha512-qoNVXCK5ATX6k6Oq0qWVTQpSwT2XE+KPymNTV1CTQhL3KRqR4KGlCWM2M/xW8U+KwGv8KjWR4S2lOKcspRUg9A==", + "dev": true, + "requires": { + "which": "^2.0.2" + } + }, + "@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==", + "dev": true + }, + "@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", + "dev": true, + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true + }, + "@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "requires": { + "@isaacs/balanced-match": "^4.0.1" + } + }, + "@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "requires": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + } + }, + "@kt3k/license-checker": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@kt3k/license-checker/-/license-checker-3.2.2.tgz", + "integrity": "sha512-FZoO7wx8JRjFKc3ssjuHCSmpfYADTnL5FAmzGzN6a9qy9SnaEvYKI+eLWie3f4R7jPm/vD6Hay2bQlStQbfALA==", + "dev": true, + "requires": { + "@deno/shim-deno": "~0.1.1", + "undici": "^4.12.1" + } + }, + "@puppeteer/browsers": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.6.tgz", + "integrity": "sha512-pHUn6ZRt39bP3698HFQlu2ZHCkS/lPcpv7fVQcGBSzNNygw171UXAKrCUhy+TEMw4lEttOKDgNpb04hwUAJeiQ==", + "dev": true, + "requires": { + "debug": "^4.4.1", + "extract-zip": "^2.0.1", + "progress": "^2.0.3", + "proxy-agent": "^6.5.0", + "semver": "^7.7.2", + "tar-fs": "^3.1.0", + "yargs": "^17.7.2" + } + }, + "@sideway/address": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", + "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==", + "dev": true, + "requires": { + "@hapi/hoek": "^9.0.0" + } + }, + "@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==", + "dev": true + }, + "@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==", + "dev": true + }, + "@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, + "@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dev": true, + "requires": { + "@types/ms": "*" + } + }, + "@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", + "dev": true + }, + "@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "requires": { + "@types/unist": "*" + } + }, + "@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true + }, + "@types/node": { + "version": "25.0.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.8.tgz", + "integrity": "sha512-powIePYMmC3ibL0UJ2i2s0WIbq6cg6UyVFQxSCpaPxxzAaziRfimGivjdF943sSGV6RADVbk0Nvlm5P/FB44Zg==", + "dev": true, + "optional": true, + "requires": { + "undici-types": "~7.16.0" + } + }, + "@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true + }, + "@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "dev": true, + "optional": true, + "requires": { + "@types/node": "*" + } + }, + "@umbrelladocs/linkspector": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@umbrelladocs/linkspector/-/linkspector-0.4.7.tgz", + "integrity": "sha512-dMFKDphRv3sR5UKUgqNohJz//kLKqGOx5x22+aEJsI54kU6ntg18M/2vT5XdEVv03gNtR4a0t2mnMWxZ0bzt0w==", + "dev": true, + "requires": { + "@umbrelladocs/rdformat-validator": "^1.0.0", + "commander": "^14.0.0", + "github-slugger": "^2.0.0", + "glob": "^11.0.3", + "ignore": "^7.0.5", + "joi": "^17.13.3", + "js-yaml": "^4.1.0", + "kleur": "^4.1.5", + "ora": "^8.2.0", + "puppeteer": "^24.14.0", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "unified": "^11.0.5", + "unist-util-visit": "^5.0.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + } + } + }, + "@umbrelladocs/rdformat-validator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@umbrelladocs/rdformat-validator/-/rdformat-validator-1.0.0.tgz", + "integrity": "sha512-HRQI1QbbQJoVIlPhn/P30aW2fEyLj2gvZQt/Gbkae/dtCEeB9fEvWdpoI6GMY0eVRzg9KWL16I9Q7Awg3M77hA==", + "dev": true, + "requires": { + "commander": "^14.0.0" + } + }, + "agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true + }, + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true + }, + "ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true + }, + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "requires": { + "tslib": "^2.0.1" + } + }, + "autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", + "dev": true, + "requires": { + "gulp-header": "^1.7.1" + } + }, + "b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==", + "dev": true + }, + "bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "dev": true + }, + "bare-events": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.6.0.tgz", + "integrity": "sha512-EKZ5BTXYExaNqi3I3f9RtEsaI/xBSGjE0XZCZilPzFAV/goswFHuPd9jEZlPIZ/iNZJwDSao9qRiScySz7MbQg==", + "dev": true, + "optional": true + }, + "bare-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.1.6.tgz", + "integrity": "sha512-25RsLF33BqooOEFNdMcEhMpJy8EoR88zSMrnOQOaM3USnOK2VmaJ1uaQEwPA6AQjrv1lXChScosN6CzbwbO9OQ==", + "dev": true, + "optional": true, + "requires": { + "bare-events": "^2.5.4", + "bare-path": "^3.0.0", + "bare-stream": "^2.6.4" + } + }, + "bare-os": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.1.tgz", + "integrity": "sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==", + "dev": true, + "optional": true + }, + "bare-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", + "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", + "dev": true, + "optional": true, + "requires": { + "bare-os": "^3.0.1" + } + }, + "bare-stream": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.6.5.tgz", + "integrity": "sha512-jSmxKJNJmHySi6hC42zlZnq00rga4jjxcgNZjY9N5WlOe/iOoGRtdwGsHzQv2RlH2KOYMwGUXhf2zXd32BA9RA==", + "dev": true, + "optional": true, + "requires": { + "streamx": "^2.21.0" + } + }, + "basic-ftp": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", + "dev": true + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true + }, + "chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true + }, + "character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "dev": true + }, + "character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true + }, + "character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", + "dev": true + }, + "chromium-bidi": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-7.1.1.tgz", + "integrity": "sha512-L2BKQ0rSLADgbPMIdDh3wnYHs3EiUiMay2Sq0CTolheaADmWIf6Pe+T9LJRcnh5rcMz0U7MVk0cQVvKsGRMa1g==", + "dev": true, + "requires": { + "mitt": "^3.0.1", + "zod": "^3.24.1" + } + }, + "cli-cursor": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", + "dev": true, + "requires": { + "restore-cursor": "^5.0.0" + } + }, + "cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } + } + }, + "coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "dev": true + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "commander": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz", + "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "requires": { + "source-map": "^0.6.1" + } + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "cosmiconfig": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz", + "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", + "dev": true, + "requires": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + } + } + }, + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "data-uri-to-buffer": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", + "dev": true + }, + "debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "requires": { + "ms": "^2.1.3" + } + }, + "decode-named-character-reference": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", + "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", + "dev": true, + "requires": { + "character-entities": "^2.0.0" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "requires": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + } + }, + "dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true + }, + "devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "requires": { + "dequal": "^2.0.0" + } + }, + "devtools-protocol": { + "version": "0.0.1464554", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1464554.tgz", + "integrity": "sha512-CAoP3lYfwAGQTaAXYvA6JZR0fjGUb7qec1qf4mToyoH2TZgUFeIqYcjh6f9jNuhHfuZiEdH+PONHYrLhRQX6aw==", + "dev": true + }, + "diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", + "dev": true + }, + "eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true + }, + "escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true + }, + "escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "source-map": "~0.6.1" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", + "dev": true, + "requires": { + "fill-range": "^2.1.0" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "requires": { + "@types/yauzl": "^2.9.1", + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + } + }, + "fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, + "fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "requires": {} + }, + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "requires": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true + }, + "foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + } + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "dev": true + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "get-uri": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz", + "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==", + "dev": true, + "requires": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4" + } + }, + "github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "dev": true + }, + "glob": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", + "dev": true, + "requires": { + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + } + }, + "gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", + "dev": true, + "requires": { + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" + } + }, + "gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "dev": true, + "requires": { + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + } + }, + "http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "requires": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + } + }, + "https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "requires": { + "agent-base": "^7.1.2", + "debug": "4" + } + }, + "ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true + }, + "import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ini": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1.tgz", + "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==", + "dev": true + }, + "ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "requires": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "dependencies": { + "sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true + } + } + }, + "is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "dev": true + }, + "is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "dev": true, + "requires": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "dev": true + }, + "is-interactive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", + "dev": true + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + } + } + }, + "is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "jackspeak": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "dev": true, + "requires": { + "@isaacs/cliui": "^8.0.2" + } + }, + "joi": { + "version": "17.13.3", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz", + "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==", + "dev": true, + "requires": { + "@hapi/hoek": "^9.3.0", + "@hapi/topo": "^5.1.0", + "@sideway/address": "^4.1.5", + "@sideway/formula": "^3.0.1", + "@sideway/pinpoint": "^2.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "dev": true + }, + "jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "dev": true + }, + "katex": { + "version": "0.16.27", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.27.tgz", + "integrity": "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw==", + "dev": true, + "requires": { + "commander": "^8.3.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true + } + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true + }, + "lazy-cache": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", + "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", + "dev": true, + "requires": { + "set-getter": "^0.1.0" + } + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dev": true, + "requires": { + "uc.micro": "^2.0.0" + } + }, + "list-item": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", + "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", + "dev": true, + "requires": { + "expand-range": "^1.8.1", + "extend-shallow": "^2.0.1", + "is-number": "^2.1.0", + "repeat-string": "^1.5.2" + } + }, + "lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", + "dev": true + }, + "lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dev": true, + "requires": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dev": true, + "requires": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "log-symbols": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", + "dev": true, + "requires": { + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" + }, + "dependencies": { + "is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true + } + } + }, + "longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "dev": true + }, + "lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true + }, + "markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dev": true, + "requires": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + } + } + }, + "markdown-link": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", + "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", + "dev": true + }, + "markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "dev": true + }, + "markdown-toc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", + "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", + "dev": true, + "requires": { + "concat-stream": "^1.5.2", + "diacritics-map": "^0.1.0", + "gray-matter": "^2.1.0", + "lazy-cache": "^2.0.2", + "list-item": "^1.1.1", + "markdown-link": "^0.1.1", + "minimist": "^1.2.0", + "mixin-deep": "^1.1.3", + "object.pick": "^1.2.0", + "remarkable": "^1.7.1", + "repeat-string": "^1.6.1", + "strip-color": "^0.1.0" + } + }, + "markdownlint": { + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.40.0.tgz", + "integrity": "sha512-UKybllYNheWac61Ia7T6fzuQNDZimFIpCg2w6hHjgV1Qu0w1TV0LlSgryUGzM0bkKQCBhy2FDhEELB73Kb0kAg==", + "dev": true, + "requires": { + "micromark": "4.0.2", + "micromark-core-commonmark": "2.0.3", + "micromark-extension-directive": "4.0.0", + "micromark-extension-gfm-autolink-literal": "2.1.0", + "micromark-extension-gfm-footnote": "2.1.0", + "micromark-extension-gfm-table": "2.1.1", + "micromark-extension-math": "3.1.0", + "micromark-util-types": "2.0.2", + "string-width": "8.1.0" + }, + "dependencies": { + "string-width": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.1.0.tgz", + "integrity": "sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==", + "dev": true, + "requires": { + "get-east-asian-width": "^1.3.0", + "strip-ansi": "^7.1.0" + } + } + } + }, + "markdownlint-cli": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.47.0.tgz", + "integrity": "sha512-HOcxeKFAdDoldvoYDofd85vI8LgNWy8vmYpCwnlLV46PJcodmGzD7COSSBlhHwsfT4o9KrAStGodImVBus31Bg==", + "dev": true, + "requires": { + "commander": "~14.0.2", + "deep-extend": "~0.6.0", + "ignore": "~7.0.5", + "js-yaml": "~4.1.1", + "jsonc-parser": "~3.3.1", + "jsonpointer": "~5.0.1", + "markdown-it": "~14.1.0", + "markdownlint": "~0.40.0", + "minimatch": "~10.1.1", + "run-con": "~1.3.2", + "smol-toml": "~1.5.2", + "tinyglobby": "~0.2.15" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + } + } + }, + "math-random": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", + "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "dev": true + }, + "mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + } + }, + "mdast-util-from-markdown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", + "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + } + }, + "mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "dev": true, + "requires": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + } + }, + "mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + } + }, + "mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + } + }, + "mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + } + }, + "mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + } + }, + "mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + } + }, + "mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + } + }, + "mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + } + }, + "mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0" + } + }, + "mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true + }, + "micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "dev": true, + "requires": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "dev": true, + "requires": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-directive": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-directive/-/micromark-extension-directive-4.0.0.tgz", + "integrity": "sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "parse-entities": "^4.0.0" + } + }, + "micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "dev": true, + "requires": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "dev": true, + "requires": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "dev": true, + "requires": { + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-extension-math": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz", + "integrity": "sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==", + "dev": true, + "requires": { + "@types/katex": "^0.16.0", + "devlop": "^1.0.0", + "katex": "^0.16.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "dev": true, + "requires": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "dev": true, + "requires": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "dev": true, + "requires": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "dev": true, + "requires": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "requires": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "dev": true, + "requires": { + "micromark-util-symbol": "^2.0.0" + } + }, + "micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "dev": true, + "requires": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "dev": true, + "requires": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "dev": true, + "requires": { + "micromark-util-symbol": "^2.0.0" + } + }, + "micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "dev": true, + "requires": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true + }, + "micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "dev": true + }, + "micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "dev": true, + "requires": { + "micromark-util-symbol": "^2.0.0" + } + }, + "micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "dev": true, + "requires": { + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "requires": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "micromark-util-subtokenize": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.4.tgz", + "integrity": "sha512-N6hXjrin2GTJDe3MVjf5FuXpm12PGm80BrUAeub9XFXca8JZbP+oIwY4LJSVwFUCL1IPm/WwSVUN7goFHmSGGQ==", + "dev": true, + "requires": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true + }, + "micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "dev": true + }, + "mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true + }, + "minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "dev": true, + "requires": { + "@isaacs/brace-expansion": "^5.0.0" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true + }, + "mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "dev": true + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + } + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", + "dev": true, + "requires": { + "mimic-function": "^5.0.0" + } + }, + "ora": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", + "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", + "dev": true, + "requires": { + "chalk": "^5.3.0", + "cli-cursor": "^5.0.0", + "cli-spinners": "^2.9.2", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.2", + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0" + }, + "dependencies": { + "emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true + }, + "string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "requires": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + } + } + } + }, + "pac-proxy-agent": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", + "dev": true, + "requires": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.6", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.5" + } + }, + "pac-resolver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", + "dev": true, + "requires": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + } + }, + "package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-entities": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz", + "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==", + "dev": true, + "requires": { + "@types/unist": "^2.0.0", + "character-entities-legacy": "^3.0.0", + "character-reference-invalid": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0", + "is-hexadecimal": "^2.0.0" + }, + "dependencies": { + "@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==", + "dev": true + } + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "requires": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + } + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "proxy-agent": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", + "dev": true, + "requires": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.6", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.1.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.5" + }, + "dependencies": { + "lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true + } + } + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "pump": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true + }, + "puppeteer": { + "version": "24.14.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.14.0.tgz", + "integrity": "sha512-GB7suRDkp9pUnxpNGAORICQCtw11KFbg6U2iJXVTflzJLK5D1qzq8xOOmLgN/QnDBpDMdpn96ri52XkuN83Giw==", + "dev": true, + "requires": { + "@puppeteer/browsers": "2.10.6", + "chromium-bidi": "7.1.1", + "cosmiconfig": "^9.0.0", + "devtools-protocol": "0.0.1464554", + "puppeteer-core": "24.14.0", + "typed-query-selector": "^2.12.0" + } + }, + "puppeteer-core": { + "version": "24.14.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.14.0.tgz", + "integrity": "sha512-NO9XpCl+i8oB0zJp81iPhzMo2QK8/JTj4ramSvTpGCo9CPCNo4AZ8qVOGpSgXzlcOfOT3VHOkzTfPo08GOE5jA==", + "dev": true, + "requires": { + "@puppeteer/browsers": "2.10.6", + "chromium-bidi": "7.1.1", + "debug": "^4.4.1", + "devtools-protocol": "0.0.1464554", + "typed-query-selector": "^2.12.0", + "ws": "^8.18.3" + } + }, + "randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "dev": true, + "requires": { + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + } + }, + "remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + } + }, + "remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "dev": true, + "requires": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + } + }, + "remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "dev": true, + "requires": { + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + } + }, + "repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "restore-cursor": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", + "dev": true, + "requires": { + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" + } + }, + "run-con": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/run-con/-/run-con-1.3.2.tgz", + "integrity": "sha512-CcfE+mYiTcKEzg0IqS08+efdnH0oJ3zV0wSUFBNrMHMuxCtXvBCLzCJHatwuXDcu/RlhjTziTo/a1ruQik6/Yg==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~4.1.0", + "minimist": "^1.2.8", + "strip-json-comments": "~3.1.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + }, + "set-getter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", + "dev": true, + "requires": { + "to-object-path": "^0.3.0" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true + }, + "smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true + }, + "smol-toml": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.5.2.tgz", + "integrity": "sha512-QlaZEqcAH3/RtNyet1IPIYPsEWAaYyXXv1Krsi+1L/QHppjX4Ifm8MQsBISz9vE8cHicIq3clogsheili5vhaQ==", + "dev": true + }, + "socks": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.6.tgz", + "integrity": "sha512-pe4Y2yzru68lXCb38aAqRf5gvN8YdjP1lok5o0J7BOHljkyCGKVz7H3vpVIXKD27rj2giOJ7DwVyk/GWrPHDWA==", + "dev": true, + "requires": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + } + }, + "socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "dev": true, + "requires": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "stdin-discarder": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", + "dev": true + }, + "streamx": { + "version": "2.22.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.1.tgz", + "integrity": "sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==", + "dev": true, + "requires": { + "bare-events": "^2.2.0", + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + } + }, + "string-width-cjs": { + "version": "npm:string-width@4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "requires": { + "ansi-regex": "^6.0.1" + } + }, + "strip-ansi-cjs": { + "version": "npm:strip-ansi@6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + } + } + }, + "strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "tar-fs": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz", + "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==", + "dev": true, + "requires": { + "bare-fs": "^4.0.1", + "bare-path": "^3.0.0", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "dev": true, + "requires": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, + "text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", + "dev": true, + "requires": { + "b4a": "^1.6.4" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "requires": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + } + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "toml": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true + }, + "trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "dev": true + }, + "tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true + }, + "typed-query-selector": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.0.tgz", + "integrity": "sha512-SbklCd1F0EiZOyPiW192rrHZzZ5sBijB6xM+cpmrwDqObvdtunOHHIk9fCGsoK5JVIYXoyEp4iEdE3upFH3PAg==", + "dev": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true + }, + "undici": { + "version": "4.16.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-4.16.0.tgz", + "integrity": "sha512-tkZSECUYi+/T1i4u+4+lwZmQgLXd4BLGlrc7KZPcLIW7Jpq99+Xpc30ONv7nS6F5UNOxp/HBZSSL9MafUrvJbw==", + "dev": true + }, + "undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "optional": true + }, + "unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + } + }, + "unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0" + } + }, + "unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0" + } + }, + "unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + } + }, + "unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + } + }, + "vfile-message": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", + "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "requires": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + } + }, + "wrap-ansi-cjs": { + "version": "npm:wrap-ansi@7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "dev": true, + "requires": {} + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "dev": true + }, + "zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package.json new file mode 100644 index 0000000000000000000000000000000000000000..7fb07444e69f8c95def207016df437b2d03cb695 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/package.json @@ -0,0 +1,8 @@ +{ + "devDependencies": { + "markdown-toc": "^1.2.0", + "markdownlint-cli": "0.47.0", + "@kt3k/license-checker": "^3.2.2", + "@umbrelladocs/linkspector": "^0.4.7" + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/pb/demo.proto b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/pb/demo.proto new file mode 100644 index 0000000000000000000000000000000000000000..1778514c86d1f3907957650fe9b0b751dfee9c55 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/pb/demo.proto @@ -0,0 +1,354 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package oteldemo; + +option go_package = "genproto/oteldemo"; + +// -----------------Cart service----------------- + +service CartService { + rpc AddItem(AddItemRequest) returns (Empty) {} + rpc GetCart(GetCartRequest) returns (Cart) {} + rpc EmptyCart(EmptyCartRequest) returns (Empty) {} +} + +message CartItem { + string product_id = 1; + int32 quantity = 2; +} + +message AddItemRequest { + string user_id = 1; + CartItem item = 2; +} + +message EmptyCartRequest { + string user_id = 1; +} + +message GetCartRequest { + string user_id = 1; +} + +message Cart { + string user_id = 1; + repeated CartItem items = 2; +} + +message Empty {} + +// ---------------Recommendation service---------- + +service RecommendationService { + rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse){} +} + +message ListRecommendationsRequest { + string user_id = 1; + repeated string product_ids = 2; +} + +message ListRecommendationsResponse { + repeated string product_ids = 1; +} + +// ---------------Product Catalog---------------- + +service ProductCatalogService { + rpc ListProducts(Empty) returns (ListProductsResponse) {} + rpc GetProduct(GetProductRequest) returns (Product) {} + rpc SearchProducts(SearchProductsRequest) returns (SearchProductsResponse) {} +} + +message Product { + string id = 1; + string name = 2; + string description = 3; + string picture = 4; + Money price_usd = 5; + + // Categories such as "clothing" or "kitchen" that can be used to look up + // other related products. + repeated string categories = 6; +} + +message ListProductsResponse { + repeated Product products = 1; +} + +message GetProductRequest { + string id = 1; +} + +message SearchProductsRequest { + string query = 1; +} + +message SearchProductsResponse { + repeated Product results = 1; +} + +// ---------------Product Review service---------- + +service ProductReviewService { + rpc GetProductReviews(GetProductReviewsRequest) returns (GetProductReviewsResponse){} + rpc GetAverageProductReviewScore(GetAverageProductReviewScoreRequest) returns (GetAverageProductReviewScoreResponse){} + rpc AskProductAIAssistant(AskProductAIAssistantRequest) returns (AskProductAIAssistantResponse){} +} + +message ProductReview { + string username = 1; + string description = 2; + string score = 3; +} + +message GetProductReviewsRequest { + string product_id = 1; +} + +message GetProductReviewsResponse { + repeated ProductReview product_reviews = 1; +} + +message GetAverageProductReviewScoreRequest { + string product_id = 1; +} + +message GetAverageProductReviewScoreResponse { + string average_score = 1; +} + +message AskProductAIAssistantRequest { + string product_id = 1; + string question = 2; +} + +message AskProductAIAssistantResponse { + string response = 1; +} + +// ---------------Shipping Service---------- + +service ShippingService { + rpc GetQuote(GetQuoteRequest) returns (GetQuoteResponse) {} + rpc ShipOrder(ShipOrderRequest) returns (ShipOrderResponse) {} +} + +message GetQuoteRequest { + Address address = 1; + repeated CartItem items = 2; +} + +message GetQuoteResponse { + Money cost_usd = 1; +} + +message ShipOrderRequest { + Address address = 1; + repeated CartItem items = 2; +} + +message ShipOrderResponse { + string tracking_id = 1; +} + +message Address { + string street_address = 1; + string city = 2; + string state = 3; + string country = 4; + string zip_code = 5; +} + +// -----------------Currency service----------------- + +service CurrencyService { + rpc GetSupportedCurrencies(Empty) returns (GetSupportedCurrenciesResponse) {} + rpc Convert(CurrencyConversionRequest) returns (Money) {} +} + +// Represents an amount of money with its currency type. +message Money { + // The 3-letter currency code defined in ISO 4217. + string currency_code = 1; + + // The whole units of the amount. + // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + int64 units = 2; + + // Number of nano (10^-9) units of the amount. + // The value must be between -999,999,999 and +999,999,999 inclusive. + // If `units` is positive, `nanos` must be positive or zero. + // If `units` is zero, `nanos` can be positive, zero, or negative. + // If `units` is negative, `nanos` must be negative or zero. + // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + int32 nanos = 3; +} + +message GetSupportedCurrenciesResponse { + // The 3-letter currency code defined in ISO 4217. + repeated string currency_codes = 1; +} + +message CurrencyConversionRequest { + Money from = 1; + + // The 3-letter currency code defined in ISO 4217. + string to_code = 2; +} + +// -------------Payment service----------------- + +service PaymentService { + rpc Charge(ChargeRequest) returns (ChargeResponse) {} +} + +message CreditCardInfo { + string credit_card_number = 1; + int32 credit_card_cvv = 2; + int32 credit_card_expiration_year = 3; + int32 credit_card_expiration_month = 4; +} + +message ChargeRequest { + Money amount = 1; + CreditCardInfo credit_card = 2; +} + +message ChargeResponse { + string transaction_id = 1; +} + +// -------------Email service----------------- + +service EmailService { + rpc SendOrderConfirmation(SendOrderConfirmationRequest) returns (Empty) {} +} + +message OrderItem { + CartItem item = 1; + Money cost = 2; +} + +message OrderResult { + string order_id = 1; + string shipping_tracking_id = 2; + Money shipping_cost = 3; + Address shipping_address = 4; + repeated OrderItem items = 5; +} + +message SendOrderConfirmationRequest { + string email = 1; + OrderResult order = 2; +} + + +// -------------Checkout service----------------- + +service CheckoutService { + rpc PlaceOrder(PlaceOrderRequest) returns (PlaceOrderResponse) {} +} + +message PlaceOrderRequest { + string user_id = 1; + string user_currency = 2; + + Address address = 3; + string email = 5; + CreditCardInfo credit_card = 6; +} + +message PlaceOrderResponse { + OrderResult order = 1; +} + +// ------------Ad service------------------ + +service AdService { + rpc GetAds(AdRequest) returns (AdResponse) {} +} + +message AdRequest { + // List of important key words from the current page describing the context. + repeated string context_keys = 1; +} + +message AdResponse { + repeated Ad ads = 1; +} + +message Ad { + // url to redirect to when an ad is clicked. + string redirect_url = 1; + + // short advertisement text to display. + string text = 2; +} + +// ------------Feature flag service------------------ + +service FeatureFlagService { + rpc GetFlag(GetFlagRequest) returns (GetFlagResponse) {} + rpc CreateFlag(CreateFlagRequest) returns (CreateFlagResponse) {} + rpc UpdateFlag(UpdateFlagRequest) returns (UpdateFlagResponse) {} + rpc ListFlags(ListFlagsRequest) returns (ListFlagsResponse) {} + rpc DeleteFlag(DeleteFlagRequest) returns (DeleteFlagResponse) {} +} + +message Flag { + string name = 1; + string description = 2; + bool enabled = 3; +} + +message GetFlagRequest { + string name = 1; +} + +message GetFlagResponse { + Flag flag = 1; +} + +message CreateFlagRequest { + string name = 1; + string description = 2; + bool enabled = 3; +} + +message CreateFlagResponse { + Flag flag = 1; +} + +message UpdateFlagRequest { + string name = 1; + bool enabled = 2; +} + +message UpdateFlagResponse {} + +message ListFlagsRequest {} + +message ListFlagsResponse { + repeated Flag flag = 1; +} + +message DeleteFlagRequest { + string name = 1; +} + +message DeleteFlagResponse {} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..f3c4ae4692d31847630783767b9a77f97abeb90f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.dockerignore @@ -0,0 +1,3 @@ +bin +obj +build \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.gitignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..a297e634b6a1e48b9b76be18660e0d450c67bfc4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/.gitignore @@ -0,0 +1 @@ +proto \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.csproj b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.csproj new file mode 100644 index 0000000000000000000000000000000000000000..08db6a196ef2de31ec0c211c959f0cf242b9cb8a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.csproj @@ -0,0 +1,34 @@ + + + + Exe + net10.0 + enable + enable + Linux + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.slnx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.slnx new file mode 100644 index 0000000000000000000000000000000000000000..a5b3125be7f8a5f76a1aa09d866066cae18623fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Accounting.slnx @@ -0,0 +1,3 @@ + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Consumer.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Consumer.cs new file mode 100644 index 0000000000000000000000000000000000000000..4392435d472dfa76b54ab8a09ba353742797ff22 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Consumer.cs @@ -0,0 +1,161 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using Confluent.Kafka; +using Microsoft.Extensions.Logging; +using Oteldemo; +using Microsoft.EntityFrameworkCore; +using System.Diagnostics; + +namespace Accounting; + +internal class DBContext : DbContext +{ + public DbSet Orders { get; set; } + public DbSet CartItems { get; set; } + public DbSet Shipping { get; set; } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + var connectionString = Environment.GetEnvironmentVariable("DB_CONNECTION_STRING"); + + optionsBuilder.UseNpgsql(connectionString).UseSnakeCaseNamingConvention(); + } +} + + +internal class Consumer : IDisposable +{ + private const string TopicName = "orders"; + + private ILogger _logger; + private IConsumer _consumer; + private bool _isListening; + private readonly string? _dbConnectionString; + private static readonly ActivitySource MyActivitySource = new("Accounting.Consumer"); + + public Consumer(ILogger logger) + { + _logger = logger; + + var servers = Environment.GetEnvironmentVariable("KAFKA_ADDR") + ?? throw new InvalidOperationException("The KAFKA_ADDR environment variable is not set."); + + _consumer = BuildConsumer(servers); + _consumer.Subscribe(TopicName); + + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Connecting to Kafka: {servers}", servers); + } + + _dbConnectionString = Environment.GetEnvironmentVariable("DB_CONNECTION_STRING"); + } + + public void StartListening() + { + _isListening = true; + + try + { + while (_isListening) + { + try + { + using var activity = MyActivitySource.StartActivity("order-consumed", ActivityKind.Internal); + var consumeResult = _consumer.Consume(); + ProcessMessage(consumeResult.Message); + } + catch (ConsumeException e) + { + if (_logger.IsEnabled(LogLevel.Error)) + { + _logger.LogError(e, "Consume error: {reason}", e.Error.Reason); + } + } + } + } + catch (OperationCanceledException) + { + _logger.LogInformation("Closing consumer"); + + _consumer.Close(); + } + } + + private void ProcessMessage(Message message) + { + try + { + var order = OrderResult.Parser.ParseFrom(message.Value); + Log.OrderReceivedMessage(_logger, order); + + if (_dbConnectionString == null) + { + return; + } + + using var dbContext = new DBContext(); + var orderEntity = new OrderEntity + { + Id = order.OrderId + }; + dbContext.Add(orderEntity); + foreach (var item in order.Items) + { + var orderItem = new OrderItemEntity + { + ItemCostCurrencyCode = item.Cost.CurrencyCode, + ItemCostUnits = item.Cost.Units, + ItemCostNanos = item.Cost.Nanos, + ProductId = item.Item.ProductId, + Quantity = item.Item.Quantity, + OrderId = order.OrderId + }; + + dbContext.Add(orderItem); + } + + var shipping = new ShippingEntity + { + ShippingTrackingId = order.ShippingTrackingId, + ShippingCostCurrencyCode = order.ShippingCost.CurrencyCode, + ShippingCostUnits = order.ShippingCost.Units, + ShippingCostNanos = order.ShippingCost.Nanos, + StreetAddress = order.ShippingAddress.StreetAddress, + City = order.ShippingAddress.City, + State = order.ShippingAddress.State, + Country = order.ShippingAddress.Country, + ZipCode = order.ShippingAddress.ZipCode, + OrderId = order.OrderId + }; + dbContext.Add(shipping); + dbContext.SaveChanges(); + } + catch (Exception ex) + { + _logger.LogError(ex, "Order parsing failed:"); + } + } + + private static IConsumer BuildConsumer(string servers) + { + var conf = new ConsumerConfig + { + GroupId = $"accounting", + BootstrapServers = servers, + // https://github.com/confluentinc/confluent-kafka-dotnet/tree/07de95ed647af80a0db39ce6a8891a630423b952#basic-consumer-example + AutoOffsetReset = AutoOffsetReset.Earliest, + EnableAutoCommit = true + }; + + return new ConsumerBuilder(conf) + .Build(); + } + + public void Dispose() + { + _isListening = false; + _consumer?.Dispose(); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Directory.Build.props b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Directory.Build.props new file mode 100644 index 0000000000000000000000000000000000000000..92cd6f4444ae6155d312528c85fb73331f07cba4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Directory.Build.props @@ -0,0 +1,12 @@ + + + true + all + low + + + + Minimum + true + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..89ba00f30bcc6cd75168c075a03ebe2e90544f35 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Dockerfile @@ -0,0 +1,36 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:10.0 AS builder +ARG TARGETARCH +ARG BUILD_CONFIGURATION=Release +WORKDIR /src +COPY ["/src/accounting/", "Accounting/"] +COPY ["/pb/demo.proto", "Accounting/src/protos/demo.proto"] +RUN dotnet restore "./Accounting/Accounting.csproj" -r linux-$TARGETARCH +WORKDIR "/src/Accounting" + +RUN dotnet build "./Accounting.csproj" -r linux-$TARGETARCH -c $BUILD_CONFIGURATION -o /app/build + +# ----------------------------------------------------------------------------- + +FROM builder AS publish +ARG TARGETARCH +ARG BUILD_CONFIGURATION=Release +RUN dotnet publish "./Accounting.csproj" -r linux-$TARGETARCH -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false + +# ----------------------------------------------------------------------------- + +FROM mcr.microsoft.com/dotnet/aspnet:10.0 +USER app +WORKDIR /app +COPY --from=publish /app/publish . + +USER root +RUN mkdir -p "/var/log/opentelemetry/dotnet" +RUN chown app "/var/log/opentelemetry/dotnet" +RUN chown app "/app/instrument.sh" +USER app +ENV OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES=Accounting.Consumer + +ENTRYPOINT ["./instrument.sh", "dotnet", "Accounting.dll"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Entities.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Entities.cs new file mode 100644 index 0000000000000000000000000000000000000000..714294e27ff5cb04058a7beffddaab21605066df --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Entities.cs @@ -0,0 +1,59 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Accounting; + +[Table("shipping", Schema = "accounting")] +[PrimaryKey(nameof(ShippingTrackingId))] +internal class ShippingEntity +{ + + public required string ShippingTrackingId { get; set; } + + public required string ShippingCostCurrencyCode { get; set; } + + public required long ShippingCostUnits { get; set; } + + public required int ShippingCostNanos { get; set; } + + public required string StreetAddress { get; set; } + + public required string City { get; set; } + + public required string State { get; set; } + + public required string Country { get; set; } + + public required string ZipCode { get; set; } + + public required string OrderId { get; set; } +} + +[Table("orderitem", Schema = "accounting")] +[PrimaryKey(nameof(ProductId), nameof(OrderId))] +internal class OrderItemEntity +{ + public required string ItemCostCurrencyCode { get; set; } + + public required long ItemCostUnits { get; set; } + + public required int ItemCostNanos { get; set; } + + public required string ProductId { get; set; } + + public required int Quantity { get; set; } + + public required string OrderId { get; set; } +} + +[Table("order", Schema = "accounting")] +[PrimaryKey(nameof(Id))] +internal class OrderEntity +{ + [Column("order_id")] + public required string Id { get; set; } + +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Helpers.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Helpers.cs new file mode 100644 index 0000000000000000000000000000000000000000..d167aae38e998b8d29342bb041af881e1e090b01 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Helpers.cs @@ -0,0 +1,34 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using System.Collections; + +namespace Accounting +{ + internal static class Helpers + { + private static List RelevantPrefixes = ["DOTNET_", "CORECLR_", "OTEL_", "KAFKA_"]; + + public static IEnumerable FilterRelevant(this IDictionary envs) + { + foreach (DictionaryEntry env in envs) + { + foreach (var prefix in RelevantPrefixes) + { + if (env.Key.ToString()?.StartsWith(prefix, StringComparison.InvariantCultureIgnoreCase) ?? false) + { + yield return env; + } + } + } + } + + public static void OutputInOrder(this IEnumerable envs) + { + foreach (var env in envs.OrderBy(x => x.Key)) + { + Console.WriteLine(env); + } + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Log.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Log.cs new file mode 100644 index 0000000000000000000000000000000000000000..e18af0e658d75695f312669ae36b9225ee8eedc2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Log.cs @@ -0,0 +1,16 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using Microsoft.Extensions.Logging; +using Oteldemo; + +namespace Accounting +{ + internal static partial class Log + { + [LoggerMessage( + Level = LogLevel.Information, + Message = "Order details: {@OrderResult}.")] + public static partial void OrderReceivedMessage(ILogger logger, OrderResult orderResult); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Program.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..54a5c44657a5db5f46256f1fb8a854cd3a02b827 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/Program.cs @@ -0,0 +1,24 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using Accounting; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +Console.WriteLine("Accounting service started"); + +Environment.GetEnvironmentVariables() + .FilterRelevant() + .OutputInOrder(); + +var host = Host.CreateDefaultBuilder(args) + .ConfigureServices(services => + { + services.AddSingleton(); + }) + .Build(); + +var consumer = host.Services.GetRequiredService(); +consumer.StartListening(); + +host.Run(); diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cfaa25ba80424f82a9f620a5a8cdf860dbc84b5d --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/accounting/README.md @@ -0,0 +1,33 @@ +# Accounting Service + +This service consumes new orders from a Kafka topic. + +## Local Build + +To build the service binary, navigate to the root directory of the project and run: + +```sh +make generate-protobuf +``` + +Navigate back to `src/accounting` and execute: + +```sh +dotnet build +``` + +## Docker Build + +From the root directory, run: + +```sh +docker compose build accounting +``` + +## Bump dependencies + +To bump all dependencies run in Package manager: + +```sh +Update-Package -ProjectName Accounting +``` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/.java-version b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/.java-version new file mode 100644 index 0000000000000000000000000000000000000000..5f39e9144690bb1f6f33d3db3cbd58ab198165a3 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/.java-version @@ -0,0 +1 @@ +21.0 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..92f69c049ee8a9993676b745f6fd980541f4fff4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/Dockerfile @@ -0,0 +1,35 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM --platform=${BUILDPLATFORM} eclipse-temurin:21-jdk AS builder +ARG _JAVA_OPTIONS +WORKDIR /usr/src/app/ + +COPY ./src/ad/gradlew* ./src/ad/settings.gradle* ./src/ad/build.gradle ./ +COPY ./src/ad/gradle ./gradle + +RUN chmod +x ./gradlew +RUN ./gradlew +RUN ./gradlew downloadRepos + +COPY ./src/ad/ ./ +COPY ./pb/ ./proto +RUN chmod +x ./gradlew +RUN ./gradlew installDist -PprotoSourceDir=./proto + +# ----------------------------------------------------------------------------- + +FROM eclipse-temurin:21-jre + +ARG OTEL_JAVA_AGENT_VERSION +ARG _JAVA_OPTIONS + +WORKDIR /usr/src/app/ + +COPY --from=builder /usr/src/app/ ./ +ADD --chmod=644 https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$OTEL_JAVA_AGENT_VERSION/opentelemetry-javaagent.jar /usr/src/app/opentelemetry-javaagent.jar +ENV JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar + +EXPOSE ${AD_PORT} +ENTRYPOINT [ "./build/install/opentelemetry-demo-ad/bin/Ad" ] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2a3b174355e33d62c2c232a68be271d7ebc03b5e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/README.md @@ -0,0 +1,41 @@ +# Ad Service + +The Ad service provides advertisement based on context keys. If no context keys +are provided then it returns random ads. + +## Building Locally + +The Ad service requires at least JDK 21 to build and uses gradlew to +compile/install/distribute. Gradle wrapper is already part of the source code. +To build Ad Service, run: + +```sh +./gradlew installDist +``` + +It will create an executable script +`src/ad/build/install/oteldemo/bin/Ad`. + +To run the Ad Service: + +```sh +export AD_PORT=8080 +export FEATURE_FLAG_GRPC_SERVICE_ADDR=featureflagservice:50053 +./build/install/opentelemetry-demo-ad/bin/Ad +``` + +### Upgrading Gradle + +If you need to upgrade the version of gradle then run + +```sh +./gradlew wrapper --gradle-version +``` + +## Building Docker + +From the root of `opentelemetry-demo`, run: + +```sh +docker build --file ./src/ad/Dockerfile ./ +``` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/build.gradle b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..7ccb4844a79a5ffa52c9a37d20ff13233d3d35d7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/build.gradle @@ -0,0 +1,143 @@ + +plugins { + id 'com.google.protobuf' version '0.9.6' + id 'com.github.sherter.google-java-format' version '0.9' + id 'idea' + id 'application' + id 'com.github.ben-manes.versions' version '0.53.0' +} + +repositories { + mavenCentral() + mavenLocal() +} + +description = 'Ad Service' +group = "ad" +version = "0.1.0-SNAPSHOT" + +def opentelemetryVersion = "1.58.0" +def opentelemetryInstrumentationVersion = "2.24.0" +def grpcVersion = "1.78.0" +def jacksonVersion = "2.21.0" +def protocVersion = "4.33.4" + +tasks.withType(JavaCompile).configureEach { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 +} + +ext { + speed = project.hasProperty('speed') ? project.getProperty('speed') : false + Provider output = layout.buildDirectory.dir("outputLocation") + offlineCompile = output.get().asFile +} + +dependencies { + if (speed) { + implementation fileTree(dir: offlineCompile, include: '*.jar') + } else { + implementation platform("io.opentelemetry:opentelemetry-bom:${opentelemetryVersion}") + implementation platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${opentelemetryInstrumentationVersion}") + + implementation "com.google.api.grpc:proto-google-common-protos:2.64.1", + "com.google.protobuf:protobuf-java:${protocVersion}", + "javax.annotation:javax.annotation-api:1.3.2", + "io.grpc:grpc-protobuf:${grpcVersion}", + "io.grpc:grpc-stub:${grpcVersion}", + "io.grpc:grpc-netty:${grpcVersion}", + "io.grpc:grpc-services:${grpcVersion}", + "io.opentelemetry:opentelemetry-api", + "io.opentelemetry:opentelemetry-sdk", + "io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations", + "org.apache.logging.log4j:log4j-core:2.25.3", + "dev.openfeature.contrib.providers:flagd:0.11.19", + 'dev.openfeature:sdk:1.20.0' + + runtimeOnly "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}", + "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}", + "io.netty:netty-tcnative-boringssl-static:2.0.74.Final" + } +} + +// Default protoSourceDir is in /opentelemetry-demo/pb. Optionally override the +// location for the docker build, which copies the protos to a different location. +def protoSourceDir = findProperty('protoSourceDir')?: project.projectDir.parentFile.parentFile.toPath().toString() + "/pb" +def protoDestDir = project.buildDir.toPath().toString() + "/proto" + +// Copy protos to the build directory +tasks.register('copyProtos', Copy) { + from protoSourceDir + into protoDestDir +} + +// Include the output directory of copyProtos in main source set so they are +// picked up by the protobuf plugin +sourceSets { + main { + proto { + srcDir(protoDestDir) + } + } +} + +protobuf { + protoc { + artifact = "com.google.protobuf:protoc:${protocVersion}" + } + plugins { + grpc { + artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" + } + } + generateProtoTasks { task -> + all()*.plugins { + grpc {} + } + ofSourceSet('main') + } +} + +afterEvaluate { + // Ensure protos are copy before classes are generated + tasks.getByName('processResources').dependsOn 'copyProtos' + tasks.getByName('generateProto').dependsOn 'copyProtos' +} + +googleJavaFormat { + toolVersion '1.18.1' +} + +// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code. +sourceSets { + main { + java { + srcDirs 'oteldemo' + srcDirs 'build/generated/source/proto/main/java/oteldemo' + srcDirs 'build/generated/source/proto/main/grpc/oteldemo' + } + } +} + +startScripts.enabled = false + +// This to cache dependencies during Docker image building. First build will take time. +// Subsequent build will be incremental. +task downloadRepos(type: Copy) { + from configurations.compileClasspath + into offlineCompile + from configurations.runtimeClasspath + into offlineCompile +} + +task ad(type: CreateStartScripts) { + mainClass.set('oteldemo.AdService') + applicationName = 'Ad' + outputDir = new File(project.buildDir, 'tmp') + classpath = startScripts.classpath +} + +applicationDistribution.into('bin') { + from(ad) + fileMode = 0755 +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..2c3521197d7c4586c843d1d3e9090525f1898cde Binary files /dev/null and b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e18bc253b857cc9614e63c8975b677f496755957 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew new file mode 100644 index 0000000000000000000000000000000000000000..f5feea6d6b116baaca5a2642d4d9fa1f47d574a7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew.bat b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..9d21a21834d5195c278ba17baec3115b2aaab06e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/settings.gradle b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..b85c24c7d15245209d24c9a87611a7f10d30f840 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/settings.gradle @@ -0,0 +1,2 @@ + +rootProject.name = 'opentelemetry-demo-ad' diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java new file mode 100644 index 0000000000000000000000000000000000000000..d7f2688e66ad405db06f9fa676514952d77f9220 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/AdService.java @@ -0,0 +1,328 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +package oteldemo; + +import com.google.common.collect.ImmutableListMultimap; +import com.google.common.collect.Iterables; +import io.grpc.*; +import io.grpc.health.v1.HealthCheckResponse.ServingStatus; +import io.grpc.protobuf.services.*; +import io.grpc.stub.StreamObserver; +import io.opentelemetry.api.GlobalOpenTelemetry; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.baggage.Baggage; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.metrics.LongCounter; +import io.opentelemetry.api.metrics.Meter; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.context.Context; +import io.opentelemetry.context.Scope; +import io.opentelemetry.instrumentation.annotations.SpanAttribute; +import io.opentelemetry.instrumentation.annotations.WithSpan; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import java.util.Random; +import org.apache.logging.log4j.Level; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import oteldemo.Demo.Ad; +import oteldemo.Demo.AdRequest; +import oteldemo.Demo.AdResponse; +import oteldemo.problempattern.GarbageCollectionTrigger; +import oteldemo.problempattern.CPULoad; +import dev.openfeature.contrib.providers.flagd.FlagdOptions; +import dev.openfeature.contrib.providers.flagd.FlagdProvider; +import dev.openfeature.sdk.Client; +import dev.openfeature.sdk.EvaluationContext; +import dev.openfeature.sdk.MutableContext; +import dev.openfeature.sdk.OpenFeatureAPI; +import java.util.UUID; + + +public final class AdService { + + private static final Logger logger = LogManager.getLogger(AdService.class); + + @SuppressWarnings("FieldCanBeLocal") + private static final int MAX_ADS_TO_SERVE = 2; + + private Server server; + private HealthStatusManager healthMgr; + + private static final AdService service = new AdService(); + private static final Tracer tracer = GlobalOpenTelemetry.getTracer("ad"); + private static final Meter meter = GlobalOpenTelemetry.getMeter("ad"); + + private static final LongCounter adRequestsCounter = + meter + .counterBuilder("app.ads.ad_requests") + .setDescription("Counts ad requests by request and response type") + .build(); + + private static final AttributeKey adRequestTypeKey = + AttributeKey.stringKey("app.ads.ad_request_type"); + private static final AttributeKey adResponseTypeKey = + AttributeKey.stringKey("app.ads.ad_response_type"); + + private void start() throws IOException { + int port = + Integer.parseInt( + Optional.ofNullable(System.getenv("AD_PORT")) + .orElseThrow( + () -> + new IllegalStateException( + "environment vars: AD_PORT must not be null"))); + healthMgr = new HealthStatusManager(); + + // Create a flagd instance with OpenTelemetry + FlagdOptions options = + FlagdOptions.builder() + .withGlobalTelemetry(true) + .build(); + + FlagdProvider flagdProvider = new FlagdProvider(options); + // Set flagd as the OpenFeature Provider + OpenFeatureAPI.getInstance().setProvider(flagdProvider); + + server = + ServerBuilder.forPort(port) + .addService(new AdServiceImpl()) + .addService(healthMgr.getHealthService()) + .build() + .start(); + logger.info("Ad service started, listening on " + port); + Runtime.getRuntime() + .addShutdownHook( + new Thread( + () -> { + // Use stderr here since the logger may have been reset by its JVM shutdown hook. + System.err.println( + "*** shutting down gRPC ads server since JVM is shutting down"); + AdService.this.stop(); + System.err.println("*** server shut down"); + })); + healthMgr.setStatus("", ServingStatus.SERVING); + } + + private void stop() { + if (server != null) { + healthMgr.clearStatus(""); + server.shutdown(); + } + } + + private enum AdRequestType { + TARGETED, + NOT_TARGETED + } + + private enum AdResponseType { + TARGETED, + RANDOM + } + + private static class AdServiceImpl extends oteldemo.AdServiceGrpc.AdServiceImplBase { + + private static final String AD_FAILURE = "adFailure"; + private static final String AD_MANUAL_GC_FEATURE_FLAG = "adManualGc"; + private static final String AD_HIGH_CPU_FEATURE_FLAG = "adHighCpu"; + private static final Client ffClient = OpenFeatureAPI.getInstance().getClient(); + + private AdServiceImpl() {} + + /** + * Retrieves ads based on context provided in the request {@code AdRequest}. + * + * @param req the request containing context. + * @param responseObserver the stream observer which gets notified with the value of {@code + * AdResponse} + */ + @Override + public void getAds(AdRequest req, StreamObserver responseObserver) { + AdService service = AdService.getInstance(); + + // get the current span in context + Span span = Span.current(); + try { + List allAds = new ArrayList<>(); + AdRequestType adRequestType; + AdResponseType adResponseType; + + Baggage baggage = Baggage.fromContextOrNull(Context.current()); + MutableContext evaluationContext = new MutableContext(); + if (baggage != null) { + final String sessionId = baggage.getEntryValue("session.id"); + span.setAttribute("session.id", sessionId); + evaluationContext.setTargetingKey(sessionId); + evaluationContext.add("session", sessionId); + } else { + logger.info("no baggage found in context"); + } + + CPULoad cpuload = CPULoad.getInstance(); + cpuload.execute(ffClient.getBooleanValue(AD_HIGH_CPU_FEATURE_FLAG, false, evaluationContext)); + + span.setAttribute("app.ads.contextKeys", req.getContextKeysList().toString()); + span.setAttribute("app.ads.contextKeys.count", req.getContextKeysCount()); + if (req.getContextKeysCount() > 0) { + logger.info("Targeted ad request received for " + req.getContextKeysList()); + for (int i = 0; i < req.getContextKeysCount(); i++) { + Collection ads = service.getAdsByCategory(req.getContextKeys(i)); + allAds.addAll(ads); + } + adRequestType = AdRequestType.TARGETED; + adResponseType = AdResponseType.TARGETED; + } else { + logger.info("Non-targeted ad request received, preparing random response."); + allAds = service.getRandomAds(); + adRequestType = AdRequestType.NOT_TARGETED; + adResponseType = AdResponseType.RANDOM; + } + if (allAds.isEmpty()) { + // Serve random ads. + allAds = service.getRandomAds(); + adResponseType = AdResponseType.RANDOM; + } + span.setAttribute("app.ads.count", allAds.size()); + span.setAttribute("app.ads.ad_request_type", adRequestType.name()); + span.setAttribute("app.ads.ad_response_type", adResponseType.name()); + + adRequestsCounter.add( + 1, + Attributes.of( + adRequestTypeKey, adRequestType.name(), adResponseTypeKey, adResponseType.name())); + + // Throw 1/10 of the time to simulate a failure when the feature flag is enabled + if (ffClient.getBooleanValue(AD_FAILURE, false, evaluationContext) && random.nextInt(10) == 0) { + throw new StatusRuntimeException(Status.UNAVAILABLE); + } + + if (ffClient.getBooleanValue(AD_MANUAL_GC_FEATURE_FLAG, false, evaluationContext)) { + logger.warn("Feature Flag " + AD_MANUAL_GC_FEATURE_FLAG + " enabled, performing a manual gc now"); + GarbageCollectionTrigger gct = new GarbageCollectionTrigger(); + gct.doExecute(); + } + + AdResponse reply = AdResponse.newBuilder().addAllAds(allAds).build(); + responseObserver.onNext(reply); + responseObserver.onCompleted(); + } catch (StatusRuntimeException e) { + span.addEvent( + "Error", Attributes.of(AttributeKey.stringKey("exception.message"), e.getMessage())); + span.setStatus(StatusCode.ERROR); + logger.log(Level.WARN, "GetAds Failed with status {}", e.getStatus()); + responseObserver.onError(e); + } + } + } + + private static final ImmutableListMultimap adsMap = createAdsMap(); + + @WithSpan("getAdsByCategory") + private Collection getAdsByCategory(@SpanAttribute("app.ads.category") String category) { + Collection ads = adsMap.get(category); + Span.current().setAttribute("app.ads.count", ads.size()); + return ads; + } + + private static final Random random = new Random(); + + private List getRandomAds() { + + List ads = new ArrayList<>(MAX_ADS_TO_SERVE); + + // create and start a new span manually + Span span = tracer.spanBuilder("getRandomAds").startSpan(); + + // put the span into context, so if any child span is started the parent will be set properly + try (Scope ignored = span.makeCurrent()) { + + Collection allAds = adsMap.values(); + for (int i = 0; i < MAX_ADS_TO_SERVE; i++) { + ads.add(Iterables.get(allAds, random.nextInt(allAds.size()))); + } + span.setAttribute("app.ads.count", ads.size()); + + } finally { + span.end(); + } + + return ads; + } + + private static AdService getInstance() { + return service; + } + + /** Await termination on the main thread since the grpc library uses daemon threads. */ + private void blockUntilShutdown() throws InterruptedException { + if (server != null) { + server.awaitTermination(); + } + } + + private static ImmutableListMultimap createAdsMap() { + Ad binoculars = + Ad.newBuilder() + .setRedirectUrl("/product/2ZYFJ3GM2N") + .setText("Roof Binoculars for sale. 50% off.") + .build(); + Ad explorerTelescope = + Ad.newBuilder() + .setRedirectUrl("/product/66VCHSJNUP") + .setText("Starsense Explorer Refractor Telescope for sale. 20% off.") + .build(); + Ad colorImager = + Ad.newBuilder() + .setRedirectUrl("/product/0PUK6V6EV0") + .setText("Solar System Color Imager for sale. 30% off.") + .build(); + Ad opticalTube = + Ad.newBuilder() + .setRedirectUrl("/product/9SIQT8TOJO") + .setText("Optical Tube Assembly for sale. 10% off.") + .build(); + Ad travelTelescope = + Ad.newBuilder() + .setRedirectUrl("/product/1YMWWN1N4O") + .setText( + "Eclipsmart Travel Refractor Telescope for sale. Buy one, get second kit for free") + .build(); + Ad solarFilter = + Ad.newBuilder() + .setRedirectUrl("/product/6E92ZMYYFZ") + .setText("Solar Filter for sale. Buy two, get third one for free") + .build(); + Ad cleaningKit = + Ad.newBuilder() + .setRedirectUrl("/product/L9ECAV7KIM") + .setText("Lens Cleaning Kit for sale. Buy one, get second one for free") + .build(); + return ImmutableListMultimap.builder() + .putAll("binoculars", binoculars) + .putAll("telescopes", explorerTelescope) + .putAll("accessories", colorImager, solarFilter, cleaningKit) + .putAll("assembly", opticalTube) + .putAll("travel", travelTelescope) + // Keep the books category free of ads to ensure the random code branch is tested + .build(); + } + + /** Main launches the server from the command line. */ + public static void main(String[] args) throws IOException, InterruptedException { + // Start the RPC server. You shouldn't see any output from gRPC before this. + logger.info("Ad service starting."); + final AdService service = AdService.getInstance(); + service.start(); + service.blockUntilShutdown(); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java new file mode 100644 index 0000000000000000000000000000000000000000..178f773370d00a4f221ee35e81bbdf935259a233 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/CPULoad.java @@ -0,0 +1,116 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ +package oteldemo.problempattern; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + +import io.grpc.ManagedChannelBuilder; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** + * This class is designed to simulate a high CPU load scenario. + * It contains methods to start and stop a specified number of worker threads designed to + * perform CPU-intensive calculations. + */ +public class CPULoad { + private static final Logger logger = LogManager.getLogger(CPULoad.class.getName()); + private static final int THREAD_COUNT = 4; + private boolean running = false; + private final List runningWorkers = new ArrayList<>(); + + private static CPULoad instance; + + /** + * Singleton pattern to get the instance of CPULoad. + * @return The singleton instance of CPULoad. + */ + public static CPULoad getInstance() { + if (instance == null) { + instance = new CPULoad(); + } + return instance; + } + + /** + * Starts or stops the CPU load generation based on the input parameter. + * If enabled, it launches worker threads. If disabled, it stops any running threads. + * + * @param enabled Flag to start (true) or stop (false) the CPU load simulation. + */ + public void execute(Boolean enabled) { + if (enabled) { + logger.info("High CPU-Load problempattern enabled"); + if (!running) { + spawnLoadWorkers(THREAD_COUNT); + running = true; + } + } else { + running = false; + stopWorkers(); + } + } + + /** + * Creates and starts a specified number of Logarithmizer threads to simulate CPU load. + * + * @param threadCount The number of threads to be started. + */ + private void spawnLoadWorkers(int threadCount) { + synchronized(runningWorkers) { + for (int i = 0; i < threadCount; i++) { + Logarithmizer logarithmizer = new Logarithmizer(); + Thread thread = new Thread(logarithmizer); + thread.setDaemon(true); + thread.start(); + runningWorkers.add(logarithmizer); + } + } + } + + /** + * Signals all running Logarithmizer threads to stop and clears the list of running workers. + */ + private void stopWorkers() { + synchronized(runningWorkers) { + for (Logarithmizer logarithmizer : runningWorkers) { + logarithmizer.setShouldRun(false); + } + runningWorkers.clear(); + } + } + + /** + * Inner class representing a worker focused on calculating logarithms to consume CPU resources. + */ + private static class Logarithmizer implements Runnable { + + private volatile boolean shouldRun = true; + + /** + * Continuously calculates the logarithm of the current system time until + * requested to stop. + */ + @Override + public void run() { + while (shouldRun) { + Math.log(System.currentTimeMillis()); + } + } + + /** + * Sets the shouldRun flag to control whether this Logarithmizer should continue + * to run. + * + * @param shouldRun A boolean flag to continue (true) or stop (false) the logarithm computation. + */ + public void setShouldRun(boolean shouldRun) { + this.shouldRun = shouldRun; + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java new file mode 100644 index 0000000000000000000000000000000000000000..aa72bc1f2c696bffec698eed453e5fdcd0da03ae --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/GarbageCollectionTrigger.java @@ -0,0 +1,80 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ + +package oteldemo.problempattern; + +import java.lang.management.ManagementFactory; +import java.util.concurrent.TimeUnit; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** + * The GarbageCollectionTrigger class is responsible for triggering manual garbage collection +* at specified intervals to simulate memory pressure and measure the impact on performance. +*/ +public class GarbageCollectionTrigger { + private static final Logger logger = LogManager.getLogger(GarbageCollectionTrigger.class.getName()); + + private final long gc_delay; + private final int finalize_delay; + private final int maxObjects; + + private long lastGC = 0; + + private final MemoryUtils memUtils; + + /** + * Constructs a new GarbageCollectionTrigger with default values. + */ + public GarbageCollectionTrigger() { + memUtils = new MemoryUtils(ManagementFactory.getMemoryMXBean()); + gc_delay = TimeUnit.SECONDS.toMillis(10); + finalize_delay = 500; + maxObjects = 500000; + } + + /** + * Triggers manual garbage collection at specified intervals and measures the impact on performance. + * It creates Entry objects to fill up memory and initiates garbage collection. + */ + public void doExecute() { + if (System.currentTimeMillis() - lastGC > gc_delay) { + logger.info("Triggering a manual garbage collection, next one in " + (gc_delay/1000) + " seconds."); + // clear old data, we want to clear old Entry objects, because their finalization is expensive + System.gc(); + + long total = 0; + for (int i = 0; i < 10; i++) { + while (memUtils.getHeapUsage() < 0.9 && memUtils.getObjectPendingFinalizationCount() < maxObjects) { + new Entry(); + } + long start = System.currentTimeMillis(); + System.gc(); + total += System.currentTimeMillis() - start; + } + logger.info("The artificially triggered GCs took: " + total + " ms"); + lastGC = System.currentTimeMillis(); + } + + } + + /** + * The Entry class represents objects created for the purpose of triggering garbage collection. + */ + private class Entry { + /** + * Overrides the finalize method to introduce a delay, simulating finalization during garbage collection. + * + * @throws Throwable If an exception occurs during finalization. + */ + @SuppressWarnings("removal") + @Override + protected void finalize() throws Throwable { + TimeUnit.MILLISECONDS.sleep(finalize_delay); + super.finalize(); + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java new file mode 100644 index 0000000000000000000000000000000000000000..6b314145fecadac942177f9a9a42d0bf2b195c6f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/java/oteldemo/problempattern/MemoryUtils.java @@ -0,0 +1,65 @@ +/* +* Copyright The OpenTelemetry Authors +* SPDX-License-Identifier: Apache-2.0 +*/ + +package oteldemo.problempattern; + +import java.lang.management.MemoryMXBean; +import java.lang.management.MemoryUsage; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + + +/** + * This class provides JVM heap related utility methods. +*/ +public class MemoryUtils { + + private static final Logger logger = LogManager.getLogger(MemoryUtils.class.getName()); + + private static final long NO_HEAP_LIMIT = -1; + + private final MemoryMXBean memoryBean; + + /** + * @param memoryBean defines which {@link MemoryMXBean} is to use + */ + public MemoryUtils(MemoryMXBean memoryBean) { + this.memoryBean = memoryBean; + } + + + /** + * @return The current heap usage as a decimal number between 0.0 and 1.0. + * That is, if the returned value is 0.85, 85% of the max heap is used. + * + * If no max heap is set, the method returns -1.0. + */ + public double getHeapUsage() { + MemoryUsage heapProps = memoryBean.getHeapMemoryUsage(); + long heapUsed = heapProps.getUsed(); + long heapMax = heapProps.getMax(); + + if (heapMax == NO_HEAP_LIMIT) { + if (logger.isDebugEnabled()) { + logger.debug("No maximum heap is set"); + } + return NO_HEAP_LIMIT; + } + + + double heapUsage = (double) heapUsed / heapMax; + if (logger.isDebugEnabled()) { + logger.debug("Current heap usage is {0} percent" + (heapUsage * 100)); + } + return heapUsage; + } + + /** + * see {@link MemoryMXBean#getObjectPendingFinalizationCount()} + */ + public int getObjectPendingFinalizationCount() { + return memoryBean.getObjectPendingFinalizationCount(); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml new file mode 100644 index 0000000000000000000000000000000000000000..db5cb39e968e33f359599529733e55a2a86782b0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/ad/src/main/resources/log4j2.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/Directory.Build.props b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/Directory.Build.props new file mode 100644 index 0000000000000000000000000000000000000000..92cd6f4444ae6155d312528c85fb73331f07cba4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/Directory.Build.props @@ -0,0 +1,12 @@ + + + true + all + low + + + + Minimum + true + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/NuGet.config b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/NuGet.config new file mode 100644 index 0000000000000000000000000000000000000000..adcb2a925ffa1120b8a47227e6f832f55d58474e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/NuGet.config @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f2b2db648459ea97fcd06ba02db223ef46615eac --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/README.md @@ -0,0 +1,15 @@ +# Cart Service + +This service stores user shopping carts in Valkey. + +## Local Build + +Run `dotnet restore` and `dotnet build`. + +## Docker Build + +From the root directory of this repository, run: + +```sh +docker compose build cart +``` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/cart.slnx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/cart.slnx new file mode 100644 index 0000000000000000000000000000000000000000..f92c994d55391922287de561012ef93ce12293b2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/cart.slnx @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..0224086eb21866570bd8bfbee26a1c34449f5f5f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/.dockerignore @@ -0,0 +1,6 @@ +**/*.sh +**/*.bat +**/bin/ +**/obj/ +**/out/ +Dockerfile* \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..80305cf7de30e705353aeb2d189ffba9ce783d20 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Dockerfile @@ -0,0 +1,41 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# https://mcr.microsoft.com/v2/dotnet/sdk/tags/list +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0 AS builder +ARG TARGETARCH + +WORKDIR /usr/src/app/ + +COPY ./src/cart/ ./ +COPY ./pb/ ./pb/ + +RUN dotnet restore ./src/cart.csproj -r linux-musl-$TARGETARCH + +RUN dotnet publish ./src/cart.csproj -r linux-musl-$TARGETARCH --no-restore -o /cart + +# ----------------------------------------------------------------------------- + +# https://mcr.microsoft.com/v2/dotnet/runtime-deps/tags/list +FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine3.22 + +WORKDIR /usr/src/app/ +COPY --from=builder /cart/ ./ + +ENV DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=false + +EXPOSE ${CART_PORT} +ENTRYPOINT [ "./cart" ] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Program.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..cdfb15889aa57ea0d50f63627cd020aff003e4fe --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/Program.cs @@ -0,0 +1,111 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +using System; + +using Grpc.Health.V1; +using Microsoft.AspNetCore.Diagnostics.HealthChecks; +using System.Threading.Tasks; +using System.Threading; + +using Grpc.Core; + +using cart.cartstore; +using cart.services; +using cart.healthcheck; + +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Diagnostics.HealthChecks; +using Microsoft.Extensions.Logging; +using OpenTelemetry.Instrumentation.StackExchangeRedis; +using OpenTelemetry.Logs; +using OpenTelemetry.Metrics; +using OpenTelemetry.Resources; +using OpenTelemetry.Trace; +using OpenFeature; +using OpenFeature.Hooks; +using OpenFeature.Contrib.Providers.Flagd; + +var builder = WebApplication.CreateBuilder(args); +string valkeyAddress = builder.Configuration["VALKEY_ADDR"]; +if (string.IsNullOrEmpty(valkeyAddress)) +{ + Console.WriteLine("VALKEY_ADDR environment variable is required."); + Environment.Exit(1); +} + +builder.Logging + .AddOpenTelemetry(options => options.AddOtlpExporter()) + .AddConsole(); + +builder.Services.AddSingleton(x => +{ + var store = new ValkeyCartStore(x.GetRequiredService>(), valkeyAddress); + store.Initialize(); + return store; +}); + +builder.Services.AddOpenFeature(openFeatureBuilder => +{ + openFeatureBuilder + .AddProvider(_ => new FlagdProvider()) + .AddHook() + .AddHook(); +}); + +builder.Services.AddSingleton(x => + new CartService( + x.GetRequiredService(), + new ValkeyCartStore(x.GetRequiredService>(), "badhost:1234"), + x.GetRequiredService() +)); + + +Action appResourceBuilder = + resource => resource + .AddService(builder.Environment.ApplicationName) + .AddContainerDetector() + .AddHostDetector(); + +builder.Services.AddOpenTelemetry() + .ConfigureResource(appResourceBuilder) + .WithTracing(tracerBuilder => tracerBuilder + .AddSource("OpenTelemetry.Demo.Cart") + .AddRedisInstrumentation( + options => options.SetVerboseDatabaseStatements = true) + .AddAspNetCoreInstrumentation() + .AddGrpcClientInstrumentation() + .AddHttpClientInstrumentation() + .AddOtlpExporter()) + .WithMetrics(meterBuilder => meterBuilder + .AddMeter("OpenTelemetry.Demo.Cart") + .AddMeter("OpenFeature") + .AddProcessInstrumentation() + .AddRuntimeInstrumentation() + .AddAspNetCoreInstrumentation() + .SetExemplarFilter(ExemplarFilterType.TraceBased) + .AddOtlpExporter()); +builder.Services.AddGrpc(); +builder.Services.AddSingleton(); +builder.Services.AddGrpcHealthChecks() + .AddCheck("oteldemo.CartService"); + +builder.Services.AddSingleton(); + +var app = builder.Build(); + +var ValkeyCartStore = (ValkeyCartStore)app.Services.GetRequiredService(); +app.Services.GetRequiredService().AddConnection(ValkeyCartStore.GetConnection()); + +app.MapGrpcService(); +app.MapGrpcService(); + +app.MapGet("/", async context => +{ + await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909"); +}); + +app.Run(); + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/appsettings.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/appsettings.json new file mode 100644 index 0000000000000000000000000000000000000000..db76fce3939a095fd2028b589eaae56f678ec34e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/appsettings.json @@ -0,0 +1,15 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*", + "Kestrel": { + "EndpointDefaults": { + "Protocols": "Http2" + } + } +} \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cart.csproj b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cart.csproj new file mode 100644 index 0000000000000000000000000000000000000000..512b0f702dcc511d0af140bb80396938db3910de --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cart.csproj @@ -0,0 +1,40 @@ + + + + net10.0 + false + false + true + true + false + $(ProjectDir)..\pb + + + + ..\..\..\pb + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ICartStore.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ICartStore.cs new file mode 100644 index 0000000000000000000000000000000000000000..80e249e5d68f00c95925c13b45acd28f39c2a595 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ICartStore.cs @@ -0,0 +1,17 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +using System.Threading.Tasks; + +namespace cart.cartstore; + +public interface ICartStore +{ + void Initialize(); + + Task AddItemAsync(string userId, string productId, int quantity); + Task EmptyCartAsync(string userId); + + Task GetCartAsync(string userId); + + bool Ping(); +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ValkeyCartStore.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ValkeyCartStore.cs new file mode 100644 index 0000000000000000000000000000000000000000..17f9b05f150e5dd774e43be7ed93ff6b7ec01f69 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/cartstore/ValkeyCartStore.cs @@ -0,0 +1,256 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +using System; +using System.Linq; +using System.Threading.Tasks; +using Grpc.Core; +using StackExchange.Redis; +using Google.Protobuf; +using Microsoft.Extensions.Logging; +using System.Diagnostics.Metrics; +using System.Diagnostics; + +namespace cart.cartstore; + +public class ValkeyCartStore : ICartStore +{ + private readonly ILogger _logger; + private const string CartFieldName = "cart"; + private const int RedisRetryNumber = 30; + + private volatile ConnectionMultiplexer _redis; + private volatile bool _isRedisConnectionOpened; + + private readonly object _locker = new(); + private readonly byte[] _emptyCartBytes; + private readonly string _connectionString; + + private static readonly ActivitySource CartActivitySource = new("OpenTelemetry.Demo.Cart"); + private static readonly Meter CartMeter = new Meter("OpenTelemetry.Demo.Cart"); + private static readonly Histogram addItemHistogram = CartMeter.CreateHistogram( + "app.cart.add_item.latency", + unit: "s", + advice: new InstrumentAdvice + { + HistogramBucketBoundaries = [ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ] + }); + private static readonly Histogram getCartHistogram = CartMeter.CreateHistogram( + "app.cart.get_cart.latency", + unit: "s", + advice: new InstrumentAdvice + { + HistogramBucketBoundaries = [ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ] + }); + private readonly ConfigurationOptions _redisConnectionOptions; + + public ValkeyCartStore(ILogger logger, string valkeyAddress) + { + _logger = logger; + // Serialize empty cart into byte array. + var cart = new Oteldemo.Cart(); + _emptyCartBytes = cart.ToByteArray(); + _connectionString = $"{valkeyAddress},ssl=false,allowAdmin=true,abortConnect=false"; + + _redisConnectionOptions = ConfigurationOptions.Parse(_connectionString); + + // Try to reconnect multiple times if the first retry fails. + _redisConnectionOptions.ConnectRetry = RedisRetryNumber; + _redisConnectionOptions.ReconnectRetryPolicy = new ExponentialRetry(1000); + + _redisConnectionOptions.KeepAlive = 180; + } + + public ConnectionMultiplexer GetConnection() + { + EnsureRedisConnected(); + return _redis; + } + + public void Initialize() + { + EnsureRedisConnected(); + } + + private void EnsureRedisConnected() + { + if (_isRedisConnectionOpened) + { + return; + } + + // Connection is closed or failed - open a new one but only at the first thread + lock (_locker) + { + if (_isRedisConnectionOpened) + { + return; + } + + if (_logger.IsEnabled(LogLevel.Debug)) + { + _logger.LogDebug("Connecting to Redis: {connectionString}", _connectionString); + } + + _redis = ConnectionMultiplexer.Connect(_redisConnectionOptions); + + if (_redis == null || !_redis.IsConnected) + { + _logger.LogError("Wasn't able to connect to redis"); + + // We weren't able to connect to Redis despite some retries with exponential backoff. + throw new ApplicationException("Wasn't able to connect to redis"); + } + + _logger.LogInformation("Successfully connected to Redis"); + var cache = _redis.GetDatabase(); + + _logger.LogDebug("Performing small test"); + cache.StringSet("cart", "OK" ); + object res = cache.StringGet("cart"); + + if (_logger.IsEnabled(LogLevel.Debug)) + { + _logger.LogDebug("Small test result: {result}", res); + } + + _redis.InternalError += (_, e) => { Console.WriteLine(e.Exception); }; + _redis.ConnectionRestored += (_, _) => + { + _isRedisConnectionOpened = true; + _logger.LogInformation("Connection to redis was restored successfully."); + }; + _redis.ConnectionFailed += (_, _) => + { + _logger.LogInformation("Connection failed. Disposing the object"); + _isRedisConnectionOpened = false; + }; + + _isRedisConnectionOpened = true; + } + } + + public async Task AddItemAsync(string userId, string productId, int quantity) + { + var stopwatch = Stopwatch.StartNew(); + + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("AddItemAsync called with userId={userId}, productId={productId}, quantity={quantity}", userId, productId, quantity); + } + + try + { + EnsureRedisConnected(); + + var db = _redis.GetDatabase(); + + // Access the cart from the cache + var value = await db.HashGetAsync(userId, CartFieldName); + + Oteldemo.Cart cart; + if (value.IsNull) + { + cart = new Oteldemo.Cart + { + UserId = userId + }; + cart.Items.Add(new Oteldemo.CartItem { ProductId = productId, Quantity = quantity }); + } + else + { + cart = Oteldemo.Cart.Parser.ParseFrom(value); + var existingItem = cart.Items.SingleOrDefault(i => i.ProductId == productId); + if (existingItem == null) + { + cart.Items.Add(new Oteldemo.CartItem { ProductId = productId, Quantity = quantity }); + } + else + { + existingItem.Quantity += quantity; + } + } + + await db.HashSetAsync(userId, new[]{ new HashEntry(CartFieldName, cart.ToByteArray()) }); + await db.KeyExpireAsync(userId, TimeSpan.FromMinutes(60)); + } + catch (Exception ex) + { + throw new RpcException(new Status(StatusCode.FailedPrecondition, $"Can't access cart storage. {ex}")); + } + finally + { + addItemHistogram.Record(stopwatch.Elapsed.TotalSeconds); + } + } + + public async Task EmptyCartAsync(string userId) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("EmptyCartAsync called with userId={userId}", userId); + } + try + { + EnsureRedisConnected(); + var db = _redis.GetDatabase(); + + // Update the cache with empty cart for given user + await db.HashSetAsync(userId, new[] { new HashEntry(CartFieldName, _emptyCartBytes) }); + await db.KeyExpireAsync(userId, TimeSpan.FromMinutes(60)); + } + catch (Exception ex) + { + throw new RpcException(new Status(StatusCode.FailedPrecondition, $"Can't access cart storage. {ex}")); + } + } + + public async Task GetCartAsync(string userId) + { + var stopwatch = Stopwatch.StartNew(); + + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("GetCartAsync called with userId={userId}", userId); + } + + try + { + EnsureRedisConnected(); + + var db = _redis.GetDatabase(); + + // Access the cart from the cache + var value = await db.HashGetAsync(userId, CartFieldName); + + if (!value.IsNull) + { + return Oteldemo.Cart.Parser.ParseFrom(value); + } + + // We decided to return empty cart in cases when user wasn't in the cache before + return new Oteldemo.Cart(); + } + catch (Exception ex) + { + throw new RpcException(new Status(StatusCode.FailedPrecondition, $"Can't access cart storage. {ex}")); + } + finally + { + getCartHistogram.Record(stopwatch.Elapsed.TotalSeconds); + } + } + + public bool Ping() + { + try + { + var cache = _redis.GetDatabase(); + var res = cache.Ping(); + return res != TimeSpan.Zero; + } + catch (Exception) + { + return false; + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/CartService.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/CartService.cs new file mode 100644 index 0000000000000000000000000000000000000000..5578f45fffc5645d3b41bc75a9a49c591af9c9f9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/CartService.cs @@ -0,0 +1,101 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +using System.Diagnostics; +using System.Threading.Tasks; +using System; +using Grpc.Core; +using cart.cartstore; +using OpenFeature; +using Oteldemo; + +namespace cart.services; + +public class CartService : Oteldemo.CartService.CartServiceBase +{ + private static readonly Empty Empty = new(); + private readonly Random random = new Random(); + private readonly ICartStore _badCartStore; + private readonly ICartStore _cartStore; + private readonly IFeatureClient _featureFlagHelper; + + public CartService(ICartStore cartStore, ICartStore badCartStore, IFeatureClient featureFlagService) + { + _badCartStore = badCartStore; + _cartStore = cartStore; + _featureFlagHelper = featureFlagService; + } + + public override async Task AddItem(AddItemRequest request, ServerCallContext context) + { + var activity = Activity.Current; + activity?.SetTag("app.user.id", request.UserId); + activity?.SetTag("app.product.id", request.Item.ProductId); + activity?.SetTag("app.product.quantity", request.Item.Quantity); + + try + { + await _cartStore.AddItemAsync(request.UserId, request.Item.ProductId, request.Item.Quantity); + + return Empty; + } + catch (RpcException ex) + { + activity?.AddException(ex); + activity?.SetStatus(ActivityStatusCode.Error, ex.Message); + throw; + } + } + + public override async Task GetCart(GetCartRequest request, ServerCallContext context) + { + var activity = Activity.Current; + activity?.SetTag("app.user.id", request.UserId); + activity?.AddEvent(new("Fetch cart")); + + try + { + var cart = await _cartStore.GetCartAsync(request.UserId); + var totalCart = 0; + foreach (var item in cart.Items) + { + totalCart += item.Quantity; + } + activity?.SetTag("app.cart.items.count", totalCart); + + return cart; + } + catch (RpcException ex) + { + activity?.AddException(ex); + activity?.SetStatus(ActivityStatusCode.Error, ex.Message); + throw; + } + } + + public override async Task EmptyCart(EmptyCartRequest request, ServerCallContext context) + { + var activity = Activity.Current; + activity?.SetTag("app.user.id", request.UserId); + activity?.AddEvent(new("Empty cart")); + + try + { + if (await _featureFlagHelper.GetBooleanValueAsync("cartFailure", false)) + { + await _badCartStore.EmptyCartAsync(request.UserId); + } + else + { + await _cartStore.EmptyCartAsync(request.UserId); + } + } + catch (RpcException ex) + { + Activity.Current?.AddException(ex); + Activity.Current?.SetStatus(ActivityStatusCode.Error, ex.Message); + throw; + } + + return Empty; + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/HealthCheckService.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/HealthCheckService.cs new file mode 100644 index 0000000000000000000000000000000000000000..417087e072c52521a8872c6f765cfa9171b0e532 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/src/services/HealthCheckService.cs @@ -0,0 +1,118 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using System; + +using Grpc.Core; +using Grpc.HealthCheck; +using Grpc.Health.V1; +using System.Threading.Tasks; +using System.Threading; + +using OpenFeature; +using OpenFeature.Hooks; +using OpenFeature.Contrib.Providers.Flagd; + +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Diagnostics.HealthChecks; +using Microsoft.Extensions.Logging; + +namespace cart.healthcheck +{ + public class readinessCheck : IHealthCheck + { + private readonly IFeatureClient _featureClient; + + public readinessCheck(IFeatureClient featureClient) + { + _featureClient = featureClient; + } + public async Task CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) + { + + #pragma warning disable CA2016 // OpenFeature does not support CancellationToken + // Await the async call instead of blocking + bool isSet = await _featureClient.GetBooleanValueAsync("failedReadinessProbe", false); // Replace with actual check + #pragma warning restore CA2016 + if (isSet) + { + return HealthCheckResult.Unhealthy("connection failed"); + + } + + return HealthCheckResult.Healthy("healthy"); + } + } + + + public class HealthServiceImpl : Health.HealthBase + { + private readonly ILogger _logger; + private readonly HealthCheckService _healthCheckService; + + + public HealthServiceImpl( + ILogger logger, + HealthCheckService healthCheckService) + { + _logger = logger; + _healthCheckService = healthCheckService; + } + + public override async Task Check(HealthCheckRequest request, ServerCallContext context) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Received health check request for service: {Service}", request.Service); + } + var cancellationToken = context.CancellationToken; + // If service is empty or null, check overall health + if (string.IsNullOrEmpty(request.Service)) + { + var health = await _healthCheckService.CheckHealthAsync(cancellationToken); + return new HealthCheckResponse + { + Status = ConvertToGrpcStatus(health.Status) + }; + } + + // You can implement service-specific health checks here + // This example checks a specific service + var serviceHealth = await _healthCheckService.CheckHealthAsync(registration => MatchesService(registration, request.Service), cancellationToken); + return new HealthCheckResponse + { + Status = ConvertToGrpcStatus(serviceHealth.Entries[request.Service].Status) + }; + } + + private static bool MatchesService(HealthCheckRegistration registration, string service) + { + return registration.Name == service; + } + + public override async Task Watch(HealthCheckRequest request, IServerStreamWriter responseStream, ServerCallContext context) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Received health watch request for service: {Service}", request.Service); + } + // Simple implementation to send current status once + var response = await Check(request, context); + await responseStream.WriteAsync(response); + + // In a real implementation, you would periodically check health and send updates + // This might involve setting up a timer or listener for health changes + } + + private static HealthCheckResponse.Types.ServingStatus ConvertToGrpcStatus(HealthStatus status) + { + return status switch + { + HealthStatus.Healthy => HealthCheckResponse.Types.ServingStatus.Serving, + HealthStatus.Degraded => HealthCheckResponse.Types.ServingStatus.Serving, // Or you might want to use SERVING_WITH_ISSUES if available + HealthStatus.Unhealthy => HealthCheckResponse.Types.ServingStatus.NotServing, + _ => HealthCheckResponse.Types.ServingStatus.Unknown + }; + } + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/CartServiceTests.cs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/CartServiceTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..45173d1432694669efeec2e12089b01220059673 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/CartServiceTests.cs @@ -0,0 +1,146 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +using System; +using System.Threading.Tasks; +using Grpc.Net.Client; +using Oteldemo; +using Microsoft.AspNetCore.TestHost; +using Microsoft.Extensions.Hosting; +using Xunit; +using static Oteldemo.CartService; + +namespace cart.tests; + +public class CartServiceTests +{ + private readonly IHostBuilder _host; + + public CartServiceTests() + { + _host = new HostBuilder().ConfigureWebHost(webBuilder => + { + webBuilder + // .UseStartup() + .UseTestServer(); + }); + } + + [Fact(Skip = "See https://github.com/open-telemetry/opentelemetry-demo/pull/746#discussion_r1107931240")] + public async Task GetItem_NoAddItemBefore_EmptyCartReturned() + { + // Setup test server and client + using var server = await _host.StartAsync(); + var httpClient = server.GetTestClient(); + + string userId = Guid.NewGuid().ToString(); + + // Create a GRPC communication channel between the client and the server + var channel = GrpcChannel.ForAddress(httpClient.BaseAddress, new GrpcChannelOptions + { + HttpClient = httpClient + }); + + var cartClient = new CartServiceClient(channel); + + var request = new GetCartRequest + { + UserId = userId, + }; + + var cart = await cartClient.GetCartAsync(request); + Assert.NotNull(cart); + + // All grpc objects implement IEquitable, so we can compare equality with by-value semantics + Assert.Equal(new Cart(), cart); + } + + [Fact(Skip = "See https://github.com/open-telemetry/opentelemetry-demo/pull/746#discussion_r1107931240")] + public async Task AddItem_ItemExists_Updated() + { + // Setup test server and client + using var server = await _host.StartAsync(); + var httpClient = server.GetTestClient(); + + string userId = Guid.NewGuid().ToString(); + + // Create a GRPC communication channel between the client and the server + var channel = GrpcChannel.ForAddress(httpClient.BaseAddress, new GrpcChannelOptions + { + HttpClient = httpClient + }); + + var client = new CartServiceClient(channel); + var request = new AddItemRequest + { + UserId = userId, + Item = new CartItem + { + ProductId = "1", + Quantity = 1 + } + }; + + // First add - nothing should fail + await client.AddItemAsync(request); + + // Second add of existing product - quantity should be updated + await client.AddItemAsync(request); + + var getCartRequest = new GetCartRequest + { + UserId = userId + }; + var cart = await client.GetCartAsync(getCartRequest); + Assert.NotNull(cart); + Assert.Equal(userId, cart.UserId); + Assert.Single(cart.Items); + Assert.Equal(2, cart.Items[0].Quantity); + + // Cleanup + await client.EmptyCartAsync(new EmptyCartRequest { UserId = userId }); + } + + [Fact(Skip = "See https://github.com/open-telemetry/opentelemetry-demo/pull/746#discussion_r1107931240")] + public async Task AddItem_New_Inserted() + { + // Setup test server and client + using var server = await _host.StartAsync(); + var httpClient = server.GetTestClient(); + + string userId = Guid.NewGuid().ToString(); + + // Create a GRPC communication channel between the client and the server + var channel = GrpcChannel.ForAddress(httpClient.BaseAddress, new GrpcChannelOptions + { + HttpClient = httpClient + }); + + // Create a proxy object to work with the server + var client = new CartServiceClient(channel); + + var request = new AddItemRequest + { + UserId = userId, + Item = new CartItem + { + ProductId = "1", + Quantity = 1 + } + }; + + await client.AddItemAsync(request); + + var getCartRequest = new GetCartRequest + { + UserId = userId + }; + var cart = await client.GetCartAsync(getCartRequest); + Assert.NotNull(cart); + Assert.Equal(userId, cart.UserId); + Assert.Single(cart.Items); + + await client.EmptyCartAsync(new EmptyCartRequest { UserId = userId }); + cart = await client.GetCartAsync(getCartRequest); + Assert.Empty(cart.Items); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/cart.tests.csproj b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/cart.tests.csproj new file mode 100644 index 0000000000000000000000000000000000000000..01a09d00691b33c9dff3fbab13ca5c96e5fc01f3 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/cart/tests/cart.tests.csproj @@ -0,0 +1,21 @@ + + + + net10.0 + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..9aa66af251439080376734a08d5cc4eda6a0c1de --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/Dockerfile @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM golang:1.24-bookworm AS builder + +WORKDIR /usr/src/app/ + +COPY ./src/checkout/go.mod go.mod +COPY ./src/checkout/go.sum go.sum + +RUN go mod download + +COPY ./src/checkout/genproto/oteldemo/ genproto/oteldemo/ +COPY ./src/checkout/kafka/ kafka/ +COPY ./src/checkout/money/ money/ +COPY ./src/checkout/main.go main.go + +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -o checkout main.go + +FROM gcr.io/distroless/static-debian12:nonroot + +WORKDIR /usr/src/app/ + +COPY --from=builder /usr/src/app/checkout/ ./ + +EXPOSE ${CHECKOUT_PORT} +ENTRYPOINT [ "./checkout" ] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/README.md new file mode 100644 index 0000000000000000000000000000000000000000..28064bda47cf6f0a9fb163933657fd687ab31ccd --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/README.md @@ -0,0 +1,36 @@ +# Checkout Service + +This service provides checkout services for the application. + +## Local Build + +To build the service binary, run: + +```sh +go build -o /go/bin/checkout/ +``` + +## Docker Build + +From the root directory, run: + +```sh +docker compose build checkout +``` + +## Regenerate protos + +To build the protos, run from the root directory: + +```sh +make docker-generate-protobuf +``` + +## Bump dependencies + +To bump all dependencies run: + +```sh +go get -u -t ./... +go mod tidy +``` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..5bc391c206c7e57c9c3d6a4b0d8312b82b100d9f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/Dockerfile @@ -0,0 +1,13 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM golang:1.24-alpine + +WORKDIR /build + +RUN apk add --no-cache protobuf-dev + +COPY ./src/checkout/go.mod go.mod +COPY ./src/checkout/go.sum go.sum + +RUN go install tool diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo.pb.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..0973aca95641bdd6732d0b6e0f98f5cc90c9b7da --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo.pb.go @@ -0,0 +1,2914 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v6.31.1 +// source: demo.proto + +package oteldemo + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CartItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CartItem) Reset() { + *x = CartItem{} + mi := &file_demo_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CartItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CartItem) ProtoMessage() {} + +func (x *CartItem) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CartItem.ProtoReflect.Descriptor instead. +func (*CartItem) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{0} +} + +func (x *CartItem) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *CartItem) GetQuantity() int32 { + if x != nil { + return x.Quantity + } + return 0 +} + +type AddItemRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Item *CartItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddItemRequest) Reset() { + *x = AddItemRequest{} + mi := &file_demo_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddItemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddItemRequest) ProtoMessage() {} + +func (x *AddItemRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddItemRequest.ProtoReflect.Descriptor instead. +func (*AddItemRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{1} +} + +func (x *AddItemRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *AddItemRequest) GetItem() *CartItem { + if x != nil { + return x.Item + } + return nil +} + +type EmptyCartRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EmptyCartRequest) Reset() { + *x = EmptyCartRequest{} + mi := &file_demo_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EmptyCartRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmptyCartRequest) ProtoMessage() {} + +func (x *EmptyCartRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EmptyCartRequest.ProtoReflect.Descriptor instead. +func (*EmptyCartRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{2} +} + +func (x *EmptyCartRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type GetCartRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCartRequest) Reset() { + *x = GetCartRequest{} + mi := &file_demo_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCartRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCartRequest) ProtoMessage() {} + +func (x *GetCartRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCartRequest.ProtoReflect.Descriptor instead. +func (*GetCartRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{3} +} + +func (x *GetCartRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type Cart struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Cart) Reset() { + *x = Cart{} + mi := &file_demo_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Cart) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Cart) ProtoMessage() {} + +func (x *Cart) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Cart.ProtoReflect.Descriptor instead. +func (*Cart) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{4} +} + +func (x *Cart) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *Cart) GetItems() []*CartItem { + if x != nil { + return x.Items + } + return nil +} + +type Empty struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Empty) Reset() { + *x = Empty{} + mi := &file_demo_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{5} +} + +type ListRecommendationsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ProductIds []string `protobuf:"bytes,2,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecommendationsRequest) Reset() { + *x = ListRecommendationsRequest{} + mi := &file_demo_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecommendationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecommendationsRequest) ProtoMessage() {} + +func (x *ListRecommendationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListRecommendationsRequest.ProtoReflect.Descriptor instead. +func (*ListRecommendationsRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{6} +} + +func (x *ListRecommendationsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *ListRecommendationsRequest) GetProductIds() []string { + if x != nil { + return x.ProductIds + } + return nil +} + +type ListRecommendationsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductIds []string `protobuf:"bytes,1,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecommendationsResponse) Reset() { + *x = ListRecommendationsResponse{} + mi := &file_demo_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecommendationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecommendationsResponse) ProtoMessage() {} + +func (x *ListRecommendationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListRecommendationsResponse.ProtoReflect.Descriptor instead. +func (*ListRecommendationsResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{7} +} + +func (x *ListRecommendationsResponse) GetProductIds() []string { + if x != nil { + return x.ProductIds + } + return nil +} + +type Product struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Picture string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"` + PriceUsd *Money `protobuf:"bytes,5,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"` + // Categories such as "clothing" or "kitchen" that can be used to look up + // other related products. + Categories []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Product) Reset() { + *x = Product{} + mi := &file_demo_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Product) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Product) ProtoMessage() {} + +func (x *Product) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Product.ProtoReflect.Descriptor instead. +func (*Product) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{8} +} + +func (x *Product) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Product) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Product) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Product) GetPicture() string { + if x != nil { + return x.Picture + } + return "" +} + +func (x *Product) GetPriceUsd() *Money { + if x != nil { + return x.PriceUsd + } + return nil +} + +func (x *Product) GetCategories() []string { + if x != nil { + return x.Categories + } + return nil +} + +type ListProductsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListProductsResponse) Reset() { + *x = ListProductsResponse{} + mi := &file_demo_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListProductsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProductsResponse) ProtoMessage() {} + +func (x *ListProductsResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead. +func (*ListProductsResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{9} +} + +func (x *ListProductsResponse) GetProducts() []*Product { + if x != nil { + return x.Products + } + return nil +} + +type GetProductRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetProductRequest) Reset() { + *x = GetProductRequest{} + mi := &file_demo_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetProductRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProductRequest) ProtoMessage() {} + +func (x *GetProductRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead. +func (*GetProductRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{10} +} + +func (x *GetProductRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type SearchProductsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchProductsRequest) Reset() { + *x = SearchProductsRequest{} + mi := &file_demo_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchProductsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchProductsRequest) ProtoMessage() {} + +func (x *SearchProductsRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SearchProductsRequest.ProtoReflect.Descriptor instead. +func (*SearchProductsRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{11} +} + +func (x *SearchProductsRequest) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +type SearchProductsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Results []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchProductsResponse) Reset() { + *x = SearchProductsResponse{} + mi := &file_demo_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchProductsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchProductsResponse) ProtoMessage() {} + +func (x *SearchProductsResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SearchProductsResponse.ProtoReflect.Descriptor instead. +func (*SearchProductsResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{12} +} + +func (x *SearchProductsResponse) GetResults() []*Product { + if x != nil { + return x.Results + } + return nil +} + +type ProductReview struct { + state protoimpl.MessageState `protogen:"open.v1"` + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Score string `protobuf:"bytes,3,opt,name=score,proto3" json:"score,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ProductReview) Reset() { + *x = ProductReview{} + mi := &file_demo_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ProductReview) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProductReview) ProtoMessage() {} + +func (x *ProductReview) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProductReview.ProtoReflect.Descriptor instead. +func (*ProductReview) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{13} +} + +func (x *ProductReview) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *ProductReview) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ProductReview) GetScore() string { + if x != nil { + return x.Score + } + return "" +} + +type GetProductReviewsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetProductReviewsRequest) Reset() { + *x = GetProductReviewsRequest{} + mi := &file_demo_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetProductReviewsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProductReviewsRequest) ProtoMessage() {} + +func (x *GetProductReviewsRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProductReviewsRequest.ProtoReflect.Descriptor instead. +func (*GetProductReviewsRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{14} +} + +func (x *GetProductReviewsRequest) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +type GetProductReviewsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductReviews []*ProductReview `protobuf:"bytes,1,rep,name=product_reviews,json=productReviews,proto3" json:"product_reviews,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetProductReviewsResponse) Reset() { + *x = GetProductReviewsResponse{} + mi := &file_demo_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetProductReviewsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProductReviewsResponse) ProtoMessage() {} + +func (x *GetProductReviewsResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProductReviewsResponse.ProtoReflect.Descriptor instead. +func (*GetProductReviewsResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{15} +} + +func (x *GetProductReviewsResponse) GetProductReviews() []*ProductReview { + if x != nil { + return x.ProductReviews + } + return nil +} + +type GetAverageProductReviewScoreRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAverageProductReviewScoreRequest) Reset() { + *x = GetAverageProductReviewScoreRequest{} + mi := &file_demo_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAverageProductReviewScoreRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAverageProductReviewScoreRequest) ProtoMessage() {} + +func (x *GetAverageProductReviewScoreRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAverageProductReviewScoreRequest.ProtoReflect.Descriptor instead. +func (*GetAverageProductReviewScoreRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{16} +} + +func (x *GetAverageProductReviewScoreRequest) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +type GetAverageProductReviewScoreResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + AverageScore string `protobuf:"bytes,1,opt,name=average_score,json=averageScore,proto3" json:"average_score,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAverageProductReviewScoreResponse) Reset() { + *x = GetAverageProductReviewScoreResponse{} + mi := &file_demo_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAverageProductReviewScoreResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAverageProductReviewScoreResponse) ProtoMessage() {} + +func (x *GetAverageProductReviewScoreResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAverageProductReviewScoreResponse.ProtoReflect.Descriptor instead. +func (*GetAverageProductReviewScoreResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{17} +} + +func (x *GetAverageProductReviewScoreResponse) GetAverageScore() string { + if x != nil { + return x.AverageScore + } + return "" +} + +type AskProductAIAssistantRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AskProductAIAssistantRequest) Reset() { + *x = AskProductAIAssistantRequest{} + mi := &file_demo_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AskProductAIAssistantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AskProductAIAssistantRequest) ProtoMessage() {} + +func (x *AskProductAIAssistantRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AskProductAIAssistantRequest.ProtoReflect.Descriptor instead. +func (*AskProductAIAssistantRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{18} +} + +func (x *AskProductAIAssistantRequest) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *AskProductAIAssistantRequest) GetQuestion() string { + if x != nil { + return x.Question + } + return "" +} + +type AskProductAIAssistantResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AskProductAIAssistantResponse) Reset() { + *x = AskProductAIAssistantResponse{} + mi := &file_demo_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AskProductAIAssistantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AskProductAIAssistantResponse) ProtoMessage() {} + +func (x *AskProductAIAssistantResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AskProductAIAssistantResponse.ProtoReflect.Descriptor instead. +func (*AskProductAIAssistantResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{19} +} + +func (x *AskProductAIAssistantResponse) GetResponse() string { + if x != nil { + return x.Response + } + return "" +} + +type GetQuoteRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetQuoteRequest) Reset() { + *x = GetQuoteRequest{} + mi := &file_demo_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetQuoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetQuoteRequest) ProtoMessage() {} + +func (x *GetQuoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetQuoteRequest.ProtoReflect.Descriptor instead. +func (*GetQuoteRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{20} +} + +func (x *GetQuoteRequest) GetAddress() *Address { + if x != nil { + return x.Address + } + return nil +} + +func (x *GetQuoteRequest) GetItems() []*CartItem { + if x != nil { + return x.Items + } + return nil +} + +type GetQuoteResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + CostUsd *Money `protobuf:"bytes,1,opt,name=cost_usd,json=costUsd,proto3" json:"cost_usd,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetQuoteResponse) Reset() { + *x = GetQuoteResponse{} + mi := &file_demo_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetQuoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetQuoteResponse) ProtoMessage() {} + +func (x *GetQuoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetQuoteResponse.ProtoReflect.Descriptor instead. +func (*GetQuoteResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{21} +} + +func (x *GetQuoteResponse) GetCostUsd() *Money { + if x != nil { + return x.CostUsd + } + return nil +} + +type ShipOrderRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ShipOrderRequest) Reset() { + *x = ShipOrderRequest{} + mi := &file_demo_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ShipOrderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShipOrderRequest) ProtoMessage() {} + +func (x *ShipOrderRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ShipOrderRequest.ProtoReflect.Descriptor instead. +func (*ShipOrderRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{22} +} + +func (x *ShipOrderRequest) GetAddress() *Address { + if x != nil { + return x.Address + } + return nil +} + +func (x *ShipOrderRequest) GetItems() []*CartItem { + if x != nil { + return x.Items + } + return nil +} + +type ShipOrderResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + TrackingId string `protobuf:"bytes,1,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ShipOrderResponse) Reset() { + *x = ShipOrderResponse{} + mi := &file_demo_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ShipOrderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShipOrderResponse) ProtoMessage() {} + +func (x *ShipOrderResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ShipOrderResponse.ProtoReflect.Descriptor instead. +func (*ShipOrderResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{23} +} + +func (x *ShipOrderResponse) GetTrackingId() string { + if x != nil { + return x.TrackingId + } + return "" +} + +type Address struct { + state protoimpl.MessageState `protogen:"open.v1"` + StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` + State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` + ZipCode string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Address) Reset() { + *x = Address{} + mi := &file_demo_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Address) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Address) ProtoMessage() {} + +func (x *Address) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Address.ProtoReflect.Descriptor instead. +func (*Address) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{24} +} + +func (x *Address) GetStreetAddress() string { + if x != nil { + return x.StreetAddress + } + return "" +} + +func (x *Address) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *Address) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *Address) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *Address) GetZipCode() string { + if x != nil { + return x.ZipCode + } + return "" +} + +// Represents an amount of money with its currency type. +type Money struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The 3-letter currency code defined in ISO 4217. + CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` + // The whole units of the amount. + // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"` + // Number of nano (10^-9) units of the amount. + // The value must be between -999,999,999 and +999,999,999 inclusive. + // If `units` is positive, `nanos` must be positive or zero. + // If `units` is zero, `nanos` can be positive, zero, or negative. + // If `units` is negative, `nanos` must be negative or zero. + // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Money) Reset() { + *x = Money{} + mi := &file_demo_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Money) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Money) ProtoMessage() {} + +func (x *Money) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Money.ProtoReflect.Descriptor instead. +func (*Money) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{25} +} + +func (x *Money) GetCurrencyCode() string { + if x != nil { + return x.CurrencyCode + } + return "" +} + +func (x *Money) GetUnits() int64 { + if x != nil { + return x.Units + } + return 0 +} + +func (x *Money) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +type GetSupportedCurrenciesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The 3-letter currency code defined in ISO 4217. + CurrencyCodes []string `protobuf:"bytes,1,rep,name=currency_codes,json=currencyCodes,proto3" json:"currency_codes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSupportedCurrenciesResponse) Reset() { + *x = GetSupportedCurrenciesResponse{} + mi := &file_demo_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSupportedCurrenciesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSupportedCurrenciesResponse) ProtoMessage() {} + +func (x *GetSupportedCurrenciesResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSupportedCurrenciesResponse.ProtoReflect.Descriptor instead. +func (*GetSupportedCurrenciesResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{26} +} + +func (x *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string { + if x != nil { + return x.CurrencyCodes + } + return nil +} + +type CurrencyConversionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + From *Money `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // The 3-letter currency code defined in ISO 4217. + ToCode string `protobuf:"bytes,2,opt,name=to_code,json=toCode,proto3" json:"to_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CurrencyConversionRequest) Reset() { + *x = CurrencyConversionRequest{} + mi := &file_demo_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CurrencyConversionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CurrencyConversionRequest) ProtoMessage() {} + +func (x *CurrencyConversionRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CurrencyConversionRequest.ProtoReflect.Descriptor instead. +func (*CurrencyConversionRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{27} +} + +func (x *CurrencyConversionRequest) GetFrom() *Money { + if x != nil { + return x.From + } + return nil +} + +func (x *CurrencyConversionRequest) GetToCode() string { + if x != nil { + return x.ToCode + } + return "" +} + +type CreditCardInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + CreditCardNumber string `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"` + CreditCardCvv int32 `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"` + CreditCardExpirationYear int32 `protobuf:"varint,3,opt,name=credit_card_expiration_year,json=creditCardExpirationYear,proto3" json:"credit_card_expiration_year,omitempty"` + CreditCardExpirationMonth int32 `protobuf:"varint,4,opt,name=credit_card_expiration_month,json=creditCardExpirationMonth,proto3" json:"credit_card_expiration_month,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreditCardInfo) Reset() { + *x = CreditCardInfo{} + mi := &file_demo_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreditCardInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreditCardInfo) ProtoMessage() {} + +func (x *CreditCardInfo) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreditCardInfo.ProtoReflect.Descriptor instead. +func (*CreditCardInfo) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{28} +} + +func (x *CreditCardInfo) GetCreditCardNumber() string { + if x != nil { + return x.CreditCardNumber + } + return "" +} + +func (x *CreditCardInfo) GetCreditCardCvv() int32 { + if x != nil { + return x.CreditCardCvv + } + return 0 +} + +func (x *CreditCardInfo) GetCreditCardExpirationYear() int32 { + if x != nil { + return x.CreditCardExpirationYear + } + return 0 +} + +func (x *CreditCardInfo) GetCreditCardExpirationMonth() int32 { + if x != nil { + return x.CreditCardExpirationMonth + } + return 0 +} + +type ChargeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Amount *Money `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + CreditCard *CreditCardInfo `protobuf:"bytes,2,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChargeRequest) Reset() { + *x = ChargeRequest{} + mi := &file_demo_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChargeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChargeRequest) ProtoMessage() {} + +func (x *ChargeRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChargeRequest.ProtoReflect.Descriptor instead. +func (*ChargeRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{29} +} + +func (x *ChargeRequest) GetAmount() *Money { + if x != nil { + return x.Amount + } + return nil +} + +func (x *ChargeRequest) GetCreditCard() *CreditCardInfo { + if x != nil { + return x.CreditCard + } + return nil +} + +type ChargeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChargeResponse) Reset() { + *x = ChargeResponse{} + mi := &file_demo_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChargeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChargeResponse) ProtoMessage() {} + +func (x *ChargeResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChargeResponse.ProtoReflect.Descriptor instead. +func (*ChargeResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{30} +} + +func (x *ChargeResponse) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +type OrderItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + Item *CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` + Cost *Money `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrderItem) Reset() { + *x = OrderItem{} + mi := &file_demo_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrderItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrderItem) ProtoMessage() {} + +func (x *OrderItem) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrderItem.ProtoReflect.Descriptor instead. +func (*OrderItem) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{31} +} + +func (x *OrderItem) GetItem() *CartItem { + if x != nil { + return x.Item + } + return nil +} + +func (x *OrderItem) GetCost() *Money { + if x != nil { + return x.Cost + } + return nil +} + +type OrderResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + ShippingTrackingId string `protobuf:"bytes,2,opt,name=shipping_tracking_id,json=shippingTrackingId,proto3" json:"shipping_tracking_id,omitempty"` + ShippingCost *Money `protobuf:"bytes,3,opt,name=shipping_cost,json=shippingCost,proto3" json:"shipping_cost,omitempty"` + ShippingAddress *Address `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` + Items []*OrderItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrderResult) Reset() { + *x = OrderResult{} + mi := &file_demo_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrderResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrderResult) ProtoMessage() {} + +func (x *OrderResult) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrderResult.ProtoReflect.Descriptor instead. +func (*OrderResult) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{32} +} + +func (x *OrderResult) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *OrderResult) GetShippingTrackingId() string { + if x != nil { + return x.ShippingTrackingId + } + return "" +} + +func (x *OrderResult) GetShippingCost() *Money { + if x != nil { + return x.ShippingCost + } + return nil +} + +func (x *OrderResult) GetShippingAddress() *Address { + if x != nil { + return x.ShippingAddress + } + return nil +} + +func (x *OrderResult) GetItems() []*OrderItem { + if x != nil { + return x.Items + } + return nil +} + +type SendOrderConfirmationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Order *OrderResult `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SendOrderConfirmationRequest) Reset() { + *x = SendOrderConfirmationRequest{} + mi := &file_demo_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SendOrderConfirmationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendOrderConfirmationRequest) ProtoMessage() {} + +func (x *SendOrderConfirmationRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendOrderConfirmationRequest.ProtoReflect.Descriptor instead. +func (*SendOrderConfirmationRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{33} +} + +func (x *SendOrderConfirmationRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *SendOrderConfirmationRequest) GetOrder() *OrderResult { + if x != nil { + return x.Order + } + return nil +} + +type PlaceOrderRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserCurrency string `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"` + Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` + CreditCard *CreditCardInfo `protobuf:"bytes,6,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PlaceOrderRequest) Reset() { + *x = PlaceOrderRequest{} + mi := &file_demo_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PlaceOrderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlaceOrderRequest) ProtoMessage() {} + +func (x *PlaceOrderRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead. +func (*PlaceOrderRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{34} +} + +func (x *PlaceOrderRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *PlaceOrderRequest) GetUserCurrency() string { + if x != nil { + return x.UserCurrency + } + return "" +} + +func (x *PlaceOrderRequest) GetAddress() *Address { + if x != nil { + return x.Address + } + return nil +} + +func (x *PlaceOrderRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *PlaceOrderRequest) GetCreditCard() *CreditCardInfo { + if x != nil { + return x.CreditCard + } + return nil +} + +type PlaceOrderResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Order *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PlaceOrderResponse) Reset() { + *x = PlaceOrderResponse{} + mi := &file_demo_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PlaceOrderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlaceOrderResponse) ProtoMessage() {} + +func (x *PlaceOrderResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlaceOrderResponse.ProtoReflect.Descriptor instead. +func (*PlaceOrderResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{35} +} + +func (x *PlaceOrderResponse) GetOrder() *OrderResult { + if x != nil { + return x.Order + } + return nil +} + +type AdRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // List of important key words from the current page describing the context. + ContextKeys []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AdRequest) Reset() { + *x = AdRequest{} + mi := &file_demo_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdRequest) ProtoMessage() {} + +func (x *AdRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AdRequest.ProtoReflect.Descriptor instead. +func (*AdRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{36} +} + +func (x *AdRequest) GetContextKeys() []string { + if x != nil { + return x.ContextKeys + } + return nil +} + +type AdResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Ads []*Ad `protobuf:"bytes,1,rep,name=ads,proto3" json:"ads,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AdResponse) Reset() { + *x = AdResponse{} + mi := &file_demo_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdResponse) ProtoMessage() {} + +func (x *AdResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AdResponse.ProtoReflect.Descriptor instead. +func (*AdResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{37} +} + +func (x *AdResponse) GetAds() []*Ad { + if x != nil { + return x.Ads + } + return nil +} + +type Ad struct { + state protoimpl.MessageState `protogen:"open.v1"` + // url to redirect to when an ad is clicked. + RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` + // short advertisement text to display. + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Ad) Reset() { + *x = Ad{} + mi := &file_demo_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Ad) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ad) ProtoMessage() {} + +func (x *Ad) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Ad.ProtoReflect.Descriptor instead. +func (*Ad) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{38} +} + +func (x *Ad) GetRedirectUrl() string { + if x != nil { + return x.RedirectUrl + } + return "" +} + +func (x *Ad) GetText() string { + if x != nil { + return x.Text + } + return "" +} + +type Flag struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Flag) Reset() { + *x = Flag{} + mi := &file_demo_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Flag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Flag) ProtoMessage() {} + +func (x *Flag) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Flag.ProtoReflect.Descriptor instead. +func (*Flag) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{39} +} + +func (x *Flag) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Flag) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Flag) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type GetFlagRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetFlagRequest) Reset() { + *x = GetFlagRequest{} + mi := &file_demo_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetFlagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetFlagRequest) ProtoMessage() {} + +func (x *GetFlagRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetFlagRequest.ProtoReflect.Descriptor instead. +func (*GetFlagRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{40} +} + +func (x *GetFlagRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type GetFlagResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Flag *Flag `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetFlagResponse) Reset() { + *x = GetFlagResponse{} + mi := &file_demo_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetFlagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetFlagResponse) ProtoMessage() {} + +func (x *GetFlagResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetFlagResponse.ProtoReflect.Descriptor instead. +func (*GetFlagResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{41} +} + +func (x *GetFlagResponse) GetFlag() *Flag { + if x != nil { + return x.Flag + } + return nil +} + +type CreateFlagRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateFlagRequest) Reset() { + *x = CreateFlagRequest{} + mi := &file_demo_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateFlagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateFlagRequest) ProtoMessage() {} + +func (x *CreateFlagRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateFlagRequest.ProtoReflect.Descriptor instead. +func (*CreateFlagRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{42} +} + +func (x *CreateFlagRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateFlagRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateFlagRequest) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type CreateFlagResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Flag *Flag `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateFlagResponse) Reset() { + *x = CreateFlagResponse{} + mi := &file_demo_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateFlagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateFlagResponse) ProtoMessage() {} + +func (x *CreateFlagResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateFlagResponse.ProtoReflect.Descriptor instead. +func (*CreateFlagResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{43} +} + +func (x *CreateFlagResponse) GetFlag() *Flag { + if x != nil { + return x.Flag + } + return nil +} + +type UpdateFlagRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateFlagRequest) Reset() { + *x = UpdateFlagRequest{} + mi := &file_demo_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateFlagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateFlagRequest) ProtoMessage() {} + +func (x *UpdateFlagRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateFlagRequest.ProtoReflect.Descriptor instead. +func (*UpdateFlagRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{44} +} + +func (x *UpdateFlagRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateFlagRequest) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type UpdateFlagResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateFlagResponse) Reset() { + *x = UpdateFlagResponse{} + mi := &file_demo_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateFlagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateFlagResponse) ProtoMessage() {} + +func (x *UpdateFlagResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateFlagResponse.ProtoReflect.Descriptor instead. +func (*UpdateFlagResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{45} +} + +type ListFlagsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListFlagsRequest) Reset() { + *x = ListFlagsRequest{} + mi := &file_demo_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListFlagsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListFlagsRequest) ProtoMessage() {} + +func (x *ListFlagsRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListFlagsRequest.ProtoReflect.Descriptor instead. +func (*ListFlagsRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{46} +} + +type ListFlagsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Flag []*Flag `protobuf:"bytes,1,rep,name=flag,proto3" json:"flag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListFlagsResponse) Reset() { + *x = ListFlagsResponse{} + mi := &file_demo_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListFlagsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListFlagsResponse) ProtoMessage() {} + +func (x *ListFlagsResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListFlagsResponse.ProtoReflect.Descriptor instead. +func (*ListFlagsResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{47} +} + +func (x *ListFlagsResponse) GetFlag() []*Flag { + if x != nil { + return x.Flag + } + return nil +} + +type DeleteFlagRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteFlagRequest) Reset() { + *x = DeleteFlagRequest{} + mi := &file_demo_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteFlagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteFlagRequest) ProtoMessage() {} + +func (x *DeleteFlagRequest) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[48] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteFlagRequest.ProtoReflect.Descriptor instead. +func (*DeleteFlagRequest) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{48} +} + +func (x *DeleteFlagRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type DeleteFlagResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteFlagResponse) Reset() { + *x = DeleteFlagResponse{} + mi := &file_demo_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteFlagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteFlagResponse) ProtoMessage() {} + +func (x *DeleteFlagResponse) ProtoReflect() protoreflect.Message { + mi := &file_demo_proto_msgTypes[49] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteFlagResponse.ProtoReflect.Descriptor instead. +func (*DeleteFlagResponse) Descriptor() ([]byte, []int) { + return file_demo_proto_rawDescGZIP(), []int{49} +} + +var File_demo_proto protoreflect.FileDescriptor + +const file_demo_proto_rawDesc = "" + + "\n" + + "\n" + + "demo.proto\x12\boteldemo\"E\n" + + "\bCartItem\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\x12\x1a\n" + + "\bquantity\x18\x02 \x01(\x05R\bquantity\"Q\n" + + "\x0eAddItemRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12&\n" + + "\x04item\x18\x02 \x01(\v2\x12.oteldemo.CartItemR\x04item\"+\n" + + "\x10EmptyCartRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\")\n" + + "\x0eGetCartRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\"I\n" + + "\x04Cart\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12(\n" + + "\x05items\x18\x02 \x03(\v2\x12.oteldemo.CartItemR\x05items\"\a\n" + + "\x05Empty\"V\n" + + "\x1aListRecommendationsRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1f\n" + + "\vproduct_ids\x18\x02 \x03(\tR\n" + + "productIds\">\n" + + "\x1bListRecommendationsResponse\x12\x1f\n" + + "\vproduct_ids\x18\x01 \x03(\tR\n" + + "productIds\"\xb7\x01\n" + + "\aProduct\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x18\n" + + "\apicture\x18\x04 \x01(\tR\apicture\x12,\n" + + "\tprice_usd\x18\x05 \x01(\v2\x0f.oteldemo.MoneyR\bpriceUsd\x12\x1e\n" + + "\n" + + "categories\x18\x06 \x03(\tR\n" + + "categories\"E\n" + + "\x14ListProductsResponse\x12-\n" + + "\bproducts\x18\x01 \x03(\v2\x11.oteldemo.ProductR\bproducts\"#\n" + + "\x11GetProductRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"-\n" + + "\x15SearchProductsRequest\x12\x14\n" + + "\x05query\x18\x01 \x01(\tR\x05query\"E\n" + + "\x16SearchProductsResponse\x12+\n" + + "\aresults\x18\x01 \x03(\v2\x11.oteldemo.ProductR\aresults\"c\n" + + "\rProductReview\x12\x1a\n" + + "\busername\x18\x01 \x01(\tR\busername\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x14\n" + + "\x05score\x18\x03 \x01(\tR\x05score\"9\n" + + "\x18GetProductReviewsRequest\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\"]\n" + + "\x19GetProductReviewsResponse\x12@\n" + + "\x0fproduct_reviews\x18\x01 \x03(\v2\x17.oteldemo.ProductReviewR\x0eproductReviews\"D\n" + + "#GetAverageProductReviewScoreRequest\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\"K\n" + + "$GetAverageProductReviewScoreResponse\x12#\n" + + "\raverage_score\x18\x01 \x01(\tR\faverageScore\"Y\n" + + "\x1cAskProductAIAssistantRequest\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\x12\x1a\n" + + "\bquestion\x18\x02 \x01(\tR\bquestion\";\n" + + "\x1dAskProductAIAssistantResponse\x12\x1a\n" + + "\bresponse\x18\x01 \x01(\tR\bresponse\"h\n" + + "\x0fGetQuoteRequest\x12+\n" + + "\aaddress\x18\x01 \x01(\v2\x11.oteldemo.AddressR\aaddress\x12(\n" + + "\x05items\x18\x02 \x03(\v2\x12.oteldemo.CartItemR\x05items\">\n" + + "\x10GetQuoteResponse\x12*\n" + + "\bcost_usd\x18\x01 \x01(\v2\x0f.oteldemo.MoneyR\acostUsd\"i\n" + + "\x10ShipOrderRequest\x12+\n" + + "\aaddress\x18\x01 \x01(\v2\x11.oteldemo.AddressR\aaddress\x12(\n" + + "\x05items\x18\x02 \x03(\v2\x12.oteldemo.CartItemR\x05items\"4\n" + + "\x11ShipOrderResponse\x12\x1f\n" + + "\vtracking_id\x18\x01 \x01(\tR\n" + + "trackingId\"\x8f\x01\n" + + "\aAddress\x12%\n" + + "\x0estreet_address\x18\x01 \x01(\tR\rstreetAddress\x12\x12\n" + + "\x04city\x18\x02 \x01(\tR\x04city\x12\x14\n" + + "\x05state\x18\x03 \x01(\tR\x05state\x12\x18\n" + + "\acountry\x18\x04 \x01(\tR\acountry\x12\x19\n" + + "\bzip_code\x18\x05 \x01(\tR\azipCode\"X\n" + + "\x05Money\x12#\n" + + "\rcurrency_code\x18\x01 \x01(\tR\fcurrencyCode\x12\x14\n" + + "\x05units\x18\x02 \x01(\x03R\x05units\x12\x14\n" + + "\x05nanos\x18\x03 \x01(\x05R\x05nanos\"G\n" + + "\x1eGetSupportedCurrenciesResponse\x12%\n" + + "\x0ecurrency_codes\x18\x01 \x03(\tR\rcurrencyCodes\"Y\n" + + "\x19CurrencyConversionRequest\x12#\n" + + "\x04from\x18\x01 \x01(\v2\x0f.oteldemo.MoneyR\x04from\x12\x17\n" + + "\ato_code\x18\x02 \x01(\tR\x06toCode\"\xe6\x01\n" + + "\x0eCreditCardInfo\x12,\n" + + "\x12credit_card_number\x18\x01 \x01(\tR\x10creditCardNumber\x12&\n" + + "\x0fcredit_card_cvv\x18\x02 \x01(\x05R\rcreditCardCvv\x12=\n" + + "\x1bcredit_card_expiration_year\x18\x03 \x01(\x05R\x18creditCardExpirationYear\x12?\n" + + "\x1ccredit_card_expiration_month\x18\x04 \x01(\x05R\x19creditCardExpirationMonth\"s\n" + + "\rChargeRequest\x12'\n" + + "\x06amount\x18\x01 \x01(\v2\x0f.oteldemo.MoneyR\x06amount\x129\n" + + "\vcredit_card\x18\x02 \x01(\v2\x18.oteldemo.CreditCardInfoR\n" + + "creditCard\"7\n" + + "\x0eChargeResponse\x12%\n" + + "\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\"X\n" + + "\tOrderItem\x12&\n" + + "\x04item\x18\x01 \x01(\v2\x12.oteldemo.CartItemR\x04item\x12#\n" + + "\x04cost\x18\x02 \x01(\v2\x0f.oteldemo.MoneyR\x04cost\"\xf9\x01\n" + + "\vOrderResult\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\x120\n" + + "\x14shipping_tracking_id\x18\x02 \x01(\tR\x12shippingTrackingId\x124\n" + + "\rshipping_cost\x18\x03 \x01(\v2\x0f.oteldemo.MoneyR\fshippingCost\x12<\n" + + "\x10shipping_address\x18\x04 \x01(\v2\x11.oteldemo.AddressR\x0fshippingAddress\x12)\n" + + "\x05items\x18\x05 \x03(\v2\x13.oteldemo.OrderItemR\x05items\"a\n" + + "\x1cSendOrderConfirmationRequest\x12\x14\n" + + "\x05email\x18\x01 \x01(\tR\x05email\x12+\n" + + "\x05order\x18\x02 \x01(\v2\x15.oteldemo.OrderResultR\x05order\"\xcf\x01\n" + + "\x11PlaceOrderRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12#\n" + + "\ruser_currency\x18\x02 \x01(\tR\fuserCurrency\x12+\n" + + "\aaddress\x18\x03 \x01(\v2\x11.oteldemo.AddressR\aaddress\x12\x14\n" + + "\x05email\x18\x05 \x01(\tR\x05email\x129\n" + + "\vcredit_card\x18\x06 \x01(\v2\x18.oteldemo.CreditCardInfoR\n" + + "creditCard\"A\n" + + "\x12PlaceOrderResponse\x12+\n" + + "\x05order\x18\x01 \x01(\v2\x15.oteldemo.OrderResultR\x05order\".\n" + + "\tAdRequest\x12!\n" + + "\fcontext_keys\x18\x01 \x03(\tR\vcontextKeys\",\n" + + "\n" + + "AdResponse\x12\x1e\n" + + "\x03ads\x18\x01 \x03(\v2\f.oteldemo.AdR\x03ads\";\n" + + "\x02Ad\x12!\n" + + "\fredirect_url\x18\x01 \x01(\tR\vredirectUrl\x12\x12\n" + + "\x04text\x18\x02 \x01(\tR\x04text\"V\n" + + "\x04Flag\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x18\n" + + "\aenabled\x18\x03 \x01(\bR\aenabled\"$\n" + + "\x0eGetFlagRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"5\n" + + "\x0fGetFlagResponse\x12\"\n" + + "\x04flag\x18\x01 \x01(\v2\x0e.oteldemo.FlagR\x04flag\"c\n" + + "\x11CreateFlagRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x18\n" + + "\aenabled\x18\x03 \x01(\bR\aenabled\"8\n" + + "\x12CreateFlagResponse\x12\"\n" + + "\x04flag\x18\x01 \x01(\v2\x0e.oteldemo.FlagR\x04flag\"A\n" + + "\x11UpdateFlagRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aenabled\x18\x02 \x01(\bR\aenabled\"\x14\n" + + "\x12UpdateFlagResponse\"\x12\n" + + "\x10ListFlagsRequest\"7\n" + + "\x11ListFlagsResponse\x12\"\n" + + "\x04flag\x18\x01 \x03(\v2\x0e.oteldemo.FlagR\x04flag\"'\n" + + "\x11DeleteFlagRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\x14\n" + + "\x12DeleteFlagResponse2\xb8\x01\n" + + "\vCartService\x126\n" + + "\aAddItem\x12\x18.oteldemo.AddItemRequest\x1a\x0f.oteldemo.Empty\"\x00\x125\n" + + "\aGetCart\x12\x18.oteldemo.GetCartRequest\x1a\x0e.oteldemo.Cart\"\x00\x12:\n" + + "\tEmptyCart\x12\x1a.oteldemo.EmptyCartRequest\x1a\x0f.oteldemo.Empty\"\x002}\n" + + "\x15RecommendationService\x12d\n" + + "\x13ListRecommendations\x12$.oteldemo.ListRecommendationsRequest\x1a%.oteldemo.ListRecommendationsResponse\"\x002\xf1\x01\n" + + "\x15ProductCatalogService\x12A\n" + + "\fListProducts\x12\x0f.oteldemo.Empty\x1a\x1e.oteldemo.ListProductsResponse\"\x00\x12>\n" + + "\n" + + "GetProduct\x12\x1b.oteldemo.GetProductRequest\x1a\x11.oteldemo.Product\"\x00\x12U\n" + + "\x0eSearchProducts\x12\x1f.oteldemo.SearchProductsRequest\x1a .oteldemo.SearchProductsResponse\"\x002\xe3\x02\n" + + "\x14ProductReviewService\x12^\n" + + "\x11GetProductReviews\x12\".oteldemo.GetProductReviewsRequest\x1a#.oteldemo.GetProductReviewsResponse\"\x00\x12\x7f\n" + + "\x1cGetAverageProductReviewScore\x12-.oteldemo.GetAverageProductReviewScoreRequest\x1a..oteldemo.GetAverageProductReviewScoreResponse\"\x00\x12j\n" + + "\x15AskProductAIAssistant\x12&.oteldemo.AskProductAIAssistantRequest\x1a'.oteldemo.AskProductAIAssistantResponse\"\x002\x9e\x01\n" + + "\x0fShippingService\x12C\n" + + "\bGetQuote\x12\x19.oteldemo.GetQuoteRequest\x1a\x1a.oteldemo.GetQuoteResponse\"\x00\x12F\n" + + "\tShipOrder\x12\x1a.oteldemo.ShipOrderRequest\x1a\x1b.oteldemo.ShipOrderResponse\"\x002\xab\x01\n" + + "\x0fCurrencyService\x12U\n" + + "\x16GetSupportedCurrencies\x12\x0f.oteldemo.Empty\x1a(.oteldemo.GetSupportedCurrenciesResponse\"\x00\x12A\n" + + "\aConvert\x12#.oteldemo.CurrencyConversionRequest\x1a\x0f.oteldemo.Money\"\x002O\n" + + "\x0ePaymentService\x12=\n" + + "\x06Charge\x12\x17.oteldemo.ChargeRequest\x1a\x18.oteldemo.ChargeResponse\"\x002b\n" + + "\fEmailService\x12R\n" + + "\x15SendOrderConfirmation\x12&.oteldemo.SendOrderConfirmationRequest\x1a\x0f.oteldemo.Empty\"\x002\\\n" + + "\x0fCheckoutService\x12I\n" + + "\n" + + "PlaceOrder\x12\x1b.oteldemo.PlaceOrderRequest\x1a\x1c.oteldemo.PlaceOrderResponse\"\x002B\n" + + "\tAdService\x125\n" + + "\x06GetAds\x12\x13.oteldemo.AdRequest\x1a\x14.oteldemo.AdResponse\"\x002\xff\x02\n" + + "\x12FeatureFlagService\x12@\n" + + "\aGetFlag\x12\x18.oteldemo.GetFlagRequest\x1a\x19.oteldemo.GetFlagResponse\"\x00\x12I\n" + + "\n" + + "CreateFlag\x12\x1b.oteldemo.CreateFlagRequest\x1a\x1c.oteldemo.CreateFlagResponse\"\x00\x12I\n" + + "\n" + + "UpdateFlag\x12\x1b.oteldemo.UpdateFlagRequest\x1a\x1c.oteldemo.UpdateFlagResponse\"\x00\x12F\n" + + "\tListFlags\x12\x1a.oteldemo.ListFlagsRequest\x1a\x1b.oteldemo.ListFlagsResponse\"\x00\x12I\n" + + "\n" + + "DeleteFlag\x12\x1b.oteldemo.DeleteFlagRequest\x1a\x1c.oteldemo.DeleteFlagResponse\"\x00B\x13Z\x11genproto/oteldemob\x06proto3" + +var ( + file_demo_proto_rawDescOnce sync.Once + file_demo_proto_rawDescData []byte +) + +func file_demo_proto_rawDescGZIP() []byte { + file_demo_proto_rawDescOnce.Do(func() { + file_demo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_demo_proto_rawDesc), len(file_demo_proto_rawDesc))) + }) + return file_demo_proto_rawDescData +} + +var file_demo_proto_msgTypes = make([]protoimpl.MessageInfo, 50) +var file_demo_proto_goTypes = []any{ + (*CartItem)(nil), // 0: oteldemo.CartItem + (*AddItemRequest)(nil), // 1: oteldemo.AddItemRequest + (*EmptyCartRequest)(nil), // 2: oteldemo.EmptyCartRequest + (*GetCartRequest)(nil), // 3: oteldemo.GetCartRequest + (*Cart)(nil), // 4: oteldemo.Cart + (*Empty)(nil), // 5: oteldemo.Empty + (*ListRecommendationsRequest)(nil), // 6: oteldemo.ListRecommendationsRequest + (*ListRecommendationsResponse)(nil), // 7: oteldemo.ListRecommendationsResponse + (*Product)(nil), // 8: oteldemo.Product + (*ListProductsResponse)(nil), // 9: oteldemo.ListProductsResponse + (*GetProductRequest)(nil), // 10: oteldemo.GetProductRequest + (*SearchProductsRequest)(nil), // 11: oteldemo.SearchProductsRequest + (*SearchProductsResponse)(nil), // 12: oteldemo.SearchProductsResponse + (*ProductReview)(nil), // 13: oteldemo.ProductReview + (*GetProductReviewsRequest)(nil), // 14: oteldemo.GetProductReviewsRequest + (*GetProductReviewsResponse)(nil), // 15: oteldemo.GetProductReviewsResponse + (*GetAverageProductReviewScoreRequest)(nil), // 16: oteldemo.GetAverageProductReviewScoreRequest + (*GetAverageProductReviewScoreResponse)(nil), // 17: oteldemo.GetAverageProductReviewScoreResponse + (*AskProductAIAssistantRequest)(nil), // 18: oteldemo.AskProductAIAssistantRequest + (*AskProductAIAssistantResponse)(nil), // 19: oteldemo.AskProductAIAssistantResponse + (*GetQuoteRequest)(nil), // 20: oteldemo.GetQuoteRequest + (*GetQuoteResponse)(nil), // 21: oteldemo.GetQuoteResponse + (*ShipOrderRequest)(nil), // 22: oteldemo.ShipOrderRequest + (*ShipOrderResponse)(nil), // 23: oteldemo.ShipOrderResponse + (*Address)(nil), // 24: oteldemo.Address + (*Money)(nil), // 25: oteldemo.Money + (*GetSupportedCurrenciesResponse)(nil), // 26: oteldemo.GetSupportedCurrenciesResponse + (*CurrencyConversionRequest)(nil), // 27: oteldemo.CurrencyConversionRequest + (*CreditCardInfo)(nil), // 28: oteldemo.CreditCardInfo + (*ChargeRequest)(nil), // 29: oteldemo.ChargeRequest + (*ChargeResponse)(nil), // 30: oteldemo.ChargeResponse + (*OrderItem)(nil), // 31: oteldemo.OrderItem + (*OrderResult)(nil), // 32: oteldemo.OrderResult + (*SendOrderConfirmationRequest)(nil), // 33: oteldemo.SendOrderConfirmationRequest + (*PlaceOrderRequest)(nil), // 34: oteldemo.PlaceOrderRequest + (*PlaceOrderResponse)(nil), // 35: oteldemo.PlaceOrderResponse + (*AdRequest)(nil), // 36: oteldemo.AdRequest + (*AdResponse)(nil), // 37: oteldemo.AdResponse + (*Ad)(nil), // 38: oteldemo.Ad + (*Flag)(nil), // 39: oteldemo.Flag + (*GetFlagRequest)(nil), // 40: oteldemo.GetFlagRequest + (*GetFlagResponse)(nil), // 41: oteldemo.GetFlagResponse + (*CreateFlagRequest)(nil), // 42: oteldemo.CreateFlagRequest + (*CreateFlagResponse)(nil), // 43: oteldemo.CreateFlagResponse + (*UpdateFlagRequest)(nil), // 44: oteldemo.UpdateFlagRequest + (*UpdateFlagResponse)(nil), // 45: oteldemo.UpdateFlagResponse + (*ListFlagsRequest)(nil), // 46: oteldemo.ListFlagsRequest + (*ListFlagsResponse)(nil), // 47: oteldemo.ListFlagsResponse + (*DeleteFlagRequest)(nil), // 48: oteldemo.DeleteFlagRequest + (*DeleteFlagResponse)(nil), // 49: oteldemo.DeleteFlagResponse +} +var file_demo_proto_depIdxs = []int32{ + 0, // 0: oteldemo.AddItemRequest.item:type_name -> oteldemo.CartItem + 0, // 1: oteldemo.Cart.items:type_name -> oteldemo.CartItem + 25, // 2: oteldemo.Product.price_usd:type_name -> oteldemo.Money + 8, // 3: oteldemo.ListProductsResponse.products:type_name -> oteldemo.Product + 8, // 4: oteldemo.SearchProductsResponse.results:type_name -> oteldemo.Product + 13, // 5: oteldemo.GetProductReviewsResponse.product_reviews:type_name -> oteldemo.ProductReview + 24, // 6: oteldemo.GetQuoteRequest.address:type_name -> oteldemo.Address + 0, // 7: oteldemo.GetQuoteRequest.items:type_name -> oteldemo.CartItem + 25, // 8: oteldemo.GetQuoteResponse.cost_usd:type_name -> oteldemo.Money + 24, // 9: oteldemo.ShipOrderRequest.address:type_name -> oteldemo.Address + 0, // 10: oteldemo.ShipOrderRequest.items:type_name -> oteldemo.CartItem + 25, // 11: oteldemo.CurrencyConversionRequest.from:type_name -> oteldemo.Money + 25, // 12: oteldemo.ChargeRequest.amount:type_name -> oteldemo.Money + 28, // 13: oteldemo.ChargeRequest.credit_card:type_name -> oteldemo.CreditCardInfo + 0, // 14: oteldemo.OrderItem.item:type_name -> oteldemo.CartItem + 25, // 15: oteldemo.OrderItem.cost:type_name -> oteldemo.Money + 25, // 16: oteldemo.OrderResult.shipping_cost:type_name -> oteldemo.Money + 24, // 17: oteldemo.OrderResult.shipping_address:type_name -> oteldemo.Address + 31, // 18: oteldemo.OrderResult.items:type_name -> oteldemo.OrderItem + 32, // 19: oteldemo.SendOrderConfirmationRequest.order:type_name -> oteldemo.OrderResult + 24, // 20: oteldemo.PlaceOrderRequest.address:type_name -> oteldemo.Address + 28, // 21: oteldemo.PlaceOrderRequest.credit_card:type_name -> oteldemo.CreditCardInfo + 32, // 22: oteldemo.PlaceOrderResponse.order:type_name -> oteldemo.OrderResult + 38, // 23: oteldemo.AdResponse.ads:type_name -> oteldemo.Ad + 39, // 24: oteldemo.GetFlagResponse.flag:type_name -> oteldemo.Flag + 39, // 25: oteldemo.CreateFlagResponse.flag:type_name -> oteldemo.Flag + 39, // 26: oteldemo.ListFlagsResponse.flag:type_name -> oteldemo.Flag + 1, // 27: oteldemo.CartService.AddItem:input_type -> oteldemo.AddItemRequest + 3, // 28: oteldemo.CartService.GetCart:input_type -> oteldemo.GetCartRequest + 2, // 29: oteldemo.CartService.EmptyCart:input_type -> oteldemo.EmptyCartRequest + 6, // 30: oteldemo.RecommendationService.ListRecommendations:input_type -> oteldemo.ListRecommendationsRequest + 5, // 31: oteldemo.ProductCatalogService.ListProducts:input_type -> oteldemo.Empty + 10, // 32: oteldemo.ProductCatalogService.GetProduct:input_type -> oteldemo.GetProductRequest + 11, // 33: oteldemo.ProductCatalogService.SearchProducts:input_type -> oteldemo.SearchProductsRequest + 14, // 34: oteldemo.ProductReviewService.GetProductReviews:input_type -> oteldemo.GetProductReviewsRequest + 16, // 35: oteldemo.ProductReviewService.GetAverageProductReviewScore:input_type -> oteldemo.GetAverageProductReviewScoreRequest + 18, // 36: oteldemo.ProductReviewService.AskProductAIAssistant:input_type -> oteldemo.AskProductAIAssistantRequest + 20, // 37: oteldemo.ShippingService.GetQuote:input_type -> oteldemo.GetQuoteRequest + 22, // 38: oteldemo.ShippingService.ShipOrder:input_type -> oteldemo.ShipOrderRequest + 5, // 39: oteldemo.CurrencyService.GetSupportedCurrencies:input_type -> oteldemo.Empty + 27, // 40: oteldemo.CurrencyService.Convert:input_type -> oteldemo.CurrencyConversionRequest + 29, // 41: oteldemo.PaymentService.Charge:input_type -> oteldemo.ChargeRequest + 33, // 42: oteldemo.EmailService.SendOrderConfirmation:input_type -> oteldemo.SendOrderConfirmationRequest + 34, // 43: oteldemo.CheckoutService.PlaceOrder:input_type -> oteldemo.PlaceOrderRequest + 36, // 44: oteldemo.AdService.GetAds:input_type -> oteldemo.AdRequest + 40, // 45: oteldemo.FeatureFlagService.GetFlag:input_type -> oteldemo.GetFlagRequest + 42, // 46: oteldemo.FeatureFlagService.CreateFlag:input_type -> oteldemo.CreateFlagRequest + 44, // 47: oteldemo.FeatureFlagService.UpdateFlag:input_type -> oteldemo.UpdateFlagRequest + 46, // 48: oteldemo.FeatureFlagService.ListFlags:input_type -> oteldemo.ListFlagsRequest + 48, // 49: oteldemo.FeatureFlagService.DeleteFlag:input_type -> oteldemo.DeleteFlagRequest + 5, // 50: oteldemo.CartService.AddItem:output_type -> oteldemo.Empty + 4, // 51: oteldemo.CartService.GetCart:output_type -> oteldemo.Cart + 5, // 52: oteldemo.CartService.EmptyCart:output_type -> oteldemo.Empty + 7, // 53: oteldemo.RecommendationService.ListRecommendations:output_type -> oteldemo.ListRecommendationsResponse + 9, // 54: oteldemo.ProductCatalogService.ListProducts:output_type -> oteldemo.ListProductsResponse + 8, // 55: oteldemo.ProductCatalogService.GetProduct:output_type -> oteldemo.Product + 12, // 56: oteldemo.ProductCatalogService.SearchProducts:output_type -> oteldemo.SearchProductsResponse + 15, // 57: oteldemo.ProductReviewService.GetProductReviews:output_type -> oteldemo.GetProductReviewsResponse + 17, // 58: oteldemo.ProductReviewService.GetAverageProductReviewScore:output_type -> oteldemo.GetAverageProductReviewScoreResponse + 19, // 59: oteldemo.ProductReviewService.AskProductAIAssistant:output_type -> oteldemo.AskProductAIAssistantResponse + 21, // 60: oteldemo.ShippingService.GetQuote:output_type -> oteldemo.GetQuoteResponse + 23, // 61: oteldemo.ShippingService.ShipOrder:output_type -> oteldemo.ShipOrderResponse + 26, // 62: oteldemo.CurrencyService.GetSupportedCurrencies:output_type -> oteldemo.GetSupportedCurrenciesResponse + 25, // 63: oteldemo.CurrencyService.Convert:output_type -> oteldemo.Money + 30, // 64: oteldemo.PaymentService.Charge:output_type -> oteldemo.ChargeResponse + 5, // 65: oteldemo.EmailService.SendOrderConfirmation:output_type -> oteldemo.Empty + 35, // 66: oteldemo.CheckoutService.PlaceOrder:output_type -> oteldemo.PlaceOrderResponse + 37, // 67: oteldemo.AdService.GetAds:output_type -> oteldemo.AdResponse + 41, // 68: oteldemo.FeatureFlagService.GetFlag:output_type -> oteldemo.GetFlagResponse + 43, // 69: oteldemo.FeatureFlagService.CreateFlag:output_type -> oteldemo.CreateFlagResponse + 45, // 70: oteldemo.FeatureFlagService.UpdateFlag:output_type -> oteldemo.UpdateFlagResponse + 47, // 71: oteldemo.FeatureFlagService.ListFlags:output_type -> oteldemo.ListFlagsResponse + 49, // 72: oteldemo.FeatureFlagService.DeleteFlag:output_type -> oteldemo.DeleteFlagResponse + 50, // [50:73] is the sub-list for method output_type + 27, // [27:50] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name +} + +func init() { file_demo_proto_init() } +func file_demo_proto_init() { + if File_demo_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_demo_proto_rawDesc), len(file_demo_proto_rawDesc)), + NumEnums: 0, + NumMessages: 50, + NumExtensions: 0, + NumServices: 11, + }, + GoTypes: file_demo_proto_goTypes, + DependencyIndexes: file_demo_proto_depIdxs, + MessageInfos: file_demo_proto_msgTypes, + }.Build() + File_demo_proto = out.File + file_demo_proto_goTypes = nil + file_demo_proto_depIdxs = nil +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo_grpc.pb.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo_grpc.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..6c358b00f9f4da31c4e277de1d94be2c9ff2b786 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/genproto/oteldemo/demo_grpc.pb.go @@ -0,0 +1,1611 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.31.1 +// source: demo.proto + +package oteldemo + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + CartService_AddItem_FullMethodName = "/oteldemo.CartService/AddItem" + CartService_GetCart_FullMethodName = "/oteldemo.CartService/GetCart" + CartService_EmptyCart_FullMethodName = "/oteldemo.CartService/EmptyCart" +) + +// CartServiceClient is the client API for CartService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CartServiceClient interface { + AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*Empty, error) + GetCart(ctx context.Context, in *GetCartRequest, opts ...grpc.CallOption) (*Cart, error) + EmptyCart(ctx context.Context, in *EmptyCartRequest, opts ...grpc.CallOption) (*Empty, error) +} + +type cartServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCartServiceClient(cc grpc.ClientConnInterface) CartServiceClient { + return &cartServiceClient{cc} +} + +func (c *cartServiceClient) AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Empty) + err := c.cc.Invoke(ctx, CartService_AddItem_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cartServiceClient) GetCart(ctx context.Context, in *GetCartRequest, opts ...grpc.CallOption) (*Cart, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Cart) + err := c.cc.Invoke(ctx, CartService_GetCart_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cartServiceClient) EmptyCart(ctx context.Context, in *EmptyCartRequest, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Empty) + err := c.cc.Invoke(ctx, CartService_EmptyCart_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CartServiceServer is the server API for CartService service. +// All implementations must embed UnimplementedCartServiceServer +// for forward compatibility. +type CartServiceServer interface { + AddItem(context.Context, *AddItemRequest) (*Empty, error) + GetCart(context.Context, *GetCartRequest) (*Cart, error) + EmptyCart(context.Context, *EmptyCartRequest) (*Empty, error) + mustEmbedUnimplementedCartServiceServer() +} + +// UnimplementedCartServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCartServiceServer struct{} + +func (UnimplementedCartServiceServer) AddItem(context.Context, *AddItemRequest) (*Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddItem not implemented") +} +func (UnimplementedCartServiceServer) GetCart(context.Context, *GetCartRequest) (*Cart, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCart not implemented") +} +func (UnimplementedCartServiceServer) EmptyCart(context.Context, *EmptyCartRequest) (*Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method EmptyCart not implemented") +} +func (UnimplementedCartServiceServer) mustEmbedUnimplementedCartServiceServer() {} +func (UnimplementedCartServiceServer) testEmbeddedByValue() {} + +// UnsafeCartServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CartServiceServer will +// result in compilation errors. +type UnsafeCartServiceServer interface { + mustEmbedUnimplementedCartServiceServer() +} + +func RegisterCartServiceServer(s grpc.ServiceRegistrar, srv CartServiceServer) { + // If the following call pancis, it indicates UnimplementedCartServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&CartService_ServiceDesc, srv) +} + +func _CartService_AddItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddItemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CartServiceServer).AddItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CartService_AddItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CartServiceServer).AddItem(ctx, req.(*AddItemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CartService_GetCart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCartRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CartServiceServer).GetCart(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CartService_GetCart_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CartServiceServer).GetCart(ctx, req.(*GetCartRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CartService_EmptyCart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyCartRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CartServiceServer).EmptyCart(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CartService_EmptyCart_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CartServiceServer).EmptyCart(ctx, req.(*EmptyCartRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CartService_ServiceDesc is the grpc.ServiceDesc for CartService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CartService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.CartService", + HandlerType: (*CartServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddItem", + Handler: _CartService_AddItem_Handler, + }, + { + MethodName: "GetCart", + Handler: _CartService_GetCart_Handler, + }, + { + MethodName: "EmptyCart", + Handler: _CartService_EmptyCart_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + RecommendationService_ListRecommendations_FullMethodName = "/oteldemo.RecommendationService/ListRecommendations" +) + +// RecommendationServiceClient is the client API for RecommendationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RecommendationServiceClient interface { + ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error) +} + +type recommendationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRecommendationServiceClient(cc grpc.ClientConnInterface) RecommendationServiceClient { + return &recommendationServiceClient{cc} +} + +func (c *recommendationServiceClient) ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListRecommendationsResponse) + err := c.cc.Invoke(ctx, RecommendationService_ListRecommendations_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RecommendationServiceServer is the server API for RecommendationService service. +// All implementations must embed UnimplementedRecommendationServiceServer +// for forward compatibility. +type RecommendationServiceServer interface { + ListRecommendations(context.Context, *ListRecommendationsRequest) (*ListRecommendationsResponse, error) + mustEmbedUnimplementedRecommendationServiceServer() +} + +// UnimplementedRecommendationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRecommendationServiceServer struct{} + +func (UnimplementedRecommendationServiceServer) ListRecommendations(context.Context, *ListRecommendationsRequest) (*ListRecommendationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListRecommendations not implemented") +} +func (UnimplementedRecommendationServiceServer) mustEmbedUnimplementedRecommendationServiceServer() {} +func (UnimplementedRecommendationServiceServer) testEmbeddedByValue() {} + +// UnsafeRecommendationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RecommendationServiceServer will +// result in compilation errors. +type UnsafeRecommendationServiceServer interface { + mustEmbedUnimplementedRecommendationServiceServer() +} + +func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer) { + // If the following call pancis, it indicates UnimplementedRecommendationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&RecommendationService_ServiceDesc, srv) +} + +func _RecommendationService_ListRecommendations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecommendationsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RecommendationServiceServer).ListRecommendations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RecommendationService_ListRecommendations_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RecommendationServiceServer).ListRecommendations(ctx, req.(*ListRecommendationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RecommendationService_ServiceDesc is the grpc.ServiceDesc for RecommendationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RecommendationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.RecommendationService", + HandlerType: (*RecommendationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListRecommendations", + Handler: _RecommendationService_ListRecommendations_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + ProductCatalogService_ListProducts_FullMethodName = "/oteldemo.ProductCatalogService/ListProducts" + ProductCatalogService_GetProduct_FullMethodName = "/oteldemo.ProductCatalogService/GetProduct" + ProductCatalogService_SearchProducts_FullMethodName = "/oteldemo.ProductCatalogService/SearchProducts" +) + +// ProductCatalogServiceClient is the client API for ProductCatalogService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ProductCatalogServiceClient interface { + ListProducts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListProductsResponse, error) + GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) + SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error) +} + +type productCatalogServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewProductCatalogServiceClient(cc grpc.ClientConnInterface) ProductCatalogServiceClient { + return &productCatalogServiceClient{cc} +} + +func (c *productCatalogServiceClient) ListProducts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListProductsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListProductsResponse) + err := c.cc.Invoke(ctx, ProductCatalogService_ListProducts_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *productCatalogServiceClient) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Product) + err := c.cc.Invoke(ctx, ProductCatalogService_GetProduct_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *productCatalogServiceClient) SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchProductsResponse) + err := c.cc.Invoke(ctx, ProductCatalogService_SearchProducts_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProductCatalogServiceServer is the server API for ProductCatalogService service. +// All implementations must embed UnimplementedProductCatalogServiceServer +// for forward compatibility. +type ProductCatalogServiceServer interface { + ListProducts(context.Context, *Empty) (*ListProductsResponse, error) + GetProduct(context.Context, *GetProductRequest) (*Product, error) + SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error) + mustEmbedUnimplementedProductCatalogServiceServer() +} + +// UnimplementedProductCatalogServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProductCatalogServiceServer struct{} + +func (UnimplementedProductCatalogServiceServer) ListProducts(context.Context, *Empty) (*ListProductsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProducts not implemented") +} +func (UnimplementedProductCatalogServiceServer) GetProduct(context.Context, *GetProductRequest) (*Product, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProduct not implemented") +} +func (UnimplementedProductCatalogServiceServer) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchProducts not implemented") +} +func (UnimplementedProductCatalogServiceServer) mustEmbedUnimplementedProductCatalogServiceServer() {} +func (UnimplementedProductCatalogServiceServer) testEmbeddedByValue() {} + +// UnsafeProductCatalogServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ProductCatalogServiceServer will +// result in compilation errors. +type UnsafeProductCatalogServiceServer interface { + mustEmbedUnimplementedProductCatalogServiceServer() +} + +func RegisterProductCatalogServiceServer(s grpc.ServiceRegistrar, srv ProductCatalogServiceServer) { + // If the following call pancis, it indicates UnimplementedProductCatalogServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ProductCatalogService_ServiceDesc, srv) +} + +func _ProductCatalogService_ListProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductCatalogServiceServer).ListProducts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductCatalogService_ListProducts_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductCatalogServiceServer).ListProducts(ctx, req.(*Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProductCatalogService_GetProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProductRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductCatalogServiceServer).GetProduct(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductCatalogService_GetProduct_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductCatalogServiceServer).GetProduct(ctx, req.(*GetProductRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProductCatalogService_SearchProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchProductsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductCatalogServiceServer).SearchProducts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductCatalogService_SearchProducts_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductCatalogServiceServer).SearchProducts(ctx, req.(*SearchProductsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ProductCatalogService_ServiceDesc is the grpc.ServiceDesc for ProductCatalogService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ProductCatalogService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.ProductCatalogService", + HandlerType: (*ProductCatalogServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListProducts", + Handler: _ProductCatalogService_ListProducts_Handler, + }, + { + MethodName: "GetProduct", + Handler: _ProductCatalogService_GetProduct_Handler, + }, + { + MethodName: "SearchProducts", + Handler: _ProductCatalogService_SearchProducts_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + ProductReviewService_GetProductReviews_FullMethodName = "/oteldemo.ProductReviewService/GetProductReviews" + ProductReviewService_GetAverageProductReviewScore_FullMethodName = "/oteldemo.ProductReviewService/GetAverageProductReviewScore" + ProductReviewService_AskProductAIAssistant_FullMethodName = "/oteldemo.ProductReviewService/AskProductAIAssistant" +) + +// ProductReviewServiceClient is the client API for ProductReviewService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ProductReviewServiceClient interface { + GetProductReviews(ctx context.Context, in *GetProductReviewsRequest, opts ...grpc.CallOption) (*GetProductReviewsResponse, error) + GetAverageProductReviewScore(ctx context.Context, in *GetAverageProductReviewScoreRequest, opts ...grpc.CallOption) (*GetAverageProductReviewScoreResponse, error) + AskProductAIAssistant(ctx context.Context, in *AskProductAIAssistantRequest, opts ...grpc.CallOption) (*AskProductAIAssistantResponse, error) +} + +type productReviewServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewProductReviewServiceClient(cc grpc.ClientConnInterface) ProductReviewServiceClient { + return &productReviewServiceClient{cc} +} + +func (c *productReviewServiceClient) GetProductReviews(ctx context.Context, in *GetProductReviewsRequest, opts ...grpc.CallOption) (*GetProductReviewsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetProductReviewsResponse) + err := c.cc.Invoke(ctx, ProductReviewService_GetProductReviews_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *productReviewServiceClient) GetAverageProductReviewScore(ctx context.Context, in *GetAverageProductReviewScoreRequest, opts ...grpc.CallOption) (*GetAverageProductReviewScoreResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetAverageProductReviewScoreResponse) + err := c.cc.Invoke(ctx, ProductReviewService_GetAverageProductReviewScore_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *productReviewServiceClient) AskProductAIAssistant(ctx context.Context, in *AskProductAIAssistantRequest, opts ...grpc.CallOption) (*AskProductAIAssistantResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AskProductAIAssistantResponse) + err := c.cc.Invoke(ctx, ProductReviewService_AskProductAIAssistant_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProductReviewServiceServer is the server API for ProductReviewService service. +// All implementations must embed UnimplementedProductReviewServiceServer +// for forward compatibility. +type ProductReviewServiceServer interface { + GetProductReviews(context.Context, *GetProductReviewsRequest) (*GetProductReviewsResponse, error) + GetAverageProductReviewScore(context.Context, *GetAverageProductReviewScoreRequest) (*GetAverageProductReviewScoreResponse, error) + AskProductAIAssistant(context.Context, *AskProductAIAssistantRequest) (*AskProductAIAssistantResponse, error) + mustEmbedUnimplementedProductReviewServiceServer() +} + +// UnimplementedProductReviewServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProductReviewServiceServer struct{} + +func (UnimplementedProductReviewServiceServer) GetProductReviews(context.Context, *GetProductReviewsRequest) (*GetProductReviewsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProductReviews not implemented") +} +func (UnimplementedProductReviewServiceServer) GetAverageProductReviewScore(context.Context, *GetAverageProductReviewScoreRequest) (*GetAverageProductReviewScoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAverageProductReviewScore not implemented") +} +func (UnimplementedProductReviewServiceServer) AskProductAIAssistant(context.Context, *AskProductAIAssistantRequest) (*AskProductAIAssistantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AskProductAIAssistant not implemented") +} +func (UnimplementedProductReviewServiceServer) mustEmbedUnimplementedProductReviewServiceServer() {} +func (UnimplementedProductReviewServiceServer) testEmbeddedByValue() {} + +// UnsafeProductReviewServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ProductReviewServiceServer will +// result in compilation errors. +type UnsafeProductReviewServiceServer interface { + mustEmbedUnimplementedProductReviewServiceServer() +} + +func RegisterProductReviewServiceServer(s grpc.ServiceRegistrar, srv ProductReviewServiceServer) { + // If the following call pancis, it indicates UnimplementedProductReviewServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ProductReviewService_ServiceDesc, srv) +} + +func _ProductReviewService_GetProductReviews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProductReviewsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductReviewServiceServer).GetProductReviews(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductReviewService_GetProductReviews_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductReviewServiceServer).GetProductReviews(ctx, req.(*GetProductReviewsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProductReviewService_GetAverageProductReviewScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAverageProductReviewScoreRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductReviewServiceServer).GetAverageProductReviewScore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductReviewService_GetAverageProductReviewScore_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductReviewServiceServer).GetAverageProductReviewScore(ctx, req.(*GetAverageProductReviewScoreRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProductReviewService_AskProductAIAssistant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AskProductAIAssistantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProductReviewServiceServer).AskProductAIAssistant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProductReviewService_AskProductAIAssistant_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProductReviewServiceServer).AskProductAIAssistant(ctx, req.(*AskProductAIAssistantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ProductReviewService_ServiceDesc is the grpc.ServiceDesc for ProductReviewService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ProductReviewService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.ProductReviewService", + HandlerType: (*ProductReviewServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetProductReviews", + Handler: _ProductReviewService_GetProductReviews_Handler, + }, + { + MethodName: "GetAverageProductReviewScore", + Handler: _ProductReviewService_GetAverageProductReviewScore_Handler, + }, + { + MethodName: "AskProductAIAssistant", + Handler: _ProductReviewService_AskProductAIAssistant_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + ShippingService_GetQuote_FullMethodName = "/oteldemo.ShippingService/GetQuote" + ShippingService_ShipOrder_FullMethodName = "/oteldemo.ShippingService/ShipOrder" +) + +// ShippingServiceClient is the client API for ShippingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ShippingServiceClient interface { + GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error) + ShipOrder(ctx context.Context, in *ShipOrderRequest, opts ...grpc.CallOption) (*ShipOrderResponse, error) +} + +type shippingServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewShippingServiceClient(cc grpc.ClientConnInterface) ShippingServiceClient { + return &shippingServiceClient{cc} +} + +func (c *shippingServiceClient) GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetQuoteResponse) + err := c.cc.Invoke(ctx, ShippingService_GetQuote_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *shippingServiceClient) ShipOrder(ctx context.Context, in *ShipOrderRequest, opts ...grpc.CallOption) (*ShipOrderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ShipOrderResponse) + err := c.cc.Invoke(ctx, ShippingService_ShipOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ShippingServiceServer is the server API for ShippingService service. +// All implementations must embed UnimplementedShippingServiceServer +// for forward compatibility. +type ShippingServiceServer interface { + GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error) + ShipOrder(context.Context, *ShipOrderRequest) (*ShipOrderResponse, error) + mustEmbedUnimplementedShippingServiceServer() +} + +// UnimplementedShippingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedShippingServiceServer struct{} + +func (UnimplementedShippingServiceServer) GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQuote not implemented") +} +func (UnimplementedShippingServiceServer) ShipOrder(context.Context, *ShipOrderRequest) (*ShipOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShipOrder not implemented") +} +func (UnimplementedShippingServiceServer) mustEmbedUnimplementedShippingServiceServer() {} +func (UnimplementedShippingServiceServer) testEmbeddedByValue() {} + +// UnsafeShippingServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ShippingServiceServer will +// result in compilation errors. +type UnsafeShippingServiceServer interface { + mustEmbedUnimplementedShippingServiceServer() +} + +func RegisterShippingServiceServer(s grpc.ServiceRegistrar, srv ShippingServiceServer) { + // If the following call pancis, it indicates UnimplementedShippingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ShippingService_ServiceDesc, srv) +} + +func _ShippingService_GetQuote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetQuoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ShippingServiceServer).GetQuote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ShippingService_GetQuote_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ShippingServiceServer).GetQuote(ctx, req.(*GetQuoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ShippingService_ShipOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ShipOrderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ShippingServiceServer).ShipOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ShippingService_ShipOrder_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ShippingServiceServer).ShipOrder(ctx, req.(*ShipOrderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ShippingService_ServiceDesc is the grpc.ServiceDesc for ShippingService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ShippingService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.ShippingService", + HandlerType: (*ShippingServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetQuote", + Handler: _ShippingService_GetQuote_Handler, + }, + { + MethodName: "ShipOrder", + Handler: _ShippingService_ShipOrder_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + CurrencyService_GetSupportedCurrencies_FullMethodName = "/oteldemo.CurrencyService/GetSupportedCurrencies" + CurrencyService_Convert_FullMethodName = "/oteldemo.CurrencyService/Convert" +) + +// CurrencyServiceClient is the client API for CurrencyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CurrencyServiceClient interface { + GetSupportedCurrencies(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedCurrenciesResponse, error) + Convert(ctx context.Context, in *CurrencyConversionRequest, opts ...grpc.CallOption) (*Money, error) +} + +type currencyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCurrencyServiceClient(cc grpc.ClientConnInterface) CurrencyServiceClient { + return ¤cyServiceClient{cc} +} + +func (c *currencyServiceClient) GetSupportedCurrencies(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedCurrenciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetSupportedCurrenciesResponse) + err := c.cc.Invoke(ctx, CurrencyService_GetSupportedCurrencies_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *currencyServiceClient) Convert(ctx context.Context, in *CurrencyConversionRequest, opts ...grpc.CallOption) (*Money, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Money) + err := c.cc.Invoke(ctx, CurrencyService_Convert_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CurrencyServiceServer is the server API for CurrencyService service. +// All implementations must embed UnimplementedCurrencyServiceServer +// for forward compatibility. +type CurrencyServiceServer interface { + GetSupportedCurrencies(context.Context, *Empty) (*GetSupportedCurrenciesResponse, error) + Convert(context.Context, *CurrencyConversionRequest) (*Money, error) + mustEmbedUnimplementedCurrencyServiceServer() +} + +// UnimplementedCurrencyServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCurrencyServiceServer struct{} + +func (UnimplementedCurrencyServiceServer) GetSupportedCurrencies(context.Context, *Empty) (*GetSupportedCurrenciesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSupportedCurrencies not implemented") +} +func (UnimplementedCurrencyServiceServer) Convert(context.Context, *CurrencyConversionRequest) (*Money, error) { + return nil, status.Errorf(codes.Unimplemented, "method Convert not implemented") +} +func (UnimplementedCurrencyServiceServer) mustEmbedUnimplementedCurrencyServiceServer() {} +func (UnimplementedCurrencyServiceServer) testEmbeddedByValue() {} + +// UnsafeCurrencyServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CurrencyServiceServer will +// result in compilation errors. +type UnsafeCurrencyServiceServer interface { + mustEmbedUnimplementedCurrencyServiceServer() +} + +func RegisterCurrencyServiceServer(s grpc.ServiceRegistrar, srv CurrencyServiceServer) { + // If the following call pancis, it indicates UnimplementedCurrencyServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&CurrencyService_ServiceDesc, srv) +} + +func _CurrencyService_GetSupportedCurrencies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CurrencyServiceServer).GetSupportedCurrencies(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CurrencyService_GetSupportedCurrencies_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CurrencyServiceServer).GetSupportedCurrencies(ctx, req.(*Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _CurrencyService_Convert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CurrencyConversionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CurrencyServiceServer).Convert(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CurrencyService_Convert_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CurrencyServiceServer).Convert(ctx, req.(*CurrencyConversionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CurrencyService_ServiceDesc is the grpc.ServiceDesc for CurrencyService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CurrencyService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.CurrencyService", + HandlerType: (*CurrencyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetSupportedCurrencies", + Handler: _CurrencyService_GetSupportedCurrencies_Handler, + }, + { + MethodName: "Convert", + Handler: _CurrencyService_Convert_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + PaymentService_Charge_FullMethodName = "/oteldemo.PaymentService/Charge" +) + +// PaymentServiceClient is the client API for PaymentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PaymentServiceClient interface { + Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error) +} + +type paymentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPaymentServiceClient(cc grpc.ClientConnInterface) PaymentServiceClient { + return &paymentServiceClient{cc} +} + +func (c *paymentServiceClient) Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ChargeResponse) + err := c.cc.Invoke(ctx, PaymentService_Charge_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PaymentServiceServer is the server API for PaymentService service. +// All implementations must embed UnimplementedPaymentServiceServer +// for forward compatibility. +type PaymentServiceServer interface { + Charge(context.Context, *ChargeRequest) (*ChargeResponse, error) + mustEmbedUnimplementedPaymentServiceServer() +} + +// UnimplementedPaymentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPaymentServiceServer struct{} + +func (UnimplementedPaymentServiceServer) Charge(context.Context, *ChargeRequest) (*ChargeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Charge not implemented") +} +func (UnimplementedPaymentServiceServer) mustEmbedUnimplementedPaymentServiceServer() {} +func (UnimplementedPaymentServiceServer) testEmbeddedByValue() {} + +// UnsafePaymentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PaymentServiceServer will +// result in compilation errors. +type UnsafePaymentServiceServer interface { + mustEmbedUnimplementedPaymentServiceServer() +} + +func RegisterPaymentServiceServer(s grpc.ServiceRegistrar, srv PaymentServiceServer) { + // If the following call pancis, it indicates UnimplementedPaymentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PaymentService_ServiceDesc, srv) +} + +func _PaymentService_Charge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChargeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PaymentServiceServer).Charge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PaymentService_Charge_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PaymentServiceServer).Charge(ctx, req.(*ChargeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PaymentService_ServiceDesc is the grpc.ServiceDesc for PaymentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PaymentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.PaymentService", + HandlerType: (*PaymentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Charge", + Handler: _PaymentService_Charge_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + EmailService_SendOrderConfirmation_FullMethodName = "/oteldemo.EmailService/SendOrderConfirmation" +) + +// EmailServiceClient is the client API for EmailService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type EmailServiceClient interface { + SendOrderConfirmation(ctx context.Context, in *SendOrderConfirmationRequest, opts ...grpc.CallOption) (*Empty, error) +} + +type emailServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewEmailServiceClient(cc grpc.ClientConnInterface) EmailServiceClient { + return &emailServiceClient{cc} +} + +func (c *emailServiceClient) SendOrderConfirmation(ctx context.Context, in *SendOrderConfirmationRequest, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Empty) + err := c.cc.Invoke(ctx, EmailService_SendOrderConfirmation_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// EmailServiceServer is the server API for EmailService service. +// All implementations must embed UnimplementedEmailServiceServer +// for forward compatibility. +type EmailServiceServer interface { + SendOrderConfirmation(context.Context, *SendOrderConfirmationRequest) (*Empty, error) + mustEmbedUnimplementedEmailServiceServer() +} + +// UnimplementedEmailServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEmailServiceServer struct{} + +func (UnimplementedEmailServiceServer) SendOrderConfirmation(context.Context, *SendOrderConfirmationRequest) (*Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendOrderConfirmation not implemented") +} +func (UnimplementedEmailServiceServer) mustEmbedUnimplementedEmailServiceServer() {} +func (UnimplementedEmailServiceServer) testEmbeddedByValue() {} + +// UnsafeEmailServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to EmailServiceServer will +// result in compilation errors. +type UnsafeEmailServiceServer interface { + mustEmbedUnimplementedEmailServiceServer() +} + +func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer) { + // If the following call pancis, it indicates UnimplementedEmailServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&EmailService_ServiceDesc, srv) +} + +func _EmailService_SendOrderConfirmation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendOrderConfirmationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EmailServiceServer).SendOrderConfirmation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EmailService_SendOrderConfirmation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EmailServiceServer).SendOrderConfirmation(ctx, req.(*SendOrderConfirmationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// EmailService_ServiceDesc is the grpc.ServiceDesc for EmailService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var EmailService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.EmailService", + HandlerType: (*EmailServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SendOrderConfirmation", + Handler: _EmailService_SendOrderConfirmation_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + CheckoutService_PlaceOrder_FullMethodName = "/oteldemo.CheckoutService/PlaceOrder" +) + +// CheckoutServiceClient is the client API for CheckoutService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CheckoutServiceClient interface { + PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error) +} + +type checkoutServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewCheckoutServiceClient(cc grpc.ClientConnInterface) CheckoutServiceClient { + return &checkoutServiceClient{cc} +} + +func (c *checkoutServiceClient) PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PlaceOrderResponse) + err := c.cc.Invoke(ctx, CheckoutService_PlaceOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CheckoutServiceServer is the server API for CheckoutService service. +// All implementations must embed UnimplementedCheckoutServiceServer +// for forward compatibility. +type CheckoutServiceServer interface { + PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error) + mustEmbedUnimplementedCheckoutServiceServer() +} + +// UnimplementedCheckoutServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCheckoutServiceServer struct{} + +func (UnimplementedCheckoutServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PlaceOrder not implemented") +} +func (UnimplementedCheckoutServiceServer) mustEmbedUnimplementedCheckoutServiceServer() {} +func (UnimplementedCheckoutServiceServer) testEmbeddedByValue() {} + +// UnsafeCheckoutServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CheckoutServiceServer will +// result in compilation errors. +type UnsafeCheckoutServiceServer interface { + mustEmbedUnimplementedCheckoutServiceServer() +} + +func RegisterCheckoutServiceServer(s grpc.ServiceRegistrar, srv CheckoutServiceServer) { + // If the following call pancis, it indicates UnimplementedCheckoutServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&CheckoutService_ServiceDesc, srv) +} + +func _CheckoutService_PlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PlaceOrderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CheckoutServiceServer).PlaceOrder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: CheckoutService_PlaceOrder_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CheckoutServiceServer).PlaceOrder(ctx, req.(*PlaceOrderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CheckoutService_ServiceDesc is the grpc.ServiceDesc for CheckoutService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CheckoutService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.CheckoutService", + HandlerType: (*CheckoutServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PlaceOrder", + Handler: _CheckoutService_PlaceOrder_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + AdService_GetAds_FullMethodName = "/oteldemo.AdService/GetAds" +) + +// AdServiceClient is the client API for AdService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AdServiceClient interface { + GetAds(ctx context.Context, in *AdRequest, opts ...grpc.CallOption) (*AdResponse, error) +} + +type adServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAdServiceClient(cc grpc.ClientConnInterface) AdServiceClient { + return &adServiceClient{cc} +} + +func (c *adServiceClient) GetAds(ctx context.Context, in *AdRequest, opts ...grpc.CallOption) (*AdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AdResponse) + err := c.cc.Invoke(ctx, AdService_GetAds_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdServiceServer is the server API for AdService service. +// All implementations must embed UnimplementedAdServiceServer +// for forward compatibility. +type AdServiceServer interface { + GetAds(context.Context, *AdRequest) (*AdResponse, error) + mustEmbedUnimplementedAdServiceServer() +} + +// UnimplementedAdServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAdServiceServer struct{} + +func (UnimplementedAdServiceServer) GetAds(context.Context, *AdRequest) (*AdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAds not implemented") +} +func (UnimplementedAdServiceServer) mustEmbedUnimplementedAdServiceServer() {} +func (UnimplementedAdServiceServer) testEmbeddedByValue() {} + +// UnsafeAdServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdServiceServer will +// result in compilation errors. +type UnsafeAdServiceServer interface { + mustEmbedUnimplementedAdServiceServer() +} + +func RegisterAdServiceServer(s grpc.ServiceRegistrar, srv AdServiceServer) { + // If the following call pancis, it indicates UnimplementedAdServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&AdService_ServiceDesc, srv) +} + +func _AdService_GetAds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdServiceServer).GetAds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdService_GetAds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdServiceServer).GetAds(ctx, req.(*AdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AdService_ServiceDesc is the grpc.ServiceDesc for AdService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AdService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.AdService", + HandlerType: (*AdServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAds", + Handler: _AdService_GetAds_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} + +const ( + FeatureFlagService_GetFlag_FullMethodName = "/oteldemo.FeatureFlagService/GetFlag" + FeatureFlagService_CreateFlag_FullMethodName = "/oteldemo.FeatureFlagService/CreateFlag" + FeatureFlagService_UpdateFlag_FullMethodName = "/oteldemo.FeatureFlagService/UpdateFlag" + FeatureFlagService_ListFlags_FullMethodName = "/oteldemo.FeatureFlagService/ListFlags" + FeatureFlagService_DeleteFlag_FullMethodName = "/oteldemo.FeatureFlagService/DeleteFlag" +) + +// FeatureFlagServiceClient is the client API for FeatureFlagService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type FeatureFlagServiceClient interface { + GetFlag(ctx context.Context, in *GetFlagRequest, opts ...grpc.CallOption) (*GetFlagResponse, error) + CreateFlag(ctx context.Context, in *CreateFlagRequest, opts ...grpc.CallOption) (*CreateFlagResponse, error) + UpdateFlag(ctx context.Context, in *UpdateFlagRequest, opts ...grpc.CallOption) (*UpdateFlagResponse, error) + ListFlags(ctx context.Context, in *ListFlagsRequest, opts ...grpc.CallOption) (*ListFlagsResponse, error) + DeleteFlag(ctx context.Context, in *DeleteFlagRequest, opts ...grpc.CallOption) (*DeleteFlagResponse, error) +} + +type featureFlagServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewFeatureFlagServiceClient(cc grpc.ClientConnInterface) FeatureFlagServiceClient { + return &featureFlagServiceClient{cc} +} + +func (c *featureFlagServiceClient) GetFlag(ctx context.Context, in *GetFlagRequest, opts ...grpc.CallOption) (*GetFlagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetFlagResponse) + err := c.cc.Invoke(ctx, FeatureFlagService_GetFlag_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *featureFlagServiceClient) CreateFlag(ctx context.Context, in *CreateFlagRequest, opts ...grpc.CallOption) (*CreateFlagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateFlagResponse) + err := c.cc.Invoke(ctx, FeatureFlagService_CreateFlag_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *featureFlagServiceClient) UpdateFlag(ctx context.Context, in *UpdateFlagRequest, opts ...grpc.CallOption) (*UpdateFlagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateFlagResponse) + err := c.cc.Invoke(ctx, FeatureFlagService_UpdateFlag_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *featureFlagServiceClient) ListFlags(ctx context.Context, in *ListFlagsRequest, opts ...grpc.CallOption) (*ListFlagsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListFlagsResponse) + err := c.cc.Invoke(ctx, FeatureFlagService_ListFlags_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *featureFlagServiceClient) DeleteFlag(ctx context.Context, in *DeleteFlagRequest, opts ...grpc.CallOption) (*DeleteFlagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteFlagResponse) + err := c.cc.Invoke(ctx, FeatureFlagService_DeleteFlag_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FeatureFlagServiceServer is the server API for FeatureFlagService service. +// All implementations must embed UnimplementedFeatureFlagServiceServer +// for forward compatibility. +type FeatureFlagServiceServer interface { + GetFlag(context.Context, *GetFlagRequest) (*GetFlagResponse, error) + CreateFlag(context.Context, *CreateFlagRequest) (*CreateFlagResponse, error) + UpdateFlag(context.Context, *UpdateFlagRequest) (*UpdateFlagResponse, error) + ListFlags(context.Context, *ListFlagsRequest) (*ListFlagsResponse, error) + DeleteFlag(context.Context, *DeleteFlagRequest) (*DeleteFlagResponse, error) + mustEmbedUnimplementedFeatureFlagServiceServer() +} + +// UnimplementedFeatureFlagServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFeatureFlagServiceServer struct{} + +func (UnimplementedFeatureFlagServiceServer) GetFlag(context.Context, *GetFlagRequest) (*GetFlagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFlag not implemented") +} +func (UnimplementedFeatureFlagServiceServer) CreateFlag(context.Context, *CreateFlagRequest) (*CreateFlagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateFlag not implemented") +} +func (UnimplementedFeatureFlagServiceServer) UpdateFlag(context.Context, *UpdateFlagRequest) (*UpdateFlagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateFlag not implemented") +} +func (UnimplementedFeatureFlagServiceServer) ListFlags(context.Context, *ListFlagsRequest) (*ListFlagsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListFlags not implemented") +} +func (UnimplementedFeatureFlagServiceServer) DeleteFlag(context.Context, *DeleteFlagRequest) (*DeleteFlagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteFlag not implemented") +} +func (UnimplementedFeatureFlagServiceServer) mustEmbedUnimplementedFeatureFlagServiceServer() {} +func (UnimplementedFeatureFlagServiceServer) testEmbeddedByValue() {} + +// UnsafeFeatureFlagServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to FeatureFlagServiceServer will +// result in compilation errors. +type UnsafeFeatureFlagServiceServer interface { + mustEmbedUnimplementedFeatureFlagServiceServer() +} + +func RegisterFeatureFlagServiceServer(s grpc.ServiceRegistrar, srv FeatureFlagServiceServer) { + // If the following call pancis, it indicates UnimplementedFeatureFlagServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&FeatureFlagService_ServiceDesc, srv) +} + +func _FeatureFlagService_GetFlag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFlagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FeatureFlagServiceServer).GetFlag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FeatureFlagService_GetFlag_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FeatureFlagServiceServer).GetFlag(ctx, req.(*GetFlagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FeatureFlagService_CreateFlag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateFlagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FeatureFlagServiceServer).CreateFlag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FeatureFlagService_CreateFlag_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FeatureFlagServiceServer).CreateFlag(ctx, req.(*CreateFlagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FeatureFlagService_UpdateFlag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateFlagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FeatureFlagServiceServer).UpdateFlag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FeatureFlagService_UpdateFlag_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FeatureFlagServiceServer).UpdateFlag(ctx, req.(*UpdateFlagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FeatureFlagService_ListFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListFlagsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FeatureFlagServiceServer).ListFlags(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FeatureFlagService_ListFlags_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FeatureFlagServiceServer).ListFlags(ctx, req.(*ListFlagsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FeatureFlagService_DeleteFlag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteFlagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FeatureFlagServiceServer).DeleteFlag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FeatureFlagService_DeleteFlag_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FeatureFlagServiceServer).DeleteFlag(ctx, req.(*DeleteFlagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// FeatureFlagService_ServiceDesc is the grpc.ServiceDesc for FeatureFlagService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var FeatureFlagService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "oteldemo.FeatureFlagService", + HandlerType: (*FeatureFlagServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetFlag", + Handler: _FeatureFlagService_GetFlag_Handler, + }, + { + MethodName: "CreateFlag", + Handler: _FeatureFlagService_CreateFlag_Handler, + }, + { + MethodName: "UpdateFlag", + Handler: _FeatureFlagService_UpdateFlag_Handler, + }, + { + MethodName: "ListFlags", + Handler: _FeatureFlagService_ListFlags_Handler, + }, + { + MethodName: "DeleteFlag", + Handler: _FeatureFlagService_DeleteFlag_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "demo.proto", +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.mod b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..4126a6afd70c17b43a6e123694528481b42b8637 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.mod @@ -0,0 +1,87 @@ +module github.com/open-telemetry/opentelemetry-demo/src/checkout + +go 1.24.2 + +require ( + github.com/IBM/sarama v1.46.3 + github.com/google/uuid v1.6.0 + github.com/open-feature/go-sdk v1.17.1 + github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 + github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 + go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 + go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 + go.opentelemetry.io/otel v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 + go.opentelemetry.io/otel/log v0.15.0 + go.opentelemetry.io/otel/sdk v1.39.0 + go.opentelemetry.io/otel/sdk/log v0.15.0 + go.opentelemetry.io/otel/sdk/metric v1.39.0 + go.opentelemetry.io/otel/trace v1.39.0 + google.golang.org/grpc v1.78.0 + google.golang.org/protobuf v1.36.11 +) + +require ( + buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 // indirect + buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 // indirect + buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 // indirect + connectrpc.com/connect v1.18.1 // indirect + connectrpc.com/otelconnect v0.7.2 // indirect + github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/diegoholiveira/jsonlogic/v3 v3.8.4 // indirect + github.com/eapache/go-resiliency v1.7.0 // indirect + github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect + github.com/eapache/queue v1.1.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-memdb v1.3.5 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect + github.com/jcmturner/aescts/v2 v2.0.0 // indirect + github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect + github.com/jcmturner/gofork v1.7.6 // indirect + github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect + github.com/jcmturner/rpc/v2 v2.0.3 // indirect + github.com/klauspost/compress v1.18.1 // indirect + github.com/open-feature/flagd-schemas v0.2.13 // indirect + github.com/open-feature/flagd/core v0.13.2 // indirect + github.com/pierrec/lz4/v4 v4.1.22 // indirect + github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 // indirect + github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect + github.com/twmb/murmur3 v1.1.8 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 // indirect + go.opentelemetry.io/otel/metric v1.39.0 // indirect + go.opentelemetry.io/proto/otlp v1.9.0 // indirect + go.uber.org/mock v0.6.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.27.0 // indirect + golang.org/x/crypto v0.45.0 // indirect + golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect + golang.org/x/mod v0.29.0 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/text v0.31.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +tool ( + google.golang.org/grpc/cmd/protoc-gen-go-grpc + google.golang.org/protobuf/cmd/protoc-gen-go +) diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.sum b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.sum new file mode 100644 index 0000000000000000000000000000000000000000..6754ee461d4ba9bf8729c805273d66c74c606a54 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/go.sum @@ -0,0 +1,226 @@ +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 h1:qnXaezo9s36RjysUq6omZlU3rjQNykMpqCXfCL/CH1Q= +buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1/go.mod h1:/9fZNSPUzUwGRzDAjyasa5NC+YFgQthby355ZVuKS2Q= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 h1:TZ+7u106u7C7lgNctxG03ABliF46eLhcIZG5Mdo67/E= +buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2/go.mod h1:4u0WLwfkLob3dC/F8qNctqhtiEv2Mlyi8YgCDDzgYDs= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 h1:LdC4xAuUaNdduzQr5VvhjsgrCfpW9IYxYsjyCF0ANs0= +buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1/go.mod h1:cCQ49+ttXE2MZ/ciRNb0tCG+F3kj2ZVbP+0/psbhrLY= +connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw= +connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= +connectrpc.com/otelconnect v0.7.2 h1:WlnwFzaW64dN06JXU+hREPUGeEzpz3Acz2ACOmN8cMI= +connectrpc.com/otelconnect v0.7.2/go.mod h1:JS7XUKfuJs2adhCnXhNHPHLz6oAaZniCJdSF00OZSew= +github.com/IBM/sarama v1.46.3 h1:njRsX6jNlnR+ClJ8XmkO+CM4unbrNr/2vB5KK6UA+IE= +github.com/IBM/sarama v1.46.3/go.mod h1:GTUYiF9DMOZVe3FwyGT+dtSPceGFIgA+sPc5u6CBwko= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df h1:GSoSVRLoBaFpOOds6QyY1L8AX7uoY+Ln3BHc22W40X0= +github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df/go.mod h1:hiVxq5OP2bUGBRNS3Z/bt/reCLFNbdcST6gISi1fiOM= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4 h1:IVVU/VLz2hn10ImbmibjiUkdVsSFIB1vfDaOVsaipH4= +github.com/diegoholiveira/jsonlogic/v3 v3.8.4/go.mod h1:OYRb6FSTVmMM+MNQ7ElmMsczyNSepw+OU4Z8emDSi4w= +github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI= +github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/eapache/go-resiliency v1.7.0 h1:n3NRTnBn5N0Cbi/IeOHuQn9s2UwVUH7Ga0ZWcP+9JTA= +github.com/eapache/go-resiliency v1.7.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= +github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= +github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 h1:NmZ1PKzSTQbuGHw9DGPFomqkkLWMC+vZCkfs+FHv1Vg= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3/go.mod h1:zQrxl1YP88HQlA6i9c63DSVPFklWpGX4OWAc9bFuaH4= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-memdb v1.3.5 h1:b3taDMxCBCBVgyRrS1AZVHO14ubMYZB++QpNhBg+Nyo= +github.com/hashicorp/go-memdb v1.3.5/go.mod h1:8IVKKBkVe+fxFgdFOYxzQQNjz+sWCyHCdIC/+5+Vy1Y= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= +github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= +github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= +github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= +github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= +github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= +github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o= +github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= +github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= +github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= +github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= +github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= +github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co= +github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/open-feature/flagd-schemas v0.2.13 h1:LzoyQfirfpR8cxI4PKnoFRtpwPjpC/cOO8N0n8dpbRc= +github.com/open-feature/flagd-schemas v0.2.13/go.mod h1:C0jnJ4C3j2LzGuqKgLDdTsdfKEWQp6sOHZyxu3QohFU= +github.com/open-feature/flagd/core v0.13.2 h1:s1WHrAYmxX65iG/9UX+RVT4VaDBqoGui6wHKLYmmVEk= +github.com/open-feature/flagd/core v0.13.2/go.mod h1:DIt7X93nGyVcwNuPlB9W/cSw9hdpA/42bw26BzctfVw= +github.com/open-feature/go-sdk v1.17.1 h1:1AwQ2NppOv69sfGiRH9pWfsMVLembvkhQ3hdk9eAsTY= +github.com/open-feature/go-sdk v1.17.1/go.mod h1:+2UML7oZADJa0Swg27d6pu5kLKeCpZM2X2hWcGQutJ0= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6 h1:4UX24wgUa+zZkGeecn+884c3VHrXt9oca/krSFAjXNY= +github.com/open-feature/go-sdk-contrib/hooks/open-telemetry v0.3.6/go.mod h1:TftRJnT+7hyYDLBhuDUjDjabmBgOZYspYU9HUM9K3D0= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2 h1:BGQP+U9MY8oIhNfmW7fCB0sWB9R+c0UWtXV25zs0kNY= +github.com/open-feature/go-sdk-contrib/providers/flagd v0.3.2/go.mod h1:/e0lsAID13rO+7X3Ij1iR0LiWBmliMI1blh39WPysXY= +github.com/pierrec/lz4/v4 v4.1.22 h1:cKFw6uJDK+/gfw5BcDL0JL5aBsAFdsIT18eRtLj7VIU= +github.com/pierrec/lz4/v4 v4.1.22/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 h1:bsUq1dX0N8AOIL7EB/X911+m4EHsnWEHeJ0c+3TTBrg= +github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/twmb/murmur3 v1.1.8 h1:8Yt9taO/WN3l08xErzjeschgZU2QSrwm1kclYq+0aRg= +github.com/twmb/murmur3 v1.1.8/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0 h1:eypSOd+0txRKCXPNyqLPsbSfA0jULgJcGmSAdFAnrCM= +go.opentelemetry.io/contrib/bridges/otelslog v0.14.0/go.mod h1:CRGvIBL/aAxpQU34ZxyQVFlovVcp67s4cAmQu8Jh9mc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0/go.mod h1:habDz3tEWiFANTo6oUE99EmaFUrCNYAAg3wiVmusm70= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 h1:ssfIgGNANqpVFCndZvcuyKbl0g+UAVcbBcqGkG28H0Y= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0/go.mod h1:GQ/474YrbE4Jx8gZ4q5I4hrhUzM6UPzyrqJYV2AqPoQ= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0 h1:/+/+UjlXjFcdDlXxKL1PouzX8Z2Vl0OxolRKeBEgYDw= +go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0/go.mod h1:Ldm/PDuzY2DP7IypudopCR3OCOW42NJlN9+mNEroevo= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0 h1:W+m0g+/6v3pa5PgVf2xoFMi5YtNR06WtS7ve5pcvLtM= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.15.0/go.mod h1:JM31r0GGZ/GU94mX8hN4D8v6e40aFlUECSQ48HaLgHM= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 h1:cEf8jF6WbuGQWUVcqgyWtTR0kOOAWY1DYZ+UhvdmQPw= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0/go.mod h1:k1lzV5n5U3HkGvTCJHraTAGJ7MqsgL1wrGwTj1Isfiw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 h1:f0cb2XPmrqn4XMy9PNliTgRKJgS5WcL/u0/WRYGz4t0= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0/go.mod h1:vnakAaFckOMiMtOIhFI2MNH4FYrZzXCYxmb1LlhoGz8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 h1:in9O8ESIOlwJAEGTkkf34DesGRAc/Pn8qJ7k3r/42LM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0/go.mod h1:Rp0EXBm5tfnv0WL+ARyO/PHBEaEAT8UUHQ6AGJcSq6c= +go.opentelemetry.io/otel/log v0.15.0 h1:0VqVnc3MgyYd7QqNVIldC3dsLFKgazR6P3P3+ypkyDY= +go.opentelemetry.io/otel/log v0.15.0/go.mod h1:9c/G1zbyZfgu1HmQD7Qj84QMmwTp2QCQsZH1aeoWDE4= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/log v0.15.0 h1:WgMEHOUt5gjJE93yqfqJOkRflApNif84kxoHWS9VVHE= +go.opentelemetry.io/otel/sdk/log v0.15.0/go.mod h1:qDC/FlKQCXfH5hokGsNg9aUBGMJQsrUyeOiW5u+dKBQ= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0 h1:Ijbtz+JKXl8T2MngiwqBlPaHqc4YCaP/i13Qrow6gAM= +go.opentelemetry.io/otel/sdk/log/logtest v0.14.0/go.mod h1:dCU8aEL6q+L9cYTqcVOk8rM9Tp8WdnHOPLiBgp0SGOA= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +go.opentelemetry.io/proto/otlp v1.9.0 h1:l706jCMITVouPOqEnii2fIAuO3IVGBRPV5ICjceRb/A= +go.opentelemetry.io/proto/otlp v1.9.0/go.mod h1:xE+Cx5E/eEHw+ISFkwPLwCZefwVjY+pqKg1qcK03+/4= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= +go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= +golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= +golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= +golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= +golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/kafka/producer.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/kafka/producer.go new file mode 100644 index 0000000000000000000000000000000000000000..3bd9cc6ef2a5ac9827faeb4253b7742826019fc1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/kafka/producer.go @@ -0,0 +1,61 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package kafka + +import ( + "fmt" + "log/slog" + + "github.com/IBM/sarama" +) + +var ( + Topic = "orders" + ProtocolVersion = sarama.V3_0_0_0 +) + +type saramaLogger struct { + logger *slog.Logger +} + +func (l *saramaLogger) Printf(format string, v ...interface{}) { + l.logger.Info(fmt.Sprintf(format, v...)) +} +func (l *saramaLogger) Println(v ...interface{}) { + l.logger.Info(fmt.Sprint(v...)) +} +func (l *saramaLogger) Print(v ...interface{}) { + l.logger.Info(fmt.Sprint(v...)) +} + +func CreateKafkaProducer(brokers []string, logger *slog.Logger) (sarama.AsyncProducer, error) { + // Set the logger for sarama to use. + sarama.Logger = &saramaLogger{logger: logger} + + saramaConfig := sarama.NewConfig() + saramaConfig.Producer.Return.Successes = true + saramaConfig.Producer.Return.Errors = true + + // Sarama has an issue in a single broker kafka if the kafka broker is restarted. + // This setting is to prevent that issue from manifesting itself, but may swallow failed messages. + saramaConfig.Producer.RequiredAcks = sarama.NoResponse + + saramaConfig.Version = ProtocolVersion + + // So we can know the partition and offset of messages. + saramaConfig.Producer.Return.Successes = true + + producer, err := sarama.NewAsyncProducer(brokers, saramaConfig) + if err != nil { + return nil, err + } + + // We will log to STDOUT if we're not able to produce messages. + go func() { + for err := range producer.Errors() { + logger.Error(fmt.Sprintf("Failed to write message: %+v", err)) + + } + }() + return producer, nil +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/main.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/main.go new file mode 100644 index 0000000000000000000000000000000000000000..b9955484cd4375867d80460aeac5cdefc30e6fdd --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/main.go @@ -0,0 +1,729 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package main + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "log/slog" + "net" + "net/http" + "os" + "os/signal" + "strconv" + "sync" + "syscall" + "time" + + "go.opentelemetry.io/otel/attribute" + "go.opentelemetry.io/otel/log/global" + semconv "go.opentelemetry.io/otel/semconv/v1.24.0" + "go.opentelemetry.io/otel/trace" + + "github.com/IBM/sarama" + "github.com/google/uuid" + otelhooks "github.com/open-feature/go-sdk-contrib/hooks/open-telemetry/pkg" + flagd "github.com/open-feature/go-sdk-contrib/providers/flagd/pkg" + "github.com/open-feature/go-sdk/openfeature" + + "go.opentelemetry.io/contrib/bridges/otelslog" + "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" + "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" + "go.opentelemetry.io/contrib/instrumentation/runtime" + "go.opentelemetry.io/otel" + otelcodes "go.opentelemetry.io/otel/codes" + "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc" + "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" + "go.opentelemetry.io/otel/propagation" + + sdklog "go.opentelemetry.io/otel/sdk/log" + sdkmetric "go.opentelemetry.io/otel/sdk/metric" + sdkresource "go.opentelemetry.io/otel/sdk/resource" + sdktrace "go.opentelemetry.io/otel/sdk/trace" + + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/health" + healthpb "google.golang.org/grpc/health/grpc_health_v1" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + + pb "github.com/open-telemetry/opentelemetry-demo/src/checkout/genproto/oteldemo" + "github.com/open-telemetry/opentelemetry-demo/src/checkout/kafka" + "github.com/open-telemetry/opentelemetry-demo/src/checkout/money" +) + +//go:generate go install google.golang.org/protobuf/cmd/protoc-gen-go +//go:generate go install google.golang.org/grpc/cmd/protoc-gen-go-grpc +//go:generate protoc --go_out=./ --go-grpc_out=./ --proto_path=../../pb ../../pb/demo.proto + +var logger *slog.Logger +var tracer trace.Tracer +var resource *sdkresource.Resource +var initResourcesOnce sync.Once + +func initResource() *sdkresource.Resource { + initResourcesOnce.Do(func() { + extraResources, _ := sdkresource.New( + context.Background(), + sdkresource.WithOS(), + sdkresource.WithProcess(), + sdkresource.WithContainer(), + sdkresource.WithHost(), + ) + resource, _ = sdkresource.Merge( + sdkresource.Default(), + extraResources, + ) + }) + return resource +} + +func initTracerProvider() *sdktrace.TracerProvider { + ctx := context.Background() + + exporter, err := otlptracegrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("new otlp trace grpc exporter failed: %v", err)) + } + tp := sdktrace.NewTracerProvider( + sdktrace.WithBatcher(exporter), + sdktrace.WithResource(initResource()), + ) + otel.SetTracerProvider(tp) + otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{})) + return tp +} + +func initMeterProvider() *sdkmetric.MeterProvider { + ctx := context.Background() + + exporter, err := otlpmetricgrpc.New(ctx) + if err != nil { + logger.Error(fmt.Sprintf("new otlp metric grpc exporter failed: %v", err)) + } + + mp := sdkmetric.NewMeterProvider( + sdkmetric.WithReader(sdkmetric.NewPeriodicReader(exporter)), + sdkmetric.WithResource(initResource()), + ) + otel.SetMeterProvider(mp) + return mp +} + +func initLoggerProvider() *sdklog.LoggerProvider { + ctx := context.Background() + + logExporter, err := otlploggrpc.New(ctx) + if err != nil { + return nil + } + + loggerProvider := sdklog.NewLoggerProvider( + sdklog.WithProcessor(sdklog.NewBatchProcessor(logExporter)), + ) + global.SetLoggerProvider(loggerProvider) + + return loggerProvider +} + +type checkout struct { + productCatalogSvcAddr string + cartSvcAddr string + currencySvcAddr string + shippingSvcAddr string + emailSvcAddr string + paymentSvcAddr string + kafkaBrokerSvcAddr string + pb.UnimplementedCheckoutServiceServer + KafkaProducerClient sarama.AsyncProducer + shippingSvcClient pb.ShippingServiceClient + productCatalogSvcClient pb.ProductCatalogServiceClient + cartSvcClient pb.CartServiceClient + currencySvcClient pb.CurrencyServiceClient + emailSvcClient pb.EmailServiceClient + paymentSvcClient pb.PaymentServiceClient +} + +func main() { + var port string + mustMapEnv(&port, "CHECKOUT_PORT") + + tp := initTracerProvider() + defer func() { + if err := tp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down tracer provider: %v", err)) + } + }() + + mp := initMeterProvider() + defer func() { + if err := mp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down meter provider: %v", err)) + } + }() + + lp := initLoggerProvider() + defer func() { + if err := lp.Shutdown(context.Background()); err != nil { + logger.Error(fmt.Sprintf("Error shutting down logger provider: %v", err)) + } + }() + + // this *must* be called after the logger provider is initialized + // otherwise the Sarama producer in kafka/producer.go will not be + // able to log properly + logger = otelslog.NewLogger("checkout") + slog.SetDefault(logger) + + err := runtime.Start(runtime.WithMinimumReadMemStatsInterval(time.Second)) + if err != nil { + logger.Error((err.Error())) + } + + provider, err := flagd.NewProvider() + if err != nil { + logger.Error(fmt.Sprintf("Error creating flagd provider: %v", err)) + } + + openfeature.SetProvider(provider) + openfeature.AddHooks(otelhooks.NewTracesHook()) + + tracer = tp.Tracer("checkout") + + svc := new(checkout) + + mustMapEnv(&svc.shippingSvcAddr, "SHIPPING_ADDR") + c := mustCreateClient(svc.shippingSvcAddr) + svc.shippingSvcClient = pb.NewShippingServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.productCatalogSvcAddr, "PRODUCT_CATALOG_ADDR") + c = mustCreateClient(svc.productCatalogSvcAddr) + svc.productCatalogSvcClient = pb.NewProductCatalogServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.cartSvcAddr, "CART_ADDR") + c = mustCreateClient(svc.cartSvcAddr) + svc.cartSvcClient = pb.NewCartServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.currencySvcAddr, "CURRENCY_ADDR") + c = mustCreateClient(svc.currencySvcAddr) + svc.currencySvcClient = pb.NewCurrencyServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.emailSvcAddr, "EMAIL_ADDR") + c = mustCreateClient(svc.emailSvcAddr) + svc.emailSvcClient = pb.NewEmailServiceClient(c) + defer c.Close() + + mustMapEnv(&svc.paymentSvcAddr, "PAYMENT_ADDR") + c = mustCreateClient(svc.paymentSvcAddr) + svc.paymentSvcClient = pb.NewPaymentServiceClient(c) + defer c.Close() + + svc.kafkaBrokerSvcAddr = os.Getenv("KAFKA_ADDR") + + if svc.kafkaBrokerSvcAddr != "" { + svc.KafkaProducerClient, err = kafka.CreateKafkaProducer([]string{svc.kafkaBrokerSvcAddr}, logger) + if err != nil { + logger.Error(err.Error()) + } + } + + logger.Info(fmt.Sprintf("service config: %+v", svc)) + + lis, err := net.Listen("tcp", fmt.Sprintf(":%s", port)) + if err != nil { + logger.Error(err.Error()) + } + + var srv = grpc.NewServer( + grpc.StatsHandler(otelgrpc.NewServerHandler()), + ) + pb.RegisterCheckoutServiceServer(srv, svc) + + healthcheck := health.NewServer() + healthpb.RegisterHealthServer(srv, healthcheck) + logger.Info(fmt.Sprintf("starting to listen on tcp: %q", lis.Addr().String())) + err = srv.Serve(lis) + logger.Error(err.Error()) + + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM, syscall.SIGKILL) + defer cancel() + + go func() { + if err := srv.Serve(lis); err != nil { + logger.Error(err.Error()) + } + }() + + <-ctx.Done() + + srv.GracefulStop() + logger.Info("Checkout gRPC server stopped") +} + +func mustMapEnv(target *string, envKey string) { + v := os.Getenv(envKey) + if v == "" { + panic(fmt.Sprintf("environment variable %q not set", envKey)) + } + *target = v +} + +func (cs *checkout) Check(ctx context.Context, req *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { + return &healthpb.HealthCheckResponse{Status: healthpb.HealthCheckResponse_SERVING}, nil +} + +func (cs *checkout) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") +} + +func (cs *checkout) PlaceOrder(ctx context.Context, req *pb.PlaceOrderRequest) (*pb.PlaceOrderResponse, error) { + span := trace.SpanFromContext(ctx) + span.SetAttributes( + attribute.String("app.user.id", req.UserId), + attribute.String("app.user.currency", req.UserCurrency), + ) + logger.LogAttrs( + ctx, + slog.LevelInfo, "[PlaceOrder]", + slog.String("user_id", req.UserId), + slog.String("user_currency", req.UserCurrency), + ) + + var err error + defer func() { + if err != nil { + span.RecordError(err) + } + }() + + orderID, err := uuid.NewUUID() + if err != nil { + return nil, status.Errorf(codes.Internal, "failed to generate order uuid") + } + + prep, err := cs.prepareOrderItemsAndShippingQuoteFromCart(ctx, req.UserId, req.UserCurrency, req.Address) + if err != nil { + return nil, status.Errorf(codes.Internal, err.Error()) + } + span.AddEvent("prepared") + + total := &pb.Money{CurrencyCode: req.UserCurrency, + Units: 0, + Nanos: 0} + total = money.Must(money.Sum(total, prep.shippingCostLocalized)) + for _, it := range prep.orderItems { + multPrice := money.MultiplySlow(it.Cost, uint32(it.GetItem().GetQuantity())) + total = money.Must(money.Sum(total, multPrice)) + } + + txID, err := cs.chargeCard(ctx, total, req.CreditCard) + if err != nil { + return nil, status.Errorf(codes.Internal, "failed to charge card: %+v", err) + } + + span.AddEvent("charged", + trace.WithAttributes(attribute.String("app.payment.transaction.id", txID))) + logger.LogAttrs( + ctx, + slog.LevelInfo, "payment went through", + slog.String("transaction_id", txID), + ) + + shippingTrackingID, err := cs.shipOrder(ctx, req.Address, prep.cartItems) + if err != nil { + return nil, status.Errorf(codes.Unavailable, "shipping error: %+v", err) + } + shippingTrackingAttribute := attribute.String("app.shipping.tracking.id", shippingTrackingID) + span.AddEvent("shipped", trace.WithAttributes(shippingTrackingAttribute)) + + _ = cs.emptyUserCart(ctx, req.UserId) + + orderResult := &pb.OrderResult{ + OrderId: orderID.String(), + ShippingTrackingId: shippingTrackingID, + ShippingCost: prep.shippingCostLocalized, + ShippingAddress: req.Address, + Items: prep.orderItems, + } + + shippingCostFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", prep.shippingCostLocalized.GetUnits(), prep.shippingCostLocalized.GetNanos()/1000000000), 64) + totalPriceFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", total.GetUnits(), total.GetNanos()/1000000000), 64) + + span.SetAttributes( + attribute.String("app.order.id", orderID.String()), + attribute.Float64("app.shipping.amount", shippingCostFloat), + attribute.Float64("app.order.amount", totalPriceFloat), + attribute.Int("app.order.items.count", len(prep.orderItems)), + shippingTrackingAttribute, + ) + logger.LogAttrs( + ctx, + slog.LevelInfo, "order placed", + slog.String("app.order.id", orderID.String()), + slog.Float64("app.shipping.amount", shippingCostFloat), + slog.Float64("app.order.amount", totalPriceFloat), + slog.Int("app.order.items.count", len(prep.orderItems)), + slog.String("app.shipping.tracking.id", shippingTrackingID), + ) + + if err := cs.sendOrderConfirmation(ctx, req.Email, orderResult); err != nil { + logger.Warn(fmt.Sprintf("failed to send order confirmation to %q: %+v", req.Email, err)) + } else { + logger.Info(fmt.Sprintf("order confirmation email sent to %q", req.Email)) + } + + // send to kafka only if kafka broker address is set + if cs.kafkaBrokerSvcAddr != "" { + logger.Info("sending to postProcessor") + cs.sendToPostProcessor(ctx, orderResult) + } + + resp := &pb.PlaceOrderResponse{Order: orderResult} + return resp, nil +} + +type orderPrep struct { + orderItems []*pb.OrderItem + cartItems []*pb.CartItem + shippingCostLocalized *pb.Money +} + +func (cs *checkout) prepareOrderItemsAndShippingQuoteFromCart(ctx context.Context, userID, userCurrency string, address *pb.Address) (orderPrep, error) { + + ctx, span := tracer.Start(ctx, "prepareOrderItemsAndShippingQuoteFromCart") + defer span.End() + + var out orderPrep + cartItems, err := cs.getUserCart(ctx, userID) + if err != nil { + return out, fmt.Errorf("cart failure: %+v", err) + } + orderItems, err := cs.prepOrderItems(ctx, cartItems, userCurrency) + if err != nil { + return out, fmt.Errorf("failed to prepare order: %+v", err) + } + shippingUSD, err := cs.quoteShipping(ctx, address, cartItems) + if err != nil { + return out, fmt.Errorf("shipping quote failure: %+v", err) + } + shippingPrice, err := cs.convertCurrency(ctx, shippingUSD, userCurrency) + if err != nil { + return out, fmt.Errorf("failed to convert shipping cost to currency: %+v", err) + } + + out.shippingCostLocalized = shippingPrice + out.cartItems = cartItems + out.orderItems = orderItems + + var totalCart int32 + for _, ci := range cartItems { + totalCart += ci.Quantity + } + shippingCostFloat, _ := strconv.ParseFloat(fmt.Sprintf("%d.%02d", shippingPrice.GetUnits(), shippingPrice.GetNanos()/1000000000), 64) + + span.SetAttributes( + attribute.Float64("app.shipping.amount", shippingCostFloat), + attribute.Int("app.cart.items.count", int(totalCart)), + attribute.Int("app.order.items.count", len(orderItems)), + ) + return out, nil +} + +func mustCreateClient(svcAddr string) *grpc.ClientConn { + c, err := grpc.NewClient(svcAddr, + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithStatsHandler(otelgrpc.NewClientHandler()), + ) + if err != nil { + logger.Error(fmt.Sprintf("could not connect to %s service, err: %+v", svcAddr, err)) + } + + return c +} + +func (cs *checkout) quoteShipping(ctx context.Context, address *pb.Address, items []*pb.CartItem) (*pb.Money, error) { + quotePayload, err := json.Marshal(map[string]interface{}{ + "address": address, + "items": items, + }) + if err != nil { + return nil, fmt.Errorf("failed to marshal ship order request: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.shippingSvcAddr+"/get-quote", "application/json", bytes.NewBuffer(quotePayload)) + if err != nil { + return nil, fmt.Errorf("failed POST to shipping service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return nil, fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + shippingQuoteBytes, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read shipping quote response: %+v", err) + } + + var quoteResp struct { + CostUsd *pb.Money `json:"cost_usd"` + } + if err := json.Unmarshal(shippingQuoteBytes, "eResp); err != nil { + return nil, fmt.Errorf("failed to unmarshal shipping quote: %+v", err) + } + if quoteResp.CostUsd == nil { + return nil, fmt.Errorf("shipping quote missing cost_usd field") + } + + return quoteResp.CostUsd, nil +} + +func (cs *checkout) getUserCart(ctx context.Context, userID string) ([]*pb.CartItem, error) { + cart, err := cs.cartSvcClient.GetCart(ctx, &pb.GetCartRequest{UserId: userID}) + if err != nil { + return nil, fmt.Errorf("failed to get user cart during checkout: %+v", err) + } + return cart.GetItems(), nil +} + +func (cs *checkout) emptyUserCart(ctx context.Context, userID string) error { + if _, err := cs.cartSvcClient.EmptyCart(ctx, &pb.EmptyCartRequest{UserId: userID}); err != nil { + return fmt.Errorf("failed to empty user cart during checkout: %+v", err) + } + return nil +} + +func (cs *checkout) prepOrderItems(ctx context.Context, items []*pb.CartItem, userCurrency string) ([]*pb.OrderItem, error) { + out := make([]*pb.OrderItem, len(items)) + + for i, item := range items { + product, err := cs.productCatalogSvcClient.GetProduct(ctx, &pb.GetProductRequest{Id: item.GetProductId()}) + if err != nil { + return nil, fmt.Errorf("failed to get product #%q", item.GetProductId()) + } + price, err := cs.convertCurrency(ctx, product.GetPriceUsd(), userCurrency) + if err != nil { + return nil, fmt.Errorf("failed to convert price of %q to %s", item.GetProductId(), userCurrency) + } + out[i] = &pb.OrderItem{ + Item: item, + Cost: price} + } + return out, nil +} + +func (cs *checkout) convertCurrency(ctx context.Context, from *pb.Money, toCurrency string) (*pb.Money, error) { + result, err := cs.currencySvcClient.Convert(ctx, &pb.CurrencyConversionRequest{ + From: from, + ToCode: toCurrency}) + if err != nil { + return nil, fmt.Errorf("failed to convert currency: %+v", err) + } + return result, err +} + +func (cs *checkout) chargeCard(ctx context.Context, amount *pb.Money, paymentInfo *pb.CreditCardInfo) (string, error) { + paymentService := cs.paymentSvcClient + if cs.isFeatureFlagEnabled(ctx, "paymentUnreachable") { + badAddress := "badAddress:50051" + c := mustCreateClient(badAddress) + paymentService = pb.NewPaymentServiceClient(c) + } + + paymentResp, err := paymentService.Charge(ctx, &pb.ChargeRequest{ + Amount: amount, + CreditCard: paymentInfo}) + if err != nil { + return "", fmt.Errorf("could not charge the card: %+v", err) + } + return paymentResp.GetTransactionId(), nil +} + +func (cs *checkout) sendOrderConfirmation(ctx context.Context, email string, order *pb.OrderResult) error { + emailPayload, err := json.Marshal(map[string]interface{}{ + "email": email, + "order": order, + }) + if err != nil { + return fmt.Errorf("failed to marshal order to JSON: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.emailSvcAddr+"/send_order_confirmation", "application/json", bytes.NewBuffer(emailPayload)) + if err != nil { + return fmt.Errorf("failed POST to email service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + return err +} + +func (cs *checkout) shipOrder(ctx context.Context, address *pb.Address, items []*pb.CartItem) (string, error) { + shipPayload, err := json.Marshal(map[string]interface{}{ + "address": address, + "items": items, + }) + if err != nil { + return "", fmt.Errorf("failed to marshal ship order request: %+v", err) + } + + resp, err := otelhttp.Post(ctx, cs.shippingSvcAddr+"/ship-order", "application/json", bytes.NewBuffer(shipPayload)) + if err != nil { + return "", fmt.Errorf("failed POST to shipping service: %+v", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return "", fmt.Errorf("failed POST to email service: expected 200, got %d", resp.StatusCode) + } + + trackingRespBytes, err := io.ReadAll(resp.Body) + if err != nil { + return "", fmt.Errorf("failed to read ship order response: %+v", err) + } + + var shipResp struct { + TrackingID string `json:"tracking_id"` + } + if err := json.Unmarshal(trackingRespBytes, &shipResp); err != nil { + return "", fmt.Errorf("failed to unmarshal ship order response: %+v", err) + } + if shipResp.TrackingID == "" { + return "", fmt.Errorf("ship order response missing tracking_id field") + } + + return shipResp.TrackingID, nil +} + +func (cs *checkout) sendToPostProcessor(ctx context.Context, result *pb.OrderResult) { + message, err := proto.Marshal(result) + if err != nil { + logger.Error(fmt.Sprintf("Failed to marshal message to protobuf: %+v", err)) + return + } + + msg := sarama.ProducerMessage{ + Topic: kafka.Topic, + Value: sarama.ByteEncoder(message), + } + + // Inject tracing info into message + span := createProducerSpan(ctx, &msg) + defer span.End() + + // Send message and handle response + startTime := time.Now() + select { + case cs.KafkaProducerClient.Input() <- &msg: + select { + case successMsg := <-cs.KafkaProducerClient.Successes(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", true), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + attribute.KeyValue(semconv.MessagingKafkaMessageOffset(int(successMsg.Offset))), + ) + logger.Info(fmt.Sprintf("Successful to write message. offset: %v, duration: %v", successMsg.Offset, time.Since(startTime))) + case errMsg := <-cs.KafkaProducerClient.Errors(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, errMsg.Err.Error()) + logger.Error(fmt.Sprintf("Failed to write message: %v", errMsg.Err)) + case <-ctx.Done(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, "Context cancelled: "+ctx.Err().Error()) + logger.Warn(fmt.Sprintf("Context canceled before success message received: %v", ctx.Err())) + } + case <-ctx.Done(): + span.SetAttributes( + attribute.Bool("messaging.kafka.producer.success", false), + attribute.Int("messaging.kafka.producer.duration_ms", int(time.Since(startTime).Milliseconds())), + ) + span.SetStatus(otelcodes.Error, "Failed to send: "+ctx.Err().Error()) + logger.Error(fmt.Sprintf("Failed to send message to Kafka within context deadline: %v", ctx.Err())) + return + } + + ffValue := cs.getIntFeatureFlag(ctx, "kafkaQueueProblems") + if ffValue > 0 { + logger.Info("Warning: FeatureFlag 'kafkaQueueProblems' is activated, overloading queue now.") + for i := 0; i < ffValue; i++ { + go func(i int) { + cs.KafkaProducerClient.Input() <- &msg + _ = <-cs.KafkaProducerClient.Successes() + }(i) + } + logger.Info(fmt.Sprintf("Done with #%d messages for overload simulation.", ffValue)) + } +} + +func createProducerSpan(ctx context.Context, msg *sarama.ProducerMessage) trace.Span { + spanContext, span := tracer.Start( + ctx, + fmt.Sprintf("%s publish", msg.Topic), + trace.WithSpanKind(trace.SpanKindProducer), + trace.WithAttributes( + semconv.PeerService("kafka"), + semconv.NetworkTransportTCP, + semconv.MessagingSystemKafka, + semconv.MessagingDestinationName(msg.Topic), + semconv.MessagingOperationPublish, + semconv.MessagingKafkaDestinationPartition(int(msg.Partition)), + ), + ) + + carrier := propagation.MapCarrier{} + propagator := otel.GetTextMapPropagator() + propagator.Inject(spanContext, carrier) + + for key, value := range carrier { + msg.Headers = append(msg.Headers, sarama.RecordHeader{Key: []byte(key), Value: []byte(value)}) + } + + return span +} + +func (cs *checkout) isFeatureFlagEnabled(ctx context.Context, featureFlagName string) bool { + client := openfeature.NewClient("checkout") + + // Default value is set to false, but you could also make this a parameter. + featureEnabled, _ := client.BooleanValue( + ctx, + featureFlagName, + false, + openfeature.EvaluationContext{}, + ) + + return featureEnabled +} + +func (cs *checkout) getIntFeatureFlag(ctx context.Context, featureFlagName string) int { + client := openfeature.NewClient("checkout") + + // Default value is set to 0, but you could also make this a parameter. + featureFlagValue, _ := client.IntValue( + ctx, + featureFlagName, + 0, + openfeature.EvaluationContext{}, + ) + + return int(featureFlagValue) +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money.go new file mode 100644 index 0000000000000000000000000000000000000000..ba21cd8886acad2af440f81d1c3be96d31265da2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money.go @@ -0,0 +1,120 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package money + +import ( + "errors" + + pb "github.com/open-telemetry/opentelemetry-demo/src/checkout/genproto/oteldemo" +) + +const ( + nanosMin = -999999999 + nanosMax = +999999999 + nanosMod = 1000000000 +) + +var ( + ErrInvalidValue = errors.New("one of the specified money values is invalid") + ErrMismatchingCurrency = errors.New("mismatching currency codes") +) + +// IsValid checks if specified value has a valid units/nanos signs and ranges. +func IsValid(m *pb.Money) bool { + return signMatches(m) && validNanos(m.GetNanos()) +} + +func signMatches(m *pb.Money) bool { + return m.GetNanos() == 0 || m.GetUnits() == 0 || (m.GetNanos() < 0) == (m.GetUnits() < 0) +} + +func validNanos(nanos int32) bool { return nanosMin <= nanos && nanos <= nanosMax } + +// IsZero returns true if the specified money value is equal to zero. +func IsZero(m *pb.Money) bool { return m.GetUnits() == 0 && m.GetNanos() == 0 } + +// IsPositive returns true if the specified money value is valid and is +// positive. +func IsPositive(m *pb.Money) bool { + return IsValid(m) && m.GetUnits() > 0 || (m.GetUnits() == 0 && m.GetNanos() > 0) +} + +// IsNegative returns true if the specified money value is valid and is +// negative. +func IsNegative(m *pb.Money) bool { + return IsValid(m) && m.GetUnits() < 0 || (m.GetUnits() == 0 && m.GetNanos() < 0) +} + +// AreSameCurrency returns true if values l and r have a currency code and +// they are the same values. +func AreSameCurrency(l, r *pb.Money) bool { + return l.GetCurrencyCode() == r.GetCurrencyCode() && l.GetCurrencyCode() != "" +} + +// AreEquals returns true if values l and r are the equal, including the +// currency. This does not check validity of the provided values. +func AreEquals(l, r *pb.Money) bool { + return l.GetCurrencyCode() == r.GetCurrencyCode() && + l.GetUnits() == r.GetUnits() && l.GetNanos() == r.GetNanos() +} + +// Negate returns the same amount with the sign negated. +func Negate(m *pb.Money) *pb.Money { + return &pb.Money{ + Units: -m.GetUnits(), + Nanos: -m.GetNanos(), + CurrencyCode: m.GetCurrencyCode()} +} + +// Must panics if the given error is not nil. This can be used with other +// functions like: "m := Must(Sum(a,b))". +func Must(v *pb.Money, err error) *pb.Money { + if err != nil { + panic(err) + } + return v +} + +// Sum adds two values. Returns an error if one of the values are invalid or +// currency codes are not matching (unless currency code is unspecified for +// both). +func Sum(l, r *pb.Money) (*pb.Money, error) { + if !IsValid(l) || !IsValid(r) { + return &pb.Money{}, ErrInvalidValue + } else if l.GetCurrencyCode() != r.GetCurrencyCode() { + return &pb.Money{}, ErrMismatchingCurrency + } + units := l.GetUnits() + r.GetUnits() + nanos := l.GetNanos() + r.GetNanos() + + if (units == 0 && nanos == 0) || (units > 0 && nanos >= 0) || (units < 0 && nanos <= 0) { + // same sign + units += int64(nanos / nanosMod) + nanos = nanos % nanosMod + } else { + // different sign. nanos guaranteed to not to go over the limit + if units > 0 { + units-- + nanos += nanosMod + } else { + units++ + nanos -= nanosMod + } + } + + return &pb.Money{ + Units: units, + Nanos: nanos, + CurrencyCode: l.GetCurrencyCode()}, nil +} + +// MultiplySlow is a slow multiplication operation done through adding the value +// to itself n-1 times. +func MultiplySlow(m *pb.Money, n uint32) *pb.Money { + out := m + for n > 1 { + out = Must(Sum(out, m)) + n-- + } + return out +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money_test.go b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money_test.go new file mode 100644 index 0000000000000000000000000000000000000000..8c2c3d7f51a8e6ee7a993d2280279b247fe26c6c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/checkout/money/money_test.go @@ -0,0 +1,233 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +package money + +import ( + "fmt" + "reflect" + "testing" + + pb "github.com/open-telemetry/opentelemetry-demo/src/checkout/genproto/oteldemo" +) + +func mmc(u int64, n int32, c string) *pb.Money { return &pb.Money{Units: u, Nanos: n, CurrencyCode: c} } +func mm(u int64, n int32) *pb.Money { return mmc(u, n, "") } + +func TestIsValid(t *testing.T) { + tests := []struct { + name string + in *pb.Money + want bool + }{ + {"valid -/-", mm(-981273891273, -999999999), true}, + {"invalid -/+", mm(-981273891273, +999999999), false}, + {"valid +/+", mm(981273891273, 999999999), true}, + {"invalid +/-", mm(981273891273, -999999999), false}, + {"invalid +/+overflow", mm(3, 1000000000), false}, + {"invalid +/-overflow", mm(3, -1000000000), false}, + {"invalid -/+overflow", mm(-3, 1000000000), false}, + {"invalid -/-overflow", mm(-3, -1000000000), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := IsValid(tt.in); got != tt.want { + t.Errorf("IsValid(%v) = %v, want %v", tt.in, got, tt.want) + } + }) + } +} + +func TestIsZero(t *testing.T) { + tests := []struct { + name string + in *pb.Money + want bool + }{ + {"zero", mm(0, 0), true}, + {"not-zero (-/+)", mm(-1, +1), false}, + {"not-zero (-/-)", mm(-1, -1), false}, + {"not-zero (+/+)", mm(+1, +1), false}, + {"not-zero (+/-)", mm(+1, -1), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := IsZero(tt.in); got != tt.want { + t.Errorf("IsZero(%v) = %v, want %v", tt.in, got, tt.want) + } + }) + } +} + +func TestIsPositive(t *testing.T) { + tests := []struct { + name string + in *pb.Money + want bool + }{ + {"zero", mm(0, 0), false}, + {"positive (+/+)", mm(+1, +1), true}, + {"invalid (-/+)", mm(-1, +1), false}, + {"negative (-/-)", mm(-1, -1), false}, + {"invalid (+/-)", mm(+1, -1), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := IsPositive(tt.in); got != tt.want { + t.Errorf("IsPositive(%v) = %v, want %v", tt.in, got, tt.want) + } + }) + } +} + +func TestIsNegative(t *testing.T) { + tests := []struct { + name string + in *pb.Money + want bool + }{ + {"zero", mm(0, 0), false}, + {"positive (+/+)", mm(+1, +1), false}, + {"invalid (-/+)", mm(-1, +1), false}, + {"negative (-/-)", mm(-1, -1), true}, + {"invalid (+/-)", mm(+1, -1), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := IsNegative(tt.in); got != tt.want { + t.Errorf("IsNegative(%v) = %v, want %v", tt.in, got, tt.want) + } + }) + } +} + +func TestAreSameCurrency(t *testing.T) { + type args struct { + l *pb.Money + r *pb.Money + } + tests := []struct { + name string + args args + want bool + }{ + {"both empty currency", args{mmc(1, 0, ""), mmc(2, 0, "")}, false}, + {"left empty currency", args{mmc(1, 0, ""), mmc(2, 0, "USD")}, false}, + {"right empty currency", args{mmc(1, 0, "USD"), mmc(2, 0, "")}, false}, + {"mismatching", args{mmc(1, 0, "USD"), mmc(2, 0, "CAD")}, false}, + {"matching", args{mmc(1, 0, "USD"), mmc(2, 0, "USD")}, true}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := AreSameCurrency(tt.args.l, tt.args.r); got != tt.want { + t.Errorf("AreSameCurrency([%v],[%v]) = %v, want %v", tt.args.l, tt.args.r, got, tt.want) + } + }) + } +} + +func TestAreEquals(t *testing.T) { + type args struct { + l *pb.Money + r *pb.Money + } + tests := []struct { + name string + args args + want bool + }{ + {"equals", args{mmc(1, 2, "USD"), mmc(1, 2, "USD")}, true}, + {"mismatching currency", args{mmc(1, 2, "USD"), mmc(1, 2, "CAD")}, false}, + {"mismatching units", args{mmc(10, 20, "USD"), mmc(1, 20, "USD")}, false}, + {"mismatching nanos", args{mmc(1, 2, "USD"), mmc(1, 20, "USD")}, false}, + {"negated", args{mmc(1, 2, "USD"), mmc(-1, -2, "USD")}, false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := AreEquals(tt.args.l, tt.args.r); got != tt.want { + t.Errorf("AreEquals([%v],[%v]) = %v, want %v", tt.args.l, tt.args.r, got, tt.want) + } + }) + } +} + +func TestNegate(t *testing.T) { + tests := []struct { + name string + in *pb.Money + want *pb.Money + }{ + {"zero", mm(0, 0), mm(0, 0)}, + {"negative", mm(-1, -200), mm(1, 200)}, + {"positive", mm(1, 200), mm(-1, -200)}, + {"carries currency code", mmc(0, 0, "XXX"), mmc(0, 0, "XXX")}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := Negate(tt.in); !AreEquals(got, tt.want) { + t.Errorf("Negate([%v]) = %v, want %v", tt.in, got, tt.want) + } + }) + } +} + +func TestMust_pass(t *testing.T) { + v := Must(mm(2, 3), nil) + if !AreEquals(v, mm(2, 3)) { + t.Errorf("returned the wrong value: %v", v) + } +} + +func TestMust_panic(t *testing.T) { + defer func() { + if r := recover(); r != nil { + t.Logf("panic captured: %v", r) + } + }() + Must(mm(2, 3), fmt.Errorf("some error")) + t.Fatal("this should not have executed due to the panic above") +} + +func TestSum(t *testing.T) { + type args struct { + l *pb.Money + r *pb.Money + } + tests := []struct { + name string + args args + want *pb.Money + wantErr error + }{ + {"0+0=0", args{mm(0, 0), mm(0, 0)}, mm(0, 0), nil}, + {"Error: currency code on left", args{mmc(0, 0, "XXX"), mm(0, 0)}, mm(0, 0), ErrMismatchingCurrency}, + {"Error: currency code on right", args{mm(0, 0), mmc(0, 0, "YYY")}, mm(0, 0), ErrMismatchingCurrency}, + {"Error: currency code mismatch", args{mmc(0, 0, "AAA"), mmc(0, 0, "BBB")}, mm(0, 0), ErrMismatchingCurrency}, + {"Error: invalid +/-", args{mm(+1, -1), mm(0, 0)}, mm(0, 0), ErrInvalidValue}, + {"Error: invalid -/+", args{mm(0, 0), mm(-1, +2)}, mm(0, 0), ErrInvalidValue}, + {"Error: invalid nanos", args{mm(0, 1000000000), mm(1, 0)}, mm(0, 0), ErrInvalidValue}, + {"both positive (no carry)", args{mm(2, 200000000), mm(2, 200000000)}, mm(4, 400000000), nil}, + {"both positive (nanos=max)", args{mm(2, 111111111), mm(2, 888888888)}, mm(4, 999999999), nil}, + {"both positive (carry)", args{mm(2, 200000000), mm(2, 900000000)}, mm(5, 100000000), nil}, + {"both negative (no carry)", args{mm(-2, -200000000), mm(-2, -200000000)}, mm(-4, -400000000), nil}, + {"both negative (carry)", args{mm(-2, -200000000), mm(-2, -900000000)}, mm(-5, -100000000), nil}, + {"mixed (larger positive, just decimals)", args{mm(11, 0), mm(-2, 0)}, mm(9, 0), nil}, + {"mixed (larger negative, just decimals)", args{mm(-11, 0), mm(2, 0)}, mm(-9, 0), nil}, + {"mixed (larger positive, no borrow)", args{mm(11, 100000000), mm(-2, -100000000)}, mm(9, 0), nil}, + {"mixed (larger positive, with borrow)", args{mm(11, 100000000), mm(-2, -9000000 /*.09*/)}, mm(9, 91000000 /*.091*/), nil}, + {"mixed (larger negative, no borrow)", args{mm(-11, -100000000), mm(2, 100000000)}, mm(-9, 0), nil}, + {"mixed (larger negative, with borrow)", args{mm(-11, -100000000), mm(2, 9000000 /*.09*/)}, mm(-9, -91000000 /*.091*/), nil}, + {"0+negative", args{mm(0, 0), mm(-2, -100000000)}, mm(-2, -100000000), nil}, + {"negative+0", args{mm(-2, -100000000), mm(0, 0)}, mm(-2, -100000000), nil}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := Sum(tt.args.l, tt.args.r) + if err != tt.wantErr { + t.Errorf("Sum([%v],[%v]): expected err=\"%v\" got=\"%v\"", tt.args.l, tt.args.r, tt.wantErr, err) + } + if !reflect.DeepEqual(got, tt.want) { + t.Errorf("Sum([%v],[%v]) = %v, want %v", tt.args.l, tt.args.r, got, tt.want) + } + }) + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..98de4bf9ef521f209884025a9c8a3b3fecb17c48 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/.dockerignore @@ -0,0 +1,3 @@ +client.js +node_modules/ +out/ diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/CMakeLists.txt b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..683371e8c80d22423ae3bc07083b20818bb59055 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.26) +project(currency) + +find_package(Protobuf REQUIRED) +find_package(gRPC CONFIG REQUIRED) +find_package(opentelemetry-cpp CONFIG REQUIRED) + +set(GENERATED_PROTOBUF_PATH "${CMAKE_BINARY_DIR}/generated/proto") + +add_subdirectory(genproto) + +include_directories("${GENERATED_PROTOBUF_PATH}" "${OPENTELEMETRY_CPP_INCLUDE_DIRS}") + +add_executable(currency src/server.cpp) +add_dependencies(currency demo-proto) +target_link_libraries( + currency demo-proto protobuf::libprotobuf + ${OPENTELEMETRY_CPP_LIBRARIES} gRPC::grpc++) + +install(TARGETS currency DESTINATION bin) diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..60f7a084b20d1ffc2a79a407e49f24ce225bab24 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/Dockerfile @@ -0,0 +1,58 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2023 The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM docker.io/library/alpine:3.21 AS base + +RUN apk update && \ + apk add grpc-dev protobuf-dev + +FROM base AS builder + +RUN apk add git cmake make g++ linux-headers + +ARG OPENTELEMETRY_CPP_VERSION + +RUN git clone --depth 1 --branch v${OPENTELEMETRY_CPP_VERSION} https://github.com/open-telemetry/opentelemetry-cpp \ + && cd opentelemetry-cpp/ \ + && mkdir build \ + && cd build \ + && cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \ + -DWITH_EXAMPLES=OFF -DWITH_OTLP_GRPC=ON -DWITH_ABSEIL=ON \ + && make -j$(nproc || sysctl -n hw.ncpu || echo 1) install && cd ../.. + +WORKDIR /currency + +COPY ./src/currency/build/ build/ +COPY ./src/currency/proto/ proto/ +COPY ./src/currency/src/ src/ + +COPY ./src/currency/genproto/CMakeLists.txt genproto/CMakeLists.txt +COPY ./src/currency/CMakeLists.txt CMakeLists.txt + +COPY ./pb/demo.proto proto/demo.proto + +RUN mkdir -p build && cd build \ + && cmake .. \ + && make -j$(nproc || sysctl -n hw.ncpu || echo 1) install + +FROM base AS release + +COPY --from=builder /usr/local /usr/local + +EXPOSE ${CURRENCY_PORT} + +ENTRYPOINT ["sh", "-c", "./usr/local/bin/currency ${CURRENCY_PORT}"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e1c5079d6195faa78d908e64e7ea18d97185eb79 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/README.md @@ -0,0 +1,32 @@ +# Currency Service + +The Currency Service does the conversion from one currency to another. +It is a C++ based service. + +## Building docker image + +To build the currency service, run the following from root directory +of opentelemetry-demo + +```sh +docker compose build currency +``` + +## Run the service + +Execute the below command to run the service. + +```sh +docker compose up currency +``` + +## Run the client + +currencyclient is a sample client which sends some request to currency +service. To run the client, execute the below command. + +```sh +docker exec -it currencyclient 7000 +``` + +`7000` is port where currency listens to. diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.cc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.cc new file mode 100644 index 0000000000000000000000000000000000000000..a445864313b6b579bab2e870cd5ec7824d614a2f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.cc @@ -0,0 +1,1200 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: demo.proto + +#include "demo.pb.h" +#include "demo.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace oteldemo { + +static const char* CartService_method_names[] = { + "/oteldemo.CartService/AddItem", + "/oteldemo.CartService/GetCart", + "/oteldemo.CartService/EmptyCart", +}; + +std::unique_ptr< CartService::Stub> CartService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< CartService::Stub> stub(new CartService::Stub(channel, options)); + return stub; +} + +CartService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_AddItem_(CartService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetCart_(CartService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EmptyCart_(CartService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status CartService::Stub::AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::oteldemo::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::AddItemRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddItem_, context, request, response); +} + +void CartService::Stub::async::AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::AddItemRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddItem_, context, request, response, std::move(f)); +} + +void CartService::Stub::async::AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddItem_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* CartService::Stub::PrepareAsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Empty, ::oteldemo::AddItemRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddItem_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* CartService::Stub::AsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAddItemRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CartService::Stub::GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::oteldemo::Cart* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetCartRequest, ::oteldemo::Cart, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetCart_, context, request, response); +} + +void CartService::Stub::async::GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetCartRequest, ::oteldemo::Cart, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCart_, context, request, response, std::move(f)); +} + +void CartService::Stub::async::GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetCart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>* CartService::Stub::PrepareAsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Cart, ::oteldemo::GetCartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetCart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>* CartService::Stub::AsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetCartRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CartService::Stub::EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::oteldemo::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::EmptyCartRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EmptyCart_, context, request, response); +} + +void CartService::Stub::async::EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::EmptyCartRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EmptyCart_, context, request, response, std::move(f)); +} + +void CartService::Stub::async::EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EmptyCart_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* CartService::Stub::PrepareAsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Empty, ::oteldemo::EmptyCartRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EmptyCart_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* CartService::Stub::AsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncEmptyCartRaw(context, request, cq); + result->StartCall(); + return result; +} + +CartService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + CartService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CartService::Service, ::oteldemo::AddItemRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CartService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::AddItemRequest* req, + ::oteldemo::Empty* resp) { + return service->AddItem(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CartService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CartService::Service, ::oteldemo::GetCartRequest, ::oteldemo::Cart, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CartService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetCartRequest* req, + ::oteldemo::Cart* resp) { + return service->GetCart(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CartService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CartService::Service, ::oteldemo::EmptyCartRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CartService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::EmptyCartRequest* req, + ::oteldemo::Empty* resp) { + return service->EmptyCart(ctx, req, resp); + }, this))); +} + +CartService::Service::~Service() { +} + +::grpc::Status CartService::Service::AddItem(::grpc::ServerContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CartService::Service::GetCart(::grpc::ServerContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CartService::Service::EmptyCart(::grpc::ServerContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* RecommendationService_method_names[] = { + "/oteldemo.RecommendationService/ListRecommendations", +}; + +std::unique_ptr< RecommendationService::Stub> RecommendationService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< RecommendationService::Stub> stub(new RecommendationService::Stub(channel, options)); + return stub; +} + +RecommendationService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_ListRecommendations_(RecommendationService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status RecommendationService::Stub::ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::oteldemo::ListRecommendationsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListRecommendations_, context, request, response); +} + +void RecommendationService::Stub::async::ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRecommendations_, context, request, response, std::move(f)); +} + +void RecommendationService::Stub::async::ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListRecommendations_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>* RecommendationService::Stub::PrepareAsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::ListRecommendationsResponse, ::oteldemo::ListRecommendationsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListRecommendations_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>* RecommendationService::Stub::AsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListRecommendationsRaw(context, request, cq); + result->StartCall(); + return result; +} + +RecommendationService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + RecommendationService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< RecommendationService::Service, ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](RecommendationService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::ListRecommendationsRequest* req, + ::oteldemo::ListRecommendationsResponse* resp) { + return service->ListRecommendations(ctx, req, resp); + }, this))); +} + +RecommendationService::Service::~Service() { +} + +::grpc::Status RecommendationService::Service::ListRecommendations(::grpc::ServerContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* ProductCatalogService_method_names[] = { + "/oteldemo.ProductCatalogService/ListProducts", + "/oteldemo.ProductCatalogService/GetProduct", + "/oteldemo.ProductCatalogService/SearchProducts", +}; + +std::unique_ptr< ProductCatalogService::Stub> ProductCatalogService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ProductCatalogService::Stub> stub(new ProductCatalogService::Stub(channel, options)); + return stub; +} + +ProductCatalogService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_ListProducts_(ProductCatalogService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProduct_(ProductCatalogService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchProducts_(ProductCatalogService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ProductCatalogService::Stub::ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::ListProductsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::Empty, ::oteldemo::ListProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListProducts_, context, request, response); +} + +void ProductCatalogService::Stub::async::ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::Empty, ::oteldemo::ListProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListProducts_, context, request, response, std::move(f)); +} + +void ProductCatalogService::Stub::async::ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListProducts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>* ProductCatalogService::Stub::PrepareAsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::ListProductsResponse, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListProducts_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>* ProductCatalogService::Stub::AsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListProductsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProductCatalogService::Stub::GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::oteldemo::Product* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetProductRequest, ::oteldemo::Product, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProduct_, context, request, response); +} + +void ProductCatalogService::Stub::async::GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetProductRequest, ::oteldemo::Product, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProduct_, context, request, response, std::move(f)); +} + +void ProductCatalogService::Stub::async::GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProduct_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Product>* ProductCatalogService::Stub::PrepareAsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Product, ::oteldemo::GetProductRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProduct_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Product>* ProductCatalogService::Stub::AsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetProductRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProductCatalogService::Stub::SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::oteldemo::SearchProductsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SearchProducts_, context, request, response); +} + +void ProductCatalogService::Stub::async::SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SearchProducts_, context, request, response, std::move(f)); +} + +void ProductCatalogService::Stub::async::SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SearchProducts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>* ProductCatalogService::Stub::PrepareAsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::SearchProductsResponse, ::oteldemo::SearchProductsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SearchProducts_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>* ProductCatalogService::Stub::AsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSearchProductsRaw(context, request, cq); + result->StartCall(); + return result; +} + +ProductCatalogService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductCatalogService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductCatalogService::Service, ::oteldemo::Empty, ::oteldemo::ListProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductCatalogService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::Empty* req, + ::oteldemo::ListProductsResponse* resp) { + return service->ListProducts(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductCatalogService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductCatalogService::Service, ::oteldemo::GetProductRequest, ::oteldemo::Product, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductCatalogService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetProductRequest* req, + ::oteldemo::Product* resp) { + return service->GetProduct(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductCatalogService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductCatalogService::Service, ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductCatalogService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::SearchProductsRequest* req, + ::oteldemo::SearchProductsResponse* resp) { + return service->SearchProducts(ctx, req, resp); + }, this))); +} + +ProductCatalogService::Service::~Service() { +} + +::grpc::Status ProductCatalogService::Service::ListProducts(::grpc::ServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProductCatalogService::Service::GetProduct(::grpc::ServerContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProductCatalogService::Service::SearchProducts(::grpc::ServerContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* ProductReviewService_method_names[] = { + "/oteldemo.ProductReviewService/GetProductReviews", + "/oteldemo.ProductReviewService/GetAverageProductReviewScore", + "/oteldemo.ProductReviewService/AskProductAIAssistant", +}; + +std::unique_ptr< ProductReviewService::Stub> ProductReviewService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ProductReviewService::Stub> stub(new ProductReviewService::Stub(channel, options)); + return stub; +} + +ProductReviewService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetProductReviews_(ProductReviewService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetAverageProductReviewScore_(ProductReviewService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AskProductAIAssistant_(ProductReviewService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ProductReviewService::Stub::GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::oteldemo::GetProductReviewsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetProductReviews_, context, request, response); +} + +void ProductReviewService::Stub::async::GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProductReviews_, context, request, response, std::move(f)); +} + +void ProductReviewService::Stub::async::GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetProductReviews_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>* ProductReviewService::Stub::PrepareAsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::GetProductReviewsResponse, ::oteldemo::GetProductReviewsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetProductReviews_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>* ProductReviewService::Stub::AsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetProductReviewsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProductReviewService::Stub::GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::oteldemo::GetAverageProductReviewScoreResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAverageProductReviewScore_, context, request, response); +} + +void ProductReviewService::Stub::async::GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAverageProductReviewScore_, context, request, response, std::move(f)); +} + +void ProductReviewService::Stub::async::GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAverageProductReviewScore_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>* ProductReviewService::Stub::PrepareAsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::GetAverageProductReviewScoreResponse, ::oteldemo::GetAverageProductReviewScoreRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAverageProductReviewScore_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>* ProductReviewService::Stub::AsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetAverageProductReviewScoreRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProductReviewService::Stub::AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::oteldemo::AskProductAIAssistantResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AskProductAIAssistant_, context, request, response); +} + +void ProductReviewService::Stub::async::AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AskProductAIAssistant_, context, request, response, std::move(f)); +} + +void ProductReviewService::Stub::async::AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AskProductAIAssistant_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>* ProductReviewService::Stub::PrepareAsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::AskProductAIAssistantResponse, ::oteldemo::AskProductAIAssistantRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AskProductAIAssistant_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>* ProductReviewService::Stub::AsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAskProductAIAssistantRaw(context, request, cq); + result->StartCall(); + return result; +} + +ProductReviewService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductReviewService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductReviewService::Service, ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductReviewService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetProductReviewsRequest* req, + ::oteldemo::GetProductReviewsResponse* resp) { + return service->GetProductReviews(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductReviewService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductReviewService::Service, ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductReviewService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetAverageProductReviewScoreRequest* req, + ::oteldemo::GetAverageProductReviewScoreResponse* resp) { + return service->GetAverageProductReviewScore(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProductReviewService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProductReviewService::Service, ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProductReviewService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::AskProductAIAssistantRequest* req, + ::oteldemo::AskProductAIAssistantResponse* resp) { + return service->AskProductAIAssistant(ctx, req, resp); + }, this))); +} + +ProductReviewService::Service::~Service() { +} + +::grpc::Status ProductReviewService::Service::GetProductReviews(::grpc::ServerContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProductReviewService::Service::GetAverageProductReviewScore(::grpc::ServerContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProductReviewService::Service::AskProductAIAssistant(::grpc::ServerContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* ShippingService_method_names[] = { + "/oteldemo.ShippingService/GetQuote", + "/oteldemo.ShippingService/ShipOrder", +}; + +std::unique_ptr< ShippingService::Stub> ShippingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ShippingService::Stub> stub(new ShippingService::Stub(channel, options)); + return stub; +} + +ShippingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetQuote_(ShippingService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ShipOrder_(ShippingService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ShippingService::Stub::GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::oteldemo::GetQuoteResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetQuote_, context, request, response); +} + +void ShippingService::Stub::async::GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetQuote_, context, request, response, std::move(f)); +} + +void ShippingService::Stub::async::GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetQuote_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>* ShippingService::Stub::PrepareAsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::GetQuoteResponse, ::oteldemo::GetQuoteRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetQuote_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>* ShippingService::Stub::AsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetQuoteRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ShippingService::Stub::ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::oteldemo::ShipOrderResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ShipOrder_, context, request, response); +} + +void ShippingService::Stub::async::ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ShipOrder_, context, request, response, std::move(f)); +} + +void ShippingService::Stub::async::ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ShipOrder_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>* ShippingService::Stub::PrepareAsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::ShipOrderResponse, ::oteldemo::ShipOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ShipOrder_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>* ShippingService::Stub::AsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncShipOrderRaw(context, request, cq); + result->StartCall(); + return result; +} + +ShippingService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ShippingService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ShippingService::Service, ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ShippingService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetQuoteRequest* req, + ::oteldemo::GetQuoteResponse* resp) { + return service->GetQuote(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ShippingService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ShippingService::Service, ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ShippingService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::ShipOrderRequest* req, + ::oteldemo::ShipOrderResponse* resp) { + return service->ShipOrder(ctx, req, resp); + }, this))); +} + +ShippingService::Service::~Service() { +} + +::grpc::Status ShippingService::Service::GetQuote(::grpc::ServerContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ShippingService::Service::ShipOrder(::grpc::ServerContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* CurrencyService_method_names[] = { + "/oteldemo.CurrencyService/GetSupportedCurrencies", + "/oteldemo.CurrencyService/Convert", +}; + +std::unique_ptr< CurrencyService::Stub> CurrencyService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< CurrencyService::Stub> stub(new CurrencyService::Stub(channel, options)); + return stub; +} + +CurrencyService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetSupportedCurrencies_(CurrencyService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Convert_(CurrencyService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status CurrencyService::Stub::GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::GetSupportedCurrenciesResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSupportedCurrencies_, context, request, response); +} + +void CurrencyService::Stub::async::GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSupportedCurrencies_, context, request, response, std::move(f)); +} + +void CurrencyService::Stub::async::GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSupportedCurrencies_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>* CurrencyService::Stub::PrepareAsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::GetSupportedCurrenciesResponse, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSupportedCurrencies_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>* CurrencyService::Stub::AsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetSupportedCurrenciesRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status CurrencyService::Stub::Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::oteldemo::Money* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Convert_, context, request, response); +} + +void CurrencyService::Stub::async::Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Convert_, context, request, response, std::move(f)); +} + +void CurrencyService::Stub::async::Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Convert_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Money>* CurrencyService::Stub::PrepareAsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Money, ::oteldemo::CurrencyConversionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Convert_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Money>* CurrencyService::Stub::AsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncConvertRaw(context, request, cq); + result->StartCall(); + return result; +} + +CurrencyService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + CurrencyService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CurrencyService::Service, ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CurrencyService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::Empty* req, + ::oteldemo::GetSupportedCurrenciesResponse* resp) { + return service->GetSupportedCurrencies(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + CurrencyService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CurrencyService::Service, ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CurrencyService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::CurrencyConversionRequest* req, + ::oteldemo::Money* resp) { + return service->Convert(ctx, req, resp); + }, this))); +} + +CurrencyService::Service::~Service() { +} + +::grpc::Status CurrencyService::Service::GetSupportedCurrencies(::grpc::ServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status CurrencyService::Service::Convert(::grpc::ServerContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* PaymentService_method_names[] = { + "/oteldemo.PaymentService/Charge", +}; + +std::unique_ptr< PaymentService::Stub> PaymentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< PaymentService::Stub> stub(new PaymentService::Stub(channel, options)); + return stub; +} + +PaymentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Charge_(PaymentService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status PaymentService::Stub::Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::oteldemo::ChargeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Charge_, context, request, response); +} + +void PaymentService::Stub::async::Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Charge_, context, request, response, std::move(f)); +} + +void PaymentService::Stub::async::Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Charge_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>* PaymentService::Stub::PrepareAsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::ChargeResponse, ::oteldemo::ChargeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Charge_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>* PaymentService::Stub::AsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncChargeRaw(context, request, cq); + result->StartCall(); + return result; +} + +PaymentService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + PaymentService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< PaymentService::Service, ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](PaymentService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::ChargeRequest* req, + ::oteldemo::ChargeResponse* resp) { + return service->Charge(ctx, req, resp); + }, this))); +} + +PaymentService::Service::~Service() { +} + +::grpc::Status PaymentService::Service::Charge(::grpc::ServerContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* EmailService_method_names[] = { + "/oteldemo.EmailService/SendOrderConfirmation", +}; + +std::unique_ptr< EmailService::Stub> EmailService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< EmailService::Stub> stub(new EmailService::Stub(channel, options)); + return stub; +} + +EmailService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_SendOrderConfirmation_(EmailService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status EmailService::Stub::SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::oteldemo::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendOrderConfirmation_, context, request, response); +} + +void EmailService::Stub::async::SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendOrderConfirmation_, context, request, response, std::move(f)); +} + +void EmailService::Stub::async::SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendOrderConfirmation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* EmailService::Stub::PrepareAsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::Empty, ::oteldemo::SendOrderConfirmationRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendOrderConfirmation_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* EmailService::Stub::AsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSendOrderConfirmationRaw(context, request, cq); + result->StartCall(); + return result; +} + +EmailService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + EmailService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< EmailService::Service, ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](EmailService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::SendOrderConfirmationRequest* req, + ::oteldemo::Empty* resp) { + return service->SendOrderConfirmation(ctx, req, resp); + }, this))); +} + +EmailService::Service::~Service() { +} + +::grpc::Status EmailService::Service::SendOrderConfirmation(::grpc::ServerContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* CheckoutService_method_names[] = { + "/oteldemo.CheckoutService/PlaceOrder", +}; + +std::unique_ptr< CheckoutService::Stub> CheckoutService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< CheckoutService::Stub> stub(new CheckoutService::Stub(channel, options)); + return stub; +} + +CheckoutService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_PlaceOrder_(CheckoutService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status CheckoutService::Stub::PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::oteldemo::PlaceOrderResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PlaceOrder_, context, request, response); +} + +void CheckoutService::Stub::async::PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PlaceOrder_, context, request, response, std::move(f)); +} + +void CheckoutService::Stub::async::PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PlaceOrder_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>* CheckoutService::Stub::PrepareAsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::PlaceOrderResponse, ::oteldemo::PlaceOrderRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PlaceOrder_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>* CheckoutService::Stub::AsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPlaceOrderRaw(context, request, cq); + result->StartCall(); + return result; +} + +CheckoutService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + CheckoutService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< CheckoutService::Service, ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](CheckoutService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::PlaceOrderRequest* req, + ::oteldemo::PlaceOrderResponse* resp) { + return service->PlaceOrder(ctx, req, resp); + }, this))); +} + +CheckoutService::Service::~Service() { +} + +::grpc::Status CheckoutService::Service::PlaceOrder(::grpc::ServerContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* AdService_method_names[] = { + "/oteldemo.AdService/GetAds", +}; + +std::unique_ptr< AdService::Stub> AdService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AdService::Stub> stub(new AdService::Stub(channel, options)); + return stub; +} + +AdService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetAds_(AdService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AdService::Stub::GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::oteldemo::AdResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::AdRequest, ::oteldemo::AdResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetAds_, context, request, response); +} + +void AdService::Stub::async::GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::AdRequest, ::oteldemo::AdResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAds_, context, request, response, std::move(f)); +} + +void AdService::Stub::async::GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetAds_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>* AdService::Stub::PrepareAsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::AdResponse, ::oteldemo::AdRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetAds_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>* AdService::Stub::AsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetAdsRaw(context, request, cq); + result->StartCall(); + return result; +} + +AdService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdService::Service, ::oteldemo::AdRequest, ::oteldemo::AdResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AdService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::AdRequest* req, + ::oteldemo::AdResponse* resp) { + return service->GetAds(ctx, req, resp); + }, this))); +} + +AdService::Service::~Service() { +} + +::grpc::Status AdService::Service::GetAds(::grpc::ServerContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* FeatureFlagService_method_names[] = { + "/oteldemo.FeatureFlagService/GetFlag", + "/oteldemo.FeatureFlagService/CreateFlag", + "/oteldemo.FeatureFlagService/UpdateFlag", + "/oteldemo.FeatureFlagService/ListFlags", + "/oteldemo.FeatureFlagService/DeleteFlag", +}; + +std::unique_ptr< FeatureFlagService::Stub> FeatureFlagService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< FeatureFlagService::Stub> stub(new FeatureFlagService::Stub(channel, options)); + return stub; +} + +FeatureFlagService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetFlag_(FeatureFlagService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateFlag_(FeatureFlagService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateFlag_(FeatureFlagService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListFlags_(FeatureFlagService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteFlag_(FeatureFlagService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status FeatureFlagService::Stub::GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::oteldemo::GetFlagResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetFlag_, context, request, response); +} + +void FeatureFlagService::Stub::async::GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFlag_, context, request, response, std::move(f)); +} + +void FeatureFlagService::Stub::async::GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetFlag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>* FeatureFlagService::Stub::PrepareAsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::GetFlagResponse, ::oteldemo::GetFlagRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetFlag_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>* FeatureFlagService::Stub::AsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetFlagRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status FeatureFlagService::Stub::CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::oteldemo::CreateFlagResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateFlag_, context, request, response); +} + +void FeatureFlagService::Stub::async::CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateFlag_, context, request, response, std::move(f)); +} + +void FeatureFlagService::Stub::async::CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateFlag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>* FeatureFlagService::Stub::PrepareAsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::CreateFlagResponse, ::oteldemo::CreateFlagRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateFlag_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>* FeatureFlagService::Stub::AsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCreateFlagRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status FeatureFlagService::Stub::UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::oteldemo::UpdateFlagResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateFlag_, context, request, response); +} + +void FeatureFlagService::Stub::async::UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateFlag_, context, request, response, std::move(f)); +} + +void FeatureFlagService::Stub::async::UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateFlag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>* FeatureFlagService::Stub::PrepareAsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::UpdateFlagResponse, ::oteldemo::UpdateFlagRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateFlag_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>* FeatureFlagService::Stub::AsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUpdateFlagRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status FeatureFlagService::Stub::ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::oteldemo::ListFlagsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListFlags_, context, request, response); +} + +void FeatureFlagService::Stub::async::ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListFlags_, context, request, response, std::move(f)); +} + +void FeatureFlagService::Stub::async::ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListFlags_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>* FeatureFlagService::Stub::PrepareAsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::ListFlagsResponse, ::oteldemo::ListFlagsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListFlags_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>* FeatureFlagService::Stub::AsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListFlagsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status FeatureFlagService::Stub::DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::oteldemo::DeleteFlagResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteFlag_, context, request, response); +} + +void FeatureFlagService::Stub::async::DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteFlag_, context, request, response, std::move(f)); +} + +void FeatureFlagService::Stub::async::DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteFlag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>* FeatureFlagService::Stub::PrepareAsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::oteldemo::DeleteFlagResponse, ::oteldemo::DeleteFlagRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteFlag_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>* FeatureFlagService::Stub::AsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteFlagRaw(context, request, cq); + result->StartCall(); + return result; +} + +FeatureFlagService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + FeatureFlagService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< FeatureFlagService::Service, ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](FeatureFlagService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::GetFlagRequest* req, + ::oteldemo::GetFlagResponse* resp) { + return service->GetFlag(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + FeatureFlagService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< FeatureFlagService::Service, ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](FeatureFlagService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::CreateFlagRequest* req, + ::oteldemo::CreateFlagResponse* resp) { + return service->CreateFlag(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + FeatureFlagService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< FeatureFlagService::Service, ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](FeatureFlagService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::UpdateFlagRequest* req, + ::oteldemo::UpdateFlagResponse* resp) { + return service->UpdateFlag(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + FeatureFlagService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< FeatureFlagService::Service, ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](FeatureFlagService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::ListFlagsRequest* req, + ::oteldemo::ListFlagsResponse* resp) { + return service->ListFlags(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + FeatureFlagService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< FeatureFlagService::Service, ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](FeatureFlagService::Service* service, + ::grpc::ServerContext* ctx, + const ::oteldemo::DeleteFlagRequest* req, + ::oteldemo::DeleteFlagResponse* resp) { + return service->DeleteFlag(ctx, req, resp); + }, this))); +} + +FeatureFlagService::Service::~Service() { +} + +::grpc::Status FeatureFlagService::Service::GetFlag(::grpc::ServerContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status FeatureFlagService::Service::CreateFlag(::grpc::ServerContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status FeatureFlagService::Service::UpdateFlag(::grpc::ServerContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status FeatureFlagService::Service::ListFlags(::grpc::ServerContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status FeatureFlagService::Service::DeleteFlag(::grpc::ServerContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace oteldemo + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..2bd5cb8ae28645b319fedbbcc7b18794aa2ac99e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.grpc.pb.h @@ -0,0 +1,4231 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: demo.proto +// Original file comments: +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_demo_2eproto__INCLUDED +#define GRPC_demo_2eproto__INCLUDED + +#include "demo.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace oteldemo { + +// -----------------Cart service----------------- +// +class CartService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.CartService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::oteldemo::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> AsyncAddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(AsyncAddItemRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> PrepareAsyncAddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(PrepareAsyncAddItemRaw(context, request, cq)); + } + virtual ::grpc::Status GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::oteldemo::Cart* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>> AsyncGetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>>(AsyncGetCartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>> PrepareAsyncGetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>>(PrepareAsyncGetCartRaw(context, request, cq)); + } + virtual ::grpc::Status EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::oteldemo::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> AsyncEmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(AsyncEmptyCartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> PrepareAsyncEmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(PrepareAsyncEmptyCartRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, std::function) = 0; + virtual void AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, std::function) = 0; + virtual void GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, std::function) = 0; + virtual void EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* AsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* PrepareAsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>* AsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>* PrepareAsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* AsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* PrepareAsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::oteldemo::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> AsyncAddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(AsyncAddItemRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> PrepareAsyncAddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(PrepareAsyncAddItemRaw(context, request, cq)); + } + ::grpc::Status GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::oteldemo::Cart* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>> AsyncGetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>>(AsyncGetCartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>> PrepareAsyncGetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>>(PrepareAsyncGetCartRaw(context, request, cq)); + } + ::grpc::Status EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::oteldemo::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> AsyncEmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(AsyncEmptyCartRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> PrepareAsyncEmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(PrepareAsyncEmptyCartRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, std::function) override; + void AddItem(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, std::function) override; + void GetCart(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response, ::grpc::ClientUnaryReactor* reactor) override; + void EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, std::function) override; + void EmptyCart(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* AsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* PrepareAsyncAddItemRaw(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>* AsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Cart>* PrepareAsyncGetCartRaw(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* AsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* PrepareAsyncEmptyCartRaw(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_AddItem_; + const ::grpc::internal::RpcMethod rpcmethod_GetCart_; + const ::grpc::internal::RpcMethod rpcmethod_EmptyCart_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status AddItem(::grpc::ServerContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response); + virtual ::grpc::Status GetCart(::grpc::ServerContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response); + virtual ::grpc::Status EmptyCart(::grpc::ServerContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response); + }; + template + class WithAsyncMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddItem() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddItem(::grpc::ServerContext* context, ::oteldemo::AddItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetCart() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCart(::grpc::ServerContext* context, ::oteldemo::GetCartRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Cart>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_EmptyCart() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestEmptyCart(::grpc::ServerContext* context, ::oteldemo::EmptyCartRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_AddItem > > AsyncService; + template + class WithCallbackMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddItem() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::AddItemRequest, ::oteldemo::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::AddItemRequest* request, ::oteldemo::Empty* response) { return this->AddItem(context, request, response); }));} + void SetMessageAllocatorFor_AddItem( + ::grpc::MessageAllocator< ::oteldemo::AddItemRequest, ::oteldemo::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::AddItemRequest, ::oteldemo::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddItem( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetCart() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetCartRequest, ::oteldemo::Cart>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetCartRequest* request, ::oteldemo::Cart* response) { return this->GetCart(context, request, response); }));} + void SetMessageAllocatorFor_GetCart( + ::grpc::MessageAllocator< ::oteldemo::GetCartRequest, ::oteldemo::Cart>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetCartRequest, ::oteldemo::Cart>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCart( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_EmptyCart() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::EmptyCartRequest, ::oteldemo::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::EmptyCartRequest* request, ::oteldemo::Empty* response) { return this->EmptyCart(context, request, response); }));} + void SetMessageAllocatorFor_EmptyCart( + ::grpc::MessageAllocator< ::oteldemo::EmptyCartRequest, ::oteldemo::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::EmptyCartRequest, ::oteldemo::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* EmptyCart( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_AddItem > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddItem() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetCart() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_EmptyCart() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddItem() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddItem(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetCart() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetCart(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_EmptyCart() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestEmptyCart(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddItem() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AddItem(context, request, response); })); + } + ~WithRawCallbackMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AddItem( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetCart() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetCart(context, request, response); })); + } + ~WithRawCallbackMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetCart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_EmptyCart() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EmptyCart(context, request, response); })); + } + ~WithRawCallbackMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* EmptyCart( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_AddItem : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AddItem() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::AddItemRequest, ::oteldemo::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::AddItemRequest, ::oteldemo::Empty>* streamer) { + return this->StreamedAddItem(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AddItem() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddItem(::grpc::ServerContext* /*context*/, const ::oteldemo::AddItemRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddItem(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::AddItemRequest,::oteldemo::Empty>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetCart() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetCartRequest, ::oteldemo::Cart>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetCartRequest, ::oteldemo::Cart>* streamer) { + return this->StreamedGetCart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetCart(::grpc::ServerContext* /*context*/, const ::oteldemo::GetCartRequest* /*request*/, ::oteldemo::Cart* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetCart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetCartRequest,::oteldemo::Cart>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_EmptyCart : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_EmptyCart() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::EmptyCartRequest, ::oteldemo::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::EmptyCartRequest, ::oteldemo::Empty>* streamer) { + return this->StreamedEmptyCart(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_EmptyCart() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status EmptyCart(::grpc::ServerContext* /*context*/, const ::oteldemo::EmptyCartRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedEmptyCart(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::EmptyCartRequest,::oteldemo::Empty>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_AddItem > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_AddItem > > StreamedService; +}; + +// ---------------Recommendation service---------- +// +class RecommendationService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.RecommendationService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::oteldemo::ListRecommendationsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>> AsyncListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>>(AsyncListRecommendationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>> PrepareAsyncListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>>(PrepareAsyncListRecommendationsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, std::function) = 0; + virtual void ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>* AsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>* PrepareAsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::oteldemo::ListRecommendationsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>> AsyncListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>>(AsyncListRecommendationsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>> PrepareAsyncListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>>(PrepareAsyncListRecommendationsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, std::function) override; + void ListRecommendations(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>* AsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListRecommendationsResponse>* PrepareAsyncListRecommendationsRaw(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_ListRecommendations_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status ListRecommendations(::grpc::ServerContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response); + }; + template + class WithAsyncMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListRecommendations() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListRecommendations(::grpc::ServerContext* context, ::oteldemo::ListRecommendationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::ListRecommendationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListRecommendations AsyncService; + template + class WithCallbackMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListRecommendations() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::ListRecommendationsRequest* request, ::oteldemo::ListRecommendationsResponse* response) { return this->ListRecommendations(context, request, response); }));} + void SetMessageAllocatorFor_ListRecommendations( + ::grpc::MessageAllocator< ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListRecommendations( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_ListRecommendations CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListRecommendations() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListRecommendations() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListRecommendations(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListRecommendations() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListRecommendations(context, request, response); })); + } + ~WithRawCallbackMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListRecommendations( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_ListRecommendations : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListRecommendations() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::ListRecommendationsRequest, ::oteldemo::ListRecommendationsResponse>* streamer) { + return this->StreamedListRecommendations(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListRecommendations() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListRecommendations(::grpc::ServerContext* /*context*/, const ::oteldemo::ListRecommendationsRequest* /*request*/, ::oteldemo::ListRecommendationsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListRecommendations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::ListRecommendationsRequest,::oteldemo::ListRecommendationsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_ListRecommendations StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_ListRecommendations StreamedService; +}; + +// ---------------Product Catalog---------------- +// +class ProductCatalogService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.ProductCatalogService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::ListProductsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>> AsyncListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>>(AsyncListProductsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>> PrepareAsyncListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>>(PrepareAsyncListProductsRaw(context, request, cq)); + } + virtual ::grpc::Status GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::oteldemo::Product* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>> AsyncGetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>>(AsyncGetProductRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>> PrepareAsyncGetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>>(PrepareAsyncGetProductRaw(context, request, cq)); + } + virtual ::grpc::Status SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::oteldemo::SearchProductsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>> AsyncSearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>>(AsyncSearchProductsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>> PrepareAsyncSearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>>(PrepareAsyncSearchProductsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, std::function) = 0; + virtual void ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, std::function) = 0; + virtual void GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, std::function) = 0; + virtual void SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>* AsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>* PrepareAsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>* AsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>* PrepareAsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>* AsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>* PrepareAsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::ListProductsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>> AsyncListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>>(AsyncListProductsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>> PrepareAsyncListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>>(PrepareAsyncListProductsRaw(context, request, cq)); + } + ::grpc::Status GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::oteldemo::Product* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>> AsyncGetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>>(AsyncGetProductRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>> PrepareAsyncGetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>>(PrepareAsyncGetProductRaw(context, request, cq)); + } + ::grpc::Status SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::oteldemo::SearchProductsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>> AsyncSearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>>(AsyncSearchProductsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>> PrepareAsyncSearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>>(PrepareAsyncSearchProductsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, std::function) override; + void ListProducts(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, std::function) override; + void GetProduct(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response, ::grpc::ClientUnaryReactor* reactor) override; + void SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, std::function) override; + void SearchProducts(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>* AsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListProductsResponse>* PrepareAsyncListProductsRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>* AsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Product>* PrepareAsyncGetProductRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>* AsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::SearchProductsResponse>* PrepareAsyncSearchProductsRaw(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_ListProducts_; + const ::grpc::internal::RpcMethod rpcmethod_GetProduct_; + const ::grpc::internal::RpcMethod rpcmethod_SearchProducts_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status ListProducts(::grpc::ServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response); + virtual ::grpc::Status GetProduct(::grpc::ServerContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response); + virtual ::grpc::Status SearchProducts(::grpc::ServerContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response); + }; + template + class WithAsyncMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListProducts() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProducts(::grpc::ServerContext* context, ::oteldemo::Empty* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::ListProductsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetProduct() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProduct(::grpc::ServerContext* context, ::oteldemo::GetProductRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Product>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SearchProducts() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchProducts(::grpc::ServerContext* context, ::oteldemo::SearchProductsRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::SearchProductsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_ListProducts > > AsyncService; + template + class WithCallbackMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListProducts() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::Empty, ::oteldemo::ListProductsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::ListProductsResponse* response) { return this->ListProducts(context, request, response); }));} + void SetMessageAllocatorFor_ListProducts( + ::grpc::MessageAllocator< ::oteldemo::Empty, ::oteldemo::ListProductsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::Empty, ::oteldemo::ListProductsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListProducts( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetProduct() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetProductRequest, ::oteldemo::Product>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetProductRequest* request, ::oteldemo::Product* response) { return this->GetProduct(context, request, response); }));} + void SetMessageAllocatorFor_GetProduct( + ::grpc::MessageAllocator< ::oteldemo::GetProductRequest, ::oteldemo::Product>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetProductRequest, ::oteldemo::Product>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProduct( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SearchProducts() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::SearchProductsRequest* request, ::oteldemo::SearchProductsResponse* response) { return this->SearchProducts(context, request, response); }));} + void SetMessageAllocatorFor_SearchProducts( + ::grpc::MessageAllocator< ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SearchProducts( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_ListProducts > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListProducts() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetProduct() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SearchProducts() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListProducts() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProducts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetProduct() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProduct(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SearchProducts() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchProducts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListProducts() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListProducts(context, request, response); })); + } + ~WithRawCallbackMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListProducts( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetProduct() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProduct(context, request, response); })); + } + ~WithRawCallbackMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProduct( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SearchProducts() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SearchProducts(context, request, response); })); + } + ~WithRawCallbackMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SearchProducts( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_ListProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListProducts() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::Empty, ::oteldemo::ListProductsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::Empty, ::oteldemo::ListProductsResponse>* streamer) { + return this->StreamedListProducts(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::ListProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListProducts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::Empty,::oteldemo::ListProductsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProduct : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetProduct() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetProductRequest, ::oteldemo::Product>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetProductRequest, ::oteldemo::Product>* streamer) { + return this->StreamedGetProduct(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetProduct() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProduct(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductRequest* /*request*/, ::oteldemo::Product* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProduct(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetProductRequest,::oteldemo::Product>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SearchProducts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SearchProducts() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::SearchProductsRequest, ::oteldemo::SearchProductsResponse>* streamer) { + return this->StreamedSearchProducts(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SearchProducts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SearchProducts(::grpc::ServerContext* /*context*/, const ::oteldemo::SearchProductsRequest* /*request*/, ::oteldemo::SearchProductsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSearchProducts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::SearchProductsRequest,::oteldemo::SearchProductsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_ListProducts > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_ListProducts > > StreamedService; +}; + +// ---------------Product Review service---------- +// +class ProductReviewService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.ProductReviewService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::oteldemo::GetProductReviewsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>> AsyncGetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>>(AsyncGetProductReviewsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>> PrepareAsyncGetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>>(PrepareAsyncGetProductReviewsRaw(context, request, cq)); + } + virtual ::grpc::Status GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::oteldemo::GetAverageProductReviewScoreResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>> AsyncGetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>>(AsyncGetAverageProductReviewScoreRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>> PrepareAsyncGetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>>(PrepareAsyncGetAverageProductReviewScoreRaw(context, request, cq)); + } + virtual ::grpc::Status AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::oteldemo::AskProductAIAssistantResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>> AsyncAskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>>(AsyncAskProductAIAssistantRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>> PrepareAsyncAskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>>(PrepareAsyncAskProductAIAssistantRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, std::function) = 0; + virtual void GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, std::function) = 0; + virtual void GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, std::function) = 0; + virtual void AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>* AsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>* PrepareAsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>* AsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>* PrepareAsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>* AsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>* PrepareAsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::oteldemo::GetProductReviewsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>> AsyncGetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>>(AsyncGetProductReviewsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>> PrepareAsyncGetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>>(PrepareAsyncGetProductReviewsRaw(context, request, cq)); + } + ::grpc::Status GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::oteldemo::GetAverageProductReviewScoreResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>> AsyncGetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>>(AsyncGetAverageProductReviewScoreRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>> PrepareAsyncGetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>>(PrepareAsyncGetAverageProductReviewScoreRaw(context, request, cq)); + } + ::grpc::Status AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::oteldemo::AskProductAIAssistantResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>> AsyncAskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>>(AsyncAskProductAIAssistantRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>> PrepareAsyncAskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>>(PrepareAsyncAskProductAIAssistantRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, std::function) override; + void GetProductReviews(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, std::function) override; + void GetAverageProductReviewScore(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, std::function) override; + void AskProductAIAssistant(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>* AsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetProductReviewsResponse>* PrepareAsyncGetProductReviewsRaw(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>* AsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetAverageProductReviewScoreResponse>* PrepareAsyncGetAverageProductReviewScoreRaw(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>* AsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::AskProductAIAssistantResponse>* PrepareAsyncAskProductAIAssistantRaw(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetProductReviews_; + const ::grpc::internal::RpcMethod rpcmethod_GetAverageProductReviewScore_; + const ::grpc::internal::RpcMethod rpcmethod_AskProductAIAssistant_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status GetProductReviews(::grpc::ServerContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response); + virtual ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response); + virtual ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response); + }; + template + class WithAsyncMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetProductReviews() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProductReviews(::grpc::ServerContext* context, ::oteldemo::GetProductReviewsRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::GetProductReviewsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAverageProductReviewScore(::grpc::ServerContext* context, ::oteldemo::GetAverageProductReviewScoreRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::GetAverageProductReviewScoreResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAskProductAIAssistant(::grpc::ServerContext* context, ::oteldemo::AskProductAIAssistantRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::AskProductAIAssistantResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetProductReviews > > AsyncService; + template + class WithCallbackMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetProductReviews() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetProductReviewsRequest* request, ::oteldemo::GetProductReviewsResponse* response) { return this->GetProductReviews(context, request, response); }));} + void SetMessageAllocatorFor_GetProductReviews( + ::grpc::MessageAllocator< ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProductReviews( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest* request, ::oteldemo::GetAverageProductReviewScoreResponse* response) { return this->GetAverageProductReviewScore(context, request, response); }));} + void SetMessageAllocatorFor_GetAverageProductReviewScore( + ::grpc::MessageAllocator< ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAverageProductReviewScore( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::AskProductAIAssistantRequest* request, ::oteldemo::AskProductAIAssistantResponse* response) { return this->AskProductAIAssistant(context, request, response); }));} + void SetMessageAllocatorFor_AskProductAIAssistant( + ::grpc::MessageAllocator< ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AskProductAIAssistant( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetProductReviews > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetProductReviews() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetProductReviews() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProductReviews(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAverageProductReviewScore(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAskProductAIAssistant(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetProductReviews() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetProductReviews(context, request, response); })); + } + ~WithRawCallbackMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetProductReviews( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAverageProductReviewScore(context, request, response); })); + } + ~WithRawCallbackMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAverageProductReviewScore( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->AskProductAIAssistant(context, request, response); })); + } + ~WithRawCallbackMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* AskProductAIAssistant( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetProductReviews : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetProductReviews() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetProductReviewsRequest, ::oteldemo::GetProductReviewsResponse>* streamer) { + return this->StreamedGetProductReviews(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetProductReviews() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProductReviews(::grpc::ServerContext* /*context*/, const ::oteldemo::GetProductReviewsRequest* /*request*/, ::oteldemo::GetProductReviewsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProductReviews(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetProductReviewsRequest,::oteldemo::GetProductReviewsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetAverageProductReviewScore : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetAverageProductReviewScore() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetAverageProductReviewScoreRequest, ::oteldemo::GetAverageProductReviewScoreResponse>* streamer) { + return this->StreamedGetAverageProductReviewScore(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetAverageProductReviewScore() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetAverageProductReviewScore(::grpc::ServerContext* /*context*/, const ::oteldemo::GetAverageProductReviewScoreRequest* /*request*/, ::oteldemo::GetAverageProductReviewScoreResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetAverageProductReviewScore(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetAverageProductReviewScoreRequest,::oteldemo::GetAverageProductReviewScoreResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AskProductAIAssistant : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_AskProductAIAssistant() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::AskProductAIAssistantRequest, ::oteldemo::AskProductAIAssistantResponse>* streamer) { + return this->StreamedAskProductAIAssistant(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_AskProductAIAssistant() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AskProductAIAssistant(::grpc::ServerContext* /*context*/, const ::oteldemo::AskProductAIAssistantRequest* /*request*/, ::oteldemo::AskProductAIAssistantResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAskProductAIAssistant(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::AskProductAIAssistantRequest,::oteldemo::AskProductAIAssistantResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetProductReviews > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetProductReviews > > StreamedService; +}; + +// ---------------Shipping Service---------- +// +class ShippingService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.ShippingService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::oteldemo::GetQuoteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>> AsyncGetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>>(AsyncGetQuoteRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>> PrepareAsyncGetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>>(PrepareAsyncGetQuoteRaw(context, request, cq)); + } + virtual ::grpc::Status ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::oteldemo::ShipOrderResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>> AsyncShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>>(AsyncShipOrderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>> PrepareAsyncShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>>(PrepareAsyncShipOrderRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, std::function) = 0; + virtual void GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, std::function) = 0; + virtual void ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>* AsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>* PrepareAsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>* AsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>* PrepareAsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::oteldemo::GetQuoteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>> AsyncGetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>>(AsyncGetQuoteRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>> PrepareAsyncGetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>>(PrepareAsyncGetQuoteRaw(context, request, cq)); + } + ::grpc::Status ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::oteldemo::ShipOrderResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>> AsyncShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>>(AsyncShipOrderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>> PrepareAsyncShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>>(PrepareAsyncShipOrderRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, std::function) override; + void GetQuote(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, std::function) override; + void ShipOrder(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>* AsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetQuoteResponse>* PrepareAsyncGetQuoteRaw(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>* AsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ShipOrderResponse>* PrepareAsyncShipOrderRaw(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetQuote_; + const ::grpc::internal::RpcMethod rpcmethod_ShipOrder_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status GetQuote(::grpc::ServerContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response); + virtual ::grpc::Status ShipOrder(::grpc::ServerContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response); + }; + template + class WithAsyncMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetQuote() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetQuote(::grpc::ServerContext* context, ::oteldemo::GetQuoteRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::GetQuoteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ShipOrder() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestShipOrder(::grpc::ServerContext* context, ::oteldemo::ShipOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::ShipOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetQuote > AsyncService; + template + class WithCallbackMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetQuote() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetQuoteRequest* request, ::oteldemo::GetQuoteResponse* response) { return this->GetQuote(context, request, response); }));} + void SetMessageAllocatorFor_GetQuote( + ::grpc::MessageAllocator< ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetQuote( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ShipOrder() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::ShipOrderRequest* request, ::oteldemo::ShipOrderResponse* response) { return this->ShipOrder(context, request, response); }));} + void SetMessageAllocatorFor_ShipOrder( + ::grpc::MessageAllocator< ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ShipOrder( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetQuote > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetQuote() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ShipOrder() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetQuote() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetQuote(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ShipOrder() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestShipOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetQuote() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetQuote(context, request, response); })); + } + ~WithRawCallbackMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetQuote( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ShipOrder() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ShipOrder(context, request, response); })); + } + ~WithRawCallbackMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ShipOrder( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetQuote : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetQuote() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetQuoteRequest, ::oteldemo::GetQuoteResponse>* streamer) { + return this->StreamedGetQuote(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetQuote() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetQuote(::grpc::ServerContext* /*context*/, const ::oteldemo::GetQuoteRequest* /*request*/, ::oteldemo::GetQuoteResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetQuote(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetQuoteRequest,::oteldemo::GetQuoteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ShipOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ShipOrder() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::ShipOrderRequest, ::oteldemo::ShipOrderResponse>* streamer) { + return this->StreamedShipOrder(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ShipOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ShipOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::ShipOrderRequest* /*request*/, ::oteldemo::ShipOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedShipOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::ShipOrderRequest,::oteldemo::ShipOrderResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetQuote > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetQuote > StreamedService; +}; + +// -----------------Currency service----------------- +// +class CurrencyService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.CurrencyService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::GetSupportedCurrenciesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>> AsyncGetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>>(AsyncGetSupportedCurrenciesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>> PrepareAsyncGetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>>(PrepareAsyncGetSupportedCurrenciesRaw(context, request, cq)); + } + virtual ::grpc::Status Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::oteldemo::Money* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>> AsyncConvert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>>(AsyncConvertRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>> PrepareAsyncConvert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>>(PrepareAsyncConvertRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, std::function) = 0; + virtual void GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, std::function) = 0; + virtual void Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>* AsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>* PrepareAsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>* AsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>* PrepareAsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::GetSupportedCurrenciesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>> AsyncGetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>>(AsyncGetSupportedCurrenciesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>> PrepareAsyncGetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>>(PrepareAsyncGetSupportedCurrenciesRaw(context, request, cq)); + } + ::grpc::Status Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::oteldemo::Money* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>> AsyncConvert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>>(AsyncConvertRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>> PrepareAsyncConvert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>>(PrepareAsyncConvertRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, std::function) override; + void GetSupportedCurrencies(::grpc::ClientContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, std::function) override; + void Convert(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>* AsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetSupportedCurrenciesResponse>* PrepareAsyncGetSupportedCurrenciesRaw(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>* AsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Money>* PrepareAsyncConvertRaw(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetSupportedCurrencies_; + const ::grpc::internal::RpcMethod rpcmethod_Convert_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response); + virtual ::grpc::Status Convert(::grpc::ServerContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response); + }; + template + class WithAsyncMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSupportedCurrencies(::grpc::ServerContext* context, ::oteldemo::Empty* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::GetSupportedCurrenciesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Convert() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestConvert(::grpc::ServerContext* context, ::oteldemo::CurrencyConversionRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Money>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetSupportedCurrencies > AsyncService; + template + class WithCallbackMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::Empty* request, ::oteldemo::GetSupportedCurrenciesResponse* response) { return this->GetSupportedCurrencies(context, request, response); }));} + void SetMessageAllocatorFor_GetSupportedCurrencies( + ::grpc::MessageAllocator< ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSupportedCurrencies( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Convert() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::CurrencyConversionRequest* request, ::oteldemo::Money* response) { return this->Convert(context, request, response); }));} + void SetMessageAllocatorFor_Convert( + ::grpc::MessageAllocator< ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Convert( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetSupportedCurrencies > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Convert() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSupportedCurrencies(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Convert() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestConvert(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetSupportedCurrencies(context, request, response); })); + } + ~WithRawCallbackMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSupportedCurrencies( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Convert() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Convert(context, request, response); })); + } + ~WithRawCallbackMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Convert( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetSupportedCurrencies : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetSupportedCurrencies() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::Empty, ::oteldemo::GetSupportedCurrenciesResponse>* streamer) { + return this->StreamedGetSupportedCurrencies(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetSupportedCurrencies() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetSupportedCurrencies(::grpc::ServerContext* /*context*/, const ::oteldemo::Empty* /*request*/, ::oteldemo::GetSupportedCurrenciesResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetSupportedCurrencies(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::Empty,::oteldemo::GetSupportedCurrenciesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Convert : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Convert() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::CurrencyConversionRequest, ::oteldemo::Money>* streamer) { + return this->StreamedConvert(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Convert() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Convert(::grpc::ServerContext* /*context*/, const ::oteldemo::CurrencyConversionRequest* /*request*/, ::oteldemo::Money* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedConvert(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::CurrencyConversionRequest,::oteldemo::Money>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetSupportedCurrencies > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetSupportedCurrencies > StreamedService; +}; + +// -------------Payment service----------------- +// +class PaymentService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.PaymentService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::oteldemo::ChargeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>> AsyncCharge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>>(AsyncChargeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>> PrepareAsyncCharge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>>(PrepareAsyncChargeRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, std::function) = 0; + virtual void Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>* AsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>* PrepareAsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::oteldemo::ChargeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>> AsyncCharge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>>(AsyncChargeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>> PrepareAsyncCharge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>>(PrepareAsyncChargeRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, std::function) override; + void Charge(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>* AsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ChargeResponse>* PrepareAsyncChargeRaw(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Charge_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status Charge(::grpc::ServerContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response); + }; + template + class WithAsyncMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Charge() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCharge(::grpc::ServerContext* context, ::oteldemo::ChargeRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::ChargeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Charge AsyncService; + template + class WithCallbackMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Charge() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::ChargeRequest* request, ::oteldemo::ChargeResponse* response) { return this->Charge(context, request, response); }));} + void SetMessageAllocatorFor_Charge( + ::grpc::MessageAllocator< ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Charge( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Charge CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Charge() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Charge() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCharge(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Charge() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Charge(context, request, response); })); + } + ~WithRawCallbackMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Charge( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Charge : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Charge() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::ChargeRequest, ::oteldemo::ChargeResponse>* streamer) { + return this->StreamedCharge(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Charge() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Charge(::grpc::ServerContext* /*context*/, const ::oteldemo::ChargeRequest* /*request*/, ::oteldemo::ChargeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCharge(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::ChargeRequest,::oteldemo::ChargeResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Charge StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Charge StreamedService; +}; + +// -------------Email service----------------- +// +class EmailService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.EmailService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::oteldemo::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> AsyncSendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(AsyncSendOrderConfirmationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>> PrepareAsyncSendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>>(PrepareAsyncSendOrderConfirmationRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, std::function) = 0; + virtual void SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* AsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>* PrepareAsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::oteldemo::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> AsyncSendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(AsyncSendOrderConfirmationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>> PrepareAsyncSendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>>(PrepareAsyncSendOrderConfirmationRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, std::function) override; + void SendOrderConfirmation(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* AsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::Empty>* PrepareAsyncSendOrderConfirmationRaw(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_SendOrderConfirmation_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response); + }; + template + class WithAsyncMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendOrderConfirmation(::grpc::ServerContext* context, ::oteldemo::SendOrderConfirmationRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_SendOrderConfirmation AsyncService; + template + class WithCallbackMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::SendOrderConfirmationRequest* request, ::oteldemo::Empty* response) { return this->SendOrderConfirmation(context, request, response); }));} + void SetMessageAllocatorFor_SendOrderConfirmation( + ::grpc::MessageAllocator< ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendOrderConfirmation( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_SendOrderConfirmation CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendOrderConfirmation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendOrderConfirmation(context, request, response); })); + } + ~WithRawCallbackMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendOrderConfirmation( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_SendOrderConfirmation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SendOrderConfirmation() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::SendOrderConfirmationRequest, ::oteldemo::Empty>* streamer) { + return this->StreamedSendOrderConfirmation(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SendOrderConfirmation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SendOrderConfirmation(::grpc::ServerContext* /*context*/, const ::oteldemo::SendOrderConfirmationRequest* /*request*/, ::oteldemo::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSendOrderConfirmation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::SendOrderConfirmationRequest,::oteldemo::Empty>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_SendOrderConfirmation StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_SendOrderConfirmation StreamedService; +}; + +// -------------Checkout service----------------- +// +class CheckoutService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.CheckoutService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::oteldemo::PlaceOrderResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>> AsyncPlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>>(AsyncPlaceOrderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>> PrepareAsyncPlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>>(PrepareAsyncPlaceOrderRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, std::function) = 0; + virtual void PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>* AsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>* PrepareAsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::oteldemo::PlaceOrderResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>> AsyncPlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>>(AsyncPlaceOrderRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>> PrepareAsyncPlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>>(PrepareAsyncPlaceOrderRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, std::function) override; + void PlaceOrder(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>* AsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::PlaceOrderResponse>* PrepareAsyncPlaceOrderRaw(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_PlaceOrder_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status PlaceOrder(::grpc::ServerContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response); + }; + template + class WithAsyncMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PlaceOrder() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPlaceOrder(::grpc::ServerContext* context, ::oteldemo::PlaceOrderRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::PlaceOrderResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_PlaceOrder AsyncService; + template + class WithCallbackMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PlaceOrder() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::PlaceOrderRequest* request, ::oteldemo::PlaceOrderResponse* response) { return this->PlaceOrder(context, request, response); }));} + void SetMessageAllocatorFor_PlaceOrder( + ::grpc::MessageAllocator< ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PlaceOrder( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_PlaceOrder CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PlaceOrder() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PlaceOrder() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPlaceOrder(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PlaceOrder() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PlaceOrder(context, request, response); })); + } + ~WithRawCallbackMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PlaceOrder( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_PlaceOrder : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PlaceOrder() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::PlaceOrderRequest, ::oteldemo::PlaceOrderResponse>* streamer) { + return this->StreamedPlaceOrder(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PlaceOrder() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PlaceOrder(::grpc::ServerContext* /*context*/, const ::oteldemo::PlaceOrderRequest* /*request*/, ::oteldemo::PlaceOrderResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPlaceOrder(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::PlaceOrderRequest,::oteldemo::PlaceOrderResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_PlaceOrder StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_PlaceOrder StreamedService; +}; + +// ------------Ad service------------------ +// +class AdService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.AdService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::oteldemo::AdResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>> AsyncGetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>>(AsyncGetAdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>> PrepareAsyncGetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>>(PrepareAsyncGetAdsRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, std::function) = 0; + virtual void GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>* AsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>* PrepareAsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::oteldemo::AdResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>> AsyncGetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>>(AsyncGetAdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>> PrepareAsyncGetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>>(PrepareAsyncGetAdsRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, std::function) override; + void GetAds(::grpc::ClientContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>* AsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::AdResponse>* PrepareAsyncGetAdsRaw(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetAds_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status GetAds(::grpc::ServerContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response); + }; + template + class WithAsyncMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetAds() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAds(::grpc::ServerContext* context, ::oteldemo::AdRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::AdResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetAds AsyncService; + template + class WithCallbackMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetAds() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::AdRequest, ::oteldemo::AdResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::AdRequest* request, ::oteldemo::AdResponse* response) { return this->GetAds(context, request, response); }));} + void SetMessageAllocatorFor_GetAds( + ::grpc::MessageAllocator< ::oteldemo::AdRequest, ::oteldemo::AdResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::AdRequest, ::oteldemo::AdResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAds( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetAds CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetAds() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetAds() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetAds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetAds() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetAds(context, request, response); })); + } + ~WithRawCallbackMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetAds( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetAds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetAds() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::AdRequest, ::oteldemo::AdResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::AdRequest, ::oteldemo::AdResponse>* streamer) { + return this->StreamedGetAds(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetAds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetAds(::grpc::ServerContext* /*context*/, const ::oteldemo::AdRequest* /*request*/, ::oteldemo::AdResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetAds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::AdRequest,::oteldemo::AdResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetAds StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetAds StreamedService; +}; + +// ------------Feature flag service------------------ +// +class FeatureFlagService final { + public: + static constexpr char const* service_full_name() { + return "oteldemo.FeatureFlagService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::oteldemo::GetFlagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>> AsyncGetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>>(AsyncGetFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>> PrepareAsyncGetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>>(PrepareAsyncGetFlagRaw(context, request, cq)); + } + virtual ::grpc::Status CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::oteldemo::CreateFlagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>> AsyncCreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>>(AsyncCreateFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>> PrepareAsyncCreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>>(PrepareAsyncCreateFlagRaw(context, request, cq)); + } + virtual ::grpc::Status UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::oteldemo::UpdateFlagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>> AsyncUpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>>(AsyncUpdateFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>> PrepareAsyncUpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>>(PrepareAsyncUpdateFlagRaw(context, request, cq)); + } + virtual ::grpc::Status ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::oteldemo::ListFlagsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>> AsyncListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>>(AsyncListFlagsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>> PrepareAsyncListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>>(PrepareAsyncListFlagsRaw(context, request, cq)); + } + virtual ::grpc::Status DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::oteldemo::DeleteFlagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>> AsyncDeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>>(AsyncDeleteFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>> PrepareAsyncDeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>>(PrepareAsyncDeleteFlagRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, std::function) = 0; + virtual void GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, std::function) = 0; + virtual void CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, std::function) = 0; + virtual void UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, std::function) = 0; + virtual void ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, std::function) = 0; + virtual void DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>* AsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>* PrepareAsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>* AsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>* PrepareAsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>* AsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>* PrepareAsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>* AsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>* PrepareAsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>* AsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>* PrepareAsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::oteldemo::GetFlagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>> AsyncGetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>>(AsyncGetFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>> PrepareAsyncGetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>>(PrepareAsyncGetFlagRaw(context, request, cq)); + } + ::grpc::Status CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::oteldemo::CreateFlagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>> AsyncCreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>>(AsyncCreateFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>> PrepareAsyncCreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>>(PrepareAsyncCreateFlagRaw(context, request, cq)); + } + ::grpc::Status UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::oteldemo::UpdateFlagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>> AsyncUpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>>(AsyncUpdateFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>> PrepareAsyncUpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>>(PrepareAsyncUpdateFlagRaw(context, request, cq)); + } + ::grpc::Status ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::oteldemo::ListFlagsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>> AsyncListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>>(AsyncListFlagsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>> PrepareAsyncListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>>(PrepareAsyncListFlagsRaw(context, request, cq)); + } + ::grpc::Status DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::oteldemo::DeleteFlagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>> AsyncDeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>>(AsyncDeleteFlagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>> PrepareAsyncDeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>>(PrepareAsyncDeleteFlagRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, std::function) override; + void GetFlag(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, std::function) override; + void CreateFlag(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, std::function) override; + void UpdateFlag(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, std::function) override; + void ListFlags(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, std::function) override; + void DeleteFlag(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>* AsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::GetFlagResponse>* PrepareAsyncGetFlagRaw(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>* AsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::CreateFlagResponse>* PrepareAsyncCreateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>* AsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::UpdateFlagResponse>* PrepareAsyncUpdateFlagRaw(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>* AsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::ListFlagsResponse>* PrepareAsyncListFlagsRaw(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>* AsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::oteldemo::DeleteFlagResponse>* PrepareAsyncDeleteFlagRaw(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetFlag_; + const ::grpc::internal::RpcMethod rpcmethod_CreateFlag_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateFlag_; + const ::grpc::internal::RpcMethod rpcmethod_ListFlags_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteFlag_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status GetFlag(::grpc::ServerContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response); + virtual ::grpc::Status CreateFlag(::grpc::ServerContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response); + virtual ::grpc::Status UpdateFlag(::grpc::ServerContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response); + virtual ::grpc::Status ListFlags(::grpc::ServerContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response); + virtual ::grpc::Status DeleteFlag(::grpc::ServerContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response); + }; + template + class WithAsyncMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetFlag() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetFlag(::grpc::ServerContext* context, ::oteldemo::GetFlagRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::GetFlagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateFlag() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateFlag(::grpc::ServerContext* context, ::oteldemo::CreateFlagRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::CreateFlagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UpdateFlag() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateFlag(::grpc::ServerContext* context, ::oteldemo::UpdateFlagRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::UpdateFlagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListFlags() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListFlags(::grpc::ServerContext* context, ::oteldemo::ListFlagsRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::ListFlagsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteFlag() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteFlag(::grpc::ServerContext* context, ::oteldemo::DeleteFlagRequest* request, ::grpc::ServerAsyncResponseWriter< ::oteldemo::DeleteFlagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetFlag > > > > AsyncService; + template + class WithCallbackMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetFlag() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::GetFlagRequest* request, ::oteldemo::GetFlagResponse* response) { return this->GetFlag(context, request, response); }));} + void SetMessageAllocatorFor_GetFlag( + ::grpc::MessageAllocator< ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetFlag( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CreateFlag() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::CreateFlagRequest* request, ::oteldemo::CreateFlagResponse* response) { return this->CreateFlag(context, request, response); }));} + void SetMessageAllocatorFor_CreateFlag( + ::grpc::MessageAllocator< ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateFlag( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UpdateFlag() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::UpdateFlagRequest* request, ::oteldemo::UpdateFlagResponse* response) { return this->UpdateFlag(context, request, response); }));} + void SetMessageAllocatorFor_UpdateFlag( + ::grpc::MessageAllocator< ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateFlag( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListFlags() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::ListFlagsRequest* request, ::oteldemo::ListFlagsResponse* response) { return this->ListFlags(context, request, response); }));} + void SetMessageAllocatorFor_ListFlags( + ::grpc::MessageAllocator< ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListFlags( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteFlag() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::oteldemo::DeleteFlagRequest* request, ::oteldemo::DeleteFlagResponse* response) { return this->DeleteFlag(context, request, response); }));} + void SetMessageAllocatorFor_DeleteFlag( + ::grpc::MessageAllocator< ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteFlag( + ::grpc::CallbackServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetFlag > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetFlag() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateFlag() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UpdateFlag() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListFlags() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteFlag() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetFlag() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetFlag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateFlag() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateFlag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UpdateFlag() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateFlag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListFlags() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListFlags(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteFlag() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteFlag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetFlag() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetFlag(context, request, response); })); + } + ~WithRawCallbackMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetFlag( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CreateFlag() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateFlag(context, request, response); })); + } + ~WithRawCallbackMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateFlag( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UpdateFlag() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateFlag(context, request, response); })); + } + ~WithRawCallbackMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UpdateFlag( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListFlags() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListFlags(context, request, response); })); + } + ~WithRawCallbackMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListFlags( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteFlag() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteFlag(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteFlag( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_GetFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetFlag() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::GetFlagRequest, ::oteldemo::GetFlagResponse>* streamer) { + return this->StreamedGetFlag(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::GetFlagRequest* /*request*/, ::oteldemo::GetFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetFlag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::GetFlagRequest,::oteldemo::GetFlagResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateFlag() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::CreateFlagRequest, ::oteldemo::CreateFlagResponse>* streamer) { + return this->StreamedCreateFlag(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::CreateFlagRequest* /*request*/, ::oteldemo::CreateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateFlag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::CreateFlagRequest,::oteldemo::CreateFlagResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UpdateFlag() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::UpdateFlagRequest, ::oteldemo::UpdateFlagResponse>* streamer) { + return this->StreamedUpdateFlag(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UpdateFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::UpdateFlagRequest* /*request*/, ::oteldemo::UpdateFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateFlag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::UpdateFlagRequest,::oteldemo::UpdateFlagResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListFlags : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListFlags() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::ListFlagsRequest, ::oteldemo::ListFlagsResponse>* streamer) { + return this->StreamedListFlags(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListFlags() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListFlags(::grpc::ServerContext* /*context*/, const ::oteldemo::ListFlagsRequest* /*request*/, ::oteldemo::ListFlagsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListFlags(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::ListFlagsRequest,::oteldemo::ListFlagsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteFlag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteFlag() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::oteldemo::DeleteFlagRequest, ::oteldemo::DeleteFlagResponse>* streamer) { + return this->StreamedDeleteFlag(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteFlag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteFlag(::grpc::ServerContext* /*context*/, const ::oteldemo::DeleteFlagRequest* /*request*/, ::oteldemo::DeleteFlagResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteFlag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::oteldemo::DeleteFlagRequest,::oteldemo::DeleteFlagResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetFlag > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetFlag > > > > StreamedService; +}; + +} // namespace oteldemo + + +#endif // GRPC_demo_2eproto__INCLUDED diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.cc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.cc new file mode 100644 index 0000000000000000000000000000000000000000..27293660a6369aab1b6ec76bc24fc154975420a9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.cc @@ -0,0 +1,12278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: demo.proto + +#include "demo.pb.h" + +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; +namespace oteldemo { + template +PROTOBUF_CONSTEXPR CartItem::CartItem(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.quantity_)*/ 0, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct CartItemDefaultTypeInternal { + PROTOBUF_CONSTEXPR CartItemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CartItemDefaultTypeInternal() {} + union { + CartItem _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CartItemDefaultTypeInternal _CartItem_default_instance_; + template +PROTOBUF_CONSTEXPR AddItemRequest::AddItemRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.item_)*/ nullptr, + } {} +struct AddItemRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddItemRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AddItemRequestDefaultTypeInternal() {} + union { + AddItemRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddItemRequestDefaultTypeInternal _AddItemRequest_default_instance_; + template +PROTOBUF_CONSTEXPR EmptyCartRequest::EmptyCartRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct EmptyCartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EmptyCartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EmptyCartRequestDefaultTypeInternal() {} + union { + EmptyCartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyCartRequestDefaultTypeInternal _EmptyCartRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetCartRequest::GetCartRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetCartRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetCartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetCartRequestDefaultTypeInternal() {} + union { + GetCartRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCartRequestDefaultTypeInternal _GetCartRequest_default_instance_; + template +PROTOBUF_CONSTEXPR Cart::Cart(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.items_)*/ {}, + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct CartDefaultTypeInternal { + PROTOBUF_CONSTEXPR CartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CartDefaultTypeInternal() {} + union { + Cart _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CartDefaultTypeInternal _Cart_default_instance_; + template +PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) {} +struct EmptyDefaultTypeInternal { + PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EmptyDefaultTypeInternal() {} + union { + Empty _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; + template +PROTOBUF_CONSTEXPR ListRecommendationsRequest::ListRecommendationsRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_ids_)*/ {}, + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ListRecommendationsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRecommendationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRecommendationsRequestDefaultTypeInternal() {} + union { + ListRecommendationsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRecommendationsRequestDefaultTypeInternal _ListRecommendationsRequest_default_instance_; + template +PROTOBUF_CONSTEXPR ListRecommendationsResponse::ListRecommendationsResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_ids_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ListRecommendationsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListRecommendationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListRecommendationsResponseDefaultTypeInternal() {} + union { + ListRecommendationsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListRecommendationsResponseDefaultTypeInternal _ListRecommendationsResponse_default_instance_; + template +PROTOBUF_CONSTEXPR Product::Product(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.categories_)*/ {}, + /*decltype(_impl_.id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.description_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.picture_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.price_usd_)*/ nullptr, + } {} +struct ProductDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProductDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ProductDefaultTypeInternal() {} + union { + Product _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProductDefaultTypeInternal _Product_default_instance_; + template +PROTOBUF_CONSTEXPR ListProductsResponse::ListProductsResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.products_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ListProductsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListProductsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListProductsResponseDefaultTypeInternal() {} + union { + ListProductsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListProductsResponseDefaultTypeInternal _ListProductsResponse_default_instance_; + template +PROTOBUF_CONSTEXPR GetProductRequest::GetProductRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetProductRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetProductRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetProductRequestDefaultTypeInternal() {} + union { + GetProductRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetProductRequestDefaultTypeInternal _GetProductRequest_default_instance_; + template +PROTOBUF_CONSTEXPR SearchProductsRequest::SearchProductsRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.query_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct SearchProductsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SearchProductsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SearchProductsRequestDefaultTypeInternal() {} + union { + SearchProductsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchProductsRequestDefaultTypeInternal _SearchProductsRequest_default_instance_; + template +PROTOBUF_CONSTEXPR SearchProductsResponse::SearchProductsResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.results_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct SearchProductsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SearchProductsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SearchProductsResponseDefaultTypeInternal() {} + union { + SearchProductsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchProductsResponseDefaultTypeInternal _SearchProductsResponse_default_instance_; + template +PROTOBUF_CONSTEXPR ProductReview::ProductReview(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.username_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.description_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.score_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ProductReviewDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProductReviewDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ProductReviewDefaultTypeInternal() {} + union { + ProductReview _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProductReviewDefaultTypeInternal _ProductReview_default_instance_; + template +PROTOBUF_CONSTEXPR GetProductReviewsRequest::GetProductReviewsRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetProductReviewsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetProductReviewsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetProductReviewsRequestDefaultTypeInternal() {} + union { + GetProductReviewsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetProductReviewsRequestDefaultTypeInternal _GetProductReviewsRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetProductReviewsResponse::GetProductReviewsResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_reviews_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetProductReviewsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetProductReviewsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetProductReviewsResponseDefaultTypeInternal() {} + union { + GetProductReviewsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetProductReviewsResponseDefaultTypeInternal _GetProductReviewsResponse_default_instance_; + template +PROTOBUF_CONSTEXPR GetAverageProductReviewScoreRequest::GetAverageProductReviewScoreRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetAverageProductReviewScoreRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAverageProductReviewScoreRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAverageProductReviewScoreRequestDefaultTypeInternal() {} + union { + GetAverageProductReviewScoreRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAverageProductReviewScoreRequestDefaultTypeInternal _GetAverageProductReviewScoreRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetAverageProductReviewScoreResponse::GetAverageProductReviewScoreResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.average_score_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetAverageProductReviewScoreResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAverageProductReviewScoreResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAverageProductReviewScoreResponseDefaultTypeInternal() {} + union { + GetAverageProductReviewScoreResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAverageProductReviewScoreResponseDefaultTypeInternal _GetAverageProductReviewScoreResponse_default_instance_; + template +PROTOBUF_CONSTEXPR AskProductAIAssistantRequest::AskProductAIAssistantRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.product_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.question_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AskProductAIAssistantRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AskProductAIAssistantRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AskProductAIAssistantRequestDefaultTypeInternal() {} + union { + AskProductAIAssistantRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AskProductAIAssistantRequestDefaultTypeInternal _AskProductAIAssistantRequest_default_instance_; + template +PROTOBUF_CONSTEXPR AskProductAIAssistantResponse::AskProductAIAssistantResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.response_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AskProductAIAssistantResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AskProductAIAssistantResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AskProductAIAssistantResponseDefaultTypeInternal() {} + union { + AskProductAIAssistantResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AskProductAIAssistantResponseDefaultTypeInternal _AskProductAIAssistantResponse_default_instance_; + template +PROTOBUF_CONSTEXPR GetQuoteRequest::GetQuoteRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.items_)*/ {}, + /*decltype(_impl_.address_)*/ nullptr, + } {} +struct GetQuoteRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetQuoteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetQuoteRequestDefaultTypeInternal() {} + union { + GetQuoteRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetQuoteRequestDefaultTypeInternal _GetQuoteRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetQuoteResponse::GetQuoteResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.cost_usd_)*/ nullptr, + } {} +struct GetQuoteResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetQuoteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetQuoteResponseDefaultTypeInternal() {} + union { + GetQuoteResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetQuoteResponseDefaultTypeInternal _GetQuoteResponse_default_instance_; + template +PROTOBUF_CONSTEXPR ShipOrderRequest::ShipOrderRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.items_)*/ {}, + /*decltype(_impl_.address_)*/ nullptr, + } {} +struct ShipOrderRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShipOrderRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ShipOrderRequestDefaultTypeInternal() {} + union { + ShipOrderRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipOrderRequestDefaultTypeInternal _ShipOrderRequest_default_instance_; + template +PROTOBUF_CONSTEXPR ShipOrderResponse::ShipOrderResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.tracking_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ShipOrderResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShipOrderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ShipOrderResponseDefaultTypeInternal() {} + union { + ShipOrderResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShipOrderResponseDefaultTypeInternal _ShipOrderResponse_default_instance_; + template +PROTOBUF_CONSTEXPR Address::Address(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.street_address_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.city_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.state_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.country_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.zip_code_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AddressDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AddressDefaultTypeInternal() {} + union { + Address _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddressDefaultTypeInternal _Address_default_instance_; + template +PROTOBUF_CONSTEXPR Money::Money(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.currency_code_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.units_)*/ ::int64_t{0}, + /*decltype(_impl_.nanos_)*/ 0, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct MoneyDefaultTypeInternal { + PROTOBUF_CONSTEXPR MoneyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MoneyDefaultTypeInternal() {} + union { + Money _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoneyDefaultTypeInternal _Money_default_instance_; + template +PROTOBUF_CONSTEXPR GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.currency_codes_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetSupportedCurrenciesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSupportedCurrenciesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSupportedCurrenciesResponseDefaultTypeInternal() {} + union { + GetSupportedCurrenciesResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSupportedCurrenciesResponseDefaultTypeInternal _GetSupportedCurrenciesResponse_default_instance_; + template +PROTOBUF_CONSTEXPR CurrencyConversionRequest::CurrencyConversionRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.to_code_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.from_)*/ nullptr, + } {} +struct CurrencyConversionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CurrencyConversionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CurrencyConversionRequestDefaultTypeInternal() {} + union { + CurrencyConversionRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrencyConversionRequestDefaultTypeInternal _CurrencyConversionRequest_default_instance_; + template +PROTOBUF_CONSTEXPR CreditCardInfo::CreditCardInfo(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.credit_card_number_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.credit_card_cvv_)*/ 0, + /*decltype(_impl_.credit_card_expiration_year_)*/ 0, + /*decltype(_impl_.credit_card_expiration_month_)*/ 0, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct CreditCardInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreditCardInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CreditCardInfoDefaultTypeInternal() {} + union { + CreditCardInfo _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreditCardInfoDefaultTypeInternal _CreditCardInfo_default_instance_; + template +PROTOBUF_CONSTEXPR ChargeRequest::ChargeRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.amount_)*/ nullptr, + /*decltype(_impl_.credit_card_)*/ nullptr, + } {} +struct ChargeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChargeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ChargeRequestDefaultTypeInternal() {} + union { + ChargeRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChargeRequestDefaultTypeInternal _ChargeRequest_default_instance_; + template +PROTOBUF_CONSTEXPR ChargeResponse::ChargeResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.transaction_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ChargeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChargeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ChargeResponseDefaultTypeInternal() {} + union { + ChargeResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChargeResponseDefaultTypeInternal _ChargeResponse_default_instance_; + template +PROTOBUF_CONSTEXPR OrderItem::OrderItem(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.item_)*/ nullptr, + /*decltype(_impl_.cost_)*/ nullptr, + } {} +struct OrderItemDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrderItemDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OrderItemDefaultTypeInternal() {} + union { + OrderItem _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrderItemDefaultTypeInternal _OrderItem_default_instance_; + template +PROTOBUF_CONSTEXPR OrderResult::OrderResult(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.items_)*/ {}, + /*decltype(_impl_.order_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.shipping_tracking_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.shipping_cost_)*/ nullptr, + /*decltype(_impl_.shipping_address_)*/ nullptr, + } {} +struct OrderResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR OrderResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OrderResultDefaultTypeInternal() {} + union { + OrderResult _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrderResultDefaultTypeInternal _OrderResult_default_instance_; + template +PROTOBUF_CONSTEXPR SendOrderConfirmationRequest::SendOrderConfirmationRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.email_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.order_)*/ nullptr, + } {} +struct SendOrderConfirmationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendOrderConfirmationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SendOrderConfirmationRequestDefaultTypeInternal() {} + union { + SendOrderConfirmationRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendOrderConfirmationRequestDefaultTypeInternal _SendOrderConfirmationRequest_default_instance_; + template +PROTOBUF_CONSTEXPR PlaceOrderRequest::PlaceOrderRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.user_id_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.user_currency_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.email_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.address_)*/ nullptr, + /*decltype(_impl_.credit_card_)*/ nullptr, + } {} +struct PlaceOrderRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlaceOrderRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PlaceOrderRequestDefaultTypeInternal() {} + union { + PlaceOrderRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceOrderRequestDefaultTypeInternal _PlaceOrderRequest_default_instance_; + template +PROTOBUF_CONSTEXPR PlaceOrderResponse::PlaceOrderResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.order_)*/ nullptr, + } {} +struct PlaceOrderResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PlaceOrderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PlaceOrderResponseDefaultTypeInternal() {} + union { + PlaceOrderResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlaceOrderResponseDefaultTypeInternal _PlaceOrderResponse_default_instance_; + template +PROTOBUF_CONSTEXPR AdRequest::AdRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.context_keys_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AdRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AdRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AdRequestDefaultTypeInternal() {} + union { + AdRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdRequestDefaultTypeInternal _AdRequest_default_instance_; + template +PROTOBUF_CONSTEXPR AdResponse::AdResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.ads_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AdResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AdResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AdResponseDefaultTypeInternal() {} + union { + AdResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdResponseDefaultTypeInternal _AdResponse_default_instance_; + template +PROTOBUF_CONSTEXPR Ad::Ad(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.redirect_url_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.text_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct AdDefaultTypeInternal { + PROTOBUF_CONSTEXPR AdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AdDefaultTypeInternal() {} + union { + Ad _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdDefaultTypeInternal _Ad_default_instance_; + template +PROTOBUF_CONSTEXPR Flag::Flag(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.description_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.enabled_)*/ false, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct FlagDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FlagDefaultTypeInternal() {} + union { + Flag _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlagDefaultTypeInternal _Flag_default_instance_; + template +PROTOBUF_CONSTEXPR GetFlagRequest::GetFlagRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct GetFlagRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFlagRequestDefaultTypeInternal() {} + union { + GetFlagRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFlagRequestDefaultTypeInternal _GetFlagRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetFlagResponse::GetFlagResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.flag_)*/ nullptr, + } {} +struct GetFlagResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetFlagResponseDefaultTypeInternal() {} + union { + GetFlagResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetFlagResponseDefaultTypeInternal _GetFlagResponse_default_instance_; + template +PROTOBUF_CONSTEXPR CreateFlagRequest::CreateFlagRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.description_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.enabled_)*/ false, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct CreateFlagRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateFlagRequestDefaultTypeInternal() {} + union { + CreateFlagRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlagRequestDefaultTypeInternal _CreateFlagRequest_default_instance_; + template +PROTOBUF_CONSTEXPR CreateFlagResponse::CreateFlagResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.flag_)*/ nullptr, + } {} +struct CreateFlagResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CreateFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CreateFlagResponseDefaultTypeInternal() {} + union { + CreateFlagResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlagResponseDefaultTypeInternal _CreateFlagResponse_default_instance_; + template +PROTOBUF_CONSTEXPR UpdateFlagRequest::UpdateFlagRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.enabled_)*/ false, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct UpdateFlagRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateFlagRequestDefaultTypeInternal() {} + union { + UpdateFlagRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFlagRequestDefaultTypeInternal _UpdateFlagRequest_default_instance_; + template +PROTOBUF_CONSTEXPR UpdateFlagResponse::UpdateFlagResponse(::_pbi::ConstantInitialized) {} +struct UpdateFlagResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR UpdateFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~UpdateFlagResponseDefaultTypeInternal() {} + union { + UpdateFlagResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateFlagResponseDefaultTypeInternal _UpdateFlagResponse_default_instance_; + template +PROTOBUF_CONSTEXPR ListFlagsRequest::ListFlagsRequest(::_pbi::ConstantInitialized) {} +struct ListFlagsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListFlagsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListFlagsRequestDefaultTypeInternal() {} + union { + ListFlagsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFlagsRequestDefaultTypeInternal _ListFlagsRequest_default_instance_; + template +PROTOBUF_CONSTEXPR ListFlagsResponse::ListFlagsResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.flag_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ListFlagsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListFlagsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListFlagsResponseDefaultTypeInternal() {} + union { + ListFlagsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListFlagsResponseDefaultTypeInternal _ListFlagsResponse_default_instance_; + template +PROTOBUF_CONSTEXPR DeleteFlagRequest::DeleteFlagRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.name_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct DeleteFlagRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteFlagRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteFlagRequestDefaultTypeInternal() {} + union { + DeleteFlagRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFlagRequestDefaultTypeInternal _DeleteFlagRequest_default_instance_; + template +PROTOBUF_CONSTEXPR DeleteFlagResponse::DeleteFlagResponse(::_pbi::ConstantInitialized) {} +struct DeleteFlagResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DeleteFlagResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DeleteFlagResponseDefaultTypeInternal() {} + union { + DeleteFlagResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteFlagResponseDefaultTypeInternal _DeleteFlagResponse_default_instance_; +} // namespace oteldemo +static ::_pb::Metadata file_level_metadata_demo_2eproto[50]; +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_demo_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_demo_2eproto = nullptr; +const ::uint32_t TableStruct_demo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::CartItem, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::CartItem, _impl_.product_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CartItem, _impl_.quantity_), + PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _impl_.user_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::AddItemRequest, _impl_.item_), + ~0u, + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::EmptyCartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::EmptyCartRequest, _impl_.user_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetCartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetCartRequest, _impl_.user_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Cart, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Cart, _impl_.user_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Cart, _impl_.items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Empty, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsRequest, _impl_.user_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsRequest, _impl_.product_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ListRecommendationsResponse, _impl_.product_ids_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.picture_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.price_usd_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Product, _impl_.categories_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ListProductsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ListProductsResponse, _impl_.products_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductRequest, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsRequest, _impl_.query_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::SearchProductsResponse, _impl_.results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ProductReview, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ProductReview, _impl_.username_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ProductReview, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ProductReview, _impl_.score_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductReviewsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductReviewsRequest, _impl_.product_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductReviewsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetProductReviewsResponse, _impl_.product_reviews_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetAverageProductReviewScoreRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetAverageProductReviewScoreRequest, _impl_.product_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetAverageProductReviewScoreResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetAverageProductReviewScoreResponse, _impl_.average_score_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::AskProductAIAssistantRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::AskProductAIAssistantRequest, _impl_.product_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::AskProductAIAssistantRequest, _impl_.question_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::AskProductAIAssistantResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::AskProductAIAssistantResponse, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteRequest, _impl_.items_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetQuoteResponse, _impl_.cost_usd_), + 0, + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderRequest, _impl_.items_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ShipOrderResponse, _impl_.tracking_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.street_address_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.city_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.state_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.country_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Address, _impl_.zip_code_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _impl_.currency_code_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Money, _impl_.nanos_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetSupportedCurrenciesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetSupportedCurrenciesResponse, _impl_.currency_codes_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _impl_.from_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CurrencyConversionRequest, _impl_.to_code_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_number_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_cvv_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_expiration_year_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreditCardInfo, _impl_.credit_card_expiration_month_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _impl_.amount_), + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeRequest, _impl_.credit_card_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ChargeResponse, _impl_.transaction_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _impl_.item_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderItem, _impl_.cost_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.order_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_tracking_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_cost_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.shipping_address_), + PROTOBUF_FIELD_OFFSET(::oteldemo::OrderResult, _impl_.items_), + ~0u, + ~0u, + 0, + 1, + ~0u, + PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _impl_.email_), + PROTOBUF_FIELD_OFFSET(::oteldemo::SendOrderConfirmationRequest, _impl_.order_), + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.user_id_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.user_currency_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.email_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderRequest, _impl_.credit_card_), + ~0u, + ~0u, + 0, + ~0u, + 1, + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::PlaceOrderResponse, _impl_.order_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::AdRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::AdRequest, _impl_.context_keys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::AdResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::AdResponse, _impl_.ads_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Ad, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Ad, _impl_.redirect_url_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Ad, _impl_.text_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::oteldemo::Flag, _impl_.enabled_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::GetFlagResponse, _impl_.flag_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagRequest, _impl_.enabled_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::CreateFlagResponse, _impl_.flag_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagRequest, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagRequest, _impl_.enabled_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::UpdateFlagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ListFlagsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::ListFlagsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::ListFlagsResponse, _impl_.flag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::DeleteFlagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::oteldemo::DeleteFlagRequest, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::oteldemo::DeleteFlagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::oteldemo::CartItem)}, + {10, 20, -1, sizeof(::oteldemo::AddItemRequest)}, + {22, -1, -1, sizeof(::oteldemo::EmptyCartRequest)}, + {31, -1, -1, sizeof(::oteldemo::GetCartRequest)}, + {40, -1, -1, sizeof(::oteldemo::Cart)}, + {50, -1, -1, sizeof(::oteldemo::Empty)}, + {58, -1, -1, sizeof(::oteldemo::ListRecommendationsRequest)}, + {68, -1, -1, sizeof(::oteldemo::ListRecommendationsResponse)}, + {77, 91, -1, sizeof(::oteldemo::Product)}, + {97, -1, -1, sizeof(::oteldemo::ListProductsResponse)}, + {106, -1, -1, sizeof(::oteldemo::GetProductRequest)}, + {115, -1, -1, sizeof(::oteldemo::SearchProductsRequest)}, + {124, -1, -1, sizeof(::oteldemo::SearchProductsResponse)}, + {133, -1, -1, sizeof(::oteldemo::ProductReview)}, + {144, -1, -1, sizeof(::oteldemo::GetProductReviewsRequest)}, + {153, -1, -1, sizeof(::oteldemo::GetProductReviewsResponse)}, + {162, -1, -1, sizeof(::oteldemo::GetAverageProductReviewScoreRequest)}, + {171, -1, -1, sizeof(::oteldemo::GetAverageProductReviewScoreResponse)}, + {180, -1, -1, sizeof(::oteldemo::AskProductAIAssistantRequest)}, + {190, -1, -1, sizeof(::oteldemo::AskProductAIAssistantResponse)}, + {199, 209, -1, sizeof(::oteldemo::GetQuoteRequest)}, + {211, 220, -1, sizeof(::oteldemo::GetQuoteResponse)}, + {221, 231, -1, sizeof(::oteldemo::ShipOrderRequest)}, + {233, -1, -1, sizeof(::oteldemo::ShipOrderResponse)}, + {242, -1, -1, sizeof(::oteldemo::Address)}, + {255, -1, -1, sizeof(::oteldemo::Money)}, + {266, -1, -1, sizeof(::oteldemo::GetSupportedCurrenciesResponse)}, + {275, 285, -1, sizeof(::oteldemo::CurrencyConversionRequest)}, + {287, -1, -1, sizeof(::oteldemo::CreditCardInfo)}, + {299, 309, -1, sizeof(::oteldemo::ChargeRequest)}, + {311, -1, -1, sizeof(::oteldemo::ChargeResponse)}, + {320, 330, -1, sizeof(::oteldemo::OrderItem)}, + {332, 345, -1, sizeof(::oteldemo::OrderResult)}, + {350, 360, -1, sizeof(::oteldemo::SendOrderConfirmationRequest)}, + {362, 375, -1, sizeof(::oteldemo::PlaceOrderRequest)}, + {380, 389, -1, sizeof(::oteldemo::PlaceOrderResponse)}, + {390, -1, -1, sizeof(::oteldemo::AdRequest)}, + {399, -1, -1, sizeof(::oteldemo::AdResponse)}, + {408, -1, -1, sizeof(::oteldemo::Ad)}, + {418, -1, -1, sizeof(::oteldemo::Flag)}, + {429, -1, -1, sizeof(::oteldemo::GetFlagRequest)}, + {438, 447, -1, sizeof(::oteldemo::GetFlagResponse)}, + {448, -1, -1, sizeof(::oteldemo::CreateFlagRequest)}, + {459, 468, -1, sizeof(::oteldemo::CreateFlagResponse)}, + {469, -1, -1, sizeof(::oteldemo::UpdateFlagRequest)}, + {479, -1, -1, sizeof(::oteldemo::UpdateFlagResponse)}, + {487, -1, -1, sizeof(::oteldemo::ListFlagsRequest)}, + {495, -1, -1, sizeof(::oteldemo::ListFlagsResponse)}, + {504, -1, -1, sizeof(::oteldemo::DeleteFlagRequest)}, + {513, -1, -1, sizeof(::oteldemo::DeleteFlagResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::oteldemo::_CartItem_default_instance_._instance, + &::oteldemo::_AddItemRequest_default_instance_._instance, + &::oteldemo::_EmptyCartRequest_default_instance_._instance, + &::oteldemo::_GetCartRequest_default_instance_._instance, + &::oteldemo::_Cart_default_instance_._instance, + &::oteldemo::_Empty_default_instance_._instance, + &::oteldemo::_ListRecommendationsRequest_default_instance_._instance, + &::oteldemo::_ListRecommendationsResponse_default_instance_._instance, + &::oteldemo::_Product_default_instance_._instance, + &::oteldemo::_ListProductsResponse_default_instance_._instance, + &::oteldemo::_GetProductRequest_default_instance_._instance, + &::oteldemo::_SearchProductsRequest_default_instance_._instance, + &::oteldemo::_SearchProductsResponse_default_instance_._instance, + &::oteldemo::_ProductReview_default_instance_._instance, + &::oteldemo::_GetProductReviewsRequest_default_instance_._instance, + &::oteldemo::_GetProductReviewsResponse_default_instance_._instance, + &::oteldemo::_GetAverageProductReviewScoreRequest_default_instance_._instance, + &::oteldemo::_GetAverageProductReviewScoreResponse_default_instance_._instance, + &::oteldemo::_AskProductAIAssistantRequest_default_instance_._instance, + &::oteldemo::_AskProductAIAssistantResponse_default_instance_._instance, + &::oteldemo::_GetQuoteRequest_default_instance_._instance, + &::oteldemo::_GetQuoteResponse_default_instance_._instance, + &::oteldemo::_ShipOrderRequest_default_instance_._instance, + &::oteldemo::_ShipOrderResponse_default_instance_._instance, + &::oteldemo::_Address_default_instance_._instance, + &::oteldemo::_Money_default_instance_._instance, + &::oteldemo::_GetSupportedCurrenciesResponse_default_instance_._instance, + &::oteldemo::_CurrencyConversionRequest_default_instance_._instance, + &::oteldemo::_CreditCardInfo_default_instance_._instance, + &::oteldemo::_ChargeRequest_default_instance_._instance, + &::oteldemo::_ChargeResponse_default_instance_._instance, + &::oteldemo::_OrderItem_default_instance_._instance, + &::oteldemo::_OrderResult_default_instance_._instance, + &::oteldemo::_SendOrderConfirmationRequest_default_instance_._instance, + &::oteldemo::_PlaceOrderRequest_default_instance_._instance, + &::oteldemo::_PlaceOrderResponse_default_instance_._instance, + &::oteldemo::_AdRequest_default_instance_._instance, + &::oteldemo::_AdResponse_default_instance_._instance, + &::oteldemo::_Ad_default_instance_._instance, + &::oteldemo::_Flag_default_instance_._instance, + &::oteldemo::_GetFlagRequest_default_instance_._instance, + &::oteldemo::_GetFlagResponse_default_instance_._instance, + &::oteldemo::_CreateFlagRequest_default_instance_._instance, + &::oteldemo::_CreateFlagResponse_default_instance_._instance, + &::oteldemo::_UpdateFlagRequest_default_instance_._instance, + &::oteldemo::_UpdateFlagResponse_default_instance_._instance, + &::oteldemo::_ListFlagsRequest_default_instance_._instance, + &::oteldemo::_ListFlagsResponse_default_instance_._instance, + &::oteldemo::_DeleteFlagRequest_default_instance_._instance, + &::oteldemo::_DeleteFlagResponse_default_instance_._instance, +}; +const char descriptor_table_protodef_demo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\ndemo.proto\022\010oteldemo\"0\n\010CartItem\022\022\n\npr" + "oduct_id\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\005\"C\n\016AddI" + "temRequest\022\017\n\007user_id\030\001 \001(\t\022 \n\004item\030\002 \001(" + "\0132\022.oteldemo.CartItem\"#\n\020EmptyCartReques" + "t\022\017\n\007user_id\030\001 \001(\t\"!\n\016GetCartRequest\022\017\n\007" + "user_id\030\001 \001(\t\":\n\004Cart\022\017\n\007user_id\030\001 \001(\t\022!" + "\n\005items\030\002 \003(\0132\022.oteldemo.CartItem\"\007\n\005Emp" + "ty\"B\n\032ListRecommendationsRequest\022\017\n\007user" + "_id\030\001 \001(\t\022\023\n\013product_ids\030\002 \003(\t\"2\n\033ListRe" + "commendationsResponse\022\023\n\013product_ids\030\001 \003" + "(\t\"\201\001\n\007Product\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + "\022\023\n\013description\030\003 \001(\t\022\017\n\007picture\030\004 \001(\t\022\"" + "\n\tprice_usd\030\005 \001(\0132\017.oteldemo.Money\022\022\n\nca" + "tegories\030\006 \003(\t\";\n\024ListProductsResponse\022#" + "\n\010products\030\001 \003(\0132\021.oteldemo.Product\"\037\n\021G" + "etProductRequest\022\n\n\002id\030\001 \001(\t\"&\n\025SearchPr" + "oductsRequest\022\r\n\005query\030\001 \001(\t\"<\n\026SearchPr" + "oductsResponse\022\"\n\007results\030\001 \003(\0132\021.otelde" + "mo.Product\"E\n\rProductReview\022\020\n\010username\030" + "\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\r\n\005score\030\003 \001(" + "\t\".\n\030GetProductReviewsRequest\022\022\n\nproduct" + "_id\030\001 \001(\t\"M\n\031GetProductReviewsResponse\0220" + "\n\017product_reviews\030\001 \003(\0132\027.oteldemo.Produ" + "ctReview\"9\n#GetAverageProductReviewScore" + "Request\022\022\n\nproduct_id\030\001 \001(\t\"=\n$GetAverag" + "eProductReviewScoreResponse\022\025\n\raverage_s" + "core\030\001 \001(\t\"D\n\034AskProductAIAssistantReque" + "st\022\022\n\nproduct_id\030\001 \001(\t\022\020\n\010question\030\002 \001(\t" + "\"1\n\035AskProductAIAssistantResponse\022\020\n\010res" + "ponse\030\001 \001(\t\"X\n\017GetQuoteRequest\022\"\n\007addres" + "s\030\001 \001(\0132\021.oteldemo.Address\022!\n\005items\030\002 \003(" + "\0132\022.oteldemo.CartItem\"5\n\020GetQuoteRespons" + "e\022!\n\010cost_usd\030\001 \001(\0132\017.oteldemo.Money\"Y\n\020" + "ShipOrderRequest\022\"\n\007address\030\001 \001(\0132\021.otel" + "demo.Address\022!\n\005items\030\002 \003(\0132\022.oteldemo.C" + "artItem\"(\n\021ShipOrderResponse\022\023\n\013tracking" + "_id\030\001 \001(\t\"a\n\007Address\022\026\n\016street_address\030\001" + " \001(\t\022\014\n\004city\030\002 \001(\t\022\r\n\005state\030\003 \001(\t\022\017\n\007cou" + "ntry\030\004 \001(\t\022\020\n\010zip_code\030\005 \001(\t\"<\n\005Money\022\025\n" + "\rcurrency_code\030\001 \001(\t\022\r\n\005units\030\002 \001(\003\022\r\n\005n" + "anos\030\003 \001(\005\"8\n\036GetSupportedCurrenciesResp" + "onse\022\026\n\016currency_codes\030\001 \003(\t\"K\n\031Currency" + "ConversionRequest\022\035\n\004from\030\001 \001(\0132\017.otelde" + "mo.Money\022\017\n\007to_code\030\002 \001(\t\"\220\001\n\016CreditCard" + "Info\022\032\n\022credit_card_number\030\001 \001(\t\022\027\n\017cred" + "it_card_cvv\030\002 \001(\005\022#\n\033credit_card_expirat" + "ion_year\030\003 \001(\005\022$\n\034credit_card_expiration" + "_month\030\004 \001(\005\"_\n\rChargeRequest\022\037\n\006amount\030" + "\001 \001(\0132\017.oteldemo.Money\022-\n\013credit_card\030\002 " + "\001(\0132\030.oteldemo.CreditCardInfo\"(\n\016ChargeR" + "esponse\022\026\n\016transaction_id\030\001 \001(\t\"L\n\tOrder" + "Item\022 \n\004item\030\001 \001(\0132\022.oteldemo.CartItem\022\035" + "\n\004cost\030\002 \001(\0132\017.oteldemo.Money\"\266\001\n\013OrderR" + "esult\022\020\n\010order_id\030\001 \001(\t\022\034\n\024shipping_trac" + "king_id\030\002 \001(\t\022&\n\rshipping_cost\030\003 \001(\0132\017.o" + "teldemo.Money\022+\n\020shipping_address\030\004 \001(\0132" + "\021.oteldemo.Address\022\"\n\005items\030\005 \003(\0132\023.otel" + "demo.OrderItem\"S\n\034SendOrderConfirmationR" + "equest\022\r\n\005email\030\001 \001(\t\022$\n\005order\030\002 \001(\0132\025.o" + "teldemo.OrderResult\"\235\001\n\021PlaceOrderReques" + "t\022\017\n\007user_id\030\001 \001(\t\022\025\n\ruser_currency\030\002 \001(" + "\t\022\"\n\007address\030\003 \001(\0132\021.oteldemo.Address\022\r\n" + "\005email\030\005 \001(\t\022-\n\013credit_card\030\006 \001(\0132\030.otel" + "demo.CreditCardInfo\":\n\022PlaceOrderRespons" + "e\022$\n\005order\030\001 \001(\0132\025.oteldemo.OrderResult\"" + "!\n\tAdRequest\022\024\n\014context_keys\030\001 \003(\t\"\'\n\nAd" + "Response\022\031\n\003ads\030\001 \003(\0132\014.oteldemo.Ad\"(\n\002A" + "d\022\024\n\014redirect_url\030\001 \001(\t\022\014\n\004text\030\002 \001(\t\":\n" + "\004Flag\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + "\022\017\n\007enabled\030\003 \001(\010\"\036\n\016GetFlagRequest\022\014\n\004n" + "ame\030\001 \001(\t\"/\n\017GetFlagResponse\022\034\n\004flag\030\001 \001" + "(\0132\016.oteldemo.Flag\"G\n\021CreateFlagRequest\022" + "\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\017\n\007en" + "abled\030\003 \001(\010\"2\n\022CreateFlagResponse\022\034\n\004fla" + "g\030\001 \001(\0132\016.oteldemo.Flag\"2\n\021UpdateFlagReq" + "uest\022\014\n\004name\030\001 \001(\t\022\017\n\007enabled\030\002 \001(\010\"\024\n\022U" + "pdateFlagResponse\"\022\n\020ListFlagsRequest\"1\n" + "\021ListFlagsResponse\022\034\n\004flag\030\001 \003(\0132\016.oteld" + "emo.Flag\"!\n\021DeleteFlagRequest\022\014\n\004name\030\001 " + "\001(\t\"\024\n\022DeleteFlagResponse2\270\001\n\013CartServic" + "e\0226\n\007AddItem\022\030.oteldemo.AddItemRequest\032\017" + ".oteldemo.Empty\"\000\0225\n\007GetCart\022\030.oteldemo." + "GetCartRequest\032\016.oteldemo.Cart\"\000\022:\n\tEmpt" + "yCart\022\032.oteldemo.EmptyCartRequest\032\017.otel" + "demo.Empty\"\0002}\n\025RecommendationService\022d\n" + "\023ListRecommendations\022$.oteldemo.ListReco" + "mmendationsRequest\032%.oteldemo.ListRecomm" + "endationsResponse\"\0002\361\001\n\025ProductCatalogSe" + "rvice\022A\n\014ListProducts\022\017.oteldemo.Empty\032\036" + ".oteldemo.ListProductsResponse\"\000\022>\n\nGetP" + "roduct\022\033.oteldemo.GetProductRequest\032\021.ot" + "eldemo.Product\"\000\022U\n\016SearchProducts\022\037.ote" + "ldemo.SearchProductsRequest\032 .oteldemo.S" + "earchProductsResponse\"\0002\343\002\n\024ProductRevie" + "wService\022^\n\021GetProductReviews\022\".oteldemo" + ".GetProductReviewsRequest\032#.oteldemo.Get" + "ProductReviewsResponse\"\000\022\177\n\034GetAveragePr" + "oductReviewScore\022-.oteldemo.GetAveragePr" + "oductReviewScoreRequest\032..oteldemo.GetAv" + "erageProductReviewScoreResponse\"\000\022j\n\025Ask" + "ProductAIAssistant\022&.oteldemo.AskProduct" + "AIAssistantRequest\032\'.oteldemo.AskProduct" + "AIAssistantResponse\"\0002\236\001\n\017ShippingServic" + "e\022C\n\010GetQuote\022\031.oteldemo.GetQuoteRequest" + "\032\032.oteldemo.GetQuoteResponse\"\000\022F\n\tShipOr" + "der\022\032.oteldemo.ShipOrderRequest\032\033.otelde" + "mo.ShipOrderResponse\"\0002\253\001\n\017CurrencyServi" + "ce\022U\n\026GetSupportedCurrencies\022\017.oteldemo." + "Empty\032(.oteldemo.GetSupportedCurrenciesR" + "esponse\"\000\022A\n\007Convert\022#.oteldemo.Currency" + "ConversionRequest\032\017.oteldemo.Money\"\0002O\n\016" + "PaymentService\022=\n\006Charge\022\027.oteldemo.Char" + "geRequest\032\030.oteldemo.ChargeResponse\"\0002b\n" + "\014EmailService\022R\n\025SendOrderConfirmation\022&" + ".oteldemo.SendOrderConfirmationRequest\032\017" + ".oteldemo.Empty\"\0002\\\n\017CheckoutService\022I\n\n" + "PlaceOrder\022\033.oteldemo.PlaceOrderRequest\032" + "\034.oteldemo.PlaceOrderResponse\"\0002B\n\tAdSer" + "vice\0225\n\006GetAds\022\023.oteldemo.AdRequest\032\024.ot" + "eldemo.AdResponse\"\0002\377\002\n\022FeatureFlagServi" + "ce\022@\n\007GetFlag\022\030.oteldemo.GetFlagRequest\032" + "\031.oteldemo.GetFlagResponse\"\000\022I\n\nCreateFl" + "ag\022\033.oteldemo.CreateFlagRequest\032\034.otelde" + "mo.CreateFlagResponse\"\000\022I\n\nUpdateFlag\022\033." + "oteldemo.UpdateFlagRequest\032\034.oteldemo.Up" + "dateFlagResponse\"\000\022F\n\tListFlags\022\032.otelde" + "mo.ListFlagsRequest\032\033.oteldemo.ListFlags" + "Response\"\000\022I\n\nDeleteFlag\022\033.oteldemo.Dele" + "teFlagRequest\032\034.oteldemo.DeleteFlagRespo" + "nse\"\000B\023Z\021genproto/oteldemob\006proto3" +}; +static ::absl::once_flag descriptor_table_demo_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_demo_2eproto = { + false, + false, + 5194, + descriptor_table_protodef_demo_2eproto, + "demo.proto", + &descriptor_table_demo_2eproto_once, + nullptr, + 0, + 50, + schemas, + file_default_instances, + TableStruct_demo_2eproto::offsets, + file_level_metadata_demo_2eproto, + file_level_enum_descriptors_demo_2eproto, + file_level_service_descriptors_demo_2eproto, +}; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_demo_2eproto_getter() { + return &descriptor_table_demo_2eproto; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_demo_2eproto(&descriptor_table_demo_2eproto); +namespace oteldemo { +// =================================================================== + +class CartItem::_Internal { + public: +}; + +CartItem::CartItem(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.CartItem) +} +CartItem::CartItem(const CartItem& from) : ::google::protobuf::Message() { + CartItem* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + decltype(_impl_.quantity_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_product_id().empty()) { + _this->_impl_.product_id_.Set(from._internal_product_id(), _this->GetArenaForAllocation()); + } + _this->_impl_.quantity_ = from._impl_.quantity_; + + // @@protoc_insertion_point(copy_constructor:oteldemo.CartItem) +} +inline void CartItem::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + decltype(_impl_.quantity_){0}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +CartItem::~CartItem() { + // @@protoc_insertion_point(destructor:oteldemo.CartItem) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CartItem::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.product_id_.Destroy(); +} +void CartItem::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void CartItem::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.CartItem) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.product_id_.ClearToEmpty(); + _impl_.quantity_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CartItem::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 36, 2> CartItem::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_CartItem_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // int32 quantity = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CartItem, _impl_.quantity_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(CartItem, _impl_.quantity_)}}, + // string product_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CartItem, _impl_.product_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string product_id = 1; + {PROTOBUF_FIELD_OFFSET(CartItem, _impl_.product_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 quantity = 2; + {PROTOBUF_FIELD_OFFSET(CartItem, _impl_.quantity_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\21\12\0\0\0\0\0\0" + "oteldemo.CartItem" + "product_id" + }}, +}; + +::uint8_t* CartItem::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CartItem) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + const std::string& _s = this->_internal_product_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CartItem.product_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // int32 quantity = 2; + if (this->_internal_quantity() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this->_internal_quantity(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.CartItem) + return target; +} + +::size_t CartItem::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.CartItem) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_product_id()); + } + + // int32 quantity = 2; + if (this->_internal_quantity() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_quantity()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CartItem::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + CartItem::MergeImpl +}; +const ::google::protobuf::Message::ClassData*CartItem::GetClassData() const { return &_class_data_; } + + +void CartItem::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.CartItem) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_product_id().empty()) { + _this->_internal_set_product_id(from._internal_product_id()); + } + if (from._internal_quantity() != 0) { + _this->_internal_set_quantity(from._internal_quantity()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CartItem::CopyFrom(const CartItem& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CartItem) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CartItem::IsInitialized() const { + return true; +} + +void CartItem::InternalSwap(CartItem* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_id_, lhs_arena, + &other->_impl_.product_id_, rhs_arena); + swap(_impl_.quantity_, other->_impl_.quantity_); +} + +::google::protobuf::Metadata CartItem::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[0]); +} +// =================================================================== + +class AddItemRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_._has_bits_); + static const ::oteldemo::CartItem& item(const AddItemRequest* msg); + static void set_has_item(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::CartItem& AddItemRequest::_Internal::item(const AddItemRequest* msg) { + return *msg->_impl_.item_; +} +AddItemRequest::AddItemRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.AddItemRequest) +} +AddItemRequest::AddItemRequest(const AddItemRequest& from) : ::google::protobuf::Message() { + AddItemRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.user_id_){}, + decltype(_impl_.item_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.item_ = new ::oteldemo::CartItem(*from._impl_.item_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.AddItemRequest) +} +inline void AddItemRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.user_id_){}, + decltype(_impl_.item_){nullptr}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +AddItemRequest::~AddItemRequest() { + // @@protoc_insertion_point(destructor:oteldemo.AddItemRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void AddItemRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.user_id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.item_; +} +void AddItemRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void AddItemRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.AddItemRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.user_id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.item_ != nullptr); + _impl_.item_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* AddItemRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 39, 2> AddItemRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_AddItemRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.CartItem item = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.item_)}}, + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.user_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.user_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.CartItem item = 2; + {PROTOBUF_FIELD_OFFSET(AddItemRequest, _impl_.item_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, + }}, {{ + "\27\7\0\0\0\0\0\0" + "oteldemo.AddItemRequest" + "user_id" + }}, +}; + +::uint8_t* AddItemRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AddItemRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AddItemRequest.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.CartItem item = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::item(this), + _Internal::item(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AddItemRequest) + return target; +} + +::size_t AddItemRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.AddItemRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + // .oteldemo.CartItem item = 2; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.item_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData AddItemRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + AddItemRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*AddItemRequest::GetClassData() const { return &_class_data_; } + + +void AddItemRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.AddItemRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_item()->::oteldemo::CartItem::MergeFrom( + from._internal_item()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void AddItemRequest::CopyFrom(const AddItemRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AddItemRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool AddItemRequest::IsInitialized() const { + return true; +} + +void AddItemRequest::InternalSwap(AddItemRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); + swap(_impl_.item_, other->_impl_.item_); +} + +::google::protobuf::Metadata AddItemRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[1]); +} +// =================================================================== + +class EmptyCartRequest::_Internal { + public: +}; + +EmptyCartRequest::EmptyCartRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.EmptyCartRequest) +} +EmptyCartRequest::EmptyCartRequest(const EmptyCartRequest& from) : ::google::protobuf::Message() { + EmptyCartRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.EmptyCartRequest) +} +inline void EmptyCartRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +EmptyCartRequest::~EmptyCartRequest() { + // @@protoc_insertion_point(destructor:oteldemo.EmptyCartRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void EmptyCartRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.user_id_.Destroy(); +} +void EmptyCartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void EmptyCartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.EmptyCartRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* EmptyCartRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 41, 2> EmptyCartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_EmptyCartRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EmptyCartRequest, _impl_.user_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(EmptyCartRequest, _impl_.user_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\31\7\0\0\0\0\0\0" + "oteldemo.EmptyCartRequest" + "user_id" + }}, +}; + +::uint8_t* EmptyCartRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.EmptyCartRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.EmptyCartRequest.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.EmptyCartRequest) + return target; +} + +::size_t EmptyCartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.EmptyCartRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData EmptyCartRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + EmptyCartRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*EmptyCartRequest::GetClassData() const { return &_class_data_; } + + +void EmptyCartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.EmptyCartRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void EmptyCartRequest::CopyFrom(const EmptyCartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.EmptyCartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool EmptyCartRequest::IsInitialized() const { + return true; +} + +void EmptyCartRequest::InternalSwap(EmptyCartRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); +} + +::google::protobuf::Metadata EmptyCartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[2]); +} +// =================================================================== + +class GetCartRequest::_Internal { + public: +}; + +GetCartRequest::GetCartRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetCartRequest) +} +GetCartRequest::GetCartRequest(const GetCartRequest& from) : ::google::protobuf::Message() { + GetCartRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetCartRequest) +} +inline void GetCartRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetCartRequest::~GetCartRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetCartRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetCartRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.user_id_.Destroy(); +} +void GetCartRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetCartRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetCartRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetCartRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 39, 2> GetCartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetCartRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetCartRequest, _impl_.user_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(GetCartRequest, _impl_.user_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\7\0\0\0\0\0\0" + "oteldemo.GetCartRequest" + "user_id" + }}, +}; + +::uint8_t* GetCartRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetCartRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetCartRequest.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetCartRequest) + return target; +} + +::size_t GetCartRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetCartRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetCartRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetCartRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetCartRequest::GetClassData() const { return &_class_data_; } + + +void GetCartRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetCartRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetCartRequest::CopyFrom(const GetCartRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetCartRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetCartRequest::IsInitialized() const { + return true; +} + +void GetCartRequest::InternalSwap(GetCartRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); +} + +::google::protobuf::Metadata GetCartRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[3]); +} +// =================================================================== + +class Cart::_Internal { + public: +}; + +Cart::Cart(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Cart) +} +Cart::Cart(const Cart& from) : ::google::protobuf::Message() { + Cart* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.items_){from._impl_.items_}, + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.Cart) +} +inline void Cart::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.items_){arena}, + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Cart::~Cart() { + // @@protoc_insertion_point(destructor:oteldemo.Cart) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Cart::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); + _impl_.user_id_.Destroy(); +} +void Cart::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Cart::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Cart) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_items()->Clear(); + _impl_.user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Cart::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 29, 2> Cart::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Cart_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.CartItem items = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Cart, _impl_.items_)}}, + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Cart, _impl_.user_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(Cart, _impl_.user_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .oteldemo.CartItem items = 2; + {PROTOBUF_FIELD_OFFSET(Cart, _impl_.items_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, + }}, {{ + "\15\7\0\0\0\0\0\0" + "oteldemo.Cart" + "user_id" + }}, +}; + +::uint8_t* Cart::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Cart) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Cart.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated .oteldemo.CartItem items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Cart) + return target; +} + +::size_t Cart::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Cart) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.CartItem items = 2; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_internal_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Cart::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Cart::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Cart::GetClassData() const { return &_class_data_; } + + +void Cart::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Cart) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_items()->MergeFrom(from._internal_items()); + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Cart::CopyFrom(const Cart& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Cart) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Cart::IsInitialized() const { + return true; +} + +void Cart::InternalSwap(Cart* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.items_.InternalSwap(&other->_impl_.items_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); +} + +::google::protobuf::Metadata Cart::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[4]); +} +// =================================================================== + +class Empty::_Internal { + public: +}; + +Empty::Empty(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:oteldemo.Empty) +} +Empty::Empty(const Empty& from) : ::google::protobuf::internal::ZeroFieldsBase() { + Empty* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.Empty) +} + + + + +const ::google::protobuf::Message::ClassData Empty::_class_data_ = { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, +}; +const ::google::protobuf::Message::ClassData*Empty::GetClassData() const { return &_class_data_; } + + + + + + + +::google::protobuf::Metadata Empty::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[5]); +} +// =================================================================== + +class ListRecommendationsRequest::_Internal { + public: +}; + +ListRecommendationsRequest::ListRecommendationsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ListRecommendationsRequest) +} +ListRecommendationsRequest::ListRecommendationsRequest(const ListRecommendationsRequest& from) : ::google::protobuf::Message() { + ListRecommendationsRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_ids_){from._impl_.product_ids_}, + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ListRecommendationsRequest) +} +inline void ListRecommendationsRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_ids_){arena}, + decltype(_impl_.user_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ListRecommendationsRequest::~ListRecommendationsRequest() { + // @@protoc_insertion_point(destructor:oteldemo.ListRecommendationsRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ListRecommendationsRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_product_ids()->~RepeatedPtrField(); + _impl_.user_id_.Destroy(); +} +void ListRecommendationsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ListRecommendationsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ListRecommendationsRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_product_ids()->Clear(); + _impl_.user_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ListRecommendationsRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ListRecommendationsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ListRecommendationsRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated string product_ids = 2; + {::_pbi::TcParser::FastUR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.product_ids_)}}, + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.user_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.user_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string product_ids = 2; + {PROTOBUF_FIELD_OFFSET(ListRecommendationsRequest, _impl_.product_ids_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\43\7\13\0\0\0\0\0" + "oteldemo.ListRecommendationsRequest" + "user_id" + "product_ids" + }}, +}; + +::uint8_t* ListRecommendationsRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListRecommendationsRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsRequest.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated string product_ids = 2; + for (int i = 0, n = this->_internal_product_ids_size(); i < n; ++i) { + const auto& s = this->_internal_product_ids().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsRequest.product_ids"); + target = stream->WriteString(2, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListRecommendationsRequest) + return target; +} + +::size_t ListRecommendationsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ListRecommendationsRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string product_ids = 2; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_product_ids().size()); + for (int i = 0, n = _internal_product_ids().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + _internal_product_ids().Get(i)); + } + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ListRecommendationsRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ListRecommendationsRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ListRecommendationsRequest::GetClassData() const { return &_class_data_; } + + +void ListRecommendationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ListRecommendationsRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_product_ids()->MergeFrom(from._internal_product_ids()); + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ListRecommendationsRequest::CopyFrom(const ListRecommendationsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListRecommendationsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ListRecommendationsRequest::IsInitialized() const { + return true; +} + +void ListRecommendationsRequest::InternalSwap(ListRecommendationsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.product_ids_.InternalSwap(&other->_impl_.product_ids_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); +} + +::google::protobuf::Metadata ListRecommendationsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[6]); +} +// =================================================================== + +class ListRecommendationsResponse::_Internal { + public: +}; + +ListRecommendationsResponse::ListRecommendationsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ListRecommendationsResponse) +} +ListRecommendationsResponse::ListRecommendationsResponse(const ListRecommendationsResponse& from) : ::google::protobuf::Message() { + ListRecommendationsResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_ids_){from._impl_.product_ids_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.ListRecommendationsResponse) +} +inline void ListRecommendationsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_ids_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +ListRecommendationsResponse::~ListRecommendationsResponse() { + // @@protoc_insertion_point(destructor:oteldemo.ListRecommendationsResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ListRecommendationsResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_product_ids()->~RepeatedPtrField(); +} +void ListRecommendationsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ListRecommendationsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ListRecommendationsResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_product_ids()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ListRecommendationsResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 56, 2> ListRecommendationsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ListRecommendationsResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated string product_ids = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListRecommendationsResponse, _impl_.product_ids_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string product_ids = 1; + {PROTOBUF_FIELD_OFFSET(ListRecommendationsResponse, _impl_.product_ids_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\44\13\0\0\0\0\0\0" + "oteldemo.ListRecommendationsResponse" + "product_ids" + }}, +}; + +::uint8_t* ListRecommendationsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListRecommendationsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated string product_ids = 1; + for (int i = 0, n = this->_internal_product_ids_size(); i < n; ++i) { + const auto& s = this->_internal_product_ids().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ListRecommendationsResponse.product_ids"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListRecommendationsResponse) + return target; +} + +::size_t ListRecommendationsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ListRecommendationsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string product_ids = 1; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_product_ids().size()); + for (int i = 0, n = _internal_product_ids().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + _internal_product_ids().Get(i)); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ListRecommendationsResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ListRecommendationsResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ListRecommendationsResponse::GetClassData() const { return &_class_data_; } + + +void ListRecommendationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ListRecommendationsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_product_ids()->MergeFrom(from._internal_product_ids()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ListRecommendationsResponse::CopyFrom(const ListRecommendationsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListRecommendationsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ListRecommendationsResponse::IsInitialized() const { + return true; +} + +void ListRecommendationsResponse::InternalSwap(ListRecommendationsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.product_ids_.InternalSwap(&other->_impl_.product_ids_); +} + +::google::protobuf::Metadata ListRecommendationsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[7]); +} +// =================================================================== + +class Product::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Product, _impl_._has_bits_); + static const ::oteldemo::Money& price_usd(const Product* msg); + static void set_has_price_usd(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Money& Product::_Internal::price_usd(const Product* msg) { + return *msg->_impl_.price_usd_; +} +Product::Product(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Product) +} +Product::Product(const Product& from) : ::google::protobuf::Message() { + Product* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.categories_){from._impl_.categories_}, + decltype(_impl_.id_){}, + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.picture_){}, + decltype(_impl_.price_usd_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation()); + } + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); + } + _impl_.picture_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.picture_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_picture().empty()) { + _this->_impl_.picture_.Set(from._internal_picture(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.price_usd_ = new ::oteldemo::Money(*from._impl_.price_usd_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.Product) +} +inline void Product::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.categories_){arena}, + decltype(_impl_.id_){}, + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.picture_){}, + decltype(_impl_.price_usd_){nullptr}, + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.picture_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.picture_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Product::~Product() { + // @@protoc_insertion_point(destructor:oteldemo.Product) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Product::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_categories()->~RepeatedPtrField(); + _impl_.id_.Destroy(); + _impl_.name_.Destroy(); + _impl_.description_.Destroy(); + _impl_.picture_.Destroy(); + if (this != internal_default_instance()) delete _impl_.price_usd_; +} +void Product::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Product::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Product) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_categories()->Clear(); + _impl_.id_.ClearToEmpty(); + _impl_.name_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _impl_.picture_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.price_usd_ != nullptr); + _impl_.price_usd_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Product::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 1, 59, 2> Product::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Product, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Product_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.id_)}}, + // string name = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.name_)}}, + // string description = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.description_)}}, + // string picture = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.picture_)}}, + // .oteldemo.Money price_usd = 5; + {::_pbi::TcParser::FastMtS1, + {42, 0, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.price_usd_)}}, + // repeated string categories = 6; + {::_pbi::TcParser::FastUR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Product, _impl_.categories_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string id = 1; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string name = 2; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.name_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 3; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string picture = 4; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.picture_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.Money price_usd = 5; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.price_usd_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated string categories = 6; + {PROTOBUF_FIELD_OFFSET(Product, _impl_.categories_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + }}, {{ + "\20\2\4\13\7\0\12\0" + "oteldemo.Product" + "id" + "name" + "description" + "picture" + "categories" + }}, +}; + +::uint8_t* Product::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Product) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string id = 1; + if (!this->_internal_id().empty()) { + const std::string& _s = this->_internal_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string name = 2; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // string description = 3; + if (!this->_internal_description().empty()) { + const std::string& _s = this->_internal_description(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.description"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // string picture = 4; + if (!this->_internal_picture().empty()) { + const std::string& _s = this->_internal_picture(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.picture"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Money price_usd = 5; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::price_usd(this), + _Internal::price_usd(this).GetCachedSize(), target, stream); + } + + // repeated string categories = 6; + for (int i = 0, n = this->_internal_categories_size(); i < n; ++i) { + const auto& s = this->_internal_categories().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Product.categories"); + target = stream->WriteString(6, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Product) + return target; +} + +::size_t Product::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Product) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string categories = 6; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_categories().size()); + for (int i = 0, n = _internal_categories().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + _internal_categories().Get(i)); + } + // string id = 1; + if (!this->_internal_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // string name = 2; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string description = 3; + if (!this->_internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + // string picture = 4; + if (!this->_internal_picture().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_picture()); + } + + // .oteldemo.Money price_usd = 5; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.price_usd_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Product::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Product::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Product::GetClassData() const { return &_class_data_; } + + +void Product::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Product) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_categories()->MergeFrom(from._internal_categories()); + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + if (!from._internal_picture().empty()) { + _this->_internal_set_picture(from._internal_picture()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_price_usd()->::oteldemo::Money::MergeFrom( + from._internal_price_usd()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Product::CopyFrom(const Product& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Product) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Product::IsInitialized() const { + return true; +} + +void Product::InternalSwap(Product* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.categories_.InternalSwap(&other->_impl_.categories_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.picture_, lhs_arena, + &other->_impl_.picture_, rhs_arena); + swap(_impl_.price_usd_, other->_impl_.price_usd_); +} + +::google::protobuf::Metadata Product::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[8]); +} +// =================================================================== + +class ListProductsResponse::_Internal { + public: +}; + +ListProductsResponse::ListProductsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ListProductsResponse) +} +ListProductsResponse::ListProductsResponse(const ListProductsResponse& from) : ::google::protobuf::Message() { + ListProductsResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.products_){from._impl_.products_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.ListProductsResponse) +} +inline void ListProductsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.products_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +ListProductsResponse::~ListProductsResponse() { + // @@protoc_insertion_point(destructor:oteldemo.ListProductsResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ListProductsResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.products_.~RepeatedPtrField(); +} +void ListProductsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ListProductsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ListProductsResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_products()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ListProductsResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListProductsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ListProductsResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.Product products = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListProductsResponse, _impl_.products_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .oteldemo.Product products = 1; + {PROTOBUF_FIELD_OFFSET(ListProductsResponse, _impl_.products_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Product>()}, + }}, {{ + }}, +}; + +::uint8_t* ListProductsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListProductsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .oteldemo.Product products = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_products_size()); i < n; i++) { + const auto& repfield = this->_internal_products().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListProductsResponse) + return target; +} + +::size_t ListProductsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ListProductsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.Product products = 1; + total_size += 1UL * this->_internal_products_size(); + for (const auto& msg : this->_internal_products()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ListProductsResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ListProductsResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ListProductsResponse::GetClassData() const { return &_class_data_; } + + +void ListProductsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ListProductsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_products()->MergeFrom(from._internal_products()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ListProductsResponse::CopyFrom(const ListProductsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListProductsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ListProductsResponse::IsInitialized() const { + return true; +} + +void ListProductsResponse::InternalSwap(ListProductsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.products_.InternalSwap(&other->_impl_.products_); +} + +::google::protobuf::Metadata ListProductsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[9]); +} +// =================================================================== + +class GetProductRequest::_Internal { + public: +}; + +GetProductRequest::GetProductRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetProductRequest) +} +GetProductRequest::GetProductRequest(const GetProductRequest& from) : ::google::protobuf::Message() { + GetProductRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_id().empty()) { + _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetProductRequest) +} +inline void GetProductRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetProductRequest::~GetProductRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetProductRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetProductRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.id_.Destroy(); +} +void GetProductRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetProductRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetProductRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetProductRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 37, 2> GetProductRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetProductRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetProductRequest, _impl_.id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string id = 1; + {PROTOBUF_FIELD_OFFSET(GetProductRequest, _impl_.id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\32\2\0\0\0\0\0\0" + "oteldemo.GetProductRequest" + "id" + }}, +}; + +::uint8_t* GetProductRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetProductRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string id = 1; + if (!this->_internal_id().empty()) { + const std::string& _s = this->_internal_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetProductRequest.id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetProductRequest) + return target; +} + +::size_t GetProductRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetProductRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1; + if (!this->_internal_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetProductRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetProductRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetProductRequest::GetClassData() const { return &_class_data_; } + + +void GetProductRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetProductRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_id().empty()) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetProductRequest::CopyFrom(const GetProductRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetProductRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetProductRequest::IsInitialized() const { + return true; +} + +void GetProductRequest::InternalSwap(GetProductRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena); +} + +::google::protobuf::Metadata GetProductRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[10]); +} +// =================================================================== + +class SearchProductsRequest::_Internal { + public: +}; + +SearchProductsRequest::SearchProductsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.SearchProductsRequest) +} +SearchProductsRequest::SearchProductsRequest(const SearchProductsRequest& from) : ::google::protobuf::Message() { + SearchProductsRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.query_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.query_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.query_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_query().empty()) { + _this->_impl_.query_.Set(from._internal_query(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.SearchProductsRequest) +} +inline void SearchProductsRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.query_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.query_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.query_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +SearchProductsRequest::~SearchProductsRequest() { + // @@protoc_insertion_point(destructor:oteldemo.SearchProductsRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void SearchProductsRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.query_.Destroy(); +} +void SearchProductsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void SearchProductsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.SearchProductsRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.query_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SearchProductsRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 44, 2> SearchProductsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_SearchProductsRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string query = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchProductsRequest, _impl_.query_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string query = 1; + {PROTOBUF_FIELD_OFFSET(SearchProductsRequest, _impl_.query_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\36\5\0\0\0\0\0\0" + "oteldemo.SearchProductsRequest" + "query" + }}, +}; + +::uint8_t* SearchProductsRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SearchProductsRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string query = 1; + if (!this->_internal_query().empty()) { + const std::string& _s = this->_internal_query(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.SearchProductsRequest.query"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.SearchProductsRequest) + return target; +} + +::size_t SearchProductsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.SearchProductsRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string query = 1; + if (!this->_internal_query().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_query()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData SearchProductsRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + SearchProductsRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*SearchProductsRequest::GetClassData() const { return &_class_data_; } + + +void SearchProductsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.SearchProductsRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_query().empty()) { + _this->_internal_set_query(from._internal_query()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SearchProductsRequest::CopyFrom(const SearchProductsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SearchProductsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SearchProductsRequest::IsInitialized() const { + return true; +} + +void SearchProductsRequest::InternalSwap(SearchProductsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.query_, lhs_arena, + &other->_impl_.query_, rhs_arena); +} + +::google::protobuf::Metadata SearchProductsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[11]); +} +// =================================================================== + +class SearchProductsResponse::_Internal { + public: +}; + +SearchProductsResponse::SearchProductsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.SearchProductsResponse) +} +SearchProductsResponse::SearchProductsResponse(const SearchProductsResponse& from) : ::google::protobuf::Message() { + SearchProductsResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.results_){from._impl_.results_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.SearchProductsResponse) +} +inline void SearchProductsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.results_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +SearchProductsResponse::~SearchProductsResponse() { + // @@protoc_insertion_point(destructor:oteldemo.SearchProductsResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void SearchProductsResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.results_.~RepeatedPtrField(); +} +void SearchProductsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void SearchProductsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.SearchProductsResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_results()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SearchProductsResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchProductsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SearchProductsResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.Product results = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchProductsResponse, _impl_.results_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .oteldemo.Product results = 1; + {PROTOBUF_FIELD_OFFSET(SearchProductsResponse, _impl_.results_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Product>()}, + }}, {{ + }}, +}; + +::uint8_t* SearchProductsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SearchProductsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .oteldemo.Product results = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_results_size()); i < n; i++) { + const auto& repfield = this->_internal_results().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.SearchProductsResponse) + return target; +} + +::size_t SearchProductsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.SearchProductsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.Product results = 1; + total_size += 1UL * this->_internal_results_size(); + for (const auto& msg : this->_internal_results()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData SearchProductsResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + SearchProductsResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*SearchProductsResponse::GetClassData() const { return &_class_data_; } + + +void SearchProductsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.SearchProductsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_results()->MergeFrom(from._internal_results()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SearchProductsResponse::CopyFrom(const SearchProductsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SearchProductsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SearchProductsResponse::IsInitialized() const { + return true; +} + +void SearchProductsResponse::InternalSwap(SearchProductsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.results_.InternalSwap(&other->_impl_.results_); +} + +::google::protobuf::Metadata SearchProductsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[12]); +} +// =================================================================== + +class ProductReview::_Internal { + public: +}; + +ProductReview::ProductReview(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ProductReview) +} +ProductReview::ProductReview(const ProductReview& from) : ::google::protobuf::Message() { + ProductReview* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.username_){}, + decltype(_impl_.description_){}, + decltype(_impl_.score_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.username_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.username_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_username().empty()) { + _this->_impl_.username_.Set(from._internal_username(), _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); + } + _impl_.score_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.score_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_score().empty()) { + _this->_impl_.score_.Set(from._internal_score(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ProductReview) +} +inline void ProductReview::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.username_){}, + decltype(_impl_.description_){}, + decltype(_impl_.score_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.username_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.username_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.score_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.score_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ProductReview::~ProductReview() { + // @@protoc_insertion_point(destructor:oteldemo.ProductReview) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ProductReview::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.username_.Destroy(); + _impl_.description_.Destroy(); + _impl_.score_.Destroy(); +} +void ProductReview::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ProductReview::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ProductReview) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.username_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _impl_.score_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ProductReview::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 55, 2> ProductReview::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ProductReview_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string username = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.username_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.description_)}}, + // string score = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.score_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string username = 1; + {PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.username_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string score = 3; + {PROTOBUF_FIELD_OFFSET(ProductReview, _impl_.score_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\26\10\13\5\0\0\0\0" + "oteldemo.ProductReview" + "username" + "description" + "score" + }}, +}; + +::uint8_t* ProductReview::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ProductReview) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string username = 1; + if (!this->_internal_username().empty()) { + const std::string& _s = this->_internal_username(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ProductReview.username"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + const std::string& _s = this->_internal_description(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ProductReview.description"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // string score = 3; + if (!this->_internal_score().empty()) { + const std::string& _s = this->_internal_score(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ProductReview.score"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ProductReview) + return target; +} + +::size_t ProductReview::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ProductReview) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string username = 1; + if (!this->_internal_username().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_username()); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + // string score = 3; + if (!this->_internal_score().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_score()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ProductReview::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ProductReview::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ProductReview::GetClassData() const { return &_class_data_; } + + +void ProductReview::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ProductReview) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_username().empty()) { + _this->_internal_set_username(from._internal_username()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + if (!from._internal_score().empty()) { + _this->_internal_set_score(from._internal_score()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ProductReview::CopyFrom(const ProductReview& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ProductReview) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ProductReview::IsInitialized() const { + return true; +} + +void ProductReview::InternalSwap(ProductReview* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.username_, lhs_arena, + &other->_impl_.username_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.score_, lhs_arena, + &other->_impl_.score_, rhs_arena); +} + +::google::protobuf::Metadata ProductReview::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[13]); +} +// =================================================================== + +class GetProductReviewsRequest::_Internal { + public: +}; + +GetProductReviewsRequest::GetProductReviewsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetProductReviewsRequest) +} +GetProductReviewsRequest::GetProductReviewsRequest(const GetProductReviewsRequest& from) : ::google::protobuf::Message() { + GetProductReviewsRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_product_id().empty()) { + _this->_impl_.product_id_.Set(from._internal_product_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetProductReviewsRequest) +} +inline void GetProductReviewsRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetProductReviewsRequest::~GetProductReviewsRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetProductReviewsRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetProductReviewsRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.product_id_.Destroy(); +} +void GetProductReviewsRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetProductReviewsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetProductReviewsRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.product_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetProductReviewsRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetProductReviewsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetProductReviewsRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string product_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetProductReviewsRequest, _impl_.product_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string product_id = 1; + {PROTOBUF_FIELD_OFFSET(GetProductReviewsRequest, _impl_.product_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\41\12\0\0\0\0\0\0" + "oteldemo.GetProductReviewsRequest" + "product_id" + }}, +}; + +::uint8_t* GetProductReviewsRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetProductReviewsRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + const std::string& _s = this->_internal_product_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetProductReviewsRequest.product_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetProductReviewsRequest) + return target; +} + +::size_t GetProductReviewsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetProductReviewsRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_product_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetProductReviewsRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetProductReviewsRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetProductReviewsRequest::GetClassData() const { return &_class_data_; } + + +void GetProductReviewsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetProductReviewsRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_product_id().empty()) { + _this->_internal_set_product_id(from._internal_product_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetProductReviewsRequest::CopyFrom(const GetProductReviewsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetProductReviewsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetProductReviewsRequest::IsInitialized() const { + return true; +} + +void GetProductReviewsRequest::InternalSwap(GetProductReviewsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_id_, lhs_arena, + &other->_impl_.product_id_, rhs_arena); +} + +::google::protobuf::Metadata GetProductReviewsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[14]); +} +// =================================================================== + +class GetProductReviewsResponse::_Internal { + public: +}; + +GetProductReviewsResponse::GetProductReviewsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetProductReviewsResponse) +} +GetProductReviewsResponse::GetProductReviewsResponse(const GetProductReviewsResponse& from) : ::google::protobuf::Message() { + GetProductReviewsResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_reviews_){from._impl_.product_reviews_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetProductReviewsResponse) +} +inline void GetProductReviewsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_reviews_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +GetProductReviewsResponse::~GetProductReviewsResponse() { + // @@protoc_insertion_point(destructor:oteldemo.GetProductReviewsResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetProductReviewsResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.product_reviews_.~RepeatedPtrField(); +} +void GetProductReviewsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetProductReviewsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetProductReviewsResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_product_reviews()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetProductReviewsResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetProductReviewsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GetProductReviewsResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.ProductReview product_reviews = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetProductReviewsResponse, _impl_.product_reviews_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .oteldemo.ProductReview product_reviews = 1; + {PROTOBUF_FIELD_OFFSET(GetProductReviewsResponse, _impl_.product_reviews_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::ProductReview>()}, + }}, {{ + }}, +}; + +::uint8_t* GetProductReviewsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetProductReviewsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .oteldemo.ProductReview product_reviews = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_product_reviews_size()); i < n; i++) { + const auto& repfield = this->_internal_product_reviews().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetProductReviewsResponse) + return target; +} + +::size_t GetProductReviewsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetProductReviewsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.ProductReview product_reviews = 1; + total_size += 1UL * this->_internal_product_reviews_size(); + for (const auto& msg : this->_internal_product_reviews()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetProductReviewsResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetProductReviewsResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetProductReviewsResponse::GetClassData() const { return &_class_data_; } + + +void GetProductReviewsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetProductReviewsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_product_reviews()->MergeFrom(from._internal_product_reviews()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetProductReviewsResponse::CopyFrom(const GetProductReviewsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetProductReviewsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetProductReviewsResponse::IsInitialized() const { + return true; +} + +void GetProductReviewsResponse::InternalSwap(GetProductReviewsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.product_reviews_.InternalSwap(&other->_impl_.product_reviews_); +} + +::google::protobuf::Metadata GetProductReviewsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[15]); +} +// =================================================================== + +class GetAverageProductReviewScoreRequest::_Internal { + public: +}; + +GetAverageProductReviewScoreRequest::GetAverageProductReviewScoreRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetAverageProductReviewScoreRequest) +} +GetAverageProductReviewScoreRequest::GetAverageProductReviewScoreRequest(const GetAverageProductReviewScoreRequest& from) : ::google::protobuf::Message() { + GetAverageProductReviewScoreRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_product_id().empty()) { + _this->_impl_.product_id_.Set(from._internal_product_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetAverageProductReviewScoreRequest) +} +inline void GetAverageProductReviewScoreRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetAverageProductReviewScoreRequest::~GetAverageProductReviewScoreRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetAverageProductReviewScoreRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetAverageProductReviewScoreRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.product_id_.Destroy(); +} +void GetAverageProductReviewScoreRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetAverageProductReviewScoreRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetAverageProductReviewScoreRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.product_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetAverageProductReviewScoreRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 63, 2> GetAverageProductReviewScoreRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetAverageProductReviewScoreRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string product_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAverageProductReviewScoreRequest, _impl_.product_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string product_id = 1; + {PROTOBUF_FIELD_OFFSET(GetAverageProductReviewScoreRequest, _impl_.product_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\54\12\0\0\0\0\0\0" + "oteldemo.GetAverageProductReviewScoreRequest" + "product_id" + }}, +}; + +::uint8_t* GetAverageProductReviewScoreRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetAverageProductReviewScoreRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + const std::string& _s = this->_internal_product_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetAverageProductReviewScoreRequest.product_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetAverageProductReviewScoreRequest) + return target; +} + +::size_t GetAverageProductReviewScoreRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetAverageProductReviewScoreRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_product_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetAverageProductReviewScoreRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetAverageProductReviewScoreRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetAverageProductReviewScoreRequest::GetClassData() const { return &_class_data_; } + + +void GetAverageProductReviewScoreRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetAverageProductReviewScoreRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_product_id().empty()) { + _this->_internal_set_product_id(from._internal_product_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAverageProductReviewScoreRequest::CopyFrom(const GetAverageProductReviewScoreRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetAverageProductReviewScoreRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetAverageProductReviewScoreRequest::IsInitialized() const { + return true; +} + +void GetAverageProductReviewScoreRequest::InternalSwap(GetAverageProductReviewScoreRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_id_, lhs_arena, + &other->_impl_.product_id_, rhs_arena); +} + +::google::protobuf::Metadata GetAverageProductReviewScoreRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[16]); +} +// =================================================================== + +class GetAverageProductReviewScoreResponse::_Internal { + public: +}; + +GetAverageProductReviewScoreResponse::GetAverageProductReviewScoreResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetAverageProductReviewScoreResponse) +} +GetAverageProductReviewScoreResponse::GetAverageProductReviewScoreResponse(const GetAverageProductReviewScoreResponse& from) : ::google::protobuf::Message() { + GetAverageProductReviewScoreResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.average_score_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.average_score_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.average_score_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_average_score().empty()) { + _this->_impl_.average_score_.Set(from._internal_average_score(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetAverageProductReviewScoreResponse) +} +inline void GetAverageProductReviewScoreResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.average_score_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.average_score_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.average_score_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetAverageProductReviewScoreResponse::~GetAverageProductReviewScoreResponse() { + // @@protoc_insertion_point(destructor:oteldemo.GetAverageProductReviewScoreResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetAverageProductReviewScoreResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.average_score_.Destroy(); +} +void GetAverageProductReviewScoreResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetAverageProductReviewScoreResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetAverageProductReviewScoreResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.average_score_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetAverageProductReviewScoreResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 67, 2> GetAverageProductReviewScoreResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetAverageProductReviewScoreResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string average_score = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAverageProductReviewScoreResponse, _impl_.average_score_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string average_score = 1; + {PROTOBUF_FIELD_OFFSET(GetAverageProductReviewScoreResponse, _impl_.average_score_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\55\15\0\0\0\0\0\0" + "oteldemo.GetAverageProductReviewScoreResponse" + "average_score" + }}, +}; + +::uint8_t* GetAverageProductReviewScoreResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetAverageProductReviewScoreResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string average_score = 1; + if (!this->_internal_average_score().empty()) { + const std::string& _s = this->_internal_average_score(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetAverageProductReviewScoreResponse.average_score"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetAverageProductReviewScoreResponse) + return target; +} + +::size_t GetAverageProductReviewScoreResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetAverageProductReviewScoreResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string average_score = 1; + if (!this->_internal_average_score().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_average_score()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetAverageProductReviewScoreResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetAverageProductReviewScoreResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetAverageProductReviewScoreResponse::GetClassData() const { return &_class_data_; } + + +void GetAverageProductReviewScoreResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetAverageProductReviewScoreResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_average_score().empty()) { + _this->_internal_set_average_score(from._internal_average_score()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetAverageProductReviewScoreResponse::CopyFrom(const GetAverageProductReviewScoreResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetAverageProductReviewScoreResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetAverageProductReviewScoreResponse::IsInitialized() const { + return true; +} + +void GetAverageProductReviewScoreResponse::InternalSwap(GetAverageProductReviewScoreResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.average_score_, lhs_arena, + &other->_impl_.average_score_, rhs_arena); +} + +::google::protobuf::Metadata GetAverageProductReviewScoreResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[17]); +} +// =================================================================== + +class AskProductAIAssistantRequest::_Internal { + public: +}; + +AskProductAIAssistantRequest::AskProductAIAssistantRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.AskProductAIAssistantRequest) +} +AskProductAIAssistantRequest::AskProductAIAssistantRequest(const AskProductAIAssistantRequest& from) : ::google::protobuf::Message() { + AskProductAIAssistantRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + decltype(_impl_.question_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_product_id().empty()) { + _this->_impl_.product_id_.Set(from._internal_product_id(), _this->GetArenaForAllocation()); + } + _impl_.question_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.question_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_question().empty()) { + _this->_impl_.question_.Set(from._internal_question(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.AskProductAIAssistantRequest) +} +inline void AskProductAIAssistantRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.product_id_){}, + decltype(_impl_.question_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.product_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.product_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.question_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.question_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +AskProductAIAssistantRequest::~AskProductAIAssistantRequest() { + // @@protoc_insertion_point(destructor:oteldemo.AskProductAIAssistantRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void AskProductAIAssistantRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.product_id_.Destroy(); + _impl_.question_.Destroy(); +} +void AskProductAIAssistantRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void AskProductAIAssistantRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.AskProductAIAssistantRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.product_id_.ClearToEmpty(); + _impl_.question_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* AskProductAIAssistantRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 64, 2> AskProductAIAssistantRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_AskProductAIAssistantRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string question = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(AskProductAIAssistantRequest, _impl_.question_)}}, + // string product_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AskProductAIAssistantRequest, _impl_.product_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string product_id = 1; + {PROTOBUF_FIELD_OFFSET(AskProductAIAssistantRequest, _impl_.product_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string question = 2; + {PROTOBUF_FIELD_OFFSET(AskProductAIAssistantRequest, _impl_.question_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\45\12\10\0\0\0\0\0" + "oteldemo.AskProductAIAssistantRequest" + "product_id" + "question" + }}, +}; + +::uint8_t* AskProductAIAssistantRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AskProductAIAssistantRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + const std::string& _s = this->_internal_product_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AskProductAIAssistantRequest.product_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string question = 2; + if (!this->_internal_question().empty()) { + const std::string& _s = this->_internal_question(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AskProductAIAssistantRequest.question"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AskProductAIAssistantRequest) + return target; +} + +::size_t AskProductAIAssistantRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.AskProductAIAssistantRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string product_id = 1; + if (!this->_internal_product_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_product_id()); + } + + // string question = 2; + if (!this->_internal_question().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_question()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData AskProductAIAssistantRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + AskProductAIAssistantRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*AskProductAIAssistantRequest::GetClassData() const { return &_class_data_; } + + +void AskProductAIAssistantRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.AskProductAIAssistantRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_product_id().empty()) { + _this->_internal_set_product_id(from._internal_product_id()); + } + if (!from._internal_question().empty()) { + _this->_internal_set_question(from._internal_question()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void AskProductAIAssistantRequest::CopyFrom(const AskProductAIAssistantRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AskProductAIAssistantRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool AskProductAIAssistantRequest::IsInitialized() const { + return true; +} + +void AskProductAIAssistantRequest::InternalSwap(AskProductAIAssistantRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_id_, lhs_arena, + &other->_impl_.product_id_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.question_, lhs_arena, + &other->_impl_.question_, rhs_arena); +} + +::google::protobuf::Metadata AskProductAIAssistantRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[18]); +} +// =================================================================== + +class AskProductAIAssistantResponse::_Internal { + public: +}; + +AskProductAIAssistantResponse::AskProductAIAssistantResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.AskProductAIAssistantResponse) +} +AskProductAIAssistantResponse::AskProductAIAssistantResponse(const AskProductAIAssistantResponse& from) : ::google::protobuf::Message() { + AskProductAIAssistantResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.response_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.response_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_response().empty()) { + _this->_impl_.response_.Set(from._internal_response(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.AskProductAIAssistantResponse) +} +inline void AskProductAIAssistantResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.response_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.response_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.response_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +AskProductAIAssistantResponse::~AskProductAIAssistantResponse() { + // @@protoc_insertion_point(destructor:oteldemo.AskProductAIAssistantResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void AskProductAIAssistantResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.response_.Destroy(); +} +void AskProductAIAssistantResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void AskProductAIAssistantResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.AskProductAIAssistantResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.response_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* AskProductAIAssistantResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 55, 2> AskProductAIAssistantResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_AskProductAIAssistantResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string response = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AskProductAIAssistantResponse, _impl_.response_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string response = 1; + {PROTOBUF_FIELD_OFFSET(AskProductAIAssistantResponse, _impl_.response_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\46\10\0\0\0\0\0\0" + "oteldemo.AskProductAIAssistantResponse" + "response" + }}, +}; + +::uint8_t* AskProductAIAssistantResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AskProductAIAssistantResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string response = 1; + if (!this->_internal_response().empty()) { + const std::string& _s = this->_internal_response(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AskProductAIAssistantResponse.response"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AskProductAIAssistantResponse) + return target; +} + +::size_t AskProductAIAssistantResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.AskProductAIAssistantResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string response = 1; + if (!this->_internal_response().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_response()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData AskProductAIAssistantResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + AskProductAIAssistantResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*AskProductAIAssistantResponse::GetClassData() const { return &_class_data_; } + + +void AskProductAIAssistantResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.AskProductAIAssistantResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_response().empty()) { + _this->_internal_set_response(from._internal_response()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void AskProductAIAssistantResponse::CopyFrom(const AskProductAIAssistantResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AskProductAIAssistantResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool AskProductAIAssistantResponse::IsInitialized() const { + return true; +} + +void AskProductAIAssistantResponse::InternalSwap(AskProductAIAssistantResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_, lhs_arena, + &other->_impl_.response_, rhs_arena); +} + +::google::protobuf::Metadata AskProductAIAssistantResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[19]); +} +// =================================================================== + +class GetQuoteRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_._has_bits_); + static const ::oteldemo::Address& address(const GetQuoteRequest* msg); + static void set_has_address(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Address& GetQuoteRequest::_Internal::address(const GetQuoteRequest* msg) { + return *msg->_impl_.address_; +} +GetQuoteRequest::GetQuoteRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetQuoteRequest) +} +GetQuoteRequest::GetQuoteRequest(const GetQuoteRequest& from) : ::google::protobuf::Message() { + GetQuoteRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){from._impl_.items_}, + decltype(_impl_.address_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetQuoteRequest) +} +inline void GetQuoteRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){arena}, + decltype(_impl_.address_){nullptr}, + }; +} +GetQuoteRequest::~GetQuoteRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetQuoteRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetQuoteRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.address_; +} +void GetQuoteRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetQuoteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetQuoteRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_items()->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.address_ != nullptr); + _impl_.address_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetQuoteRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetQuoteRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GetQuoteRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.CartItem items = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.items_)}}, + // .oteldemo.Address address = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.address_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Address address = 1; + {PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .oteldemo.CartItem items = 2; + {PROTOBUF_FIELD_OFFSET(GetQuoteRequest, _impl_.items_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, + {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, + }}, {{ + }}, +}; + +::uint8_t* GetQuoteRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetQuoteRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Address address = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::address(this), + _Internal::address(this).GetCachedSize(), target, stream); + } + + // repeated .oteldemo.CartItem items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetQuoteRequest) + return target; +} + +::size_t GetQuoteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetQuoteRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.CartItem items = 2; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_internal_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // .oteldemo.Address address = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.address_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetQuoteRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetQuoteRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetQuoteRequest::GetClassData() const { return &_class_data_; } + + +void GetQuoteRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetQuoteRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_items()->MergeFrom(from._internal_items()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( + from._internal_address()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetQuoteRequest::CopyFrom(const GetQuoteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetQuoteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetQuoteRequest::IsInitialized() const { + return true; +} + +void GetQuoteRequest::InternalSwap(GetQuoteRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.items_.InternalSwap(&other->_impl_.items_); + swap(_impl_.address_, other->_impl_.address_); +} + +::google::protobuf::Metadata GetQuoteRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[20]); +} +// =================================================================== + +class GetQuoteResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_._has_bits_); + static const ::oteldemo::Money& cost_usd(const GetQuoteResponse* msg); + static void set_has_cost_usd(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Money& GetQuoteResponse::_Internal::cost_usd(const GetQuoteResponse* msg) { + return *msg->_impl_.cost_usd_; +} +GetQuoteResponse::GetQuoteResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetQuoteResponse) +} +GetQuoteResponse::GetQuoteResponse(const GetQuoteResponse& from) : ::google::protobuf::Message() { + GetQuoteResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.cost_usd_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.cost_usd_ = new ::oteldemo::Money(*from._impl_.cost_usd_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetQuoteResponse) +} +inline void GetQuoteResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.cost_usd_){nullptr}, + }; +} +GetQuoteResponse::~GetQuoteResponse() { + // @@protoc_insertion_point(destructor:oteldemo.GetQuoteResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetQuoteResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.cost_usd_; +} +void GetQuoteResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetQuoteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetQuoteResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.cost_usd_ != nullptr); + _impl_.cost_usd_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetQuoteResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetQuoteResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GetQuoteResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.Money cost_usd = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_.cost_usd_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Money cost_usd = 1; + {PROTOBUF_FIELD_OFFSET(GetQuoteResponse, _impl_.cost_usd_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + }}, {{ + }}, +}; + +::uint8_t* GetQuoteResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetQuoteResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Money cost_usd = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::cost_usd(this), + _Internal::cost_usd(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetQuoteResponse) + return target; +} + +::size_t GetQuoteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetQuoteResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .oteldemo.Money cost_usd = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.cost_usd_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetQuoteResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetQuoteResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetQuoteResponse::GetClassData() const { return &_class_data_; } + + +void GetQuoteResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetQuoteResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_cost_usd()->::oteldemo::Money::MergeFrom( + from._internal_cost_usd()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetQuoteResponse::CopyFrom(const GetQuoteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetQuoteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetQuoteResponse::IsInitialized() const { + return true; +} + +void GetQuoteResponse::InternalSwap(GetQuoteResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.cost_usd_, other->_impl_.cost_usd_); +} + +::google::protobuf::Metadata GetQuoteResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[21]); +} +// =================================================================== + +class ShipOrderRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_._has_bits_); + static const ::oteldemo::Address& address(const ShipOrderRequest* msg); + static void set_has_address(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Address& ShipOrderRequest::_Internal::address(const ShipOrderRequest* msg) { + return *msg->_impl_.address_; +} +ShipOrderRequest::ShipOrderRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ShipOrderRequest) +} +ShipOrderRequest::ShipOrderRequest(const ShipOrderRequest& from) : ::google::protobuf::Message() { + ShipOrderRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){from._impl_.items_}, + decltype(_impl_.address_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ShipOrderRequest) +} +inline void ShipOrderRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){arena}, + decltype(_impl_.address_){nullptr}, + }; +} +ShipOrderRequest::~ShipOrderRequest() { + // @@protoc_insertion_point(destructor:oteldemo.ShipOrderRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ShipOrderRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.address_; +} +void ShipOrderRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ShipOrderRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ShipOrderRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_items()->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.address_ != nullptr); + _impl_.address_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ShipOrderRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ShipOrderRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ShipOrderRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.CartItem items = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.items_)}}, + // .oteldemo.Address address = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.address_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Address address = 1; + {PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .oteldemo.CartItem items = 2; + {PROTOBUF_FIELD_OFFSET(ShipOrderRequest, _impl_.items_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, + {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, + }}, {{ + }}, +}; + +::uint8_t* ShipOrderRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ShipOrderRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Address address = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::address(this), + _Internal::address(this).GetCachedSize(), target, stream); + } + + // repeated .oteldemo.CartItem items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ShipOrderRequest) + return target; +} + +::size_t ShipOrderRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ShipOrderRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.CartItem items = 2; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_internal_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // .oteldemo.Address address = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.address_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ShipOrderRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ShipOrderRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ShipOrderRequest::GetClassData() const { return &_class_data_; } + + +void ShipOrderRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ShipOrderRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_items()->MergeFrom(from._internal_items()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( + from._internal_address()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ShipOrderRequest::CopyFrom(const ShipOrderRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ShipOrderRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ShipOrderRequest::IsInitialized() const { + return true; +} + +void ShipOrderRequest::InternalSwap(ShipOrderRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.items_.InternalSwap(&other->_impl_.items_); + swap(_impl_.address_, other->_impl_.address_); +} + +::google::protobuf::Metadata ShipOrderRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[22]); +} +// =================================================================== + +class ShipOrderResponse::_Internal { + public: +}; + +ShipOrderResponse::ShipOrderResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ShipOrderResponse) +} +ShipOrderResponse::ShipOrderResponse(const ShipOrderResponse& from) : ::google::protobuf::Message() { + ShipOrderResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.tracking_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.tracking_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tracking_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_tracking_id().empty()) { + _this->_impl_.tracking_id_.Set(from._internal_tracking_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ShipOrderResponse) +} +inline void ShipOrderResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.tracking_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.tracking_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.tracking_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ShipOrderResponse::~ShipOrderResponse() { + // @@protoc_insertion_point(destructor:oteldemo.ShipOrderResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ShipOrderResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.tracking_id_.Destroy(); +} +void ShipOrderResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ShipOrderResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ShipOrderResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.tracking_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ShipOrderResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 46, 2> ShipOrderResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ShipOrderResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string tracking_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShipOrderResponse, _impl_.tracking_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string tracking_id = 1; + {PROTOBUF_FIELD_OFFSET(ShipOrderResponse, _impl_.tracking_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\32\13\0\0\0\0\0\0" + "oteldemo.ShipOrderResponse" + "tracking_id" + }}, +}; + +::uint8_t* ShipOrderResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ShipOrderResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string tracking_id = 1; + if (!this->_internal_tracking_id().empty()) { + const std::string& _s = this->_internal_tracking_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ShipOrderResponse.tracking_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ShipOrderResponse) + return target; +} + +::size_t ShipOrderResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ShipOrderResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string tracking_id = 1; + if (!this->_internal_tracking_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_tracking_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ShipOrderResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ShipOrderResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ShipOrderResponse::GetClassData() const { return &_class_data_; } + + +void ShipOrderResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ShipOrderResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_tracking_id().empty()) { + _this->_internal_set_tracking_id(from._internal_tracking_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ShipOrderResponse::CopyFrom(const ShipOrderResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ShipOrderResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ShipOrderResponse::IsInitialized() const { + return true; +} + +void ShipOrderResponse::InternalSwap(ShipOrderResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tracking_id_, lhs_arena, + &other->_impl_.tracking_id_, rhs_arena); +} + +::google::protobuf::Metadata ShipOrderResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[23]); +} +// =================================================================== + +class Address::_Internal { + public: +}; + +Address::Address(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Address) +} +Address::Address(const Address& from) : ::google::protobuf::Message() { + Address* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.street_address_){}, + decltype(_impl_.city_){}, + decltype(_impl_.state_){}, + decltype(_impl_.country_){}, + decltype(_impl_.zip_code_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.street_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.street_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_street_address().empty()) { + _this->_impl_.street_address_.Set(from._internal_street_address(), _this->GetArenaForAllocation()); + } + _impl_.city_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.city_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_city().empty()) { + _this->_impl_.city_.Set(from._internal_city(), _this->GetArenaForAllocation()); + } + _impl_.state_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.state_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_state().empty()) { + _this->_impl_.state_.Set(from._internal_state(), _this->GetArenaForAllocation()); + } + _impl_.country_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.country_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_country().empty()) { + _this->_impl_.country_.Set(from._internal_country(), _this->GetArenaForAllocation()); + } + _impl_.zip_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.zip_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_zip_code().empty()) { + _this->_impl_.zip_code_.Set(from._internal_zip_code(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.Address) +} +inline void Address::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.street_address_){}, + decltype(_impl_.city_){}, + decltype(_impl_.state_){}, + decltype(_impl_.country_){}, + decltype(_impl_.zip_code_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.street_address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.street_address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.city_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.city_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.state_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.state_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.country_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.country_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.zip_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.zip_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Address::~Address() { + // @@protoc_insertion_point(destructor:oteldemo.Address) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Address::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.street_address_.Destroy(); + _impl_.city_.Destroy(); + _impl_.state_.Destroy(); + _impl_.country_.Destroy(); + _impl_.zip_code_.Destroy(); +} +void Address::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Address::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Address) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.street_address_.ClearToEmpty(); + _impl_.city_.ClearToEmpty(); + _impl_.state_.ClearToEmpty(); + _impl_.country_.ClearToEmpty(); + _impl_.zip_code_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Address::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 63, 2> Address::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Address_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string street_address = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.street_address_)}}, + // string city = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.city_)}}, + // string state = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.state_)}}, + // string country = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.country_)}}, + // string zip_code = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.zip_code_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string street_address = 1; + {PROTOBUF_FIELD_OFFSET(Address, _impl_.street_address_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string city = 2; + {PROTOBUF_FIELD_OFFSET(Address, _impl_.city_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string state = 3; + {PROTOBUF_FIELD_OFFSET(Address, _impl_.state_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string country = 4; + {PROTOBUF_FIELD_OFFSET(Address, _impl_.country_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string zip_code = 5; + {PROTOBUF_FIELD_OFFSET(Address, _impl_.zip_code_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\20\16\4\5\7\10\0\0" + "oteldemo.Address" + "street_address" + "city" + "state" + "country" + "zip_code" + }}, +}; + +::uint8_t* Address::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Address) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string street_address = 1; + if (!this->_internal_street_address().empty()) { + const std::string& _s = this->_internal_street_address(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.street_address"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string city = 2; + if (!this->_internal_city().empty()) { + const std::string& _s = this->_internal_city(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.city"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // string state = 3; + if (!this->_internal_state().empty()) { + const std::string& _s = this->_internal_state(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.state"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // string country = 4; + if (!this->_internal_country().empty()) { + const std::string& _s = this->_internal_country(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.country"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + // string zip_code = 5; + if (!this->_internal_zip_code().empty()) { + const std::string& _s = this->_internal_zip_code(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Address.zip_code"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Address) + return target; +} + +::size_t Address::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Address) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string street_address = 1; + if (!this->_internal_street_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_street_address()); + } + + // string city = 2; + if (!this->_internal_city().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_city()); + } + + // string state = 3; + if (!this->_internal_state().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_state()); + } + + // string country = 4; + if (!this->_internal_country().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_country()); + } + + // string zip_code = 5; + if (!this->_internal_zip_code().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_zip_code()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Address::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Address::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Address::GetClassData() const { return &_class_data_; } + + +void Address::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Address) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_street_address().empty()) { + _this->_internal_set_street_address(from._internal_street_address()); + } + if (!from._internal_city().empty()) { + _this->_internal_set_city(from._internal_city()); + } + if (!from._internal_state().empty()) { + _this->_internal_set_state(from._internal_state()); + } + if (!from._internal_country().empty()) { + _this->_internal_set_country(from._internal_country()); + } + if (!from._internal_zip_code().empty()) { + _this->_internal_set_zip_code(from._internal_zip_code()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Address::CopyFrom(const Address& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Address) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Address::IsInitialized() const { + return true; +} + +void Address::InternalSwap(Address* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.street_address_, lhs_arena, + &other->_impl_.street_address_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.city_, lhs_arena, + &other->_impl_.city_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, lhs_arena, + &other->_impl_.state_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.country_, lhs_arena, + &other->_impl_.country_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.zip_code_, lhs_arena, + &other->_impl_.zip_code_, rhs_arena); +} + +::google::protobuf::Metadata Address::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[24]); +} +// =================================================================== + +class Money::_Internal { + public: +}; + +Money::Money(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Money) +} +Money::Money(const Money& from) : ::google::protobuf::Message() { + Money* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.currency_code_){}, + decltype(_impl_.units_){}, + decltype(_impl_.nanos_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.currency_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currency_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_currency_code().empty()) { + _this->_impl_.currency_code_.Set(from._internal_currency_code(), _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.units_, &from._impl_.units_, + static_cast<::size_t>(reinterpret_cast(&_impl_.nanos_) - + reinterpret_cast(&_impl_.units_)) + sizeof(_impl_.nanos_)); + + // @@protoc_insertion_point(copy_constructor:oteldemo.Money) +} +inline void Money::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.currency_code_){}, + decltype(_impl_.units_){::int64_t{0}}, + decltype(_impl_.nanos_){0}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.currency_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currency_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Money::~Money() { + // @@protoc_insertion_point(destructor:oteldemo.Money) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Money::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.currency_code_.Destroy(); +} +void Money::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Money::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Money) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.currency_code_.ClearToEmpty(); + ::memset(&_impl_.units_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.nanos_) - + reinterpret_cast(&_impl_.units_)) + sizeof(_impl_.nanos_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Money::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 36, 2> Money::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Money_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string currency_code = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.currency_code_)}}, + // int64 units = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Money, _impl_.units_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.units_)}}, + // int32 nanos = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Money, _impl_.nanos_), 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string currency_code = 1; + {PROTOBUF_FIELD_OFFSET(Money, _impl_.currency_code_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 units = 2; + {PROTOBUF_FIELD_OFFSET(Money, _impl_.units_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // int32 nanos = 3; + {PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\16\15\0\0\0\0\0\0" + "oteldemo.Money" + "currency_code" + }}, +}; + +::uint8_t* Money::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Money) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string currency_code = 1; + if (!this->_internal_currency_code().empty()) { + const std::string& _s = this->_internal_currency_code(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Money.currency_code"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // int64 units = 2; + if (this->_internal_units() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<2>( + stream, this->_internal_units(), target); + } + + // int32 nanos = 3; + if (this->_internal_nanos() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<3>( + stream, this->_internal_nanos(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Money) + return target; +} + +::size_t Money::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Money) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string currency_code = 1; + if (!this->_internal_currency_code().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_currency_code()); + } + + // int64 units = 2; + if (this->_internal_units() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this->_internal_units()); + } + + // int32 nanos = 3; + if (this->_internal_nanos() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_nanos()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Money::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Money::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Money::GetClassData() const { return &_class_data_; } + + +void Money::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Money) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_currency_code().empty()) { + _this->_internal_set_currency_code(from._internal_currency_code()); + } + if (from._internal_units() != 0) { + _this->_internal_set_units(from._internal_units()); + } + if (from._internal_nanos() != 0) { + _this->_internal_set_nanos(from._internal_nanos()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Money::CopyFrom(const Money& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Money) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Money::IsInitialized() const { + return true; +} + +void Money::InternalSwap(Money* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.currency_code_, lhs_arena, + &other->_impl_.currency_code_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Money, _impl_.nanos_) + + sizeof(Money::_impl_.nanos_) + - PROTOBUF_FIELD_OFFSET(Money, _impl_.units_)>( + reinterpret_cast(&_impl_.units_), + reinterpret_cast(&other->_impl_.units_)); +} + +::google::protobuf::Metadata Money::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[25]); +} +// =================================================================== + +class GetSupportedCurrenciesResponse::_Internal { + public: +}; + +GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetSupportedCurrenciesResponse) +} +GetSupportedCurrenciesResponse::GetSupportedCurrenciesResponse(const GetSupportedCurrenciesResponse& from) : ::google::protobuf::Message() { + GetSupportedCurrenciesResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.currency_codes_){from._impl_.currency_codes_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetSupportedCurrenciesResponse) +} +inline void GetSupportedCurrenciesResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.currency_codes_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +GetSupportedCurrenciesResponse::~GetSupportedCurrenciesResponse() { + // @@protoc_insertion_point(destructor:oteldemo.GetSupportedCurrenciesResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetSupportedCurrenciesResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_currency_codes()->~RepeatedPtrField(); +} +void GetSupportedCurrenciesResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetSupportedCurrenciesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetSupportedCurrenciesResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_currency_codes()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetSupportedCurrenciesResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 62, 2> GetSupportedCurrenciesResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetSupportedCurrenciesResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated string currency_codes = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSupportedCurrenciesResponse, _impl_.currency_codes_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string currency_codes = 1; + {PROTOBUF_FIELD_OFFSET(GetSupportedCurrenciesResponse, _impl_.currency_codes_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\47\16\0\0\0\0\0\0" + "oteldemo.GetSupportedCurrenciesResponse" + "currency_codes" + }}, +}; + +::uint8_t* GetSupportedCurrenciesResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetSupportedCurrenciesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated string currency_codes = 1; + for (int i = 0, n = this->_internal_currency_codes_size(); i < n; ++i) { + const auto& s = this->_internal_currency_codes().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetSupportedCurrenciesResponse.currency_codes"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetSupportedCurrenciesResponse) + return target; +} + +::size_t GetSupportedCurrenciesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetSupportedCurrenciesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string currency_codes = 1; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_currency_codes().size()); + for (int i = 0, n = _internal_currency_codes().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + _internal_currency_codes().Get(i)); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetSupportedCurrenciesResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetSupportedCurrenciesResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetSupportedCurrenciesResponse::GetClassData() const { return &_class_data_; } + + +void GetSupportedCurrenciesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetSupportedCurrenciesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_currency_codes()->MergeFrom(from._internal_currency_codes()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetSupportedCurrenciesResponse::CopyFrom(const GetSupportedCurrenciesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetSupportedCurrenciesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetSupportedCurrenciesResponse::IsInitialized() const { + return true; +} + +void GetSupportedCurrenciesResponse::InternalSwap(GetSupportedCurrenciesResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.currency_codes_.InternalSwap(&other->_impl_.currency_codes_); +} + +::google::protobuf::Metadata GetSupportedCurrenciesResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[26]); +} +// =================================================================== + +class CurrencyConversionRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_._has_bits_); + static const ::oteldemo::Money& from(const CurrencyConversionRequest* msg); + static void set_has_from(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Money& CurrencyConversionRequest::_Internal::from(const CurrencyConversionRequest* msg) { + return *msg->_impl_.from_; +} +CurrencyConversionRequest::CurrencyConversionRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.CurrencyConversionRequest) +} +CurrencyConversionRequest::CurrencyConversionRequest(const CurrencyConversionRequest& from) : ::google::protobuf::Message() { + CurrencyConversionRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.to_code_){}, + decltype(_impl_.from_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.to_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_to_code().empty()) { + _this->_impl_.to_code_.Set(from._internal_to_code(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.from_ = new ::oteldemo::Money(*from._impl_.from_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.CurrencyConversionRequest) +} +inline void CurrencyConversionRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.to_code_){}, + decltype(_impl_.from_){nullptr}, + }; + _impl_.to_code_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_code_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +CurrencyConversionRequest::~CurrencyConversionRequest() { + // @@protoc_insertion_point(destructor:oteldemo.CurrencyConversionRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CurrencyConversionRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.to_code_.Destroy(); + if (this != internal_default_instance()) delete _impl_.from_; +} +void CurrencyConversionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void CurrencyConversionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.CurrencyConversionRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.to_code_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.from_ != nullptr); + _impl_.from_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CurrencyConversionRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 50, 2> CurrencyConversionRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CurrencyConversionRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string to_code = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.to_code_)}}, + // .oteldemo.Money from = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.from_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Money from = 1; + {PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.from_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string to_code = 2; + {PROTOBUF_FIELD_OFFSET(CurrencyConversionRequest, _impl_.to_code_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + }}, {{ + "\42\0\7\0\0\0\0\0" + "oteldemo.CurrencyConversionRequest" + "to_code" + }}, +}; + +::uint8_t* CurrencyConversionRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CurrencyConversionRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Money from = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::from(this), + _Internal::from(this).GetCachedSize(), target, stream); + } + + // string to_code = 2; + if (!this->_internal_to_code().empty()) { + const std::string& _s = this->_internal_to_code(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CurrencyConversionRequest.to_code"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.CurrencyConversionRequest) + return target; +} + +::size_t CurrencyConversionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.CurrencyConversionRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string to_code = 2; + if (!this->_internal_to_code().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_to_code()); + } + + // .oteldemo.Money from = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.from_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CurrencyConversionRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + CurrencyConversionRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*CurrencyConversionRequest::GetClassData() const { return &_class_data_; } + + +void CurrencyConversionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.CurrencyConversionRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_to_code().empty()) { + _this->_internal_set_to_code(from._internal_to_code()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_from()->::oteldemo::Money::MergeFrom( + from._internal_from()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CurrencyConversionRequest::CopyFrom(const CurrencyConversionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CurrencyConversionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CurrencyConversionRequest::IsInitialized() const { + return true; +} + +void CurrencyConversionRequest::InternalSwap(CurrencyConversionRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.to_code_, lhs_arena, + &other->_impl_.to_code_, rhs_arena); + swap(_impl_.from_, other->_impl_.from_); +} + +::google::protobuf::Metadata CurrencyConversionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[27]); +} +// =================================================================== + +class CreditCardInfo::_Internal { + public: +}; + +CreditCardInfo::CreditCardInfo(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.CreditCardInfo) +} +CreditCardInfo::CreditCardInfo(const CreditCardInfo& from) : ::google::protobuf::Message() { + CreditCardInfo* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.credit_card_number_){}, + decltype(_impl_.credit_card_cvv_){}, + decltype(_impl_.credit_card_expiration_year_){}, + decltype(_impl_.credit_card_expiration_month_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.credit_card_number_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.credit_card_number_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_credit_card_number().empty()) { + _this->_impl_.credit_card_number_.Set(from._internal_credit_card_number(), _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.credit_card_cvv_, &from._impl_.credit_card_cvv_, + static_cast<::size_t>(reinterpret_cast(&_impl_.credit_card_expiration_month_) - + reinterpret_cast(&_impl_.credit_card_cvv_)) + sizeof(_impl_.credit_card_expiration_month_)); + + // @@protoc_insertion_point(copy_constructor:oteldemo.CreditCardInfo) +} +inline void CreditCardInfo::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.credit_card_number_){}, + decltype(_impl_.credit_card_cvv_){0}, + decltype(_impl_.credit_card_expiration_year_){0}, + decltype(_impl_.credit_card_expiration_month_){0}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.credit_card_number_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.credit_card_number_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +CreditCardInfo::~CreditCardInfo() { + // @@protoc_insertion_point(destructor:oteldemo.CreditCardInfo) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CreditCardInfo::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.credit_card_number_.Destroy(); +} +void CreditCardInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void CreditCardInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.CreditCardInfo) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.credit_card_number_.ClearToEmpty(); + ::memset(&_impl_.credit_card_cvv_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.credit_card_expiration_month_) - + reinterpret_cast(&_impl_.credit_card_cvv_)) + sizeof(_impl_.credit_card_expiration_month_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CreditCardInfo::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 50, 2> CreditCardInfo::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_CreditCardInfo_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // int32 credit_card_expiration_month = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_expiration_month_), 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_)}}, + // string credit_card_number = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_number_)}}, + // int32 credit_card_cvv = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_cvv_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_)}}, + // int32 credit_card_expiration_year = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreditCardInfo, _impl_.credit_card_expiration_year_), 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_year_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string credit_card_number = 1; + {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_number_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 credit_card_cvv = 2; + {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 credit_card_expiration_year = 3; + {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_year_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 credit_card_expiration_month = 4; + {PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\27\22\0\0\0\0\0\0" + "oteldemo.CreditCardInfo" + "credit_card_number" + }}, +}; + +::uint8_t* CreditCardInfo::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreditCardInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string credit_card_number = 1; + if (!this->_internal_credit_card_number().empty()) { + const std::string& _s = this->_internal_credit_card_number(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreditCardInfo.credit_card_number"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // int32 credit_card_cvv = 2; + if (this->_internal_credit_card_cvv() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this->_internal_credit_card_cvv(), target); + } + + // int32 credit_card_expiration_year = 3; + if (this->_internal_credit_card_expiration_year() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<3>( + stream, this->_internal_credit_card_expiration_year(), target); + } + + // int32 credit_card_expiration_month = 4; + if (this->_internal_credit_card_expiration_month() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<4>( + stream, this->_internal_credit_card_expiration_month(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.CreditCardInfo) + return target; +} + +::size_t CreditCardInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.CreditCardInfo) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string credit_card_number = 1; + if (!this->_internal_credit_card_number().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_credit_card_number()); + } + + // int32 credit_card_cvv = 2; + if (this->_internal_credit_card_cvv() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_credit_card_cvv()); + } + + // int32 credit_card_expiration_year = 3; + if (this->_internal_credit_card_expiration_year() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_credit_card_expiration_year()); + } + + // int32 credit_card_expiration_month = 4; + if (this->_internal_credit_card_expiration_month() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_credit_card_expiration_month()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CreditCardInfo::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + CreditCardInfo::MergeImpl +}; +const ::google::protobuf::Message::ClassData*CreditCardInfo::GetClassData() const { return &_class_data_; } + + +void CreditCardInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.CreditCardInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_credit_card_number().empty()) { + _this->_internal_set_credit_card_number(from._internal_credit_card_number()); + } + if (from._internal_credit_card_cvv() != 0) { + _this->_internal_set_credit_card_cvv(from._internal_credit_card_cvv()); + } + if (from._internal_credit_card_expiration_year() != 0) { + _this->_internal_set_credit_card_expiration_year(from._internal_credit_card_expiration_year()); + } + if (from._internal_credit_card_expiration_month() != 0) { + _this->_internal_set_credit_card_expiration_month(from._internal_credit_card_expiration_month()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CreditCardInfo::CopyFrom(const CreditCardInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreditCardInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CreditCardInfo::IsInitialized() const { + return true; +} + +void CreditCardInfo::InternalSwap(CreditCardInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credit_card_number_, lhs_arena, + &other->_impl_.credit_card_number_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_expiration_month_) + + sizeof(CreditCardInfo::_impl_.credit_card_expiration_month_) + - PROTOBUF_FIELD_OFFSET(CreditCardInfo, _impl_.credit_card_cvv_)>( + reinterpret_cast(&_impl_.credit_card_cvv_), + reinterpret_cast(&other->_impl_.credit_card_cvv_)); +} + +::google::protobuf::Metadata CreditCardInfo::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[28]); +} +// =================================================================== + +class ChargeRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_._has_bits_); + static const ::oteldemo::Money& amount(const ChargeRequest* msg); + static void set_has_amount(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::oteldemo::CreditCardInfo& credit_card(const ChargeRequest* msg); + static void set_has_credit_card(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::oteldemo::Money& ChargeRequest::_Internal::amount(const ChargeRequest* msg) { + return *msg->_impl_.amount_; +} +const ::oteldemo::CreditCardInfo& ChargeRequest::_Internal::credit_card(const ChargeRequest* msg) { + return *msg->_impl_.credit_card_; +} +ChargeRequest::ChargeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ChargeRequest) +} +ChargeRequest::ChargeRequest(const ChargeRequest& from) : ::google::protobuf::Message() { + ChargeRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.amount_){nullptr}, + decltype(_impl_.credit_card_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.amount_ = new ::oteldemo::Money(*from._impl_.amount_); + } + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.credit_card_ = new ::oteldemo::CreditCardInfo(*from._impl_.credit_card_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ChargeRequest) +} +inline void ChargeRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.amount_){nullptr}, + decltype(_impl_.credit_card_){nullptr}, + }; +} +ChargeRequest::~ChargeRequest() { + // @@protoc_insertion_point(destructor:oteldemo.ChargeRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ChargeRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.amount_; + if (this != internal_default_instance()) delete _impl_.credit_card_; +} +void ChargeRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ChargeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ChargeRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.amount_ != nullptr); + _impl_.amount_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.credit_card_ != nullptr); + _impl_.credit_card_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ChargeRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ChargeRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ChargeRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.CreditCardInfo credit_card = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_)}}, + // .oteldemo.Money amount = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Money amount = 1; + {PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .oteldemo.CreditCardInfo credit_card = 2; + {PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + {::_pbi::TcParser::GetTable<::oteldemo::CreditCardInfo>()}, + }}, {{ + }}, +}; + +::uint8_t* ChargeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ChargeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Money amount = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::amount(this), + _Internal::amount(this).GetCachedSize(), target, stream); + } + + // .oteldemo.CreditCardInfo credit_card = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::credit_card(this), + _Internal::credit_card(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ChargeRequest) + return target; +} + +::size_t ChargeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ChargeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .oteldemo.Money amount = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.amount_); + } + + // .oteldemo.CreditCardInfo credit_card = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.credit_card_); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ChargeRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ChargeRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ChargeRequest::GetClassData() const { return &_class_data_; } + + +void ChargeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ChargeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_amount()->::oteldemo::Money::MergeFrom( + from._internal_amount()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_credit_card()->::oteldemo::CreditCardInfo::MergeFrom( + from._internal_credit_card()); + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ChargeRequest::CopyFrom(const ChargeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ChargeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ChargeRequest::IsInitialized() const { + return true; +} + +void ChargeRequest::InternalSwap(ChargeRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.credit_card_) + + sizeof(ChargeRequest::_impl_.credit_card_) + - PROTOBUF_FIELD_OFFSET(ChargeRequest, _impl_.amount_)>( + reinterpret_cast(&_impl_.amount_), + reinterpret_cast(&other->_impl_.amount_)); +} + +::google::protobuf::Metadata ChargeRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[29]); +} +// =================================================================== + +class ChargeResponse::_Internal { + public: +}; + +ChargeResponse::ChargeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ChargeResponse) +} +ChargeResponse::ChargeResponse(const ChargeResponse& from) : ::google::protobuf::Message() { + ChargeResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.transaction_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.transaction_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.transaction_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_transaction_id().empty()) { + _this->_impl_.transaction_id_.Set(from._internal_transaction_id(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.ChargeResponse) +} +inline void ChargeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.transaction_id_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.transaction_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.transaction_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ChargeResponse::~ChargeResponse() { + // @@protoc_insertion_point(destructor:oteldemo.ChargeResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ChargeResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.transaction_id_.Destroy(); +} +void ChargeResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ChargeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ChargeResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.transaction_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ChargeResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 46, 2> ChargeResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ChargeResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string transaction_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChargeResponse, _impl_.transaction_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string transaction_id = 1; + {PROTOBUF_FIELD_OFFSET(ChargeResponse, _impl_.transaction_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\16\0\0\0\0\0\0" + "oteldemo.ChargeResponse" + "transaction_id" + }}, +}; + +::uint8_t* ChargeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ChargeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string transaction_id = 1; + if (!this->_internal_transaction_id().empty()) { + const std::string& _s = this->_internal_transaction_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.ChargeResponse.transaction_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ChargeResponse) + return target; +} + +::size_t ChargeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ChargeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string transaction_id = 1; + if (!this->_internal_transaction_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_transaction_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ChargeResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ChargeResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ChargeResponse::GetClassData() const { return &_class_data_; } + + +void ChargeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ChargeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_transaction_id().empty()) { + _this->_internal_set_transaction_id(from._internal_transaction_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ChargeResponse::CopyFrom(const ChargeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ChargeResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ChargeResponse::IsInitialized() const { + return true; +} + +void ChargeResponse::InternalSwap(ChargeResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.transaction_id_, lhs_arena, + &other->_impl_.transaction_id_, rhs_arena); +} + +::google::protobuf::Metadata ChargeResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[30]); +} +// =================================================================== + +class OrderItem::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(OrderItem, _impl_._has_bits_); + static const ::oteldemo::CartItem& item(const OrderItem* msg); + static void set_has_item(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::oteldemo::Money& cost(const OrderItem* msg); + static void set_has_cost(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::oteldemo::CartItem& OrderItem::_Internal::item(const OrderItem* msg) { + return *msg->_impl_.item_; +} +const ::oteldemo::Money& OrderItem::_Internal::cost(const OrderItem* msg) { + return *msg->_impl_.cost_; +} +OrderItem::OrderItem(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.OrderItem) +} +OrderItem::OrderItem(const OrderItem& from) : ::google::protobuf::Message() { + OrderItem* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.item_){nullptr}, + decltype(_impl_.cost_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.item_ = new ::oteldemo::CartItem(*from._impl_.item_); + } + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.cost_ = new ::oteldemo::Money(*from._impl_.cost_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.OrderItem) +} +inline void OrderItem::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.item_){nullptr}, + decltype(_impl_.cost_){nullptr}, + }; +} +OrderItem::~OrderItem() { + // @@protoc_insertion_point(destructor:oteldemo.OrderItem) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void OrderItem::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.item_; + if (this != internal_default_instance()) delete _impl_.cost_; +} +void OrderItem::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void OrderItem::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.OrderItem) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.item_ != nullptr); + _impl_.item_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.cost_ != nullptr); + _impl_.cost_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* OrderItem::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OrderItem::_table_ = { + { + PROTOBUF_FIELD_OFFSET(OrderItem, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_OrderItem_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.Money cost = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_)}}, + // .oteldemo.CartItem item = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.CartItem item = 1; + {PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .oteldemo.Money cost = 2; + {PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::CartItem>()}, + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + }}, {{ + }}, +}; + +::uint8_t* OrderItem::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.OrderItem) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.CartItem item = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::item(this), + _Internal::item(this).GetCachedSize(), target, stream); + } + + // .oteldemo.Money cost = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::cost(this), + _Internal::cost(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.OrderItem) + return target; +} + +::size_t OrderItem::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.OrderItem) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .oteldemo.CartItem item = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.item_); + } + + // .oteldemo.Money cost = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.cost_); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData OrderItem::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + OrderItem::MergeImpl +}; +const ::google::protobuf::Message::ClassData*OrderItem::GetClassData() const { return &_class_data_; } + + +void OrderItem::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.OrderItem) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_item()->::oteldemo::CartItem::MergeFrom( + from._internal_item()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_cost()->::oteldemo::Money::MergeFrom( + from._internal_cost()); + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void OrderItem::CopyFrom(const OrderItem& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.OrderItem) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool OrderItem::IsInitialized() const { + return true; +} + +void OrderItem::InternalSwap(OrderItem* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.cost_) + + sizeof(OrderItem::_impl_.cost_) + - PROTOBUF_FIELD_OFFSET(OrderItem, _impl_.item_)>( + reinterpret_cast(&_impl_.item_), + reinterpret_cast(&other->_impl_.item_)); +} + +::google::protobuf::Metadata OrderItem::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[31]); +} +// =================================================================== + +class OrderResult::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(OrderResult, _impl_._has_bits_); + static const ::oteldemo::Money& shipping_cost(const OrderResult* msg); + static void set_has_shipping_cost(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::oteldemo::Address& shipping_address(const OrderResult* msg); + static void set_has_shipping_address(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::oteldemo::Money& OrderResult::_Internal::shipping_cost(const OrderResult* msg) { + return *msg->_impl_.shipping_cost_; +} +const ::oteldemo::Address& OrderResult::_Internal::shipping_address(const OrderResult* msg) { + return *msg->_impl_.shipping_address_; +} +OrderResult::OrderResult(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.OrderResult) +} +OrderResult::OrderResult(const OrderResult& from) : ::google::protobuf::Message() { + OrderResult* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){from._impl_.items_}, + decltype(_impl_.order_id_){}, + decltype(_impl_.shipping_tracking_id_){}, + decltype(_impl_.shipping_cost_){nullptr}, + decltype(_impl_.shipping_address_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.order_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.order_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_order_id().empty()) { + _this->_impl_.order_id_.Set(from._internal_order_id(), _this->GetArenaForAllocation()); + } + _impl_.shipping_tracking_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.shipping_tracking_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_shipping_tracking_id().empty()) { + _this->_impl_.shipping_tracking_id_.Set(from._internal_shipping_tracking_id(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.shipping_cost_ = new ::oteldemo::Money(*from._impl_.shipping_cost_); + } + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.shipping_address_ = new ::oteldemo::Address(*from._impl_.shipping_address_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.OrderResult) +} +inline void OrderResult::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.items_){arena}, + decltype(_impl_.order_id_){}, + decltype(_impl_.shipping_tracking_id_){}, + decltype(_impl_.shipping_cost_){nullptr}, + decltype(_impl_.shipping_address_){nullptr}, + }; + _impl_.order_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.order_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.shipping_tracking_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.shipping_tracking_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +OrderResult::~OrderResult() { + // @@protoc_insertion_point(destructor:oteldemo.OrderResult) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void OrderResult::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); + _impl_.order_id_.Destroy(); + _impl_.shipping_tracking_id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.shipping_cost_; + if (this != internal_default_instance()) delete _impl_.shipping_address_; +} +void OrderResult::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void OrderResult::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.OrderResult) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_items()->Clear(); + _impl_.order_id_.ClearToEmpty(); + _impl_.shipping_tracking_id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.shipping_cost_ != nullptr); + _impl_.shipping_cost_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.shipping_address_ != nullptr); + _impl_.shipping_address_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* OrderResult::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 3, 57, 2> OrderResult::_table_ = { + { + PROTOBUF_FIELD_OFFSET(OrderResult, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_OrderResult_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string order_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.order_id_)}}, + // string shipping_tracking_id = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_tracking_id_)}}, + // .oteldemo.Money shipping_cost = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_)}}, + // .oteldemo.Address shipping_address = 4; + {::_pbi::TcParser::FastMtS1, + {34, 1, 1, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_)}}, + // repeated .oteldemo.OrderItem items = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 2, PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.items_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string order_id = 1; + {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.order_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string shipping_tracking_id = 2; + {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_tracking_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.Money shipping_cost = 3; + {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .oteldemo.Address shipping_address = 4; + {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .oteldemo.OrderItem items = 5; + {PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.items_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Money>()}, + {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, + {::_pbi::TcParser::GetTable<::oteldemo::OrderItem>()}, + }}, {{ + "\24\10\24\0\0\0\0\0" + "oteldemo.OrderResult" + "order_id" + "shipping_tracking_id" + }}, +}; + +::uint8_t* OrderResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.OrderResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string order_id = 1; + if (!this->_internal_order_id().empty()) { + const std::string& _s = this->_internal_order_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.OrderResult.order_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string shipping_tracking_id = 2; + if (!this->_internal_shipping_tracking_id().empty()) { + const std::string& _s = this->_internal_shipping_tracking_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.OrderResult.shipping_tracking_id"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Money shipping_cost = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::shipping_cost(this), + _Internal::shipping_cost(this).GetCachedSize(), target, stream); + } + + // .oteldemo.Address shipping_address = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::shipping_address(this), + _Internal::shipping_address(this).GetCachedSize(), target, stream); + } + + // repeated .oteldemo.OrderItem items = 5; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.OrderResult) + return target; +} + +::size_t OrderResult::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.OrderResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.OrderItem items = 5; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_internal_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // string order_id = 1; + if (!this->_internal_order_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_order_id()); + } + + // string shipping_tracking_id = 2; + if (!this->_internal_shipping_tracking_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_shipping_tracking_id()); + } + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .oteldemo.Money shipping_cost = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.shipping_cost_); + } + + // .oteldemo.Address shipping_address = 4; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.shipping_address_); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData OrderResult::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + OrderResult::MergeImpl +}; +const ::google::protobuf::Message::ClassData*OrderResult::GetClassData() const { return &_class_data_; } + + +void OrderResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.OrderResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_items()->MergeFrom(from._internal_items()); + if (!from._internal_order_id().empty()) { + _this->_internal_set_order_id(from._internal_order_id()); + } + if (!from._internal_shipping_tracking_id().empty()) { + _this->_internal_set_shipping_tracking_id(from._internal_shipping_tracking_id()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_shipping_cost()->::oteldemo::Money::MergeFrom( + from._internal_shipping_cost()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_shipping_address()->::oteldemo::Address::MergeFrom( + from._internal_shipping_address()); + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void OrderResult::CopyFrom(const OrderResult& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.OrderResult) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool OrderResult::IsInitialized() const { + return true; +} + +void OrderResult::InternalSwap(OrderResult* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.items_.InternalSwap(&other->_impl_.items_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.order_id_, lhs_arena, + &other->_impl_.order_id_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shipping_tracking_id_, lhs_arena, + &other->_impl_.shipping_tracking_id_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_address_) + + sizeof(OrderResult::_impl_.shipping_address_) + - PROTOBUF_FIELD_OFFSET(OrderResult, _impl_.shipping_cost_)>( + reinterpret_cast(&_impl_.shipping_cost_), + reinterpret_cast(&other->_impl_.shipping_cost_)); +} + +::google::protobuf::Metadata OrderResult::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[32]); +} +// =================================================================== + +class SendOrderConfirmationRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_._has_bits_); + static const ::oteldemo::OrderResult& order(const SendOrderConfirmationRequest* msg); + static void set_has_order(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::OrderResult& SendOrderConfirmationRequest::_Internal::order(const SendOrderConfirmationRequest* msg) { + return *msg->_impl_.order_; +} +SendOrderConfirmationRequest::SendOrderConfirmationRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.SendOrderConfirmationRequest) +} +SendOrderConfirmationRequest::SendOrderConfirmationRequest(const SendOrderConfirmationRequest& from) : ::google::protobuf::Message() { + SendOrderConfirmationRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.email_){}, + decltype(_impl_.order_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + _this->_impl_.email_.Set(from._internal_email(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.order_ = new ::oteldemo::OrderResult(*from._impl_.order_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.SendOrderConfirmationRequest) +} +inline void SendOrderConfirmationRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.email_){}, + decltype(_impl_.order_){nullptr}, + }; + _impl_.email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +SendOrderConfirmationRequest::~SendOrderConfirmationRequest() { + // @@protoc_insertion_point(destructor:oteldemo.SendOrderConfirmationRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void SendOrderConfirmationRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.email_.Destroy(); + if (this != internal_default_instance()) delete _impl_.order_; +} +void SendOrderConfirmationRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void SendOrderConfirmationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.SendOrderConfirmationRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.email_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.order_ != nullptr); + _impl_.order_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SendOrderConfirmationRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 51, 2> SendOrderConfirmationRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SendOrderConfirmationRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.OrderResult order = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.order_)}}, + // string email = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.email_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string email = 1; + {PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.email_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.OrderResult order = 2; + {PROTOBUF_FIELD_OFFSET(SendOrderConfirmationRequest, _impl_.order_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::OrderResult>()}, + }}, {{ + "\45\5\0\0\0\0\0\0" + "oteldemo.SendOrderConfirmationRequest" + "email" + }}, +}; + +::uint8_t* SendOrderConfirmationRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.SendOrderConfirmationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string email = 1; + if (!this->_internal_email().empty()) { + const std::string& _s = this->_internal_email(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.SendOrderConfirmationRequest.email"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.OrderResult order = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::order(this), + _Internal::order(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.SendOrderConfirmationRequest) + return target; +} + +::size_t SendOrderConfirmationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.SendOrderConfirmationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string email = 1; + if (!this->_internal_email().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_email()); + } + + // .oteldemo.OrderResult order = 2; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.order_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData SendOrderConfirmationRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + SendOrderConfirmationRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*SendOrderConfirmationRequest::GetClassData() const { return &_class_data_; } + + +void SendOrderConfirmationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.SendOrderConfirmationRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_email().empty()) { + _this->_internal_set_email(from._internal_email()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_order()->::oteldemo::OrderResult::MergeFrom( + from._internal_order()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SendOrderConfirmationRequest::CopyFrom(const SendOrderConfirmationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.SendOrderConfirmationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SendOrderConfirmationRequest::IsInitialized() const { + return true; +} + +void SendOrderConfirmationRequest::InternalSwap(SendOrderConfirmationRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, lhs_arena, + &other->_impl_.email_, rhs_arena); + swap(_impl_.order_, other->_impl_.order_); +} + +::google::protobuf::Metadata SendOrderConfirmationRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[33]); +} +// =================================================================== + +class PlaceOrderRequest::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_._has_bits_); + static const ::oteldemo::Address& address(const PlaceOrderRequest* msg); + static void set_has_address(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::oteldemo::CreditCardInfo& credit_card(const PlaceOrderRequest* msg); + static void set_has_credit_card(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::oteldemo::Address& PlaceOrderRequest::_Internal::address(const PlaceOrderRequest* msg) { + return *msg->_impl_.address_; +} +const ::oteldemo::CreditCardInfo& PlaceOrderRequest::_Internal::credit_card(const PlaceOrderRequest* msg) { + return *msg->_impl_.credit_card_; +} +PlaceOrderRequest::PlaceOrderRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.PlaceOrderRequest) +} +PlaceOrderRequest::PlaceOrderRequest(const PlaceOrderRequest& from) : ::google::protobuf::Message() { + PlaceOrderRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.user_id_){}, + decltype(_impl_.user_currency_){}, + decltype(_impl_.email_){}, + decltype(_impl_.address_){nullptr}, + decltype(_impl_.credit_card_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_id().empty()) { + _this->_impl_.user_id_.Set(from._internal_user_id(), _this->GetArenaForAllocation()); + } + _impl_.user_currency_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_currency_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_user_currency().empty()) { + _this->_impl_.user_currency_.Set(from._internal_user_currency(), _this->GetArenaForAllocation()); + } + _impl_.email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_email().empty()) { + _this->_impl_.email_.Set(from._internal_email(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.address_ = new ::oteldemo::Address(*from._impl_.address_); + } + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.credit_card_ = new ::oteldemo::CreditCardInfo(*from._impl_.credit_card_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.PlaceOrderRequest) +} +inline void PlaceOrderRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.user_id_){}, + decltype(_impl_.user_currency_){}, + decltype(_impl_.email_){}, + decltype(_impl_.address_){nullptr}, + decltype(_impl_.credit_card_){nullptr}, + }; + _impl_.user_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_currency_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.user_currency_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.email_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.email_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +PlaceOrderRequest::~PlaceOrderRequest() { + // @@protoc_insertion_point(destructor:oteldemo.PlaceOrderRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void PlaceOrderRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.user_id_.Destroy(); + _impl_.user_currency_.Destroy(); + _impl_.email_.Destroy(); + if (this != internal_default_instance()) delete _impl_.address_; + if (this != internal_default_instance()) delete _impl_.credit_card_; +} +void PlaceOrderRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void PlaceOrderRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.PlaceOrderRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.user_id_.ClearToEmpty(); + _impl_.user_currency_.ClearToEmpty(); + _impl_.email_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.address_ != nullptr); + _impl_.address_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.credit_card_ != nullptr); + _impl_.credit_card_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* PlaceOrderRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 2, 60, 2> PlaceOrderRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967240, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_PlaceOrderRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string user_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_id_)}}, + // string user_currency = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_currency_)}}, + // .oteldemo.Address address = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string email = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.email_)}}, + // .oteldemo.CreditCardInfo credit_card = 6; + {::_pbi::TcParser::FastMtS1, + {50, 1, 1, PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string user_id = 1; + {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string user_currency = 2; + {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.user_currency_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.Address address = 3; + {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string email = 5; + {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.email_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .oteldemo.CreditCardInfo credit_card = 6; + {PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Address>()}, + {::_pbi::TcParser::GetTable<::oteldemo::CreditCardInfo>()}, + }}, {{ + "\32\7\15\0\5\0\0\0" + "oteldemo.PlaceOrderRequest" + "user_id" + "user_currency" + "email" + }}, +}; + +::uint8_t* PlaceOrderRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.PlaceOrderRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.user_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string user_currency = 2; + if (!this->_internal_user_currency().empty()) { + const std::string& _s = this->_internal_user_currency(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.user_currency"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Address address = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::address(this), + _Internal::address(this).GetCachedSize(), target, stream); + } + + // string email = 5; + if (!this->_internal_email().empty()) { + const std::string& _s = this->_internal_email(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.PlaceOrderRequest.email"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // .oteldemo.CreditCardInfo credit_card = 6; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::credit_card(this), + _Internal::credit_card(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.PlaceOrderRequest) + return target; +} + +::size_t PlaceOrderRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.PlaceOrderRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string user_id = 1; + if (!this->_internal_user_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_id()); + } + + // string user_currency = 2; + if (!this->_internal_user_currency().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_user_currency()); + } + + // string email = 5; + if (!this->_internal_email().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_email()); + } + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .oteldemo.Address address = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.address_); + } + + // .oteldemo.CreditCardInfo credit_card = 6; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.credit_card_); + } + + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData PlaceOrderRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + PlaceOrderRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*PlaceOrderRequest::GetClassData() const { return &_class_data_; } + + +void PlaceOrderRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.PlaceOrderRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_user_id().empty()) { + _this->_internal_set_user_id(from._internal_user_id()); + } + if (!from._internal_user_currency().empty()) { + _this->_internal_set_user_currency(from._internal_user_currency()); + } + if (!from._internal_email().empty()) { + _this->_internal_set_email(from._internal_email()); + } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_address()->::oteldemo::Address::MergeFrom( + from._internal_address()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_credit_card()->::oteldemo::CreditCardInfo::MergeFrom( + from._internal_credit_card()); + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void PlaceOrderRequest::CopyFrom(const PlaceOrderRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.PlaceOrderRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool PlaceOrderRequest::IsInitialized() const { + return true; +} + +void PlaceOrderRequest::InternalSwap(PlaceOrderRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_id_, lhs_arena, + &other->_impl_.user_id_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_currency_, lhs_arena, + &other->_impl_.user_currency_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, lhs_arena, + &other->_impl_.email_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.credit_card_) + + sizeof(PlaceOrderRequest::_impl_.credit_card_) + - PROTOBUF_FIELD_OFFSET(PlaceOrderRequest, _impl_.address_)>( + reinterpret_cast(&_impl_.address_), + reinterpret_cast(&other->_impl_.address_)); +} + +::google::protobuf::Metadata PlaceOrderRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[34]); +} +// =================================================================== + +class PlaceOrderResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_._has_bits_); + static const ::oteldemo::OrderResult& order(const PlaceOrderResponse* msg); + static void set_has_order(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::OrderResult& PlaceOrderResponse::_Internal::order(const PlaceOrderResponse* msg) { + return *msg->_impl_.order_; +} +PlaceOrderResponse::PlaceOrderResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.PlaceOrderResponse) +} +PlaceOrderResponse::PlaceOrderResponse(const PlaceOrderResponse& from) : ::google::protobuf::Message() { + PlaceOrderResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.order_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.order_ = new ::oteldemo::OrderResult(*from._impl_.order_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.PlaceOrderResponse) +} +inline void PlaceOrderResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.order_){nullptr}, + }; +} +PlaceOrderResponse::~PlaceOrderResponse() { + // @@protoc_insertion_point(destructor:oteldemo.PlaceOrderResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void PlaceOrderResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.order_; +} +void PlaceOrderResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void PlaceOrderResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.PlaceOrderResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.order_ != nullptr); + _impl_.order_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* PlaceOrderResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PlaceOrderResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_PlaceOrderResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.OrderResult order = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_.order_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.OrderResult order = 1; + {PROTOBUF_FIELD_OFFSET(PlaceOrderResponse, _impl_.order_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::OrderResult>()}, + }}, {{ + }}, +}; + +::uint8_t* PlaceOrderResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.PlaceOrderResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.OrderResult order = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::order(this), + _Internal::order(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.PlaceOrderResponse) + return target; +} + +::size_t PlaceOrderResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.PlaceOrderResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .oteldemo.OrderResult order = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.order_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData PlaceOrderResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + PlaceOrderResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*PlaceOrderResponse::GetClassData() const { return &_class_data_; } + + +void PlaceOrderResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.PlaceOrderResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_order()->::oteldemo::OrderResult::MergeFrom( + from._internal_order()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void PlaceOrderResponse::CopyFrom(const PlaceOrderResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.PlaceOrderResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool PlaceOrderResponse::IsInitialized() const { + return true; +} + +void PlaceOrderResponse::InternalSwap(PlaceOrderResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.order_, other->_impl_.order_); +} + +::google::protobuf::Metadata PlaceOrderResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[35]); +} +// =================================================================== + +class AdRequest::_Internal { + public: +}; + +AdRequest::AdRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.AdRequest) +} +AdRequest::AdRequest(const AdRequest& from) : ::google::protobuf::Message() { + AdRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.context_keys_){from._impl_.context_keys_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.AdRequest) +} +inline void AdRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.context_keys_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +AdRequest::~AdRequest() { + // @@protoc_insertion_point(destructor:oteldemo.AdRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void AdRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_context_keys()->~RepeatedPtrField(); +} +void AdRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void AdRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.AdRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_context_keys()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* AdRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 39, 2> AdRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_AdRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated string context_keys = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AdRequest, _impl_.context_keys_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string context_keys = 1; + {PROTOBUF_FIELD_OFFSET(AdRequest, _impl_.context_keys_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\22\14\0\0\0\0\0\0" + "oteldemo.AdRequest" + "context_keys" + }}, +}; + +::uint8_t* AdRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AdRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated string context_keys = 1; + for (int i = 0, n = this->_internal_context_keys_size(); i < n; ++i) { + const auto& s = this->_internal_context_keys().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.AdRequest.context_keys"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AdRequest) + return target; +} + +::size_t AdRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.AdRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string context_keys = 1; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_context_keys().size()); + for (int i = 0, n = _internal_context_keys().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + _internal_context_keys().Get(i)); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData AdRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + AdRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*AdRequest::GetClassData() const { return &_class_data_; } + + +void AdRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.AdRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_context_keys()->MergeFrom(from._internal_context_keys()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void AdRequest::CopyFrom(const AdRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AdRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool AdRequest::IsInitialized() const { + return true; +} + +void AdRequest::InternalSwap(AdRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.context_keys_.InternalSwap(&other->_impl_.context_keys_); +} + +::google::protobuf::Metadata AdRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[36]); +} +// =================================================================== + +class AdResponse::_Internal { + public: +}; + +AdResponse::AdResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.AdResponse) +} +AdResponse::AdResponse(const AdResponse& from) : ::google::protobuf::Message() { + AdResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.ads_){from._impl_.ads_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.AdResponse) +} +inline void AdResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.ads_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +AdResponse::~AdResponse() { + // @@protoc_insertion_point(destructor:oteldemo.AdResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void AdResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.ads_.~RepeatedPtrField(); +} +void AdResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void AdResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.AdResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_ads()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* AdResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AdResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_AdResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.Ad ads = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AdResponse, _impl_.ads_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .oteldemo.Ad ads = 1; + {PROTOBUF_FIELD_OFFSET(AdResponse, _impl_.ads_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Ad>()}, + }}, {{ + }}, +}; + +::uint8_t* AdResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.AdResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .oteldemo.Ad ads = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_ads_size()); i < n; i++) { + const auto& repfield = this->_internal_ads().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.AdResponse) + return target; +} + +::size_t AdResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.AdResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.Ad ads = 1; + total_size += 1UL * this->_internal_ads_size(); + for (const auto& msg : this->_internal_ads()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData AdResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + AdResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*AdResponse::GetClassData() const { return &_class_data_; } + + +void AdResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.AdResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_ads()->MergeFrom(from._internal_ads()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void AdResponse::CopyFrom(const AdResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.AdResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool AdResponse::IsInitialized() const { + return true; +} + +void AdResponse::InternalSwap(AdResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.ads_.InternalSwap(&other->_impl_.ads_); +} + +::google::protobuf::Metadata AdResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[37]); +} +// =================================================================== + +class Ad::_Internal { + public: +}; + +Ad::Ad(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Ad) +} +Ad::Ad(const Ad& from) : ::google::protobuf::Message() { + Ad* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.redirect_url_){}, + decltype(_impl_.text_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.redirect_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.redirect_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_redirect_url().empty()) { + _this->_impl_.redirect_url_.Set(from._internal_redirect_url(), _this->GetArenaForAllocation()); + } + _impl_.text_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_text().empty()) { + _this->_impl_.text_.Set(from._internal_text(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.Ad) +} +inline void Ad::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.redirect_url_){}, + decltype(_impl_.text_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.redirect_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.redirect_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.text_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Ad::~Ad() { + // @@protoc_insertion_point(destructor:oteldemo.Ad) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Ad::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.redirect_url_.Destroy(); + _impl_.text_.Destroy(); +} +void Ad::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Ad::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Ad) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.redirect_url_.ClearToEmpty(); + _impl_.text_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Ad::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 36, 2> Ad::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Ad_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string text = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Ad, _impl_.text_)}}, + // string redirect_url = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Ad, _impl_.redirect_url_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string redirect_url = 1; + {PROTOBUF_FIELD_OFFSET(Ad, _impl_.redirect_url_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string text = 2; + {PROTOBUF_FIELD_OFFSET(Ad, _impl_.text_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\13\14\4\0\0\0\0\0" + "oteldemo.Ad" + "redirect_url" + "text" + }}, +}; + +::uint8_t* Ad::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Ad) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string redirect_url = 1; + if (!this->_internal_redirect_url().empty()) { + const std::string& _s = this->_internal_redirect_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Ad.redirect_url"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string text = 2; + if (!this->_internal_text().empty()) { + const std::string& _s = this->_internal_text(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Ad.text"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Ad) + return target; +} + +::size_t Ad::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Ad) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string redirect_url = 1; + if (!this->_internal_redirect_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_redirect_url()); + } + + // string text = 2; + if (!this->_internal_text().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_text()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Ad::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Ad::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Ad::GetClassData() const { return &_class_data_; } + + +void Ad::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Ad) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_redirect_url().empty()) { + _this->_internal_set_redirect_url(from._internal_redirect_url()); + } + if (!from._internal_text().empty()) { + _this->_internal_set_text(from._internal_text()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Ad::CopyFrom(const Ad& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Ad) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Ad::IsInitialized() const { + return true; +} + +void Ad::InternalSwap(Ad* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.redirect_url_, lhs_arena, + &other->_impl_.redirect_url_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_, lhs_arena, + &other->_impl_.text_, rhs_arena); +} + +::google::protobuf::Metadata Ad::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[38]); +} +// =================================================================== + +class Flag::_Internal { + public: +}; + +Flag::Flag(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.Flag) +} +Flag::Flag(const Flag& from) : ::google::protobuf::Message() { + Flag* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.enabled_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); + } + _this->_impl_.enabled_ = from._impl_.enabled_; + + // @@protoc_insertion_point(copy_constructor:oteldemo.Flag) +} +inline void Flag::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.enabled_){false}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +Flag::~Flag() { + // @@protoc_insertion_point(destructor:oteldemo.Flag) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void Flag::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.description_.Destroy(); +} +void Flag::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void Flag::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.Flag) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _impl_.enabled_ = false; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Flag::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 37, 2> Flag::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Flag_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.name_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.description_)}}, + // bool enabled = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(Flag, _impl_.enabled_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(Flag, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Flag, _impl_.description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool enabled = 3; + {PROTOBUF_FIELD_OFFSET(Flag, _impl_.enabled_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\15\4\13\0\0\0\0\0" + "oteldemo.Flag" + "name" + "description" + }}, +}; + +::uint8_t* Flag::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.Flag) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Flag.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + const std::string& _s = this->_internal_description(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.Flag.description"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // bool enabled = 3; + if (this->_internal_enabled() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this->_internal_enabled(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.Flag) + return target; +} + +::size_t Flag::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.Flag) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + // bool enabled = 3; + if (this->_internal_enabled() != 0) { + total_size += 2; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData Flag::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + Flag::MergeImpl +}; +const ::google::protobuf::Message::ClassData*Flag::GetClassData() const { return &_class_data_; } + + +void Flag::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.Flag) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + if (from._internal_enabled() != 0) { + _this->_internal_set_enabled(from._internal_enabled()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void Flag::CopyFrom(const Flag& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.Flag) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool Flag::IsInitialized() const { + return true; +} + +void Flag::InternalSwap(Flag* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena); + swap(_impl_.enabled_, other->_impl_.enabled_); +} + +::google::protobuf::Metadata Flag::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[39]); +} +// =================================================================== + +class GetFlagRequest::_Internal { + public: +}; + +GetFlagRequest::GetFlagRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetFlagRequest) +} +GetFlagRequest::GetFlagRequest(const GetFlagRequest& from) : ::google::protobuf::Message() { + GetFlagRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetFlagRequest) +} +inline void GetFlagRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +GetFlagRequest::~GetFlagRequest() { + // @@protoc_insertion_point(destructor:oteldemo.GetFlagRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetFlagRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} +void GetFlagRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetFlagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetFlagRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetFlagRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 36, 2> GetFlagRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GetFlagRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetFlagRequest, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GetFlagRequest, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\4\0\0\0\0\0\0" + "oteldemo.GetFlagRequest" + "name" + }}, +}; + +::uint8_t* GetFlagRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetFlagRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.GetFlagRequest.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetFlagRequest) + return target; +} + +::size_t GetFlagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetFlagRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetFlagRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetFlagRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetFlagRequest::GetClassData() const { return &_class_data_; } + + +void GetFlagRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetFlagRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFlagRequest::CopyFrom(const GetFlagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetFlagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetFlagRequest::IsInitialized() const { + return true; +} + +void GetFlagRequest::InternalSwap(GetFlagRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); +} + +::google::protobuf::Metadata GetFlagRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[40]); +} +// =================================================================== + +class GetFlagResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_._has_bits_); + static const ::oteldemo::Flag& flag(const GetFlagResponse* msg); + static void set_has_flag(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Flag& GetFlagResponse::_Internal::flag(const GetFlagResponse* msg) { + return *msg->_impl_.flag_; +} +GetFlagResponse::GetFlagResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.GetFlagResponse) +} +GetFlagResponse::GetFlagResponse(const GetFlagResponse& from) : ::google::protobuf::Message() { + GetFlagResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.flag_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.flag_ = new ::oteldemo::Flag(*from._impl_.flag_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.GetFlagResponse) +} +inline void GetFlagResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.flag_){nullptr}, + }; +} +GetFlagResponse::~GetFlagResponse() { + // @@protoc_insertion_point(destructor:oteldemo.GetFlagResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void GetFlagResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.flag_; +} +void GetFlagResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void GetFlagResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.GetFlagResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flag_ != nullptr); + _impl_.flag_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetFlagResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetFlagResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GetFlagResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.Flag flag = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_.flag_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Flag flag = 1; + {PROTOBUF_FIELD_OFFSET(GetFlagResponse, _impl_.flag_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, + }}, {{ + }}, +}; + +::uint8_t* GetFlagResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.GetFlagResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Flag flag = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::flag(this), + _Internal::flag(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.GetFlagResponse) + return target; +} + +::size_t GetFlagResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.GetFlagResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .oteldemo.Flag flag = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.flag_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetFlagResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + GetFlagResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*GetFlagResponse::GetClassData() const { return &_class_data_; } + + +void GetFlagResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.GetFlagResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_flag()->::oteldemo::Flag::MergeFrom( + from._internal_flag()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void GetFlagResponse::CopyFrom(const GetFlagResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.GetFlagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool GetFlagResponse::IsInitialized() const { + return true; +} + +void GetFlagResponse::InternalSwap(GetFlagResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flag_, other->_impl_.flag_); +} + +::google::protobuf::Metadata GetFlagResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[41]); +} +// =================================================================== + +class CreateFlagRequest::_Internal { + public: +}; + +CreateFlagRequest::CreateFlagRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.CreateFlagRequest) +} +CreateFlagRequest::CreateFlagRequest(const CreateFlagRequest& from) : ::google::protobuf::Message() { + CreateFlagRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.enabled_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_description().empty()) { + _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); + } + _this->_impl_.enabled_ = from._impl_.enabled_; + + // @@protoc_insertion_point(copy_constructor:oteldemo.CreateFlagRequest) +} +inline void CreateFlagRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.description_){}, + decltype(_impl_.enabled_){false}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +CreateFlagRequest::~CreateFlagRequest() { + // @@protoc_insertion_point(destructor:oteldemo.CreateFlagRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CreateFlagRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.description_.Destroy(); +} +void CreateFlagRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void CreateFlagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.CreateFlagRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.description_.ClearToEmpty(); + _impl_.enabled_ = false; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CreateFlagRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 50, 2> CreateFlagRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_CreateFlagRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.name_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.description_)}}, + // bool enabled = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.enabled_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool enabled = 3; + {PROTOBUF_FIELD_OFFSET(CreateFlagRequest, _impl_.enabled_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\32\4\13\0\0\0\0\0" + "oteldemo.CreateFlagRequest" + "name" + "description" + }}, +}; + +::uint8_t* CreateFlagRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreateFlagRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreateFlagRequest.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + const std::string& _s = this->_internal_description(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.CreateFlagRequest.description"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // bool enabled = 3; + if (this->_internal_enabled() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this->_internal_enabled(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.CreateFlagRequest) + return target; +} + +::size_t CreateFlagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.CreateFlagRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // string description = 2; + if (!this->_internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_description()); + } + + // bool enabled = 3; + if (this->_internal_enabled() != 0) { + total_size += 2; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CreateFlagRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + CreateFlagRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*CreateFlagRequest::GetClassData() const { return &_class_data_; } + + +void CreateFlagRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.CreateFlagRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_description().empty()) { + _this->_internal_set_description(from._internal_description()); + } + if (from._internal_enabled() != 0) { + _this->_internal_set_enabled(from._internal_enabled()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateFlagRequest::CopyFrom(const CreateFlagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreateFlagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CreateFlagRequest::IsInitialized() const { + return true; +} + +void CreateFlagRequest::InternalSwap(CreateFlagRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena); + swap(_impl_.enabled_, other->_impl_.enabled_); +} + +::google::protobuf::Metadata CreateFlagRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[42]); +} +// =================================================================== + +class CreateFlagResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_._has_bits_); + static const ::oteldemo::Flag& flag(const CreateFlagResponse* msg); + static void set_has_flag(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::oteldemo::Flag& CreateFlagResponse::_Internal::flag(const CreateFlagResponse* msg) { + return *msg->_impl_.flag_; +} +CreateFlagResponse::CreateFlagResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.CreateFlagResponse) +} +CreateFlagResponse::CreateFlagResponse(const CreateFlagResponse& from) : ::google::protobuf::Message() { + CreateFlagResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.flag_){nullptr}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.flag_ = new ::oteldemo::Flag(*from._impl_.flag_); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.CreateFlagResponse) +} +inline void CreateFlagResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.flag_){nullptr}, + }; +} +CreateFlagResponse::~CreateFlagResponse() { + // @@protoc_insertion_point(destructor:oteldemo.CreateFlagResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CreateFlagResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.flag_; +} +void CreateFlagResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void CreateFlagResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.CreateFlagResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flag_ != nullptr); + _impl_.flag_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CreateFlagResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CreateFlagResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CreateFlagResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .oteldemo.Flag flag = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_.flag_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .oteldemo.Flag flag = 1; + {PROTOBUF_FIELD_OFFSET(CreateFlagResponse, _impl_.flag_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, + }}, {{ + }}, +}; + +::uint8_t* CreateFlagResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.CreateFlagResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .oteldemo.Flag flag = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::flag(this), + _Internal::flag(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.CreateFlagResponse) + return target; +} + +::size_t CreateFlagResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.CreateFlagResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .oteldemo.Flag flag = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *_impl_.flag_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CreateFlagResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + CreateFlagResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*CreateFlagResponse::GetClassData() const { return &_class_data_; } + + +void CreateFlagResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.CreateFlagResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_flag()->::oteldemo::Flag::MergeFrom( + from._internal_flag()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateFlagResponse::CopyFrom(const CreateFlagResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.CreateFlagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CreateFlagResponse::IsInitialized() const { + return true; +} + +void CreateFlagResponse::InternalSwap(CreateFlagResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flag_, other->_impl_.flag_); +} + +::google::protobuf::Metadata CreateFlagResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[43]); +} +// =================================================================== + +class UpdateFlagRequest::_Internal { + public: +}; + +UpdateFlagRequest::UpdateFlagRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.UpdateFlagRequest) +} +UpdateFlagRequest::UpdateFlagRequest(const UpdateFlagRequest& from) : ::google::protobuf::Message() { + UpdateFlagRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.enabled_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + _this->_impl_.enabled_ = from._impl_.enabled_; + + // @@protoc_insertion_point(copy_constructor:oteldemo.UpdateFlagRequest) +} +inline void UpdateFlagRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + decltype(_impl_.enabled_){false}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +UpdateFlagRequest::~UpdateFlagRequest() { + // @@protoc_insertion_point(destructor:oteldemo.UpdateFlagRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void UpdateFlagRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} +void UpdateFlagRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void UpdateFlagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.UpdateFlagRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.enabled_ = false; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* UpdateFlagRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 39, 2> UpdateFlagRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_UpdateFlagRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // bool enabled = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.enabled_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool enabled = 2; + {PROTOBUF_FIELD_OFFSET(UpdateFlagRequest, _impl_.enabled_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\32\4\0\0\0\0\0\0" + "oteldemo.UpdateFlagRequest" + "name" + }}, +}; + +::uint8_t* UpdateFlagRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.UpdateFlagRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.UpdateFlagRequest.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // bool enabled = 2; + if (this->_internal_enabled() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_enabled(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.UpdateFlagRequest) + return target; +} + +::size_t UpdateFlagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.UpdateFlagRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // bool enabled = 2; + if (this->_internal_enabled() != 0) { + total_size += 2; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData UpdateFlagRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + UpdateFlagRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*UpdateFlagRequest::GetClassData() const { return &_class_data_; } + + +void UpdateFlagRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.UpdateFlagRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_enabled() != 0) { + _this->_internal_set_enabled(from._internal_enabled()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void UpdateFlagRequest::CopyFrom(const UpdateFlagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.UpdateFlagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool UpdateFlagRequest::IsInitialized() const { + return true; +} + +void UpdateFlagRequest::InternalSwap(UpdateFlagRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); + swap(_impl_.enabled_, other->_impl_.enabled_); +} + +::google::protobuf::Metadata UpdateFlagRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[44]); +} +// =================================================================== + +class UpdateFlagResponse::_Internal { + public: +}; + +UpdateFlagResponse::UpdateFlagResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:oteldemo.UpdateFlagResponse) +} +UpdateFlagResponse::UpdateFlagResponse(const UpdateFlagResponse& from) : ::google::protobuf::internal::ZeroFieldsBase() { + UpdateFlagResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.UpdateFlagResponse) +} + + + + +const ::google::protobuf::Message::ClassData UpdateFlagResponse::_class_data_ = { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, +}; +const ::google::protobuf::Message::ClassData*UpdateFlagResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::google::protobuf::Metadata UpdateFlagResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[45]); +} +// =================================================================== + +class ListFlagsRequest::_Internal { + public: +}; + +ListFlagsRequest::ListFlagsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:oteldemo.ListFlagsRequest) +} +ListFlagsRequest::ListFlagsRequest(const ListFlagsRequest& from) : ::google::protobuf::internal::ZeroFieldsBase() { + ListFlagsRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.ListFlagsRequest) +} + + + + +const ::google::protobuf::Message::ClassData ListFlagsRequest::_class_data_ = { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, +}; +const ::google::protobuf::Message::ClassData*ListFlagsRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::google::protobuf::Metadata ListFlagsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[46]); +} +// =================================================================== + +class ListFlagsResponse::_Internal { + public: +}; + +ListFlagsResponse::ListFlagsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.ListFlagsResponse) +} +ListFlagsResponse::ListFlagsResponse(const ListFlagsResponse& from) : ::google::protobuf::Message() { + ListFlagsResponse* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.flag_){from._impl_.flag_}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.ListFlagsResponse) +} +inline void ListFlagsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.flag_){arena}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +ListFlagsResponse::~ListFlagsResponse() { + // @@protoc_insertion_point(destructor:oteldemo.ListFlagsResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ListFlagsResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.flag_.~RepeatedPtrField(); +} +void ListFlagsResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ListFlagsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.ListFlagsResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_mutable_flag()->Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ListFlagsResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListFlagsResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ListFlagsResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .oteldemo.Flag flag = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListFlagsResponse, _impl_.flag_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .oteldemo.Flag flag = 1; + {PROTOBUF_FIELD_OFFSET(ListFlagsResponse, _impl_.flag_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::oteldemo::Flag>()}, + }}, {{ + }}, +}; + +::uint8_t* ListFlagsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.ListFlagsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .oteldemo.Flag flag = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_flag_size()); i < n; i++) { + const auto& repfield = this->_internal_flag().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.ListFlagsResponse) + return target; +} + +::size_t ListFlagsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.ListFlagsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .oteldemo.Flag flag = 1; + total_size += 1UL * this->_internal_flag_size(); + for (const auto& msg : this->_internal_flag()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ListFlagsResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ListFlagsResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ListFlagsResponse::GetClassData() const { return &_class_data_; } + + +void ListFlagsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.ListFlagsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_flag()->MergeFrom(from._internal_flag()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ListFlagsResponse::CopyFrom(const ListFlagsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.ListFlagsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ListFlagsResponse::IsInitialized() const { + return true; +} + +void ListFlagsResponse::InternalSwap(ListFlagsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.flag_.InternalSwap(&other->_impl_.flag_); +} + +::google::protobuf::Metadata ListFlagsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[47]); +} +// =================================================================== + +class DeleteFlagRequest::_Internal { + public: +}; + +DeleteFlagRequest::DeleteFlagRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:oteldemo.DeleteFlagRequest) +} +DeleteFlagRequest::DeleteFlagRequest(const DeleteFlagRequest& from) : ::google::protobuf::Message() { + DeleteFlagRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:oteldemo.DeleteFlagRequest) +} +inline void DeleteFlagRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.name_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +DeleteFlagRequest::~DeleteFlagRequest() { + // @@protoc_insertion_point(destructor:oteldemo.DeleteFlagRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void DeleteFlagRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); +} +void DeleteFlagRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void DeleteFlagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:oteldemo.DeleteFlagRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* DeleteFlagRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 39, 2> DeleteFlagRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_DeleteFlagRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(DeleteFlagRequest, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(DeleteFlagRequest, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\32\4\0\0\0\0\0\0" + "oteldemo.DeleteFlagRequest" + "name" + }}, +}; + +::uint8_t* DeleteFlagRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:oteldemo.DeleteFlagRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "oteldemo.DeleteFlagRequest.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:oteldemo.DeleteFlagRequest) + return target; +} + +::size_t DeleteFlagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:oteldemo.DeleteFlagRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData DeleteFlagRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + DeleteFlagRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*DeleteFlagRequest::GetClassData() const { return &_class_data_; } + + +void DeleteFlagRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:oteldemo.DeleteFlagRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteFlagRequest::CopyFrom(const DeleteFlagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:oteldemo.DeleteFlagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool DeleteFlagRequest::IsInitialized() const { + return true; +} + +void DeleteFlagRequest::InternalSwap(DeleteFlagRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena); +} + +::google::protobuf::Metadata DeleteFlagRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[48]); +} +// =================================================================== + +class DeleteFlagResponse::_Internal { + public: +}; + +DeleteFlagResponse::DeleteFlagResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:oteldemo.DeleteFlagResponse) +} +DeleteFlagResponse::DeleteFlagResponse(const DeleteFlagResponse& from) : ::google::protobuf::internal::ZeroFieldsBase() { + DeleteFlagResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:oteldemo.DeleteFlagResponse) +} + + + + +const ::google::protobuf::Message::ClassData DeleteFlagResponse::_class_data_ = { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl, + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl, +}; +const ::google::protobuf::Message::ClassData*DeleteFlagResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::google::protobuf::Metadata DeleteFlagResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_demo_2eproto_getter, &descriptor_table_demo_2eproto_once, + file_level_metadata_demo_2eproto[49]); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace oteldemo +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..46c5e62eb105df76bb42d7ac0fa1e248477d4ade --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo.pb.h @@ -0,0 +1,14413 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: demo.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_demo_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_demo_2eproto_2epb_2eh + +#include +#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION < 4024000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4024004 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_demo_2eproto + +namespace google { +namespace protobuf { +namespace internal { +class AnyMetadata; +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_demo_2eproto { + static const ::uint32_t offsets[]; +}; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_demo_2eproto; +namespace oteldemo { +class Ad; +struct AdDefaultTypeInternal; +extern AdDefaultTypeInternal _Ad_default_instance_; +class AdRequest; +struct AdRequestDefaultTypeInternal; +extern AdRequestDefaultTypeInternal _AdRequest_default_instance_; +class AdResponse; +struct AdResponseDefaultTypeInternal; +extern AdResponseDefaultTypeInternal _AdResponse_default_instance_; +class AddItemRequest; +struct AddItemRequestDefaultTypeInternal; +extern AddItemRequestDefaultTypeInternal _AddItemRequest_default_instance_; +class Address; +struct AddressDefaultTypeInternal; +extern AddressDefaultTypeInternal _Address_default_instance_; +class AskProductAIAssistantRequest; +struct AskProductAIAssistantRequestDefaultTypeInternal; +extern AskProductAIAssistantRequestDefaultTypeInternal _AskProductAIAssistantRequest_default_instance_; +class AskProductAIAssistantResponse; +struct AskProductAIAssistantResponseDefaultTypeInternal; +extern AskProductAIAssistantResponseDefaultTypeInternal _AskProductAIAssistantResponse_default_instance_; +class Cart; +struct CartDefaultTypeInternal; +extern CartDefaultTypeInternal _Cart_default_instance_; +class CartItem; +struct CartItemDefaultTypeInternal; +extern CartItemDefaultTypeInternal _CartItem_default_instance_; +class ChargeRequest; +struct ChargeRequestDefaultTypeInternal; +extern ChargeRequestDefaultTypeInternal _ChargeRequest_default_instance_; +class ChargeResponse; +struct ChargeResponseDefaultTypeInternal; +extern ChargeResponseDefaultTypeInternal _ChargeResponse_default_instance_; +class CreateFlagRequest; +struct CreateFlagRequestDefaultTypeInternal; +extern CreateFlagRequestDefaultTypeInternal _CreateFlagRequest_default_instance_; +class CreateFlagResponse; +struct CreateFlagResponseDefaultTypeInternal; +extern CreateFlagResponseDefaultTypeInternal _CreateFlagResponse_default_instance_; +class CreditCardInfo; +struct CreditCardInfoDefaultTypeInternal; +extern CreditCardInfoDefaultTypeInternal _CreditCardInfo_default_instance_; +class CurrencyConversionRequest; +struct CurrencyConversionRequestDefaultTypeInternal; +extern CurrencyConversionRequestDefaultTypeInternal _CurrencyConversionRequest_default_instance_; +class DeleteFlagRequest; +struct DeleteFlagRequestDefaultTypeInternal; +extern DeleteFlagRequestDefaultTypeInternal _DeleteFlagRequest_default_instance_; +class DeleteFlagResponse; +struct DeleteFlagResponseDefaultTypeInternal; +extern DeleteFlagResponseDefaultTypeInternal _DeleteFlagResponse_default_instance_; +class Empty; +struct EmptyDefaultTypeInternal; +extern EmptyDefaultTypeInternal _Empty_default_instance_; +class EmptyCartRequest; +struct EmptyCartRequestDefaultTypeInternal; +extern EmptyCartRequestDefaultTypeInternal _EmptyCartRequest_default_instance_; +class Flag; +struct FlagDefaultTypeInternal; +extern FlagDefaultTypeInternal _Flag_default_instance_; +class GetAverageProductReviewScoreRequest; +struct GetAverageProductReviewScoreRequestDefaultTypeInternal; +extern GetAverageProductReviewScoreRequestDefaultTypeInternal _GetAverageProductReviewScoreRequest_default_instance_; +class GetAverageProductReviewScoreResponse; +struct GetAverageProductReviewScoreResponseDefaultTypeInternal; +extern GetAverageProductReviewScoreResponseDefaultTypeInternal _GetAverageProductReviewScoreResponse_default_instance_; +class GetCartRequest; +struct GetCartRequestDefaultTypeInternal; +extern GetCartRequestDefaultTypeInternal _GetCartRequest_default_instance_; +class GetFlagRequest; +struct GetFlagRequestDefaultTypeInternal; +extern GetFlagRequestDefaultTypeInternal _GetFlagRequest_default_instance_; +class GetFlagResponse; +struct GetFlagResponseDefaultTypeInternal; +extern GetFlagResponseDefaultTypeInternal _GetFlagResponse_default_instance_; +class GetProductRequest; +struct GetProductRequestDefaultTypeInternal; +extern GetProductRequestDefaultTypeInternal _GetProductRequest_default_instance_; +class GetProductReviewsRequest; +struct GetProductReviewsRequestDefaultTypeInternal; +extern GetProductReviewsRequestDefaultTypeInternal _GetProductReviewsRequest_default_instance_; +class GetProductReviewsResponse; +struct GetProductReviewsResponseDefaultTypeInternal; +extern GetProductReviewsResponseDefaultTypeInternal _GetProductReviewsResponse_default_instance_; +class GetQuoteRequest; +struct GetQuoteRequestDefaultTypeInternal; +extern GetQuoteRequestDefaultTypeInternal _GetQuoteRequest_default_instance_; +class GetQuoteResponse; +struct GetQuoteResponseDefaultTypeInternal; +extern GetQuoteResponseDefaultTypeInternal _GetQuoteResponse_default_instance_; +class GetSupportedCurrenciesResponse; +struct GetSupportedCurrenciesResponseDefaultTypeInternal; +extern GetSupportedCurrenciesResponseDefaultTypeInternal _GetSupportedCurrenciesResponse_default_instance_; +class ListFlagsRequest; +struct ListFlagsRequestDefaultTypeInternal; +extern ListFlagsRequestDefaultTypeInternal _ListFlagsRequest_default_instance_; +class ListFlagsResponse; +struct ListFlagsResponseDefaultTypeInternal; +extern ListFlagsResponseDefaultTypeInternal _ListFlagsResponse_default_instance_; +class ListProductsResponse; +struct ListProductsResponseDefaultTypeInternal; +extern ListProductsResponseDefaultTypeInternal _ListProductsResponse_default_instance_; +class ListRecommendationsRequest; +struct ListRecommendationsRequestDefaultTypeInternal; +extern ListRecommendationsRequestDefaultTypeInternal _ListRecommendationsRequest_default_instance_; +class ListRecommendationsResponse; +struct ListRecommendationsResponseDefaultTypeInternal; +extern ListRecommendationsResponseDefaultTypeInternal _ListRecommendationsResponse_default_instance_; +class Money; +struct MoneyDefaultTypeInternal; +extern MoneyDefaultTypeInternal _Money_default_instance_; +class OrderItem; +struct OrderItemDefaultTypeInternal; +extern OrderItemDefaultTypeInternal _OrderItem_default_instance_; +class OrderResult; +struct OrderResultDefaultTypeInternal; +extern OrderResultDefaultTypeInternal _OrderResult_default_instance_; +class PlaceOrderRequest; +struct PlaceOrderRequestDefaultTypeInternal; +extern PlaceOrderRequestDefaultTypeInternal _PlaceOrderRequest_default_instance_; +class PlaceOrderResponse; +struct PlaceOrderResponseDefaultTypeInternal; +extern PlaceOrderResponseDefaultTypeInternal _PlaceOrderResponse_default_instance_; +class Product; +struct ProductDefaultTypeInternal; +extern ProductDefaultTypeInternal _Product_default_instance_; +class ProductReview; +struct ProductReviewDefaultTypeInternal; +extern ProductReviewDefaultTypeInternal _ProductReview_default_instance_; +class SearchProductsRequest; +struct SearchProductsRequestDefaultTypeInternal; +extern SearchProductsRequestDefaultTypeInternal _SearchProductsRequest_default_instance_; +class SearchProductsResponse; +struct SearchProductsResponseDefaultTypeInternal; +extern SearchProductsResponseDefaultTypeInternal _SearchProductsResponse_default_instance_; +class SendOrderConfirmationRequest; +struct SendOrderConfirmationRequestDefaultTypeInternal; +extern SendOrderConfirmationRequestDefaultTypeInternal _SendOrderConfirmationRequest_default_instance_; +class ShipOrderRequest; +struct ShipOrderRequestDefaultTypeInternal; +extern ShipOrderRequestDefaultTypeInternal _ShipOrderRequest_default_instance_; +class ShipOrderResponse; +struct ShipOrderResponseDefaultTypeInternal; +extern ShipOrderResponseDefaultTypeInternal _ShipOrderResponse_default_instance_; +class UpdateFlagRequest; +struct UpdateFlagRequestDefaultTypeInternal; +extern UpdateFlagRequestDefaultTypeInternal _UpdateFlagRequest_default_instance_; +class UpdateFlagResponse; +struct UpdateFlagResponseDefaultTypeInternal; +extern UpdateFlagResponseDefaultTypeInternal _UpdateFlagResponse_default_instance_; +} // namespace oteldemo +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +namespace oteldemo { + +// =================================================================== + + +// ------------------------------------------------------------------- + +class CartItem final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.CartItem) */ { + public: + inline CartItem() : CartItem(nullptr) {} + ~CartItem() override; + template + explicit PROTOBUF_CONSTEXPR CartItem(::google::protobuf::internal::ConstantInitialized); + + CartItem(const CartItem& from); + CartItem(CartItem&& from) noexcept + : CartItem() { + *this = ::std::move(from); + } + + inline CartItem& operator=(const CartItem& from) { + CopyFrom(from); + return *this; + } + inline CartItem& operator=(CartItem&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CartItem& default_instance() { + return *internal_default_instance(); + } + static inline const CartItem* internal_default_instance() { + return reinterpret_cast( + &_CartItem_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(CartItem& a, CartItem& b) { + a.Swap(&b); + } + inline void Swap(CartItem* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CartItem* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CartItem* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CartItem& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const CartItem& from) { + CartItem::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CartItem* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.CartItem"; + } + protected: + explicit CartItem(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdFieldNumber = 1, + kQuantityFieldNumber = 2, + }; + // string product_id = 1; + void clear_product_id() ; + const std::string& product_id() const; + template + void set_product_id(Arg_&& arg, Args_... args); + std::string* mutable_product_id(); + PROTOBUF_NODISCARD std::string* release_product_id(); + void set_allocated_product_id(std::string* ptr); + + private: + const std::string& _internal_product_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_product_id( + const std::string& value); + std::string* _internal_mutable_product_id(); + + public: + // int32 quantity = 2; + void clear_quantity() ; + ::int32_t quantity() const; + void set_quantity(::int32_t value); + + private: + ::int32_t _internal_quantity() const; + void _internal_set_quantity(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.CartItem) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 36, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr product_id_; + ::int32_t quantity_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class AddItemRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.AddItemRequest) */ { + public: + inline AddItemRequest() : AddItemRequest(nullptr) {} + ~AddItemRequest() override; + template + explicit PROTOBUF_CONSTEXPR AddItemRequest(::google::protobuf::internal::ConstantInitialized); + + AddItemRequest(const AddItemRequest& from); + AddItemRequest(AddItemRequest&& from) noexcept + : AddItemRequest() { + *this = ::std::move(from); + } + + inline AddItemRequest& operator=(const AddItemRequest& from) { + CopyFrom(from); + return *this; + } + inline AddItemRequest& operator=(AddItemRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AddItemRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AddItemRequest* internal_default_instance() { + return reinterpret_cast( + &_AddItemRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(AddItemRequest& a, AddItemRequest& b) { + a.Swap(&b); + } + inline void Swap(AddItemRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AddItemRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddItemRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AddItemRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const AddItemRequest& from) { + AddItemRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddItemRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.AddItemRequest"; + } + protected: + explicit AddItemRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUserIdFieldNumber = 1, + kItemFieldNumber = 2, + }; + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // .oteldemo.CartItem item = 2; + bool has_item() const; + void clear_item() ; + const ::oteldemo::CartItem& item() const; + PROTOBUF_NODISCARD ::oteldemo::CartItem* release_item(); + ::oteldemo::CartItem* mutable_item(); + void set_allocated_item(::oteldemo::CartItem* value); + void unsafe_arena_set_allocated_item(::oteldemo::CartItem* value); + ::oteldemo::CartItem* unsafe_arena_release_item(); + + private: + const ::oteldemo::CartItem& _internal_item() const; + ::oteldemo::CartItem* _internal_mutable_item(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.AddItemRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 39, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr user_id_; + ::oteldemo::CartItem* item_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class EmptyCartRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.EmptyCartRequest) */ { + public: + inline EmptyCartRequest() : EmptyCartRequest(nullptr) {} + ~EmptyCartRequest() override; + template + explicit PROTOBUF_CONSTEXPR EmptyCartRequest(::google::protobuf::internal::ConstantInitialized); + + EmptyCartRequest(const EmptyCartRequest& from); + EmptyCartRequest(EmptyCartRequest&& from) noexcept + : EmptyCartRequest() { + *this = ::std::move(from); + } + + inline EmptyCartRequest& operator=(const EmptyCartRequest& from) { + CopyFrom(from); + return *this; + } + inline EmptyCartRequest& operator=(EmptyCartRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const EmptyCartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const EmptyCartRequest* internal_default_instance() { + return reinterpret_cast( + &_EmptyCartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(EmptyCartRequest& a, EmptyCartRequest& b) { + a.Swap(&b); + } + inline void Swap(EmptyCartRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EmptyCartRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EmptyCartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EmptyCartRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const EmptyCartRequest& from) { + EmptyCartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EmptyCartRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.EmptyCartRequest"; + } + protected: + explicit EmptyCartRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUserIdFieldNumber = 1, + }; + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.EmptyCartRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 41, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr user_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetCartRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetCartRequest) */ { + public: + inline GetCartRequest() : GetCartRequest(nullptr) {} + ~GetCartRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetCartRequest(::google::protobuf::internal::ConstantInitialized); + + GetCartRequest(const GetCartRequest& from); + GetCartRequest(GetCartRequest&& from) noexcept + : GetCartRequest() { + *this = ::std::move(from); + } + + inline GetCartRequest& operator=(const GetCartRequest& from) { + CopyFrom(from); + return *this; + } + inline GetCartRequest& operator=(GetCartRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetCartRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetCartRequest* internal_default_instance() { + return reinterpret_cast( + &_GetCartRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetCartRequest& a, GetCartRequest& b) { + a.Swap(&b); + } + inline void Swap(GetCartRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetCartRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetCartRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetCartRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetCartRequest& from) { + GetCartRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetCartRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetCartRequest"; + } + protected: + explicit GetCartRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUserIdFieldNumber = 1, + }; + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetCartRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 39, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr user_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Cart final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Cart) */ { + public: + inline Cart() : Cart(nullptr) {} + ~Cart() override; + template + explicit PROTOBUF_CONSTEXPR Cart(::google::protobuf::internal::ConstantInitialized); + + Cart(const Cart& from); + Cart(Cart&& from) noexcept + : Cart() { + *this = ::std::move(from); + } + + inline Cart& operator=(const Cart& from) { + CopyFrom(from); + return *this; + } + inline Cart& operator=(Cart&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Cart& default_instance() { + return *internal_default_instance(); + } + static inline const Cart* internal_default_instance() { + return reinterpret_cast( + &_Cart_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Cart& a, Cart& b) { + a.Swap(&b); + } + inline void Swap(Cart* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Cart* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Cart* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Cart& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Cart& from) { + Cart::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Cart* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Cart"; + } + protected: + explicit Cart(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 2, + kUserIdFieldNumber = 1, + }; + // repeated .oteldemo.CartItem items = 2; + int items_size() const; + private: + int _internal_items_size() const; + + public: + void clear_items() ; + ::oteldemo::CartItem* mutable_items(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* + mutable_items(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& _internal_items() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* _internal_mutable_items(); + public: + const ::oteldemo::CartItem& items(int index) const; + ::oteldemo::CartItem* add_items(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& + items() const; + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Cart) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 29, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem > items_; + ::google::protobuf::internal::ArenaStringPtr user_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Empty final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:oteldemo.Empty) */ { + public: + inline Empty() : Empty(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR Empty(::google::protobuf::internal::ConstantInitialized); + + Empty(const Empty& from); + Empty(Empty&& from) noexcept + : Empty() { + *this = ::std::move(from); + } + + inline Empty& operator=(const Empty& from) { + CopyFrom(from); + return *this; + } + inline Empty& operator=(Empty&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Empty& default_instance() { + return *internal_default_instance(); + } + static inline const Empty* internal_default_instance() { + return reinterpret_cast( + &_Empty_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Empty& a, Empty& b) { + a.Swap(&b); + } + inline void Swap(Empty* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Empty* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Empty* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Empty"; + } + protected: + explicit Empty(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:oteldemo.Empty) + private: + class _Internal; + + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ListRecommendationsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ListRecommendationsRequest) */ { + public: + inline ListRecommendationsRequest() : ListRecommendationsRequest(nullptr) {} + ~ListRecommendationsRequest() override; + template + explicit PROTOBUF_CONSTEXPR ListRecommendationsRequest(::google::protobuf::internal::ConstantInitialized); + + ListRecommendationsRequest(const ListRecommendationsRequest& from); + ListRecommendationsRequest(ListRecommendationsRequest&& from) noexcept + : ListRecommendationsRequest() { + *this = ::std::move(from); + } + + inline ListRecommendationsRequest& operator=(const ListRecommendationsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListRecommendationsRequest& operator=(ListRecommendationsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListRecommendationsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListRecommendationsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListRecommendationsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ListRecommendationsRequest& a, ListRecommendationsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListRecommendationsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListRecommendationsRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListRecommendationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ListRecommendationsRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ListRecommendationsRequest& from) { + ListRecommendationsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListRecommendationsRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ListRecommendationsRequest"; + } + protected: + explicit ListRecommendationsRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdsFieldNumber = 2, + kUserIdFieldNumber = 1, + }; + // repeated string product_ids = 2; + int product_ids_size() const; + private: + int _internal_product_ids_size() const; + + public: + void clear_product_ids() ; + const std::string& product_ids(int index) const; + std::string* mutable_product_ids(int index); + void set_product_ids(int index, const std::string& value); + void set_product_ids(int index, std::string&& value); + void set_product_ids(int index, const char* value); + void set_product_ids(int index, const char* value, std::size_t size); + void set_product_ids(int index, absl::string_view value); + std::string* add_product_ids(); + void add_product_ids(const std::string& value); + void add_product_ids(std::string&& value); + void add_product_ids(const char* value); + void add_product_ids(const char* value, std::size_t size); + void add_product_ids(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& product_ids() const; + ::google::protobuf::RepeatedPtrField* mutable_product_ids(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_product_ids() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_product_ids(); + + public: + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ListRecommendationsRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 62, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField product_ids_; + ::google::protobuf::internal::ArenaStringPtr user_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ListRecommendationsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ListRecommendationsResponse) */ { + public: + inline ListRecommendationsResponse() : ListRecommendationsResponse(nullptr) {} + ~ListRecommendationsResponse() override; + template + explicit PROTOBUF_CONSTEXPR ListRecommendationsResponse(::google::protobuf::internal::ConstantInitialized); + + ListRecommendationsResponse(const ListRecommendationsResponse& from); + ListRecommendationsResponse(ListRecommendationsResponse&& from) noexcept + : ListRecommendationsResponse() { + *this = ::std::move(from); + } + + inline ListRecommendationsResponse& operator=(const ListRecommendationsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListRecommendationsResponse& operator=(ListRecommendationsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListRecommendationsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListRecommendationsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListRecommendationsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(ListRecommendationsResponse& a, ListRecommendationsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListRecommendationsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListRecommendationsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListRecommendationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ListRecommendationsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ListRecommendationsResponse& from) { + ListRecommendationsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListRecommendationsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ListRecommendationsResponse"; + } + protected: + explicit ListRecommendationsResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdsFieldNumber = 1, + }; + // repeated string product_ids = 1; + int product_ids_size() const; + private: + int _internal_product_ids_size() const; + + public: + void clear_product_ids() ; + const std::string& product_ids(int index) const; + std::string* mutable_product_ids(int index); + void set_product_ids(int index, const std::string& value); + void set_product_ids(int index, std::string&& value); + void set_product_ids(int index, const char* value); + void set_product_ids(int index, const char* value, std::size_t size); + void set_product_ids(int index, absl::string_view value); + std::string* add_product_ids(); + void add_product_ids(const std::string& value); + void add_product_ids(std::string&& value); + void add_product_ids(const char* value); + void add_product_ids(const char* value, std::size_t size); + void add_product_ids(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& product_ids() const; + ::google::protobuf::RepeatedPtrField* mutable_product_ids(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_product_ids() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_product_ids(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ListRecommendationsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 56, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField product_ids_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Product final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Product) */ { + public: + inline Product() : Product(nullptr) {} + ~Product() override; + template + explicit PROTOBUF_CONSTEXPR Product(::google::protobuf::internal::ConstantInitialized); + + Product(const Product& from); + Product(Product&& from) noexcept + : Product() { + *this = ::std::move(from); + } + + inline Product& operator=(const Product& from) { + CopyFrom(from); + return *this; + } + inline Product& operator=(Product&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Product& default_instance() { + return *internal_default_instance(); + } + static inline const Product* internal_default_instance() { + return reinterpret_cast( + &_Product_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Product& a, Product& b) { + a.Swap(&b); + } + inline void Swap(Product* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Product* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Product* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Product& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Product& from) { + Product::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Product* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Product"; + } + protected: + explicit Product(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCategoriesFieldNumber = 6, + kIdFieldNumber = 1, + kNameFieldNumber = 2, + kDescriptionFieldNumber = 3, + kPictureFieldNumber = 4, + kPriceUsdFieldNumber = 5, + }; + // repeated string categories = 6; + int categories_size() const; + private: + int _internal_categories_size() const; + + public: + void clear_categories() ; + const std::string& categories(int index) const; + std::string* mutable_categories(int index); + void set_categories(int index, const std::string& value); + void set_categories(int index, std::string&& value); + void set_categories(int index, const char* value); + void set_categories(int index, const char* value, std::size_t size); + void set_categories(int index, absl::string_view value); + std::string* add_categories(); + void add_categories(const std::string& value); + void add_categories(std::string&& value); + void add_categories(const char* value); + void add_categories(const char* value, std::size_t size); + void add_categories(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& categories() const; + ::google::protobuf::RepeatedPtrField* mutable_categories(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_categories() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_categories(); + + public: + // string id = 1; + void clear_id() ; + const std::string& id() const; + template + void set_id(Arg_&& arg, Args_... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* ptr); + + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( + const std::string& value); + std::string* _internal_mutable_id(); + + public: + // string name = 2; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // string description = 3; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* ptr); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // string picture = 4; + void clear_picture() ; + const std::string& picture() const; + template + void set_picture(Arg_&& arg, Args_... args); + std::string* mutable_picture(); + PROTOBUF_NODISCARD std::string* release_picture(); + void set_allocated_picture(std::string* ptr); + + private: + const std::string& _internal_picture() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_picture( + const std::string& value); + std::string* _internal_mutable_picture(); + + public: + // .oteldemo.Money price_usd = 5; + bool has_price_usd() const; + void clear_price_usd() ; + const ::oteldemo::Money& price_usd() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_price_usd(); + ::oteldemo::Money* mutable_price_usd(); + void set_allocated_price_usd(::oteldemo::Money* value); + void unsafe_arena_set_allocated_price_usd(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_price_usd(); + + private: + const ::oteldemo::Money& _internal_price_usd() const; + ::oteldemo::Money* _internal_mutable_price_usd(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Product) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, 1, 59, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField categories_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr picture_; + ::oteldemo::Money* price_usd_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ListProductsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ListProductsResponse) */ { + public: + inline ListProductsResponse() : ListProductsResponse(nullptr) {} + ~ListProductsResponse() override; + template + explicit PROTOBUF_CONSTEXPR ListProductsResponse(::google::protobuf::internal::ConstantInitialized); + + ListProductsResponse(const ListProductsResponse& from); + ListProductsResponse(ListProductsResponse&& from) noexcept + : ListProductsResponse() { + *this = ::std::move(from); + } + + inline ListProductsResponse& operator=(const ListProductsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListProductsResponse& operator=(ListProductsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListProductsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListProductsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListProductsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ListProductsResponse& a, ListProductsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListProductsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListProductsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListProductsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ListProductsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ListProductsResponse& from) { + ListProductsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListProductsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ListProductsResponse"; + } + protected: + explicit ListProductsResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductsFieldNumber = 1, + }; + // repeated .oteldemo.Product products = 1; + int products_size() const; + private: + int _internal_products_size() const; + + public: + void clear_products() ; + ::oteldemo::Product* mutable_products(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >* + mutable_products(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::Product>& _internal_products() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::Product>* _internal_mutable_products(); + public: + const ::oteldemo::Product& products(int index) const; + ::oteldemo::Product* add_products(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >& + products() const; + // @@protoc_insertion_point(class_scope:oteldemo.ListProductsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::Product > products_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetProductRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetProductRequest) */ { + public: + inline GetProductRequest() : GetProductRequest(nullptr) {} + ~GetProductRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetProductRequest(::google::protobuf::internal::ConstantInitialized); + + GetProductRequest(const GetProductRequest& from); + GetProductRequest(GetProductRequest&& from) noexcept + : GetProductRequest() { + *this = ::std::move(from); + } + + inline GetProductRequest& operator=(const GetProductRequest& from) { + CopyFrom(from); + return *this; + } + inline GetProductRequest& operator=(GetProductRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetProductRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetProductRequest* internal_default_instance() { + return reinterpret_cast( + &_GetProductRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(GetProductRequest& a, GetProductRequest& b) { + a.Swap(&b); + } + inline void Swap(GetProductRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetProductRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetProductRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetProductRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetProductRequest& from) { + GetProductRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetProductRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetProductRequest"; + } + protected: + explicit GetProductRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 1, + }; + // string id = 1; + void clear_id() ; + const std::string& id() const; + template + void set_id(Arg_&& arg, Args_... args); + std::string* mutable_id(); + PROTOBUF_NODISCARD std::string* release_id(); + void set_allocated_id(std::string* ptr); + + private: + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( + const std::string& value); + std::string* _internal_mutable_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetProductRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 37, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class SearchProductsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.SearchProductsRequest) */ { + public: + inline SearchProductsRequest() : SearchProductsRequest(nullptr) {} + ~SearchProductsRequest() override; + template + explicit PROTOBUF_CONSTEXPR SearchProductsRequest(::google::protobuf::internal::ConstantInitialized); + + SearchProductsRequest(const SearchProductsRequest& from); + SearchProductsRequest(SearchProductsRequest&& from) noexcept + : SearchProductsRequest() { + *this = ::std::move(from); + } + + inline SearchProductsRequest& operator=(const SearchProductsRequest& from) { + CopyFrom(from); + return *this; + } + inline SearchProductsRequest& operator=(SearchProductsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SearchProductsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SearchProductsRequest* internal_default_instance() { + return reinterpret_cast( + &_SearchProductsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(SearchProductsRequest& a, SearchProductsRequest& b) { + a.Swap(&b); + } + inline void Swap(SearchProductsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SearchProductsRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SearchProductsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SearchProductsRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SearchProductsRequest& from) { + SearchProductsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SearchProductsRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.SearchProductsRequest"; + } + protected: + explicit SearchProductsRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kQueryFieldNumber = 1, + }; + // string query = 1; + void clear_query() ; + const std::string& query() const; + template + void set_query(Arg_&& arg, Args_... args); + std::string* mutable_query(); + PROTOBUF_NODISCARD std::string* release_query(); + void set_allocated_query(std::string* ptr); + + private: + const std::string& _internal_query() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_query( + const std::string& value); + std::string* _internal_mutable_query(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.SearchProductsRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 44, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr query_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class SearchProductsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.SearchProductsResponse) */ { + public: + inline SearchProductsResponse() : SearchProductsResponse(nullptr) {} + ~SearchProductsResponse() override; + template + explicit PROTOBUF_CONSTEXPR SearchProductsResponse(::google::protobuf::internal::ConstantInitialized); + + SearchProductsResponse(const SearchProductsResponse& from); + SearchProductsResponse(SearchProductsResponse&& from) noexcept + : SearchProductsResponse() { + *this = ::std::move(from); + } + + inline SearchProductsResponse& operator=(const SearchProductsResponse& from) { + CopyFrom(from); + return *this; + } + inline SearchProductsResponse& operator=(SearchProductsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SearchProductsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SearchProductsResponse* internal_default_instance() { + return reinterpret_cast( + &_SearchProductsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(SearchProductsResponse& a, SearchProductsResponse& b) { + a.Swap(&b); + } + inline void Swap(SearchProductsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SearchProductsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SearchProductsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SearchProductsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SearchProductsResponse& from) { + SearchProductsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SearchProductsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.SearchProductsResponse"; + } + protected: + explicit SearchProductsResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kResultsFieldNumber = 1, + }; + // repeated .oteldemo.Product results = 1; + int results_size() const; + private: + int _internal_results_size() const; + + public: + void clear_results() ; + ::oteldemo::Product* mutable_results(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >* + mutable_results(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::Product>& _internal_results() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::Product>* _internal_mutable_results(); + public: + const ::oteldemo::Product& results(int index) const; + ::oteldemo::Product* add_results(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >& + results() const; + // @@protoc_insertion_point(class_scope:oteldemo.SearchProductsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::Product > results_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ProductReview final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ProductReview) */ { + public: + inline ProductReview() : ProductReview(nullptr) {} + ~ProductReview() override; + template + explicit PROTOBUF_CONSTEXPR ProductReview(::google::protobuf::internal::ConstantInitialized); + + ProductReview(const ProductReview& from); + ProductReview(ProductReview&& from) noexcept + : ProductReview() { + *this = ::std::move(from); + } + + inline ProductReview& operator=(const ProductReview& from) { + CopyFrom(from); + return *this; + } + inline ProductReview& operator=(ProductReview&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ProductReview& default_instance() { + return *internal_default_instance(); + } + static inline const ProductReview* internal_default_instance() { + return reinterpret_cast( + &_ProductReview_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ProductReview& a, ProductReview& b) { + a.Swap(&b); + } + inline void Swap(ProductReview* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProductReview* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProductReview* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ProductReview& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ProductReview& from) { + ProductReview::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProductReview* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ProductReview"; + } + protected: + explicit ProductReview(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUsernameFieldNumber = 1, + kDescriptionFieldNumber = 2, + kScoreFieldNumber = 3, + }; + // string username = 1; + void clear_username() ; + const std::string& username() const; + template + void set_username(Arg_&& arg, Args_... args); + std::string* mutable_username(); + PROTOBUF_NODISCARD std::string* release_username(); + void set_allocated_username(std::string* ptr); + + private: + const std::string& _internal_username() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_username( + const std::string& value); + std::string* _internal_mutable_username(); + + public: + // string description = 2; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* ptr); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // string score = 3; + void clear_score() ; + const std::string& score() const; + template + void set_score(Arg_&& arg, Args_... args); + std::string* mutable_score(); + PROTOBUF_NODISCARD std::string* release_score(); + void set_allocated_score(std::string* ptr); + + private: + const std::string& _internal_score() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_score( + const std::string& value); + std::string* _internal_mutable_score(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ProductReview) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 55, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr username_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr score_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetProductReviewsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetProductReviewsRequest) */ { + public: + inline GetProductReviewsRequest() : GetProductReviewsRequest(nullptr) {} + ~GetProductReviewsRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetProductReviewsRequest(::google::protobuf::internal::ConstantInitialized); + + GetProductReviewsRequest(const GetProductReviewsRequest& from); + GetProductReviewsRequest(GetProductReviewsRequest&& from) noexcept + : GetProductReviewsRequest() { + *this = ::std::move(from); + } + + inline GetProductReviewsRequest& operator=(const GetProductReviewsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetProductReviewsRequest& operator=(GetProductReviewsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetProductReviewsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetProductReviewsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetProductReviewsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetProductReviewsRequest& a, GetProductReviewsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetProductReviewsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetProductReviewsRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetProductReviewsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetProductReviewsRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetProductReviewsRequest& from) { + GetProductReviewsRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetProductReviewsRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetProductReviewsRequest"; + } + protected: + explicit GetProductReviewsRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdFieldNumber = 1, + }; + // string product_id = 1; + void clear_product_id() ; + const std::string& product_id() const; + template + void set_product_id(Arg_&& arg, Args_... args); + std::string* mutable_product_id(); + PROTOBUF_NODISCARD std::string* release_product_id(); + void set_allocated_product_id(std::string* ptr); + + private: + const std::string& _internal_product_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_product_id( + const std::string& value); + std::string* _internal_mutable_product_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetProductReviewsRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 52, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr product_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetProductReviewsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetProductReviewsResponse) */ { + public: + inline GetProductReviewsResponse() : GetProductReviewsResponse(nullptr) {} + ~GetProductReviewsResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetProductReviewsResponse(::google::protobuf::internal::ConstantInitialized); + + GetProductReviewsResponse(const GetProductReviewsResponse& from); + GetProductReviewsResponse(GetProductReviewsResponse&& from) noexcept + : GetProductReviewsResponse() { + *this = ::std::move(from); + } + + inline GetProductReviewsResponse& operator=(const GetProductReviewsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetProductReviewsResponse& operator=(GetProductReviewsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetProductReviewsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetProductReviewsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetProductReviewsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(GetProductReviewsResponse& a, GetProductReviewsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetProductReviewsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetProductReviewsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetProductReviewsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetProductReviewsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetProductReviewsResponse& from) { + GetProductReviewsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetProductReviewsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetProductReviewsResponse"; + } + protected: + explicit GetProductReviewsResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductReviewsFieldNumber = 1, + }; + // repeated .oteldemo.ProductReview product_reviews = 1; + int product_reviews_size() const; + private: + int _internal_product_reviews_size() const; + + public: + void clear_product_reviews() ; + ::oteldemo::ProductReview* mutable_product_reviews(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::ProductReview >* + mutable_product_reviews(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::ProductReview>& _internal_product_reviews() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::ProductReview>* _internal_mutable_product_reviews(); + public: + const ::oteldemo::ProductReview& product_reviews(int index) const; + ::oteldemo::ProductReview* add_product_reviews(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::ProductReview >& + product_reviews() const; + // @@protoc_insertion_point(class_scope:oteldemo.GetProductReviewsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::ProductReview > product_reviews_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetAverageProductReviewScoreRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetAverageProductReviewScoreRequest) */ { + public: + inline GetAverageProductReviewScoreRequest() : GetAverageProductReviewScoreRequest(nullptr) {} + ~GetAverageProductReviewScoreRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetAverageProductReviewScoreRequest(::google::protobuf::internal::ConstantInitialized); + + GetAverageProductReviewScoreRequest(const GetAverageProductReviewScoreRequest& from); + GetAverageProductReviewScoreRequest(GetAverageProductReviewScoreRequest&& from) noexcept + : GetAverageProductReviewScoreRequest() { + *this = ::std::move(from); + } + + inline GetAverageProductReviewScoreRequest& operator=(const GetAverageProductReviewScoreRequest& from) { + CopyFrom(from); + return *this; + } + inline GetAverageProductReviewScoreRequest& operator=(GetAverageProductReviewScoreRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetAverageProductReviewScoreRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetAverageProductReviewScoreRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAverageProductReviewScoreRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(GetAverageProductReviewScoreRequest& a, GetAverageProductReviewScoreRequest& b) { + a.Swap(&b); + } + inline void Swap(GetAverageProductReviewScoreRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetAverageProductReviewScoreRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAverageProductReviewScoreRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetAverageProductReviewScoreRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetAverageProductReviewScoreRequest& from) { + GetAverageProductReviewScoreRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAverageProductReviewScoreRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetAverageProductReviewScoreRequest"; + } + protected: + explicit GetAverageProductReviewScoreRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdFieldNumber = 1, + }; + // string product_id = 1; + void clear_product_id() ; + const std::string& product_id() const; + template + void set_product_id(Arg_&& arg, Args_... args); + std::string* mutable_product_id(); + PROTOBUF_NODISCARD std::string* release_product_id(); + void set_allocated_product_id(std::string* ptr); + + private: + const std::string& _internal_product_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_product_id( + const std::string& value); + std::string* _internal_mutable_product_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetAverageProductReviewScoreRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 63, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr product_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetAverageProductReviewScoreResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetAverageProductReviewScoreResponse) */ { + public: + inline GetAverageProductReviewScoreResponse() : GetAverageProductReviewScoreResponse(nullptr) {} + ~GetAverageProductReviewScoreResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetAverageProductReviewScoreResponse(::google::protobuf::internal::ConstantInitialized); + + GetAverageProductReviewScoreResponse(const GetAverageProductReviewScoreResponse& from); + GetAverageProductReviewScoreResponse(GetAverageProductReviewScoreResponse&& from) noexcept + : GetAverageProductReviewScoreResponse() { + *this = ::std::move(from); + } + + inline GetAverageProductReviewScoreResponse& operator=(const GetAverageProductReviewScoreResponse& from) { + CopyFrom(from); + return *this; + } + inline GetAverageProductReviewScoreResponse& operator=(GetAverageProductReviewScoreResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetAverageProductReviewScoreResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetAverageProductReviewScoreResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAverageProductReviewScoreResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(GetAverageProductReviewScoreResponse& a, GetAverageProductReviewScoreResponse& b) { + a.Swap(&b); + } + inline void Swap(GetAverageProductReviewScoreResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetAverageProductReviewScoreResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetAverageProductReviewScoreResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetAverageProductReviewScoreResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetAverageProductReviewScoreResponse& from) { + GetAverageProductReviewScoreResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetAverageProductReviewScoreResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetAverageProductReviewScoreResponse"; + } + protected: + explicit GetAverageProductReviewScoreResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAverageScoreFieldNumber = 1, + }; + // string average_score = 1; + void clear_average_score() ; + const std::string& average_score() const; + template + void set_average_score(Arg_&& arg, Args_... args); + std::string* mutable_average_score(); + PROTOBUF_NODISCARD std::string* release_average_score(); + void set_allocated_average_score(std::string* ptr); + + private: + const std::string& _internal_average_score() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_average_score( + const std::string& value); + std::string* _internal_mutable_average_score(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetAverageProductReviewScoreResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 67, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr average_score_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class AskProductAIAssistantRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.AskProductAIAssistantRequest) */ { + public: + inline AskProductAIAssistantRequest() : AskProductAIAssistantRequest(nullptr) {} + ~AskProductAIAssistantRequest() override; + template + explicit PROTOBUF_CONSTEXPR AskProductAIAssistantRequest(::google::protobuf::internal::ConstantInitialized); + + AskProductAIAssistantRequest(const AskProductAIAssistantRequest& from); + AskProductAIAssistantRequest(AskProductAIAssistantRequest&& from) noexcept + : AskProductAIAssistantRequest() { + *this = ::std::move(from); + } + + inline AskProductAIAssistantRequest& operator=(const AskProductAIAssistantRequest& from) { + CopyFrom(from); + return *this; + } + inline AskProductAIAssistantRequest& operator=(AskProductAIAssistantRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AskProductAIAssistantRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AskProductAIAssistantRequest* internal_default_instance() { + return reinterpret_cast( + &_AskProductAIAssistantRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(AskProductAIAssistantRequest& a, AskProductAIAssistantRequest& b) { + a.Swap(&b); + } + inline void Swap(AskProductAIAssistantRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AskProductAIAssistantRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AskProductAIAssistantRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AskProductAIAssistantRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const AskProductAIAssistantRequest& from) { + AskProductAIAssistantRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AskProductAIAssistantRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.AskProductAIAssistantRequest"; + } + protected: + explicit AskProductAIAssistantRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdFieldNumber = 1, + kQuestionFieldNumber = 2, + }; + // string product_id = 1; + void clear_product_id() ; + const std::string& product_id() const; + template + void set_product_id(Arg_&& arg, Args_... args); + std::string* mutable_product_id(); + PROTOBUF_NODISCARD std::string* release_product_id(); + void set_allocated_product_id(std::string* ptr); + + private: + const std::string& _internal_product_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_product_id( + const std::string& value); + std::string* _internal_mutable_product_id(); + + public: + // string question = 2; + void clear_question() ; + const std::string& question() const; + template + void set_question(Arg_&& arg, Args_... args); + std::string* mutable_question(); + PROTOBUF_NODISCARD std::string* release_question(); + void set_allocated_question(std::string* ptr); + + private: + const std::string& _internal_question() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_question( + const std::string& value); + std::string* _internal_mutable_question(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.AskProductAIAssistantRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 64, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr product_id_; + ::google::protobuf::internal::ArenaStringPtr question_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class AskProductAIAssistantResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.AskProductAIAssistantResponse) */ { + public: + inline AskProductAIAssistantResponse() : AskProductAIAssistantResponse(nullptr) {} + ~AskProductAIAssistantResponse() override; + template + explicit PROTOBUF_CONSTEXPR AskProductAIAssistantResponse(::google::protobuf::internal::ConstantInitialized); + + AskProductAIAssistantResponse(const AskProductAIAssistantResponse& from); + AskProductAIAssistantResponse(AskProductAIAssistantResponse&& from) noexcept + : AskProductAIAssistantResponse() { + *this = ::std::move(from); + } + + inline AskProductAIAssistantResponse& operator=(const AskProductAIAssistantResponse& from) { + CopyFrom(from); + return *this; + } + inline AskProductAIAssistantResponse& operator=(AskProductAIAssistantResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AskProductAIAssistantResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AskProductAIAssistantResponse* internal_default_instance() { + return reinterpret_cast( + &_AskProductAIAssistantResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(AskProductAIAssistantResponse& a, AskProductAIAssistantResponse& b) { + a.Swap(&b); + } + inline void Swap(AskProductAIAssistantResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AskProductAIAssistantResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AskProductAIAssistantResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AskProductAIAssistantResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const AskProductAIAssistantResponse& from) { + AskProductAIAssistantResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AskProductAIAssistantResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.AskProductAIAssistantResponse"; + } + protected: + explicit AskProductAIAssistantResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kResponseFieldNumber = 1, + }; + // string response = 1; + void clear_response() ; + const std::string& response() const; + template + void set_response(Arg_&& arg, Args_... args); + std::string* mutable_response(); + PROTOBUF_NODISCARD std::string* release_response(); + void set_allocated_response(std::string* ptr); + + private: + const std::string& _internal_response() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_response( + const std::string& value); + std::string* _internal_mutable_response(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.AskProductAIAssistantResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 55, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr response_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetQuoteRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetQuoteRequest) */ { + public: + inline GetQuoteRequest() : GetQuoteRequest(nullptr) {} + ~GetQuoteRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetQuoteRequest(::google::protobuf::internal::ConstantInitialized); + + GetQuoteRequest(const GetQuoteRequest& from); + GetQuoteRequest(GetQuoteRequest&& from) noexcept + : GetQuoteRequest() { + *this = ::std::move(from); + } + + inline GetQuoteRequest& operator=(const GetQuoteRequest& from) { + CopyFrom(from); + return *this; + } + inline GetQuoteRequest& operator=(GetQuoteRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetQuoteRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetQuoteRequest* internal_default_instance() { + return reinterpret_cast( + &_GetQuoteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(GetQuoteRequest& a, GetQuoteRequest& b) { + a.Swap(&b); + } + inline void Swap(GetQuoteRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetQuoteRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetQuoteRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetQuoteRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetQuoteRequest& from) { + GetQuoteRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetQuoteRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetQuoteRequest"; + } + protected: + explicit GetQuoteRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 2, + kAddressFieldNumber = 1, + }; + // repeated .oteldemo.CartItem items = 2; + int items_size() const; + private: + int _internal_items_size() const; + + public: + void clear_items() ; + ::oteldemo::CartItem* mutable_items(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* + mutable_items(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& _internal_items() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* _internal_mutable_items(); + public: + const ::oteldemo::CartItem& items(int index) const; + ::oteldemo::CartItem* add_items(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& + items() const; + // .oteldemo.Address address = 1; + bool has_address() const; + void clear_address() ; + const ::oteldemo::Address& address() const; + PROTOBUF_NODISCARD ::oteldemo::Address* release_address(); + ::oteldemo::Address* mutable_address(); + void set_allocated_address(::oteldemo::Address* value); + void unsafe_arena_set_allocated_address(::oteldemo::Address* value); + ::oteldemo::Address* unsafe_arena_release_address(); + + private: + const ::oteldemo::Address& _internal_address() const; + ::oteldemo::Address* _internal_mutable_address(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetQuoteRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem > items_; + ::oteldemo::Address* address_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetQuoteResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetQuoteResponse) */ { + public: + inline GetQuoteResponse() : GetQuoteResponse(nullptr) {} + ~GetQuoteResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetQuoteResponse(::google::protobuf::internal::ConstantInitialized); + + GetQuoteResponse(const GetQuoteResponse& from); + GetQuoteResponse(GetQuoteResponse&& from) noexcept + : GetQuoteResponse() { + *this = ::std::move(from); + } + + inline GetQuoteResponse& operator=(const GetQuoteResponse& from) { + CopyFrom(from); + return *this; + } + inline GetQuoteResponse& operator=(GetQuoteResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetQuoteResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetQuoteResponse* internal_default_instance() { + return reinterpret_cast( + &_GetQuoteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(GetQuoteResponse& a, GetQuoteResponse& b) { + a.Swap(&b); + } + inline void Swap(GetQuoteResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetQuoteResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetQuoteResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetQuoteResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetQuoteResponse& from) { + GetQuoteResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetQuoteResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetQuoteResponse"; + } + protected: + explicit GetQuoteResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCostUsdFieldNumber = 1, + }; + // .oteldemo.Money cost_usd = 1; + bool has_cost_usd() const; + void clear_cost_usd() ; + const ::oteldemo::Money& cost_usd() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_cost_usd(); + ::oteldemo::Money* mutable_cost_usd(); + void set_allocated_cost_usd(::oteldemo::Money* value); + void unsafe_arena_set_allocated_cost_usd(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_cost_usd(); + + private: + const ::oteldemo::Money& _internal_cost_usd() const; + ::oteldemo::Money* _internal_mutable_cost_usd(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetQuoteResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::Money* cost_usd_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ShipOrderRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ShipOrderRequest) */ { + public: + inline ShipOrderRequest() : ShipOrderRequest(nullptr) {} + ~ShipOrderRequest() override; + template + explicit PROTOBUF_CONSTEXPR ShipOrderRequest(::google::protobuf::internal::ConstantInitialized); + + ShipOrderRequest(const ShipOrderRequest& from); + ShipOrderRequest(ShipOrderRequest&& from) noexcept + : ShipOrderRequest() { + *this = ::std::move(from); + } + + inline ShipOrderRequest& operator=(const ShipOrderRequest& from) { + CopyFrom(from); + return *this; + } + inline ShipOrderRequest& operator=(ShipOrderRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ShipOrderRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ShipOrderRequest* internal_default_instance() { + return reinterpret_cast( + &_ShipOrderRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(ShipOrderRequest& a, ShipOrderRequest& b) { + a.Swap(&b); + } + inline void Swap(ShipOrderRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShipOrderRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShipOrderRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ShipOrderRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ShipOrderRequest& from) { + ShipOrderRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShipOrderRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ShipOrderRequest"; + } + protected: + explicit ShipOrderRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 2, + kAddressFieldNumber = 1, + }; + // repeated .oteldemo.CartItem items = 2; + int items_size() const; + private: + int _internal_items_size() const; + + public: + void clear_items() ; + ::oteldemo::CartItem* mutable_items(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* + mutable_items(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& _internal_items() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* _internal_mutable_items(); + public: + const ::oteldemo::CartItem& items(int index) const; + ::oteldemo::CartItem* add_items(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& + items() const; + // .oteldemo.Address address = 1; + bool has_address() const; + void clear_address() ; + const ::oteldemo::Address& address() const; + PROTOBUF_NODISCARD ::oteldemo::Address* release_address(); + ::oteldemo::Address* mutable_address(); + void set_allocated_address(::oteldemo::Address* value); + void unsafe_arena_set_allocated_address(::oteldemo::Address* value); + ::oteldemo::Address* unsafe_arena_release_address(); + + private: + const ::oteldemo::Address& _internal_address() const; + ::oteldemo::Address* _internal_mutable_address(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ShipOrderRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem > items_; + ::oteldemo::Address* address_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ShipOrderResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ShipOrderResponse) */ { + public: + inline ShipOrderResponse() : ShipOrderResponse(nullptr) {} + ~ShipOrderResponse() override; + template + explicit PROTOBUF_CONSTEXPR ShipOrderResponse(::google::protobuf::internal::ConstantInitialized); + + ShipOrderResponse(const ShipOrderResponse& from); + ShipOrderResponse(ShipOrderResponse&& from) noexcept + : ShipOrderResponse() { + *this = ::std::move(from); + } + + inline ShipOrderResponse& operator=(const ShipOrderResponse& from) { + CopyFrom(from); + return *this; + } + inline ShipOrderResponse& operator=(ShipOrderResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ShipOrderResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ShipOrderResponse* internal_default_instance() { + return reinterpret_cast( + &_ShipOrderResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(ShipOrderResponse& a, ShipOrderResponse& b) { + a.Swap(&b); + } + inline void Swap(ShipOrderResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShipOrderResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ShipOrderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ShipOrderResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ShipOrderResponse& from) { + ShipOrderResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ShipOrderResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ShipOrderResponse"; + } + protected: + explicit ShipOrderResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTrackingIdFieldNumber = 1, + }; + // string tracking_id = 1; + void clear_tracking_id() ; + const std::string& tracking_id() const; + template + void set_tracking_id(Arg_&& arg, Args_... args); + std::string* mutable_tracking_id(); + PROTOBUF_NODISCARD std::string* release_tracking_id(); + void set_allocated_tracking_id(std::string* ptr); + + private: + const std::string& _internal_tracking_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tracking_id( + const std::string& value); + std::string* _internal_mutable_tracking_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ShipOrderResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 46, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr tracking_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Address final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Address) */ { + public: + inline Address() : Address(nullptr) {} + ~Address() override; + template + explicit PROTOBUF_CONSTEXPR Address(::google::protobuf::internal::ConstantInitialized); + + Address(const Address& from); + Address(Address&& from) noexcept + : Address() { + *this = ::std::move(from); + } + + inline Address& operator=(const Address& from) { + CopyFrom(from); + return *this; + } + inline Address& operator=(Address&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Address& default_instance() { + return *internal_default_instance(); + } + static inline const Address* internal_default_instance() { + return reinterpret_cast( + &_Address_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(Address& a, Address& b) { + a.Swap(&b); + } + inline void Swap(Address* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Address* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Address* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage
(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Address& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Address& from) { + Address::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Address* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Address"; + } + protected: + explicit Address(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStreetAddressFieldNumber = 1, + kCityFieldNumber = 2, + kStateFieldNumber = 3, + kCountryFieldNumber = 4, + kZipCodeFieldNumber = 5, + }; + // string street_address = 1; + void clear_street_address() ; + const std::string& street_address() const; + template + void set_street_address(Arg_&& arg, Args_... args); + std::string* mutable_street_address(); + PROTOBUF_NODISCARD std::string* release_street_address(); + void set_allocated_street_address(std::string* ptr); + + private: + const std::string& _internal_street_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_street_address( + const std::string& value); + std::string* _internal_mutable_street_address(); + + public: + // string city = 2; + void clear_city() ; + const std::string& city() const; + template + void set_city(Arg_&& arg, Args_... args); + std::string* mutable_city(); + PROTOBUF_NODISCARD std::string* release_city(); + void set_allocated_city(std::string* ptr); + + private: + const std::string& _internal_city() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_city( + const std::string& value); + std::string* _internal_mutable_city(); + + public: + // string state = 3; + void clear_state() ; + const std::string& state() const; + template + void set_state(Arg_&& arg, Args_... args); + std::string* mutable_state(); + PROTOBUF_NODISCARD std::string* release_state(); + void set_allocated_state(std::string* ptr); + + private: + const std::string& _internal_state() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_state( + const std::string& value); + std::string* _internal_mutable_state(); + + public: + // string country = 4; + void clear_country() ; + const std::string& country() const; + template + void set_country(Arg_&& arg, Args_... args); + std::string* mutable_country(); + PROTOBUF_NODISCARD std::string* release_country(); + void set_allocated_country(std::string* ptr); + + private: + const std::string& _internal_country() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_country( + const std::string& value); + std::string* _internal_mutable_country(); + + public: + // string zip_code = 5; + void clear_zip_code() ; + const std::string& zip_code() const; + template + void set_zip_code(Arg_&& arg, Args_... args); + std::string* mutable_zip_code(); + PROTOBUF_NODISCARD std::string* release_zip_code(); + void set_allocated_zip_code(std::string* ptr); + + private: + const std::string& _internal_zip_code() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_zip_code( + const std::string& value); + std::string* _internal_mutable_zip_code(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Address) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 0, 63, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr street_address_; + ::google::protobuf::internal::ArenaStringPtr city_; + ::google::protobuf::internal::ArenaStringPtr state_; + ::google::protobuf::internal::ArenaStringPtr country_; + ::google::protobuf::internal::ArenaStringPtr zip_code_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Money final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Money) */ { + public: + inline Money() : Money(nullptr) {} + ~Money() override; + template + explicit PROTOBUF_CONSTEXPR Money(::google::protobuf::internal::ConstantInitialized); + + Money(const Money& from); + Money(Money&& from) noexcept + : Money() { + *this = ::std::move(from); + } + + inline Money& operator=(const Money& from) { + CopyFrom(from); + return *this; + } + inline Money& operator=(Money&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Money& default_instance() { + return *internal_default_instance(); + } + static inline const Money* internal_default_instance() { + return reinterpret_cast( + &_Money_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(Money& a, Money& b) { + a.Swap(&b); + } + inline void Swap(Money* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Money* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Money* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Money& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Money& from) { + Money::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Money* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Money"; + } + protected: + explicit Money(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCurrencyCodeFieldNumber = 1, + kUnitsFieldNumber = 2, + kNanosFieldNumber = 3, + }; + // string currency_code = 1; + void clear_currency_code() ; + const std::string& currency_code() const; + template + void set_currency_code(Arg_&& arg, Args_... args); + std::string* mutable_currency_code(); + PROTOBUF_NODISCARD std::string* release_currency_code(); + void set_allocated_currency_code(std::string* ptr); + + private: + const std::string& _internal_currency_code() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currency_code( + const std::string& value); + std::string* _internal_mutable_currency_code(); + + public: + // int64 units = 2; + void clear_units() ; + ::int64_t units() const; + void set_units(::int64_t value); + + private: + ::int64_t _internal_units() const; + void _internal_set_units(::int64_t value); + + public: + // int32 nanos = 3; + void clear_nanos() ; + ::int32_t nanos() const; + void set_nanos(::int32_t value); + + private: + ::int32_t _internal_nanos() const; + void _internal_set_nanos(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Money) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 36, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr currency_code_; + ::int64_t units_; + ::int32_t nanos_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetSupportedCurrenciesResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetSupportedCurrenciesResponse) */ { + public: + inline GetSupportedCurrenciesResponse() : GetSupportedCurrenciesResponse(nullptr) {} + ~GetSupportedCurrenciesResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetSupportedCurrenciesResponse(::google::protobuf::internal::ConstantInitialized); + + GetSupportedCurrenciesResponse(const GetSupportedCurrenciesResponse& from); + GetSupportedCurrenciesResponse(GetSupportedCurrenciesResponse&& from) noexcept + : GetSupportedCurrenciesResponse() { + *this = ::std::move(from); + } + + inline GetSupportedCurrenciesResponse& operator=(const GetSupportedCurrenciesResponse& from) { + CopyFrom(from); + return *this; + } + inline GetSupportedCurrenciesResponse& operator=(GetSupportedCurrenciesResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetSupportedCurrenciesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetSupportedCurrenciesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetSupportedCurrenciesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(GetSupportedCurrenciesResponse& a, GetSupportedCurrenciesResponse& b) { + a.Swap(&b); + } + inline void Swap(GetSupportedCurrenciesResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetSupportedCurrenciesResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSupportedCurrenciesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetSupportedCurrenciesResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetSupportedCurrenciesResponse& from) { + GetSupportedCurrenciesResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSupportedCurrenciesResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetSupportedCurrenciesResponse"; + } + protected: + explicit GetSupportedCurrenciesResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCurrencyCodesFieldNumber = 1, + }; + // repeated string currency_codes = 1; + int currency_codes_size() const; + private: + int _internal_currency_codes_size() const; + + public: + void clear_currency_codes() ; + const std::string& currency_codes(int index) const; + std::string* mutable_currency_codes(int index); + void set_currency_codes(int index, const std::string& value); + void set_currency_codes(int index, std::string&& value); + void set_currency_codes(int index, const char* value); + void set_currency_codes(int index, const char* value, std::size_t size); + void set_currency_codes(int index, absl::string_view value); + std::string* add_currency_codes(); + void add_currency_codes(const std::string& value); + void add_currency_codes(std::string&& value); + void add_currency_codes(const char* value); + void add_currency_codes(const char* value, std::size_t size); + void add_currency_codes(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& currency_codes() const; + ::google::protobuf::RepeatedPtrField* mutable_currency_codes(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_currency_codes() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_currency_codes(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetSupportedCurrenciesResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 62, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField currency_codes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class CurrencyConversionRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.CurrencyConversionRequest) */ { + public: + inline CurrencyConversionRequest() : CurrencyConversionRequest(nullptr) {} + ~CurrencyConversionRequest() override; + template + explicit PROTOBUF_CONSTEXPR CurrencyConversionRequest(::google::protobuf::internal::ConstantInitialized); + + CurrencyConversionRequest(const CurrencyConversionRequest& from); + CurrencyConversionRequest(CurrencyConversionRequest&& from) noexcept + : CurrencyConversionRequest() { + *this = ::std::move(from); + } + + inline CurrencyConversionRequest& operator=(const CurrencyConversionRequest& from) { + CopyFrom(from); + return *this; + } + inline CurrencyConversionRequest& operator=(CurrencyConversionRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CurrencyConversionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CurrencyConversionRequest* internal_default_instance() { + return reinterpret_cast( + &_CurrencyConversionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(CurrencyConversionRequest& a, CurrencyConversionRequest& b) { + a.Swap(&b); + } + inline void Swap(CurrencyConversionRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CurrencyConversionRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CurrencyConversionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CurrencyConversionRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const CurrencyConversionRequest& from) { + CurrencyConversionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CurrencyConversionRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.CurrencyConversionRequest"; + } + protected: + explicit CurrencyConversionRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kToCodeFieldNumber = 2, + kFromFieldNumber = 1, + }; + // string to_code = 2; + void clear_to_code() ; + const std::string& to_code() const; + template + void set_to_code(Arg_&& arg, Args_... args); + std::string* mutable_to_code(); + PROTOBUF_NODISCARD std::string* release_to_code(); + void set_allocated_to_code(std::string* ptr); + + private: + const std::string& _internal_to_code() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_to_code( + const std::string& value); + std::string* _internal_mutable_to_code(); + + public: + // .oteldemo.Money from = 1; + bool has_from() const; + void clear_from() ; + const ::oteldemo::Money& from() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_from(); + ::oteldemo::Money* mutable_from(); + void set_allocated_from(::oteldemo::Money* value); + void unsafe_arena_set_allocated_from(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_from(); + + private: + const ::oteldemo::Money& _internal_from() const; + ::oteldemo::Money* _internal_mutable_from(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.CurrencyConversionRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 50, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr to_code_; + ::oteldemo::Money* from_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class CreditCardInfo final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.CreditCardInfo) */ { + public: + inline CreditCardInfo() : CreditCardInfo(nullptr) {} + ~CreditCardInfo() override; + template + explicit PROTOBUF_CONSTEXPR CreditCardInfo(::google::protobuf::internal::ConstantInitialized); + + CreditCardInfo(const CreditCardInfo& from); + CreditCardInfo(CreditCardInfo&& from) noexcept + : CreditCardInfo() { + *this = ::std::move(from); + } + + inline CreditCardInfo& operator=(const CreditCardInfo& from) { + CopyFrom(from); + return *this; + } + inline CreditCardInfo& operator=(CreditCardInfo&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreditCardInfo& default_instance() { + return *internal_default_instance(); + } + static inline const CreditCardInfo* internal_default_instance() { + return reinterpret_cast( + &_CreditCardInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(CreditCardInfo& a, CreditCardInfo& b) { + a.Swap(&b); + } + inline void Swap(CreditCardInfo* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreditCardInfo* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreditCardInfo* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CreditCardInfo& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const CreditCardInfo& from) { + CreditCardInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreditCardInfo* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.CreditCardInfo"; + } + protected: + explicit CreditCardInfo(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCreditCardNumberFieldNumber = 1, + kCreditCardCvvFieldNumber = 2, + kCreditCardExpirationYearFieldNumber = 3, + kCreditCardExpirationMonthFieldNumber = 4, + }; + // string credit_card_number = 1; + void clear_credit_card_number() ; + const std::string& credit_card_number() const; + template + void set_credit_card_number(Arg_&& arg, Args_... args); + std::string* mutable_credit_card_number(); + PROTOBUF_NODISCARD std::string* release_credit_card_number(); + void set_allocated_credit_card_number(std::string* ptr); + + private: + const std::string& _internal_credit_card_number() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_credit_card_number( + const std::string& value); + std::string* _internal_mutable_credit_card_number(); + + public: + // int32 credit_card_cvv = 2; + void clear_credit_card_cvv() ; + ::int32_t credit_card_cvv() const; + void set_credit_card_cvv(::int32_t value); + + private: + ::int32_t _internal_credit_card_cvv() const; + void _internal_set_credit_card_cvv(::int32_t value); + + public: + // int32 credit_card_expiration_year = 3; + void clear_credit_card_expiration_year() ; + ::int32_t credit_card_expiration_year() const; + void set_credit_card_expiration_year(::int32_t value); + + private: + ::int32_t _internal_credit_card_expiration_year() const; + void _internal_set_credit_card_expiration_year(::int32_t value); + + public: + // int32 credit_card_expiration_month = 4; + void clear_credit_card_expiration_month() ; + ::int32_t credit_card_expiration_month() const; + void set_credit_card_expiration_month(::int32_t value); + + private: + ::int32_t _internal_credit_card_expiration_month() const; + void _internal_set_credit_card_expiration_month(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.CreditCardInfo) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 50, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr credit_card_number_; + ::int32_t credit_card_cvv_; + ::int32_t credit_card_expiration_year_; + ::int32_t credit_card_expiration_month_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ChargeRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ChargeRequest) */ { + public: + inline ChargeRequest() : ChargeRequest(nullptr) {} + ~ChargeRequest() override; + template + explicit PROTOBUF_CONSTEXPR ChargeRequest(::google::protobuf::internal::ConstantInitialized); + + ChargeRequest(const ChargeRequest& from); + ChargeRequest(ChargeRequest&& from) noexcept + : ChargeRequest() { + *this = ::std::move(from); + } + + inline ChargeRequest& operator=(const ChargeRequest& from) { + CopyFrom(from); + return *this; + } + inline ChargeRequest& operator=(ChargeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ChargeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ChargeRequest* internal_default_instance() { + return reinterpret_cast( + &_ChargeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(ChargeRequest& a, ChargeRequest& b) { + a.Swap(&b); + } + inline void Swap(ChargeRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChargeRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChargeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ChargeRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ChargeRequest& from) { + ChargeRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChargeRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ChargeRequest"; + } + protected: + explicit ChargeRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAmountFieldNumber = 1, + kCreditCardFieldNumber = 2, + }; + // .oteldemo.Money amount = 1; + bool has_amount() const; + void clear_amount() ; + const ::oteldemo::Money& amount() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_amount(); + ::oteldemo::Money* mutable_amount(); + void set_allocated_amount(::oteldemo::Money* value); + void unsafe_arena_set_allocated_amount(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_amount(); + + private: + const ::oteldemo::Money& _internal_amount() const; + ::oteldemo::Money* _internal_mutable_amount(); + + public: + // .oteldemo.CreditCardInfo credit_card = 2; + bool has_credit_card() const; + void clear_credit_card() ; + const ::oteldemo::CreditCardInfo& credit_card() const; + PROTOBUF_NODISCARD ::oteldemo::CreditCardInfo* release_credit_card(); + ::oteldemo::CreditCardInfo* mutable_credit_card(); + void set_allocated_credit_card(::oteldemo::CreditCardInfo* value); + void unsafe_arena_set_allocated_credit_card(::oteldemo::CreditCardInfo* value); + ::oteldemo::CreditCardInfo* unsafe_arena_release_credit_card(); + + private: + const ::oteldemo::CreditCardInfo& _internal_credit_card() const; + ::oteldemo::CreditCardInfo* _internal_mutable_credit_card(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ChargeRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::Money* amount_; + ::oteldemo::CreditCardInfo* credit_card_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ChargeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ChargeResponse) */ { + public: + inline ChargeResponse() : ChargeResponse(nullptr) {} + ~ChargeResponse() override; + template + explicit PROTOBUF_CONSTEXPR ChargeResponse(::google::protobuf::internal::ConstantInitialized); + + ChargeResponse(const ChargeResponse& from); + ChargeResponse(ChargeResponse&& from) noexcept + : ChargeResponse() { + *this = ::std::move(from); + } + + inline ChargeResponse& operator=(const ChargeResponse& from) { + CopyFrom(from); + return *this; + } + inline ChargeResponse& operator=(ChargeResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ChargeResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ChargeResponse* internal_default_instance() { + return reinterpret_cast( + &_ChargeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(ChargeResponse& a, ChargeResponse& b) { + a.Swap(&b); + } + inline void Swap(ChargeResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChargeResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChargeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ChargeResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ChargeResponse& from) { + ChargeResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChargeResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ChargeResponse"; + } + protected: + explicit ChargeResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTransactionIdFieldNumber = 1, + }; + // string transaction_id = 1; + void clear_transaction_id() ; + const std::string& transaction_id() const; + template + void set_transaction_id(Arg_&& arg, Args_... args); + std::string* mutable_transaction_id(); + PROTOBUF_NODISCARD std::string* release_transaction_id(); + void set_allocated_transaction_id(std::string* ptr); + + private: + const std::string& _internal_transaction_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_transaction_id( + const std::string& value); + std::string* _internal_mutable_transaction_id(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.ChargeResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 46, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr transaction_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class OrderItem final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.OrderItem) */ { + public: + inline OrderItem() : OrderItem(nullptr) {} + ~OrderItem() override; + template + explicit PROTOBUF_CONSTEXPR OrderItem(::google::protobuf::internal::ConstantInitialized); + + OrderItem(const OrderItem& from); + OrderItem(OrderItem&& from) noexcept + : OrderItem() { + *this = ::std::move(from); + } + + inline OrderItem& operator=(const OrderItem& from) { + CopyFrom(from); + return *this; + } + inline OrderItem& operator=(OrderItem&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const OrderItem& default_instance() { + return *internal_default_instance(); + } + static inline const OrderItem* internal_default_instance() { + return reinterpret_cast( + &_OrderItem_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(OrderItem& a, OrderItem& b) { + a.Swap(&b); + } + inline void Swap(OrderItem* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(OrderItem* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrderItem* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const OrderItem& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const OrderItem& from) { + OrderItem::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OrderItem* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.OrderItem"; + } + protected: + explicit OrderItem(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kItemFieldNumber = 1, + kCostFieldNumber = 2, + }; + // .oteldemo.CartItem item = 1; + bool has_item() const; + void clear_item() ; + const ::oteldemo::CartItem& item() const; + PROTOBUF_NODISCARD ::oteldemo::CartItem* release_item(); + ::oteldemo::CartItem* mutable_item(); + void set_allocated_item(::oteldemo::CartItem* value); + void unsafe_arena_set_allocated_item(::oteldemo::CartItem* value); + ::oteldemo::CartItem* unsafe_arena_release_item(); + + private: + const ::oteldemo::CartItem& _internal_item() const; + ::oteldemo::CartItem* _internal_mutable_item(); + + public: + // .oteldemo.Money cost = 2; + bool has_cost() const; + void clear_cost() ; + const ::oteldemo::Money& cost() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_cost(); + ::oteldemo::Money* mutable_cost(); + void set_allocated_cost(::oteldemo::Money* value); + void unsafe_arena_set_allocated_cost(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_cost(); + + private: + const ::oteldemo::Money& _internal_cost() const; + ::oteldemo::Money* _internal_mutable_cost(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.OrderItem) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 2, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::CartItem* item_; + ::oteldemo::Money* cost_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class OrderResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.OrderResult) */ { + public: + inline OrderResult() : OrderResult(nullptr) {} + ~OrderResult() override; + template + explicit PROTOBUF_CONSTEXPR OrderResult(::google::protobuf::internal::ConstantInitialized); + + OrderResult(const OrderResult& from); + OrderResult(OrderResult&& from) noexcept + : OrderResult() { + *this = ::std::move(from); + } + + inline OrderResult& operator=(const OrderResult& from) { + CopyFrom(from); + return *this; + } + inline OrderResult& operator=(OrderResult&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const OrderResult& default_instance() { + return *internal_default_instance(); + } + static inline const OrderResult* internal_default_instance() { + return reinterpret_cast( + &_OrderResult_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(OrderResult& a, OrderResult& b) { + a.Swap(&b); + } + inline void Swap(OrderResult* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(OrderResult* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + OrderResult* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const OrderResult& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const OrderResult& from) { + OrderResult::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OrderResult* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.OrderResult"; + } + protected: + explicit OrderResult(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kItemsFieldNumber = 5, + kOrderIdFieldNumber = 1, + kShippingTrackingIdFieldNumber = 2, + kShippingCostFieldNumber = 3, + kShippingAddressFieldNumber = 4, + }; + // repeated .oteldemo.OrderItem items = 5; + int items_size() const; + private: + int _internal_items_size() const; + + public: + void clear_items() ; + ::oteldemo::OrderItem* mutable_items(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::OrderItem >* + mutable_items(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::OrderItem>& _internal_items() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::OrderItem>* _internal_mutable_items(); + public: + const ::oteldemo::OrderItem& items(int index) const; + ::oteldemo::OrderItem* add_items(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::OrderItem >& + items() const; + // string order_id = 1; + void clear_order_id() ; + const std::string& order_id() const; + template + void set_order_id(Arg_&& arg, Args_... args); + std::string* mutable_order_id(); + PROTOBUF_NODISCARD std::string* release_order_id(); + void set_allocated_order_id(std::string* ptr); + + private: + const std::string& _internal_order_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_order_id( + const std::string& value); + std::string* _internal_mutable_order_id(); + + public: + // string shipping_tracking_id = 2; + void clear_shipping_tracking_id() ; + const std::string& shipping_tracking_id() const; + template + void set_shipping_tracking_id(Arg_&& arg, Args_... args); + std::string* mutable_shipping_tracking_id(); + PROTOBUF_NODISCARD std::string* release_shipping_tracking_id(); + void set_allocated_shipping_tracking_id(std::string* ptr); + + private: + const std::string& _internal_shipping_tracking_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_shipping_tracking_id( + const std::string& value); + std::string* _internal_mutable_shipping_tracking_id(); + + public: + // .oteldemo.Money shipping_cost = 3; + bool has_shipping_cost() const; + void clear_shipping_cost() ; + const ::oteldemo::Money& shipping_cost() const; + PROTOBUF_NODISCARD ::oteldemo::Money* release_shipping_cost(); + ::oteldemo::Money* mutable_shipping_cost(); + void set_allocated_shipping_cost(::oteldemo::Money* value); + void unsafe_arena_set_allocated_shipping_cost(::oteldemo::Money* value); + ::oteldemo::Money* unsafe_arena_release_shipping_cost(); + + private: + const ::oteldemo::Money& _internal_shipping_cost() const; + ::oteldemo::Money* _internal_mutable_shipping_cost(); + + public: + // .oteldemo.Address shipping_address = 4; + bool has_shipping_address() const; + void clear_shipping_address() ; + const ::oteldemo::Address& shipping_address() const; + PROTOBUF_NODISCARD ::oteldemo::Address* release_shipping_address(); + ::oteldemo::Address* mutable_shipping_address(); + void set_allocated_shipping_address(::oteldemo::Address* value); + void unsafe_arena_set_allocated_shipping_address(::oteldemo::Address* value); + ::oteldemo::Address* unsafe_arena_release_shipping_address(); + + private: + const ::oteldemo::Address& _internal_shipping_address() const; + ::oteldemo::Address* _internal_mutable_shipping_address(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.OrderResult) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 3, 57, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::oteldemo::OrderItem > items_; + ::google::protobuf::internal::ArenaStringPtr order_id_; + ::google::protobuf::internal::ArenaStringPtr shipping_tracking_id_; + ::oteldemo::Money* shipping_cost_; + ::oteldemo::Address* shipping_address_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class SendOrderConfirmationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.SendOrderConfirmationRequest) */ { + public: + inline SendOrderConfirmationRequest() : SendOrderConfirmationRequest(nullptr) {} + ~SendOrderConfirmationRequest() override; + template + explicit PROTOBUF_CONSTEXPR SendOrderConfirmationRequest(::google::protobuf::internal::ConstantInitialized); + + SendOrderConfirmationRequest(const SendOrderConfirmationRequest& from); + SendOrderConfirmationRequest(SendOrderConfirmationRequest&& from) noexcept + : SendOrderConfirmationRequest() { + *this = ::std::move(from); + } + + inline SendOrderConfirmationRequest& operator=(const SendOrderConfirmationRequest& from) { + CopyFrom(from); + return *this; + } + inline SendOrderConfirmationRequest& operator=(SendOrderConfirmationRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SendOrderConfirmationRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SendOrderConfirmationRequest* internal_default_instance() { + return reinterpret_cast( + &_SendOrderConfirmationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(SendOrderConfirmationRequest& a, SendOrderConfirmationRequest& b) { + a.Swap(&b); + } + inline void Swap(SendOrderConfirmationRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendOrderConfirmationRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SendOrderConfirmationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SendOrderConfirmationRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SendOrderConfirmationRequest& from) { + SendOrderConfirmationRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SendOrderConfirmationRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.SendOrderConfirmationRequest"; + } + protected: + explicit SendOrderConfirmationRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kEmailFieldNumber = 1, + kOrderFieldNumber = 2, + }; + // string email = 1; + void clear_email() ; + const std::string& email() const; + template + void set_email(Arg_&& arg, Args_... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* ptr); + + private: + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( + const std::string& value); + std::string* _internal_mutable_email(); + + public: + // .oteldemo.OrderResult order = 2; + bool has_order() const; + void clear_order() ; + const ::oteldemo::OrderResult& order() const; + PROTOBUF_NODISCARD ::oteldemo::OrderResult* release_order(); + ::oteldemo::OrderResult* mutable_order(); + void set_allocated_order(::oteldemo::OrderResult* value); + void unsafe_arena_set_allocated_order(::oteldemo::OrderResult* value); + ::oteldemo::OrderResult* unsafe_arena_release_order(); + + private: + const ::oteldemo::OrderResult& _internal_order() const; + ::oteldemo::OrderResult* _internal_mutable_order(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.SendOrderConfirmationRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 51, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr email_; + ::oteldemo::OrderResult* order_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class PlaceOrderRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.PlaceOrderRequest) */ { + public: + inline PlaceOrderRequest() : PlaceOrderRequest(nullptr) {} + ~PlaceOrderRequest() override; + template + explicit PROTOBUF_CONSTEXPR PlaceOrderRequest(::google::protobuf::internal::ConstantInitialized); + + PlaceOrderRequest(const PlaceOrderRequest& from); + PlaceOrderRequest(PlaceOrderRequest&& from) noexcept + : PlaceOrderRequest() { + *this = ::std::move(from); + } + + inline PlaceOrderRequest& operator=(const PlaceOrderRequest& from) { + CopyFrom(from); + return *this; + } + inline PlaceOrderRequest& operator=(PlaceOrderRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PlaceOrderRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PlaceOrderRequest* internal_default_instance() { + return reinterpret_cast( + &_PlaceOrderRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(PlaceOrderRequest& a, PlaceOrderRequest& b) { + a.Swap(&b); + } + inline void Swap(PlaceOrderRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlaceOrderRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PlaceOrderRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const PlaceOrderRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const PlaceOrderRequest& from) { + PlaceOrderRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PlaceOrderRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.PlaceOrderRequest"; + } + protected: + explicit PlaceOrderRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUserIdFieldNumber = 1, + kUserCurrencyFieldNumber = 2, + kEmailFieldNumber = 5, + kAddressFieldNumber = 3, + kCreditCardFieldNumber = 6, + }; + // string user_id = 1; + void clear_user_id() ; + const std::string& user_id() const; + template + void set_user_id(Arg_&& arg, Args_... args); + std::string* mutable_user_id(); + PROTOBUF_NODISCARD std::string* release_user_id(); + void set_allocated_user_id(std::string* ptr); + + private: + const std::string& _internal_user_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_id( + const std::string& value); + std::string* _internal_mutable_user_id(); + + public: + // string user_currency = 2; + void clear_user_currency() ; + const std::string& user_currency() const; + template + void set_user_currency(Arg_&& arg, Args_... args); + std::string* mutable_user_currency(); + PROTOBUF_NODISCARD std::string* release_user_currency(); + void set_allocated_user_currency(std::string* ptr); + + private: + const std::string& _internal_user_currency() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_currency( + const std::string& value); + std::string* _internal_mutable_user_currency(); + + public: + // string email = 5; + void clear_email() ; + const std::string& email() const; + template + void set_email(Arg_&& arg, Args_... args); + std::string* mutable_email(); + PROTOBUF_NODISCARD std::string* release_email(); + void set_allocated_email(std::string* ptr); + + private: + const std::string& _internal_email() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_email( + const std::string& value); + std::string* _internal_mutable_email(); + + public: + // .oteldemo.Address address = 3; + bool has_address() const; + void clear_address() ; + const ::oteldemo::Address& address() const; + PROTOBUF_NODISCARD ::oteldemo::Address* release_address(); + ::oteldemo::Address* mutable_address(); + void set_allocated_address(::oteldemo::Address* value); + void unsafe_arena_set_allocated_address(::oteldemo::Address* value); + ::oteldemo::Address* unsafe_arena_release_address(); + + private: + const ::oteldemo::Address& _internal_address() const; + ::oteldemo::Address* _internal_mutable_address(); + + public: + // .oteldemo.CreditCardInfo credit_card = 6; + bool has_credit_card() const; + void clear_credit_card() ; + const ::oteldemo::CreditCardInfo& credit_card() const; + PROTOBUF_NODISCARD ::oteldemo::CreditCardInfo* release_credit_card(); + ::oteldemo::CreditCardInfo* mutable_credit_card(); + void set_allocated_credit_card(::oteldemo::CreditCardInfo* value); + void unsafe_arena_set_allocated_credit_card(::oteldemo::CreditCardInfo* value); + ::oteldemo::CreditCardInfo* unsafe_arena_release_credit_card(); + + private: + const ::oteldemo::CreditCardInfo& _internal_credit_card() const; + ::oteldemo::CreditCardInfo* _internal_mutable_credit_card(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.PlaceOrderRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 2, 60, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr user_id_; + ::google::protobuf::internal::ArenaStringPtr user_currency_; + ::google::protobuf::internal::ArenaStringPtr email_; + ::oteldemo::Address* address_; + ::oteldemo::CreditCardInfo* credit_card_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class PlaceOrderResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.PlaceOrderResponse) */ { + public: + inline PlaceOrderResponse() : PlaceOrderResponse(nullptr) {} + ~PlaceOrderResponse() override; + template + explicit PROTOBUF_CONSTEXPR PlaceOrderResponse(::google::protobuf::internal::ConstantInitialized); + + PlaceOrderResponse(const PlaceOrderResponse& from); + PlaceOrderResponse(PlaceOrderResponse&& from) noexcept + : PlaceOrderResponse() { + *this = ::std::move(from); + } + + inline PlaceOrderResponse& operator=(const PlaceOrderResponse& from) { + CopyFrom(from); + return *this; + } + inline PlaceOrderResponse& operator=(PlaceOrderResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PlaceOrderResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PlaceOrderResponse* internal_default_instance() { + return reinterpret_cast( + &_PlaceOrderResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(PlaceOrderResponse& a, PlaceOrderResponse& b) { + a.Swap(&b); + } + inline void Swap(PlaceOrderResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlaceOrderResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PlaceOrderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const PlaceOrderResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const PlaceOrderResponse& from) { + PlaceOrderResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PlaceOrderResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.PlaceOrderResponse"; + } + protected: + explicit PlaceOrderResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kOrderFieldNumber = 1, + }; + // .oteldemo.OrderResult order = 1; + bool has_order() const; + void clear_order() ; + const ::oteldemo::OrderResult& order() const; + PROTOBUF_NODISCARD ::oteldemo::OrderResult* release_order(); + ::oteldemo::OrderResult* mutable_order(); + void set_allocated_order(::oteldemo::OrderResult* value); + void unsafe_arena_set_allocated_order(::oteldemo::OrderResult* value); + ::oteldemo::OrderResult* unsafe_arena_release_order(); + + private: + const ::oteldemo::OrderResult& _internal_order() const; + ::oteldemo::OrderResult* _internal_mutable_order(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.PlaceOrderResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::OrderResult* order_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class AdRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.AdRequest) */ { + public: + inline AdRequest() : AdRequest(nullptr) {} + ~AdRequest() override; + template + explicit PROTOBUF_CONSTEXPR AdRequest(::google::protobuf::internal::ConstantInitialized); + + AdRequest(const AdRequest& from); + AdRequest(AdRequest&& from) noexcept + : AdRequest() { + *this = ::std::move(from); + } + + inline AdRequest& operator=(const AdRequest& from) { + CopyFrom(from); + return *this; + } + inline AdRequest& operator=(AdRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AdRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AdRequest* internal_default_instance() { + return reinterpret_cast( + &_AdRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + friend void swap(AdRequest& a, AdRequest& b) { + a.Swap(&b); + } + inline void Swap(AdRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AdRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AdRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const AdRequest& from) { + AdRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AdRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.AdRequest"; + } + protected: + explicit AdRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kContextKeysFieldNumber = 1, + }; + // repeated string context_keys = 1; + int context_keys_size() const; + private: + int _internal_context_keys_size() const; + + public: + void clear_context_keys() ; + const std::string& context_keys(int index) const; + std::string* mutable_context_keys(int index); + void set_context_keys(int index, const std::string& value); + void set_context_keys(int index, std::string&& value); + void set_context_keys(int index, const char* value); + void set_context_keys(int index, const char* value, std::size_t size); + void set_context_keys(int index, absl::string_view value); + std::string* add_context_keys(); + void add_context_keys(const std::string& value); + void add_context_keys(std::string&& value); + void add_context_keys(const char* value); + void add_context_keys(const char* value, std::size_t size); + void add_context_keys(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& context_keys() const; + ::google::protobuf::RepeatedPtrField* mutable_context_keys(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_context_keys() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_context_keys(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.AdRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 39, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField context_keys_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class AdResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.AdResponse) */ { + public: + inline AdResponse() : AdResponse(nullptr) {} + ~AdResponse() override; + template + explicit PROTOBUF_CONSTEXPR AdResponse(::google::protobuf::internal::ConstantInitialized); + + AdResponse(const AdResponse& from); + AdResponse(AdResponse&& from) noexcept + : AdResponse() { + *this = ::std::move(from); + } + + inline AdResponse& operator=(const AdResponse& from) { + CopyFrom(from); + return *this; + } + inline AdResponse& operator=(AdResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AdResponse& default_instance() { + return *internal_default_instance(); + } + static inline const AdResponse* internal_default_instance() { + return reinterpret_cast( + &_AdResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + friend void swap(AdResponse& a, AdResponse& b) { + a.Swap(&b); + } + inline void Swap(AdResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AdResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const AdResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const AdResponse& from) { + AdResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AdResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.AdResponse"; + } + protected: + explicit AdResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAdsFieldNumber = 1, + }; + // repeated .oteldemo.Ad ads = 1; + int ads_size() const; + private: + int _internal_ads_size() const; + + public: + void clear_ads() ; + ::oteldemo::Ad* mutable_ads(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::Ad >* + mutable_ads(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::Ad>& _internal_ads() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::Ad>* _internal_mutable_ads(); + public: + const ::oteldemo::Ad& ads(int index) const; + ::oteldemo::Ad* add_ads(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::Ad >& + ads() const; + // @@protoc_insertion_point(class_scope:oteldemo.AdResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::Ad > ads_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Ad final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Ad) */ { + public: + inline Ad() : Ad(nullptr) {} + ~Ad() override; + template + explicit PROTOBUF_CONSTEXPR Ad(::google::protobuf::internal::ConstantInitialized); + + Ad(const Ad& from); + Ad(Ad&& from) noexcept + : Ad() { + *this = ::std::move(from); + } + + inline Ad& operator=(const Ad& from) { + CopyFrom(from); + return *this; + } + inline Ad& operator=(Ad&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Ad& default_instance() { + return *internal_default_instance(); + } + static inline const Ad* internal_default_instance() { + return reinterpret_cast( + &_Ad_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + friend void swap(Ad& a, Ad& b) { + a.Swap(&b); + } + inline void Swap(Ad* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Ad* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Ad* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Ad& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Ad& from) { + Ad::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Ad* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Ad"; + } + protected: + explicit Ad(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRedirectUrlFieldNumber = 1, + kTextFieldNumber = 2, + }; + // string redirect_url = 1; + void clear_redirect_url() ; + const std::string& redirect_url() const; + template + void set_redirect_url(Arg_&& arg, Args_... args); + std::string* mutable_redirect_url(); + PROTOBUF_NODISCARD std::string* release_redirect_url(); + void set_allocated_redirect_url(std::string* ptr); + + private: + const std::string& _internal_redirect_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_redirect_url( + const std::string& value); + std::string* _internal_mutable_redirect_url(); + + public: + // string text = 2; + void clear_text() ; + const std::string& text() const; + template + void set_text(Arg_&& arg, Args_... args); + std::string* mutable_text(); + PROTOBUF_NODISCARD std::string* release_text(); + void set_allocated_text(std::string* ptr); + + private: + const std::string& _internal_text() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text( + const std::string& value); + std::string* _internal_mutable_text(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Ad) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 36, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr redirect_url_; + ::google::protobuf::internal::ArenaStringPtr text_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class Flag final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.Flag) */ { + public: + inline Flag() : Flag(nullptr) {} + ~Flag() override; + template + explicit PROTOBUF_CONSTEXPR Flag(::google::protobuf::internal::ConstantInitialized); + + Flag(const Flag& from); + Flag(Flag&& from) noexcept + : Flag() { + *this = ::std::move(from); + } + + inline Flag& operator=(const Flag& from) { + CopyFrom(from); + return *this; + } + inline Flag& operator=(Flag&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Flag& default_instance() { + return *internal_default_instance(); + } + static inline const Flag* internal_default_instance() { + return reinterpret_cast( + &_Flag_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(Flag& a, Flag& b) { + a.Swap(&b); + } + inline void Swap(Flag* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Flag* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Flag* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Flag& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Flag& from) { + Flag::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Flag* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.Flag"; + } + protected: + explicit Flag(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kDescriptionFieldNumber = 2, + kEnabledFieldNumber = 3, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // string description = 2; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* ptr); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // bool enabled = 3; + void clear_enabled() ; + bool enabled() const; + void set_enabled(bool value); + + private: + bool _internal_enabled() const; + void _internal_set_enabled(bool value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.Flag) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 37, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr description_; + bool enabled_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetFlagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetFlagRequest) */ { + public: + inline GetFlagRequest() : GetFlagRequest(nullptr) {} + ~GetFlagRequest() override; + template + explicit PROTOBUF_CONSTEXPR GetFlagRequest(::google::protobuf::internal::ConstantInitialized); + + GetFlagRequest(const GetFlagRequest& from); + GetFlagRequest(GetFlagRequest&& from) noexcept + : GetFlagRequest() { + *this = ::std::move(from); + } + + inline GetFlagRequest& operator=(const GetFlagRequest& from) { + CopyFrom(from); + return *this; + } + inline GetFlagRequest& operator=(GetFlagRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetFlagRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetFlagRequest* internal_default_instance() { + return reinterpret_cast( + &_GetFlagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(GetFlagRequest& a, GetFlagRequest& b) { + a.Swap(&b); + } + inline void Swap(GetFlagRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFlagRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetFlagRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetFlagRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetFlagRequest& from) { + GetFlagRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetFlagRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetFlagRequest"; + } + protected: + explicit GetFlagRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetFlagRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 36, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class GetFlagResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.GetFlagResponse) */ { + public: + inline GetFlagResponse() : GetFlagResponse(nullptr) {} + ~GetFlagResponse() override; + template + explicit PROTOBUF_CONSTEXPR GetFlagResponse(::google::protobuf::internal::ConstantInitialized); + + GetFlagResponse(const GetFlagResponse& from); + GetFlagResponse(GetFlagResponse&& from) noexcept + : GetFlagResponse() { + *this = ::std::move(from); + } + + inline GetFlagResponse& operator=(const GetFlagResponse& from) { + CopyFrom(from); + return *this; + } + inline GetFlagResponse& operator=(GetFlagResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetFlagResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetFlagResponse* internal_default_instance() { + return reinterpret_cast( + &_GetFlagResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(GetFlagResponse& a, GetFlagResponse& b) { + a.Swap(&b); + } + inline void Swap(GetFlagResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetFlagResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetFlagResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetFlagResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetFlagResponse& from) { + GetFlagResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetFlagResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.GetFlagResponse"; + } + protected: + explicit GetFlagResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFlagFieldNumber = 1, + }; + // .oteldemo.Flag flag = 1; + bool has_flag() const; + void clear_flag() ; + const ::oteldemo::Flag& flag() const; + PROTOBUF_NODISCARD ::oteldemo::Flag* release_flag(); + ::oteldemo::Flag* mutable_flag(); + void set_allocated_flag(::oteldemo::Flag* value); + void unsafe_arena_set_allocated_flag(::oteldemo::Flag* value); + ::oteldemo::Flag* unsafe_arena_release_flag(); + + private: + const ::oteldemo::Flag& _internal_flag() const; + ::oteldemo::Flag* _internal_mutable_flag(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.GetFlagResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::Flag* flag_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class CreateFlagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.CreateFlagRequest) */ { + public: + inline CreateFlagRequest() : CreateFlagRequest(nullptr) {} + ~CreateFlagRequest() override; + template + explicit PROTOBUF_CONSTEXPR CreateFlagRequest(::google::protobuf::internal::ConstantInitialized); + + CreateFlagRequest(const CreateFlagRequest& from); + CreateFlagRequest(CreateFlagRequest&& from) noexcept + : CreateFlagRequest() { + *this = ::std::move(from); + } + + inline CreateFlagRequest& operator=(const CreateFlagRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateFlagRequest& operator=(CreateFlagRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateFlagRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateFlagRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateFlagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + friend void swap(CreateFlagRequest& a, CreateFlagRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateFlagRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateFlagRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateFlagRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CreateFlagRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const CreateFlagRequest& from) { + CreateFlagRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateFlagRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.CreateFlagRequest"; + } + protected: + explicit CreateFlagRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kDescriptionFieldNumber = 2, + kEnabledFieldNumber = 3, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // string description = 2; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* ptr); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // bool enabled = 3; + void clear_enabled() ; + bool enabled() const; + void set_enabled(bool value); + + private: + bool _internal_enabled() const; + void _internal_set_enabled(bool value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.CreateFlagRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 0, 50, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr description_; + bool enabled_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class CreateFlagResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.CreateFlagResponse) */ { + public: + inline CreateFlagResponse() : CreateFlagResponse(nullptr) {} + ~CreateFlagResponse() override; + template + explicit PROTOBUF_CONSTEXPR CreateFlagResponse(::google::protobuf::internal::ConstantInitialized); + + CreateFlagResponse(const CreateFlagResponse& from); + CreateFlagResponse(CreateFlagResponse&& from) noexcept + : CreateFlagResponse() { + *this = ::std::move(from); + } + + inline CreateFlagResponse& operator=(const CreateFlagResponse& from) { + CopyFrom(from); + return *this; + } + inline CreateFlagResponse& operator=(CreateFlagResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateFlagResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CreateFlagResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateFlagResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + friend void swap(CreateFlagResponse& a, CreateFlagResponse& b) { + a.Swap(&b); + } + inline void Swap(CreateFlagResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateFlagResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateFlagResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CreateFlagResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const CreateFlagResponse& from) { + CreateFlagResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateFlagResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.CreateFlagResponse"; + } + protected: + explicit CreateFlagResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFlagFieldNumber = 1, + }; + // .oteldemo.Flag flag = 1; + bool has_flag() const; + void clear_flag() ; + const ::oteldemo::Flag& flag() const; + PROTOBUF_NODISCARD ::oteldemo::Flag* release_flag(); + ::oteldemo::Flag* mutable_flag(); + void set_allocated_flag(::oteldemo::Flag* value); + void unsafe_arena_set_allocated_flag(::oteldemo::Flag* value); + ::oteldemo::Flag* unsafe_arena_release_flag(); + + private: + const ::oteldemo::Flag& _internal_flag() const; + ::oteldemo::Flag* _internal_mutable_flag(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.CreateFlagResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::oteldemo::Flag* flag_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class UpdateFlagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.UpdateFlagRequest) */ { + public: + inline UpdateFlagRequest() : UpdateFlagRequest(nullptr) {} + ~UpdateFlagRequest() override; + template + explicit PROTOBUF_CONSTEXPR UpdateFlagRequest(::google::protobuf::internal::ConstantInitialized); + + UpdateFlagRequest(const UpdateFlagRequest& from); + UpdateFlagRequest(UpdateFlagRequest&& from) noexcept + : UpdateFlagRequest() { + *this = ::std::move(from); + } + + inline UpdateFlagRequest& operator=(const UpdateFlagRequest& from) { + CopyFrom(from); + return *this; + } + inline UpdateFlagRequest& operator=(UpdateFlagRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const UpdateFlagRequest& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateFlagRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateFlagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + friend void swap(UpdateFlagRequest& a, UpdateFlagRequest& b) { + a.Swap(&b); + } + inline void Swap(UpdateFlagRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UpdateFlagRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateFlagRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const UpdateFlagRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const UpdateFlagRequest& from) { + UpdateFlagRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateFlagRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.UpdateFlagRequest"; + } + protected: + explicit UpdateFlagRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kEnabledFieldNumber = 2, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // bool enabled = 2; + void clear_enabled() ; + bool enabled() const; + void set_enabled(bool value); + + private: + bool _internal_enabled() const; + void _internal_set_enabled(bool value); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.UpdateFlagRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 39, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr name_; + bool enabled_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class UpdateFlagResponse final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:oteldemo.UpdateFlagResponse) */ { + public: + inline UpdateFlagResponse() : UpdateFlagResponse(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR UpdateFlagResponse(::google::protobuf::internal::ConstantInitialized); + + UpdateFlagResponse(const UpdateFlagResponse& from); + UpdateFlagResponse(UpdateFlagResponse&& from) noexcept + : UpdateFlagResponse() { + *this = ::std::move(from); + } + + inline UpdateFlagResponse& operator=(const UpdateFlagResponse& from) { + CopyFrom(from); + return *this; + } + inline UpdateFlagResponse& operator=(UpdateFlagResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const UpdateFlagResponse& default_instance() { + return *internal_default_instance(); + } + static inline const UpdateFlagResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateFlagResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 45; + + friend void swap(UpdateFlagResponse& a, UpdateFlagResponse& b) { + a.Swap(&b); + } + inline void Swap(UpdateFlagResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UpdateFlagResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UpdateFlagResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const UpdateFlagResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const UpdateFlagResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.UpdateFlagResponse"; + } + protected: + explicit UpdateFlagResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:oteldemo.UpdateFlagResponse) + private: + class _Internal; + + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ListFlagsRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:oteldemo.ListFlagsRequest) */ { + public: + inline ListFlagsRequest() : ListFlagsRequest(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR ListFlagsRequest(::google::protobuf::internal::ConstantInitialized); + + ListFlagsRequest(const ListFlagsRequest& from); + ListFlagsRequest(ListFlagsRequest&& from) noexcept + : ListFlagsRequest() { + *this = ::std::move(from); + } + + inline ListFlagsRequest& operator=(const ListFlagsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListFlagsRequest& operator=(ListFlagsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListFlagsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListFlagsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListFlagsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 46; + + friend void swap(ListFlagsRequest& a, ListFlagsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListFlagsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListFlagsRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListFlagsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ListFlagsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ListFlagsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ListFlagsRequest"; + } + protected: + explicit ListFlagsRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:oteldemo.ListFlagsRequest) + private: + class _Internal; + + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class ListFlagsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.ListFlagsResponse) */ { + public: + inline ListFlagsResponse() : ListFlagsResponse(nullptr) {} + ~ListFlagsResponse() override; + template + explicit PROTOBUF_CONSTEXPR ListFlagsResponse(::google::protobuf::internal::ConstantInitialized); + + ListFlagsResponse(const ListFlagsResponse& from); + ListFlagsResponse(ListFlagsResponse&& from) noexcept + : ListFlagsResponse() { + *this = ::std::move(from); + } + + inline ListFlagsResponse& operator=(const ListFlagsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListFlagsResponse& operator=(ListFlagsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListFlagsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListFlagsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListFlagsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 47; + + friend void swap(ListFlagsResponse& a, ListFlagsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListFlagsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListFlagsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListFlagsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ListFlagsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ListFlagsResponse& from) { + ListFlagsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListFlagsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.ListFlagsResponse"; + } + protected: + explicit ListFlagsResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kFlagFieldNumber = 1, + }; + // repeated .oteldemo.Flag flag = 1; + int flag_size() const; + private: + int _internal_flag_size() const; + + public: + void clear_flag() ; + ::oteldemo::Flag* mutable_flag(int index); + ::google::protobuf::RepeatedPtrField< ::oteldemo::Flag >* + mutable_flag(); + private: + const ::google::protobuf::RepeatedPtrField<::oteldemo::Flag>& _internal_flag() const; + ::google::protobuf::RepeatedPtrField<::oteldemo::Flag>* _internal_mutable_flag(); + public: + const ::oteldemo::Flag& flag(int index) const; + ::oteldemo::Flag* add_flag(); + const ::google::protobuf::RepeatedPtrField< ::oteldemo::Flag >& + flag() const; + // @@protoc_insertion_point(class_scope:oteldemo.ListFlagsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::oteldemo::Flag > flag_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class DeleteFlagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:oteldemo.DeleteFlagRequest) */ { + public: + inline DeleteFlagRequest() : DeleteFlagRequest(nullptr) {} + ~DeleteFlagRequest() override; + template + explicit PROTOBUF_CONSTEXPR DeleteFlagRequest(::google::protobuf::internal::ConstantInitialized); + + DeleteFlagRequest(const DeleteFlagRequest& from); + DeleteFlagRequest(DeleteFlagRequest&& from) noexcept + : DeleteFlagRequest() { + *this = ::std::move(from); + } + + inline DeleteFlagRequest& operator=(const DeleteFlagRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteFlagRequest& operator=(DeleteFlagRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteFlagRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteFlagRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteFlagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 48; + + friend void swap(DeleteFlagRequest& a, DeleteFlagRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteFlagRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteFlagRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteFlagRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DeleteFlagRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const DeleteFlagRequest& from) { + DeleteFlagRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteFlagRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.DeleteFlagRequest"; + } + protected: + explicit DeleteFlagRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* ptr); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // @@protoc_insertion_point(class_scope:oteldemo.DeleteFlagRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 39, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_demo_2eproto; +};// ------------------------------------------------------------------- + +class DeleteFlagResponse final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:oteldemo.DeleteFlagResponse) */ { + public: + inline DeleteFlagResponse() : DeleteFlagResponse(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR DeleteFlagResponse(::google::protobuf::internal::ConstantInitialized); + + DeleteFlagResponse(const DeleteFlagResponse& from); + DeleteFlagResponse(DeleteFlagResponse&& from) noexcept + : DeleteFlagResponse() { + *this = ::std::move(from); + } + + inline DeleteFlagResponse& operator=(const DeleteFlagResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteFlagResponse& operator=(DeleteFlagResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteFlagResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteFlagResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteFlagResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 49; + + friend void swap(DeleteFlagResponse& a, DeleteFlagResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteFlagResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteFlagResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteFlagResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteFlagResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteFlagResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "oteldemo.DeleteFlagResponse"; + } + protected: + explicit DeleteFlagResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:oteldemo.DeleteFlagResponse) + private: + class _Internal; + + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_demo_2eproto; +}; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// CartItem + +// string product_id = 1; +inline void CartItem::clear_product_id() { + _impl_.product_id_.ClearToEmpty(); +} +inline const std::string& CartItem::product_id() const { + // @@protoc_insertion_point(field_get:oteldemo.CartItem.product_id) + return _internal_product_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CartItem::set_product_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.CartItem.product_id) +} +inline std::string* CartItem::mutable_product_id() { + std::string* _s = _internal_mutable_product_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.CartItem.product_id) + return _s; +} +inline const std::string& CartItem::_internal_product_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_id_.Get(); +} +inline void CartItem::_internal_set_product_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* CartItem::_internal_mutable_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.product_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* CartItem::release_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CartItem.product_id) + return _impl_.product_id_.Release(); +} +inline void CartItem::set_allocated_product_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.product_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.product_id_.IsDefault()) { + _impl_.product_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.CartItem.product_id) +} + +// int32 quantity = 2; +inline void CartItem::clear_quantity() { + _impl_.quantity_ = 0; +} +inline ::int32_t CartItem::quantity() const { + // @@protoc_insertion_point(field_get:oteldemo.CartItem.quantity) + return _internal_quantity(); +} +inline void CartItem::set_quantity(::int32_t value) { + _internal_set_quantity(value); + // @@protoc_insertion_point(field_set:oteldemo.CartItem.quantity) +} +inline ::int32_t CartItem::_internal_quantity() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.quantity_; +} +inline void CartItem::_internal_set_quantity(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.quantity_ = value; +} + +// ------------------------------------------------------------------- + +// AddItemRequest + +// string user_id = 1; +inline void AddItemRequest::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& AddItemRequest::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.AddItemRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void AddItemRequest::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.AddItemRequest.user_id) +} +inline std::string* AddItemRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.AddItemRequest.user_id) + return _s; +} +inline const std::string& AddItemRequest::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void AddItemRequest::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddItemRequest::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* AddItemRequest::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.AddItemRequest.user_id) + return _impl_.user_id_.Release(); +} +inline void AddItemRequest::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.AddItemRequest.user_id) +} + +// .oteldemo.CartItem item = 2; +inline bool AddItemRequest::has_item() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.item_ != nullptr); + return value; +} +inline void AddItemRequest::clear_item() { + if (_impl_.item_ != nullptr) _impl_.item_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::CartItem& AddItemRequest::_internal_item() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::CartItem* p = _impl_.item_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_CartItem_default_instance_); +} +inline const ::oteldemo::CartItem& AddItemRequest::item() const { + // @@protoc_insertion_point(field_get:oteldemo.AddItemRequest.item) + return _internal_item(); +} +inline void AddItemRequest::unsafe_arena_set_allocated_item(::oteldemo::CartItem* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.item_); + } + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.AddItemRequest.item) +} +inline ::oteldemo::CartItem* AddItemRequest::release_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::CartItem* released = _impl_.item_; + _impl_.item_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::CartItem* AddItemRequest::unsafe_arena_release_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.AddItemRequest.item) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::CartItem* temp = _impl_.item_; + _impl_.item_ = nullptr; + return temp; +} +inline ::oteldemo::CartItem* AddItemRequest::_internal_mutable_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.item_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::CartItem>(GetArenaForAllocation()); + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(p); + } + return _impl_.item_; +} +inline ::oteldemo::CartItem* AddItemRequest::mutable_item() { + ::oteldemo::CartItem* _msg = _internal_mutable_item(); + // @@protoc_insertion_point(field_mutable:oteldemo.AddItemRequest.item) + return _msg; +} +inline void AddItemRequest::set_allocated_item(::oteldemo::CartItem* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::CartItem*>(_impl_.item_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::CartItem*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.AddItemRequest.item) +} + +// ------------------------------------------------------------------- + +// EmptyCartRequest + +// string user_id = 1; +inline void EmptyCartRequest::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& EmptyCartRequest::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.EmptyCartRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void EmptyCartRequest::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.EmptyCartRequest.user_id) +} +inline std::string* EmptyCartRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.EmptyCartRequest.user_id) + return _s; +} +inline const std::string& EmptyCartRequest::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void EmptyCartRequest::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* EmptyCartRequest::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* EmptyCartRequest::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.EmptyCartRequest.user_id) + return _impl_.user_id_.Release(); +} +inline void EmptyCartRequest::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.EmptyCartRequest.user_id) +} + +// ------------------------------------------------------------------- + +// GetCartRequest + +// string user_id = 1; +inline void GetCartRequest::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& GetCartRequest::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.GetCartRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetCartRequest::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetCartRequest.user_id) +} +inline std::string* GetCartRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetCartRequest.user_id) + return _s; +} +inline const std::string& GetCartRequest::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void GetCartRequest::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetCartRequest::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetCartRequest::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetCartRequest.user_id) + return _impl_.user_id_.Release(); +} +inline void GetCartRequest::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetCartRequest.user_id) +} + +// ------------------------------------------------------------------- + +// Cart + +// string user_id = 1; +inline void Cart::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& Cart::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.Cart.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Cart::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Cart.user_id) +} +inline std::string* Cart::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.Cart.user_id) + return _s; +} +inline const std::string& Cart::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void Cart::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Cart::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* Cart::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Cart.user_id) + return _impl_.user_id_.Release(); +} +inline void Cart::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Cart.user_id) +} + +// repeated .oteldemo.CartItem items = 2; +inline int Cart::_internal_items_size() const { + return _internal_items().size(); +} +inline int Cart::items_size() const { + return _internal_items_size(); +} +inline void Cart::clear_items() { + _internal_mutable_items()->Clear(); +} +inline ::oteldemo::CartItem* Cart::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.Cart.items) + return _internal_mutable_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* +Cart::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.Cart.items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_items(); +} +inline const ::oteldemo::CartItem& Cart::items(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.Cart.items) + return _internal_items().Get(index); +} +inline ::oteldemo::CartItem* Cart::add_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::CartItem* _add = _internal_mutable_items()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.Cart.items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& +Cart::items() const { + // @@protoc_insertion_point(field_list:oteldemo.Cart.items) + return _internal_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& +Cart::_internal_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.items_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* +Cart::_internal_mutable_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.items_; +} + +// ------------------------------------------------------------------- + +// Empty + +// ------------------------------------------------------------------- + +// ListRecommendationsRequest + +// string user_id = 1; +inline void ListRecommendationsRequest::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& ListRecommendationsRequest::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.ListRecommendationsRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ListRecommendationsRequest::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ListRecommendationsRequest.user_id) +} +inline std::string* ListRecommendationsRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.ListRecommendationsRequest.user_id) + return _s; +} +inline const std::string& ListRecommendationsRequest::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void ListRecommendationsRequest::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ListRecommendationsRequest::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* ListRecommendationsRequest::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ListRecommendationsRequest.user_id) + return _impl_.user_id_.Release(); +} +inline void ListRecommendationsRequest::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ListRecommendationsRequest.user_id) +} + +// repeated string product_ids = 2; +inline int ListRecommendationsRequest::_internal_product_ids_size() const { + return _internal_product_ids().size(); +} +inline int ListRecommendationsRequest::product_ids_size() const { + return _internal_product_ids_size(); +} +inline void ListRecommendationsRequest::clear_product_ids() { + _internal_mutable_product_ids()->Clear(); +} +inline std::string* ListRecommendationsRequest::add_product_ids() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_product_ids()->Add(); + // @@protoc_insertion_point(field_add_mutable:oteldemo.ListRecommendationsRequest.product_ids) + return _s; +} +inline const std::string& ListRecommendationsRequest::product_ids(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.ListRecommendationsRequest.product_ids) + return _internal_product_ids().Get(index); +} +inline std::string* ListRecommendationsRequest::mutable_product_ids(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.ListRecommendationsRequest.product_ids) + return _internal_mutable_product_ids()->Mutable(index); +} +inline void ListRecommendationsRequest::set_product_ids(int index, const std::string& value) { + _internal_mutable_product_ids()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::set_product_ids(int index, std::string&& value) { + _internal_mutable_product_ids()->Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::set_product_ids(int index, const char* value) { + ABSL_DCHECK(value != nullptr); + _internal_mutable_product_ids()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::set_product_ids(int index, const char* value, + std::size_t size) { + _internal_mutable_product_ids()->Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::set_product_ids(int index, absl::string_view value) { + _internal_mutable_product_ids()->Mutable(index)->assign(value.data(), + value.size()); + // @@protoc_insertion_point(field_set_string_piece:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::add_product_ids(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value); + // @@protoc_insertion_point(field_add:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::add_product_ids(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add(std::move(value)); + // @@protoc_insertion_point(field_add:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::add_product_ids(const char* value) { + ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value); + // @@protoc_insertion_point(field_add_char:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::add_product_ids(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:oteldemo.ListRecommendationsRequest.product_ids) +} +inline void ListRecommendationsRequest::add_product_ids(absl::string_view value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:oteldemo.ListRecommendationsRequest.product_ids) +} +inline const ::google::protobuf::RepeatedPtrField& +ListRecommendationsRequest::product_ids() const { + // @@protoc_insertion_point(field_list:oteldemo.ListRecommendationsRequest.product_ids) + return _internal_product_ids(); +} +inline ::google::protobuf::RepeatedPtrField* ListRecommendationsRequest::mutable_product_ids() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.ListRecommendationsRequest.product_ids) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_product_ids(); +} +inline const ::google::protobuf::RepeatedPtrField& +ListRecommendationsRequest::_internal_product_ids() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_ids_; +} +inline ::google::protobuf::RepeatedPtrField* +ListRecommendationsRequest::_internal_mutable_product_ids() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.product_ids_; +} + +// ------------------------------------------------------------------- + +// ListRecommendationsResponse + +// repeated string product_ids = 1; +inline int ListRecommendationsResponse::_internal_product_ids_size() const { + return _internal_product_ids().size(); +} +inline int ListRecommendationsResponse::product_ids_size() const { + return _internal_product_ids_size(); +} +inline void ListRecommendationsResponse::clear_product_ids() { + _internal_mutable_product_ids()->Clear(); +} +inline std::string* ListRecommendationsResponse::add_product_ids() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_product_ids()->Add(); + // @@protoc_insertion_point(field_add_mutable:oteldemo.ListRecommendationsResponse.product_ids) + return _s; +} +inline const std::string& ListRecommendationsResponse::product_ids(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.ListRecommendationsResponse.product_ids) + return _internal_product_ids().Get(index); +} +inline std::string* ListRecommendationsResponse::mutable_product_ids(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.ListRecommendationsResponse.product_ids) + return _internal_mutable_product_ids()->Mutable(index); +} +inline void ListRecommendationsResponse::set_product_ids(int index, const std::string& value) { + _internal_mutable_product_ids()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::set_product_ids(int index, std::string&& value) { + _internal_mutable_product_ids()->Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::set_product_ids(int index, const char* value) { + ABSL_DCHECK(value != nullptr); + _internal_mutable_product_ids()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::set_product_ids(int index, const char* value, + std::size_t size) { + _internal_mutable_product_ids()->Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::set_product_ids(int index, absl::string_view value) { + _internal_mutable_product_ids()->Mutable(index)->assign(value.data(), + value.size()); + // @@protoc_insertion_point(field_set_string_piece:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::add_product_ids(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value); + // @@protoc_insertion_point(field_add:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::add_product_ids(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add(std::move(value)); + // @@protoc_insertion_point(field_add:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::add_product_ids(const char* value) { + ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value); + // @@protoc_insertion_point(field_add_char:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::add_product_ids(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:oteldemo.ListRecommendationsResponse.product_ids) +} +inline void ListRecommendationsResponse::add_product_ids(absl::string_view value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_product_ids()->Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:oteldemo.ListRecommendationsResponse.product_ids) +} +inline const ::google::protobuf::RepeatedPtrField& +ListRecommendationsResponse::product_ids() const { + // @@protoc_insertion_point(field_list:oteldemo.ListRecommendationsResponse.product_ids) + return _internal_product_ids(); +} +inline ::google::protobuf::RepeatedPtrField* ListRecommendationsResponse::mutable_product_ids() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.ListRecommendationsResponse.product_ids) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_product_ids(); +} +inline const ::google::protobuf::RepeatedPtrField& +ListRecommendationsResponse::_internal_product_ids() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_ids_; +} +inline ::google::protobuf::RepeatedPtrField* +ListRecommendationsResponse::_internal_mutable_product_ids() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.product_ids_; +} + +// ------------------------------------------------------------------- + +// Product + +// string id = 1; +inline void Product::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& Product::id() const { + // @@protoc_insertion_point(field_get:oteldemo.Product.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Product::set_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Product.id) +} +inline std::string* Product::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.Product.id) + return _s; +} +inline const std::string& Product::_internal_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.id_.Get(); +} +inline void Product::_internal_set_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* Product::_internal_mutable_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.id_.Mutable( GetArenaForAllocation()); +} +inline std::string* Product::release_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Product.id) + return _impl_.id_.Release(); +} +inline void Product::set_allocated_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Product.id) +} + +// string name = 2; +inline void Product::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Product::name() const { + // @@protoc_insertion_point(field_get:oteldemo.Product.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Product::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Product.name) +} +inline std::string* Product::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.Product.name) + return _s; +} +inline const std::string& Product::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void Product::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Product::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* Product::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Product.name) + return _impl_.name_.Release(); +} +inline void Product::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Product.name) +} + +// string description = 3; +inline void Product::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& Product::description() const { + // @@protoc_insertion_point(field_get:oteldemo.Product.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Product::set_description(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Product.description) +} +inline std::string* Product::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:oteldemo.Product.description) + return _s; +} +inline const std::string& Product::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.description_.Get(); +} +inline void Product::_internal_set_description(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* Product::_internal_mutable_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.description_.Mutable( GetArenaForAllocation()); +} +inline std::string* Product::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Product.description) + return _impl_.description_.Release(); +} +inline void Product::set_allocated_description(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Product.description) +} + +// string picture = 4; +inline void Product::clear_picture() { + _impl_.picture_.ClearToEmpty(); +} +inline const std::string& Product::picture() const { + // @@protoc_insertion_point(field_get:oteldemo.Product.picture) + return _internal_picture(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Product::set_picture(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.picture_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Product.picture) +} +inline std::string* Product::mutable_picture() { + std::string* _s = _internal_mutable_picture(); + // @@protoc_insertion_point(field_mutable:oteldemo.Product.picture) + return _s; +} +inline const std::string& Product::_internal_picture() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.picture_.Get(); +} +inline void Product::_internal_set_picture(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.picture_.Set(value, GetArenaForAllocation()); +} +inline std::string* Product::_internal_mutable_picture() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.picture_.Mutable( GetArenaForAllocation()); +} +inline std::string* Product::release_picture() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Product.picture) + return _impl_.picture_.Release(); +} +inline void Product::set_allocated_picture(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.picture_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.picture_.IsDefault()) { + _impl_.picture_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Product.picture) +} + +// .oteldemo.Money price_usd = 5; +inline bool Product::has_price_usd() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.price_usd_ != nullptr); + return value; +} +inline void Product::clear_price_usd() { + if (_impl_.price_usd_ != nullptr) _impl_.price_usd_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Money& Product::_internal_price_usd() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.price_usd_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& Product::price_usd() const { + // @@protoc_insertion_point(field_get:oteldemo.Product.price_usd) + return _internal_price_usd(); +} +inline void Product::unsafe_arena_set_allocated_price_usd(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.price_usd_); + } + _impl_.price_usd_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.Product.price_usd) +} +inline ::oteldemo::Money* Product::release_price_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* released = _impl_.price_usd_; + _impl_.price_usd_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* Product::unsafe_arena_release_price_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Product.price_usd) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* temp = _impl_.price_usd_; + _impl_.price_usd_ = nullptr; + return temp; +} +inline ::oteldemo::Money* Product::_internal_mutable_price_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.price_usd_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.price_usd_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.price_usd_; +} +inline ::oteldemo::Money* Product::mutable_price_usd() { + ::oteldemo::Money* _msg = _internal_mutable_price_usd(); + // @@protoc_insertion_point(field_mutable:oteldemo.Product.price_usd) + return _msg; +} +inline void Product::set_allocated_price_usd(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.price_usd_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.price_usd_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.Product.price_usd) +} + +// repeated string categories = 6; +inline int Product::_internal_categories_size() const { + return _internal_categories().size(); +} +inline int Product::categories_size() const { + return _internal_categories_size(); +} +inline void Product::clear_categories() { + _internal_mutable_categories()->Clear(); +} +inline std::string* Product::add_categories() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_categories()->Add(); + // @@protoc_insertion_point(field_add_mutable:oteldemo.Product.categories) + return _s; +} +inline const std::string& Product::categories(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.Product.categories) + return _internal_categories().Get(index); +} +inline std::string* Product::mutable_categories(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.Product.categories) + return _internal_mutable_categories()->Mutable(index); +} +inline void Product::set_categories(int index, const std::string& value) { + _internal_mutable_categories()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:oteldemo.Product.categories) +} +inline void Product::set_categories(int index, std::string&& value) { + _internal_mutable_categories()->Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:oteldemo.Product.categories) +} +inline void Product::set_categories(int index, const char* value) { + ABSL_DCHECK(value != nullptr); + _internal_mutable_categories()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:oteldemo.Product.categories) +} +inline void Product::set_categories(int index, const char* value, + std::size_t size) { + _internal_mutable_categories()->Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:oteldemo.Product.categories) +} +inline void Product::set_categories(int index, absl::string_view value) { + _internal_mutable_categories()->Mutable(index)->assign(value.data(), + value.size()); + // @@protoc_insertion_point(field_set_string_piece:oteldemo.Product.categories) +} +inline void Product::add_categories(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_categories()->Add()->assign(value); + // @@protoc_insertion_point(field_add:oteldemo.Product.categories) +} +inline void Product::add_categories(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_categories()->Add(std::move(value)); + // @@protoc_insertion_point(field_add:oteldemo.Product.categories) +} +inline void Product::add_categories(const char* value) { + ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_categories()->Add()->assign(value); + // @@protoc_insertion_point(field_add_char:oteldemo.Product.categories) +} +inline void Product::add_categories(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_categories()->Add()->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:oteldemo.Product.categories) +} +inline void Product::add_categories(absl::string_view value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_categories()->Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:oteldemo.Product.categories) +} +inline const ::google::protobuf::RepeatedPtrField& +Product::categories() const { + // @@protoc_insertion_point(field_list:oteldemo.Product.categories) + return _internal_categories(); +} +inline ::google::protobuf::RepeatedPtrField* Product::mutable_categories() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.Product.categories) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_categories(); +} +inline const ::google::protobuf::RepeatedPtrField& +Product::_internal_categories() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.categories_; +} +inline ::google::protobuf::RepeatedPtrField* +Product::_internal_mutable_categories() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.categories_; +} + +// ------------------------------------------------------------------- + +// ListProductsResponse + +// repeated .oteldemo.Product products = 1; +inline int ListProductsResponse::_internal_products_size() const { + return _internal_products().size(); +} +inline int ListProductsResponse::products_size() const { + return _internal_products_size(); +} +inline void ListProductsResponse::clear_products() { + _internal_mutable_products()->Clear(); +} +inline ::oteldemo::Product* ListProductsResponse::mutable_products(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.ListProductsResponse.products) + return _internal_mutable_products()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >* +ListProductsResponse::mutable_products() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.ListProductsResponse.products) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_products(); +} +inline const ::oteldemo::Product& ListProductsResponse::products(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.ListProductsResponse.products) + return _internal_products().Get(index); +} +inline ::oteldemo::Product* ListProductsResponse::add_products() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::Product* _add = _internal_mutable_products()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.ListProductsResponse.products) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >& +ListProductsResponse::products() const { + // @@protoc_insertion_point(field_list:oteldemo.ListProductsResponse.products) + return _internal_products(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::Product>& +ListProductsResponse::_internal_products() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.products_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::Product>* +ListProductsResponse::_internal_mutable_products() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.products_; +} + +// ------------------------------------------------------------------- + +// GetProductRequest + +// string id = 1; +inline void GetProductRequest::clear_id() { + _impl_.id_.ClearToEmpty(); +} +inline const std::string& GetProductRequest::id() const { + // @@protoc_insertion_point(field_get:oteldemo.GetProductRequest.id) + return _internal_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetProductRequest::set_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetProductRequest.id) +} +inline std::string* GetProductRequest::mutable_id() { + std::string* _s = _internal_mutable_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetProductRequest.id) + return _s; +} +inline const std::string& GetProductRequest::_internal_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.id_.Get(); +} +inline void GetProductRequest::_internal_set_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetProductRequest::_internal_mutable_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.id_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetProductRequest::release_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetProductRequest.id) + return _impl_.id_.Release(); +} +inline void GetProductRequest::set_allocated_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.id_.IsDefault()) { + _impl_.id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetProductRequest.id) +} + +// ------------------------------------------------------------------- + +// SearchProductsRequest + +// string query = 1; +inline void SearchProductsRequest::clear_query() { + _impl_.query_.ClearToEmpty(); +} +inline const std::string& SearchProductsRequest::query() const { + // @@protoc_insertion_point(field_get:oteldemo.SearchProductsRequest.query) + return _internal_query(); +} +template +inline PROTOBUF_ALWAYS_INLINE void SearchProductsRequest::set_query(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.query_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.SearchProductsRequest.query) +} +inline std::string* SearchProductsRequest::mutable_query() { + std::string* _s = _internal_mutable_query(); + // @@protoc_insertion_point(field_mutable:oteldemo.SearchProductsRequest.query) + return _s; +} +inline const std::string& SearchProductsRequest::_internal_query() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.query_.Get(); +} +inline void SearchProductsRequest::_internal_set_query(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.query_.Set(value, GetArenaForAllocation()); +} +inline std::string* SearchProductsRequest::_internal_mutable_query() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.query_.Mutable( GetArenaForAllocation()); +} +inline std::string* SearchProductsRequest::release_query() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.SearchProductsRequest.query) + return _impl_.query_.Release(); +} +inline void SearchProductsRequest::set_allocated_query(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.query_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.query_.IsDefault()) { + _impl_.query_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.SearchProductsRequest.query) +} + +// ------------------------------------------------------------------- + +// SearchProductsResponse + +// repeated .oteldemo.Product results = 1; +inline int SearchProductsResponse::_internal_results_size() const { + return _internal_results().size(); +} +inline int SearchProductsResponse::results_size() const { + return _internal_results_size(); +} +inline void SearchProductsResponse::clear_results() { + _internal_mutable_results()->Clear(); +} +inline ::oteldemo::Product* SearchProductsResponse::mutable_results(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.SearchProductsResponse.results) + return _internal_mutable_results()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >* +SearchProductsResponse::mutable_results() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.SearchProductsResponse.results) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_results(); +} +inline const ::oteldemo::Product& SearchProductsResponse::results(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.SearchProductsResponse.results) + return _internal_results().Get(index); +} +inline ::oteldemo::Product* SearchProductsResponse::add_results() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::Product* _add = _internal_mutable_results()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.SearchProductsResponse.results) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::Product >& +SearchProductsResponse::results() const { + // @@protoc_insertion_point(field_list:oteldemo.SearchProductsResponse.results) + return _internal_results(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::Product>& +SearchProductsResponse::_internal_results() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.results_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::Product>* +SearchProductsResponse::_internal_mutable_results() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.results_; +} + +// ------------------------------------------------------------------- + +// ProductReview + +// string username = 1; +inline void ProductReview::clear_username() { + _impl_.username_.ClearToEmpty(); +} +inline const std::string& ProductReview::username() const { + // @@protoc_insertion_point(field_get:oteldemo.ProductReview.username) + return _internal_username(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ProductReview::set_username(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.username_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ProductReview.username) +} +inline std::string* ProductReview::mutable_username() { + std::string* _s = _internal_mutable_username(); + // @@protoc_insertion_point(field_mutable:oteldemo.ProductReview.username) + return _s; +} +inline const std::string& ProductReview::_internal_username() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.username_.Get(); +} +inline void ProductReview::_internal_set_username(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.username_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProductReview::_internal_mutable_username() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.username_.Mutable( GetArenaForAllocation()); +} +inline std::string* ProductReview::release_username() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ProductReview.username) + return _impl_.username_.Release(); +} +inline void ProductReview::set_allocated_username(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.username_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.username_.IsDefault()) { + _impl_.username_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ProductReview.username) +} + +// string description = 2; +inline void ProductReview::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& ProductReview::description() const { + // @@protoc_insertion_point(field_get:oteldemo.ProductReview.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ProductReview::set_description(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ProductReview.description) +} +inline std::string* ProductReview::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:oteldemo.ProductReview.description) + return _s; +} +inline const std::string& ProductReview::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.description_.Get(); +} +inline void ProductReview::_internal_set_description(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProductReview::_internal_mutable_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.description_.Mutable( GetArenaForAllocation()); +} +inline std::string* ProductReview::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ProductReview.description) + return _impl_.description_.Release(); +} +inline void ProductReview::set_allocated_description(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ProductReview.description) +} + +// string score = 3; +inline void ProductReview::clear_score() { + _impl_.score_.ClearToEmpty(); +} +inline const std::string& ProductReview::score() const { + // @@protoc_insertion_point(field_get:oteldemo.ProductReview.score) + return _internal_score(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ProductReview::set_score(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.score_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ProductReview.score) +} +inline std::string* ProductReview::mutable_score() { + std::string* _s = _internal_mutable_score(); + // @@protoc_insertion_point(field_mutable:oteldemo.ProductReview.score) + return _s; +} +inline const std::string& ProductReview::_internal_score() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.score_.Get(); +} +inline void ProductReview::_internal_set_score(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.score_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProductReview::_internal_mutable_score() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.score_.Mutable( GetArenaForAllocation()); +} +inline std::string* ProductReview::release_score() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ProductReview.score) + return _impl_.score_.Release(); +} +inline void ProductReview::set_allocated_score(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.score_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.score_.IsDefault()) { + _impl_.score_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ProductReview.score) +} + +// ------------------------------------------------------------------- + +// GetProductReviewsRequest + +// string product_id = 1; +inline void GetProductReviewsRequest::clear_product_id() { + _impl_.product_id_.ClearToEmpty(); +} +inline const std::string& GetProductReviewsRequest::product_id() const { + // @@protoc_insertion_point(field_get:oteldemo.GetProductReviewsRequest.product_id) + return _internal_product_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetProductReviewsRequest::set_product_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetProductReviewsRequest.product_id) +} +inline std::string* GetProductReviewsRequest::mutable_product_id() { + std::string* _s = _internal_mutable_product_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetProductReviewsRequest.product_id) + return _s; +} +inline const std::string& GetProductReviewsRequest::_internal_product_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_id_.Get(); +} +inline void GetProductReviewsRequest::_internal_set_product_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetProductReviewsRequest::_internal_mutable_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.product_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetProductReviewsRequest::release_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetProductReviewsRequest.product_id) + return _impl_.product_id_.Release(); +} +inline void GetProductReviewsRequest::set_allocated_product_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.product_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.product_id_.IsDefault()) { + _impl_.product_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetProductReviewsRequest.product_id) +} + +// ------------------------------------------------------------------- + +// GetProductReviewsResponse + +// repeated .oteldemo.ProductReview product_reviews = 1; +inline int GetProductReviewsResponse::_internal_product_reviews_size() const { + return _internal_product_reviews().size(); +} +inline int GetProductReviewsResponse::product_reviews_size() const { + return _internal_product_reviews_size(); +} +inline void GetProductReviewsResponse::clear_product_reviews() { + _internal_mutable_product_reviews()->Clear(); +} +inline ::oteldemo::ProductReview* GetProductReviewsResponse::mutable_product_reviews(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.GetProductReviewsResponse.product_reviews) + return _internal_mutable_product_reviews()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::ProductReview >* +GetProductReviewsResponse::mutable_product_reviews() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.GetProductReviewsResponse.product_reviews) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_product_reviews(); +} +inline const ::oteldemo::ProductReview& GetProductReviewsResponse::product_reviews(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.GetProductReviewsResponse.product_reviews) + return _internal_product_reviews().Get(index); +} +inline ::oteldemo::ProductReview* GetProductReviewsResponse::add_product_reviews() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::ProductReview* _add = _internal_mutable_product_reviews()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.GetProductReviewsResponse.product_reviews) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::ProductReview >& +GetProductReviewsResponse::product_reviews() const { + // @@protoc_insertion_point(field_list:oteldemo.GetProductReviewsResponse.product_reviews) + return _internal_product_reviews(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::ProductReview>& +GetProductReviewsResponse::_internal_product_reviews() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_reviews_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::ProductReview>* +GetProductReviewsResponse::_internal_mutable_product_reviews() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.product_reviews_; +} + +// ------------------------------------------------------------------- + +// GetAverageProductReviewScoreRequest + +// string product_id = 1; +inline void GetAverageProductReviewScoreRequest::clear_product_id() { + _impl_.product_id_.ClearToEmpty(); +} +inline const std::string& GetAverageProductReviewScoreRequest::product_id() const { + // @@protoc_insertion_point(field_get:oteldemo.GetAverageProductReviewScoreRequest.product_id) + return _internal_product_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetAverageProductReviewScoreRequest::set_product_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetAverageProductReviewScoreRequest.product_id) +} +inline std::string* GetAverageProductReviewScoreRequest::mutable_product_id() { + std::string* _s = _internal_mutable_product_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetAverageProductReviewScoreRequest.product_id) + return _s; +} +inline const std::string& GetAverageProductReviewScoreRequest::_internal_product_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_id_.Get(); +} +inline void GetAverageProductReviewScoreRequest::_internal_set_product_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetAverageProductReviewScoreRequest::_internal_mutable_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.product_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetAverageProductReviewScoreRequest::release_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetAverageProductReviewScoreRequest.product_id) + return _impl_.product_id_.Release(); +} +inline void GetAverageProductReviewScoreRequest::set_allocated_product_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.product_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.product_id_.IsDefault()) { + _impl_.product_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetAverageProductReviewScoreRequest.product_id) +} + +// ------------------------------------------------------------------- + +// GetAverageProductReviewScoreResponse + +// string average_score = 1; +inline void GetAverageProductReviewScoreResponse::clear_average_score() { + _impl_.average_score_.ClearToEmpty(); +} +inline const std::string& GetAverageProductReviewScoreResponse::average_score() const { + // @@protoc_insertion_point(field_get:oteldemo.GetAverageProductReviewScoreResponse.average_score) + return _internal_average_score(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetAverageProductReviewScoreResponse::set_average_score(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.average_score_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetAverageProductReviewScoreResponse.average_score) +} +inline std::string* GetAverageProductReviewScoreResponse::mutable_average_score() { + std::string* _s = _internal_mutable_average_score(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetAverageProductReviewScoreResponse.average_score) + return _s; +} +inline const std::string& GetAverageProductReviewScoreResponse::_internal_average_score() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.average_score_.Get(); +} +inline void GetAverageProductReviewScoreResponse::_internal_set_average_score(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.average_score_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetAverageProductReviewScoreResponse::_internal_mutable_average_score() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.average_score_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetAverageProductReviewScoreResponse::release_average_score() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetAverageProductReviewScoreResponse.average_score) + return _impl_.average_score_.Release(); +} +inline void GetAverageProductReviewScoreResponse::set_allocated_average_score(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.average_score_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.average_score_.IsDefault()) { + _impl_.average_score_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetAverageProductReviewScoreResponse.average_score) +} + +// ------------------------------------------------------------------- + +// AskProductAIAssistantRequest + +// string product_id = 1; +inline void AskProductAIAssistantRequest::clear_product_id() { + _impl_.product_id_.ClearToEmpty(); +} +inline const std::string& AskProductAIAssistantRequest::product_id() const { + // @@protoc_insertion_point(field_get:oteldemo.AskProductAIAssistantRequest.product_id) + return _internal_product_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void AskProductAIAssistantRequest::set_product_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.AskProductAIAssistantRequest.product_id) +} +inline std::string* AskProductAIAssistantRequest::mutable_product_id() { + std::string* _s = _internal_mutable_product_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.AskProductAIAssistantRequest.product_id) + return _s; +} +inline const std::string& AskProductAIAssistantRequest::_internal_product_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.product_id_.Get(); +} +inline void AskProductAIAssistantRequest::_internal_set_product_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.product_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantRequest::_internal_mutable_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.product_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantRequest::release_product_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.AskProductAIAssistantRequest.product_id) + return _impl_.product_id_.Release(); +} +inline void AskProductAIAssistantRequest::set_allocated_product_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.product_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.product_id_.IsDefault()) { + _impl_.product_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.AskProductAIAssistantRequest.product_id) +} + +// string question = 2; +inline void AskProductAIAssistantRequest::clear_question() { + _impl_.question_.ClearToEmpty(); +} +inline const std::string& AskProductAIAssistantRequest::question() const { + // @@protoc_insertion_point(field_get:oteldemo.AskProductAIAssistantRequest.question) + return _internal_question(); +} +template +inline PROTOBUF_ALWAYS_INLINE void AskProductAIAssistantRequest::set_question(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.question_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.AskProductAIAssistantRequest.question) +} +inline std::string* AskProductAIAssistantRequest::mutable_question() { + std::string* _s = _internal_mutable_question(); + // @@protoc_insertion_point(field_mutable:oteldemo.AskProductAIAssistantRequest.question) + return _s; +} +inline const std::string& AskProductAIAssistantRequest::_internal_question() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.question_.Get(); +} +inline void AskProductAIAssistantRequest::_internal_set_question(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.question_.Set(value, GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantRequest::_internal_mutable_question() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.question_.Mutable( GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantRequest::release_question() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.AskProductAIAssistantRequest.question) + return _impl_.question_.Release(); +} +inline void AskProductAIAssistantRequest::set_allocated_question(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.question_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.question_.IsDefault()) { + _impl_.question_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.AskProductAIAssistantRequest.question) +} + +// ------------------------------------------------------------------- + +// AskProductAIAssistantResponse + +// string response = 1; +inline void AskProductAIAssistantResponse::clear_response() { + _impl_.response_.ClearToEmpty(); +} +inline const std::string& AskProductAIAssistantResponse::response() const { + // @@protoc_insertion_point(field_get:oteldemo.AskProductAIAssistantResponse.response) + return _internal_response(); +} +template +inline PROTOBUF_ALWAYS_INLINE void AskProductAIAssistantResponse::set_response(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.response_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.AskProductAIAssistantResponse.response) +} +inline std::string* AskProductAIAssistantResponse::mutable_response() { + std::string* _s = _internal_mutable_response(); + // @@protoc_insertion_point(field_mutable:oteldemo.AskProductAIAssistantResponse.response) + return _s; +} +inline const std::string& AskProductAIAssistantResponse::_internal_response() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.response_.Get(); +} +inline void AskProductAIAssistantResponse::_internal_set_response(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.response_.Set(value, GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantResponse::_internal_mutable_response() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.response_.Mutable( GetArenaForAllocation()); +} +inline std::string* AskProductAIAssistantResponse::release_response() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.AskProductAIAssistantResponse.response) + return _impl_.response_.Release(); +} +inline void AskProductAIAssistantResponse::set_allocated_response(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.response_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.response_.IsDefault()) { + _impl_.response_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.AskProductAIAssistantResponse.response) +} + +// ------------------------------------------------------------------- + +// GetQuoteRequest + +// .oteldemo.Address address = 1; +inline bool GetQuoteRequest::has_address() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.address_ != nullptr); + return value; +} +inline void GetQuoteRequest::clear_address() { + if (_impl_.address_ != nullptr) _impl_.address_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Address& GetQuoteRequest::_internal_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Address* p = _impl_.address_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Address_default_instance_); +} +inline const ::oteldemo::Address& GetQuoteRequest::address() const { + // @@protoc_insertion_point(field_get:oteldemo.GetQuoteRequest.address) + return _internal_address(); +} +inline void GetQuoteRequest::unsafe_arena_set_allocated_address(::oteldemo::Address* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.address_); + } + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.GetQuoteRequest.address) +} +inline ::oteldemo::Address* GetQuoteRequest::release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* released = _impl_.address_; + _impl_.address_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Address* GetQuoteRequest::unsafe_arena_release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetQuoteRequest.address) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* temp = _impl_.address_; + _impl_.address_ = nullptr; + return temp; +} +inline ::oteldemo::Address* GetQuoteRequest::_internal_mutable_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.address_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Address>(GetArenaForAllocation()); + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(p); + } + return _impl_.address_; +} +inline ::oteldemo::Address* GetQuoteRequest::mutable_address() { + ::oteldemo::Address* _msg = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetQuoteRequest.address) + return _msg; +} +inline void GetQuoteRequest::set_allocated_address(::oteldemo::Address* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Address*>(_impl_.address_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Address*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetQuoteRequest.address) +} + +// repeated .oteldemo.CartItem items = 2; +inline int GetQuoteRequest::_internal_items_size() const { + return _internal_items().size(); +} +inline int GetQuoteRequest::items_size() const { + return _internal_items_size(); +} +inline void GetQuoteRequest::clear_items() { + _internal_mutable_items()->Clear(); +} +inline ::oteldemo::CartItem* GetQuoteRequest::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.GetQuoteRequest.items) + return _internal_mutable_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* +GetQuoteRequest::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.GetQuoteRequest.items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_items(); +} +inline const ::oteldemo::CartItem& GetQuoteRequest::items(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.GetQuoteRequest.items) + return _internal_items().Get(index); +} +inline ::oteldemo::CartItem* GetQuoteRequest::add_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::CartItem* _add = _internal_mutable_items()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.GetQuoteRequest.items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& +GetQuoteRequest::items() const { + // @@protoc_insertion_point(field_list:oteldemo.GetQuoteRequest.items) + return _internal_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& +GetQuoteRequest::_internal_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.items_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* +GetQuoteRequest::_internal_mutable_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.items_; +} + +// ------------------------------------------------------------------- + +// GetQuoteResponse + +// .oteldemo.Money cost_usd = 1; +inline bool GetQuoteResponse::has_cost_usd() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.cost_usd_ != nullptr); + return value; +} +inline void GetQuoteResponse::clear_cost_usd() { + if (_impl_.cost_usd_ != nullptr) _impl_.cost_usd_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Money& GetQuoteResponse::_internal_cost_usd() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.cost_usd_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& GetQuoteResponse::cost_usd() const { + // @@protoc_insertion_point(field_get:oteldemo.GetQuoteResponse.cost_usd) + return _internal_cost_usd(); +} +inline void GetQuoteResponse::unsafe_arena_set_allocated_cost_usd(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cost_usd_); + } + _impl_.cost_usd_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.GetQuoteResponse.cost_usd) +} +inline ::oteldemo::Money* GetQuoteResponse::release_cost_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* released = _impl_.cost_usd_; + _impl_.cost_usd_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* GetQuoteResponse::unsafe_arena_release_cost_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetQuoteResponse.cost_usd) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* temp = _impl_.cost_usd_; + _impl_.cost_usd_ = nullptr; + return temp; +} +inline ::oteldemo::Money* GetQuoteResponse::_internal_mutable_cost_usd() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.cost_usd_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.cost_usd_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.cost_usd_; +} +inline ::oteldemo::Money* GetQuoteResponse::mutable_cost_usd() { + ::oteldemo::Money* _msg = _internal_mutable_cost_usd(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetQuoteResponse.cost_usd) + return _msg; +} +inline void GetQuoteResponse::set_allocated_cost_usd(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.cost_usd_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.cost_usd_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetQuoteResponse.cost_usd) +} + +// ------------------------------------------------------------------- + +// ShipOrderRequest + +// .oteldemo.Address address = 1; +inline bool ShipOrderRequest::has_address() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.address_ != nullptr); + return value; +} +inline void ShipOrderRequest::clear_address() { + if (_impl_.address_ != nullptr) _impl_.address_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Address& ShipOrderRequest::_internal_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Address* p = _impl_.address_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Address_default_instance_); +} +inline const ::oteldemo::Address& ShipOrderRequest::address() const { + // @@protoc_insertion_point(field_get:oteldemo.ShipOrderRequest.address) + return _internal_address(); +} +inline void ShipOrderRequest::unsafe_arena_set_allocated_address(::oteldemo::Address* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.address_); + } + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.ShipOrderRequest.address) +} +inline ::oteldemo::Address* ShipOrderRequest::release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* released = _impl_.address_; + _impl_.address_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Address* ShipOrderRequest::unsafe_arena_release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ShipOrderRequest.address) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* temp = _impl_.address_; + _impl_.address_ = nullptr; + return temp; +} +inline ::oteldemo::Address* ShipOrderRequest::_internal_mutable_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.address_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Address>(GetArenaForAllocation()); + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(p); + } + return _impl_.address_; +} +inline ::oteldemo::Address* ShipOrderRequest::mutable_address() { + ::oteldemo::Address* _msg = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:oteldemo.ShipOrderRequest.address) + return _msg; +} +inline void ShipOrderRequest::set_allocated_address(::oteldemo::Address* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Address*>(_impl_.address_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Address*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.ShipOrderRequest.address) +} + +// repeated .oteldemo.CartItem items = 2; +inline int ShipOrderRequest::_internal_items_size() const { + return _internal_items().size(); +} +inline int ShipOrderRequest::items_size() const { + return _internal_items_size(); +} +inline void ShipOrderRequest::clear_items() { + _internal_mutable_items()->Clear(); +} +inline ::oteldemo::CartItem* ShipOrderRequest::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.ShipOrderRequest.items) + return _internal_mutable_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >* +ShipOrderRequest::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.ShipOrderRequest.items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_items(); +} +inline const ::oteldemo::CartItem& ShipOrderRequest::items(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.ShipOrderRequest.items) + return _internal_items().Get(index); +} +inline ::oteldemo::CartItem* ShipOrderRequest::add_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::CartItem* _add = _internal_mutable_items()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.ShipOrderRequest.items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::CartItem >& +ShipOrderRequest::items() const { + // @@protoc_insertion_point(field_list:oteldemo.ShipOrderRequest.items) + return _internal_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>& +ShipOrderRequest::_internal_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.items_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::CartItem>* +ShipOrderRequest::_internal_mutable_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.items_; +} + +// ------------------------------------------------------------------- + +// ShipOrderResponse + +// string tracking_id = 1; +inline void ShipOrderResponse::clear_tracking_id() { + _impl_.tracking_id_.ClearToEmpty(); +} +inline const std::string& ShipOrderResponse::tracking_id() const { + // @@protoc_insertion_point(field_get:oteldemo.ShipOrderResponse.tracking_id) + return _internal_tracking_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ShipOrderResponse::set_tracking_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.tracking_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ShipOrderResponse.tracking_id) +} +inline std::string* ShipOrderResponse::mutable_tracking_id() { + std::string* _s = _internal_mutable_tracking_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.ShipOrderResponse.tracking_id) + return _s; +} +inline const std::string& ShipOrderResponse::_internal_tracking_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.tracking_id_.Get(); +} +inline void ShipOrderResponse::_internal_set_tracking_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.tracking_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ShipOrderResponse::_internal_mutable_tracking_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.tracking_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* ShipOrderResponse::release_tracking_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ShipOrderResponse.tracking_id) + return _impl_.tracking_id_.Release(); +} +inline void ShipOrderResponse::set_allocated_tracking_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.tracking_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.tracking_id_.IsDefault()) { + _impl_.tracking_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ShipOrderResponse.tracking_id) +} + +// ------------------------------------------------------------------- + +// Address + +// string street_address = 1; +inline void Address::clear_street_address() { + _impl_.street_address_.ClearToEmpty(); +} +inline const std::string& Address::street_address() const { + // @@protoc_insertion_point(field_get:oteldemo.Address.street_address) + return _internal_street_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Address::set_street_address(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.street_address_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Address.street_address) +} +inline std::string* Address::mutable_street_address() { + std::string* _s = _internal_mutable_street_address(); + // @@protoc_insertion_point(field_mutable:oteldemo.Address.street_address) + return _s; +} +inline const std::string& Address::_internal_street_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.street_address_.Get(); +} +inline void Address::_internal_set_street_address(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.street_address_.Set(value, GetArenaForAllocation()); +} +inline std::string* Address::_internal_mutable_street_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.street_address_.Mutable( GetArenaForAllocation()); +} +inline std::string* Address::release_street_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Address.street_address) + return _impl_.street_address_.Release(); +} +inline void Address::set_allocated_street_address(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.street_address_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.street_address_.IsDefault()) { + _impl_.street_address_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Address.street_address) +} + +// string city = 2; +inline void Address::clear_city() { + _impl_.city_.ClearToEmpty(); +} +inline const std::string& Address::city() const { + // @@protoc_insertion_point(field_get:oteldemo.Address.city) + return _internal_city(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Address::set_city(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.city_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Address.city) +} +inline std::string* Address::mutable_city() { + std::string* _s = _internal_mutable_city(); + // @@protoc_insertion_point(field_mutable:oteldemo.Address.city) + return _s; +} +inline const std::string& Address::_internal_city() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.city_.Get(); +} +inline void Address::_internal_set_city(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.city_.Set(value, GetArenaForAllocation()); +} +inline std::string* Address::_internal_mutable_city() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.city_.Mutable( GetArenaForAllocation()); +} +inline std::string* Address::release_city() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Address.city) + return _impl_.city_.Release(); +} +inline void Address::set_allocated_city(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.city_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.city_.IsDefault()) { + _impl_.city_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Address.city) +} + +// string state = 3; +inline void Address::clear_state() { + _impl_.state_.ClearToEmpty(); +} +inline const std::string& Address::state() const { + // @@protoc_insertion_point(field_get:oteldemo.Address.state) + return _internal_state(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Address::set_state(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.state_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Address.state) +} +inline std::string* Address::mutable_state() { + std::string* _s = _internal_mutable_state(); + // @@protoc_insertion_point(field_mutable:oteldemo.Address.state) + return _s; +} +inline const std::string& Address::_internal_state() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.state_.Get(); +} +inline void Address::_internal_set_state(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.state_.Set(value, GetArenaForAllocation()); +} +inline std::string* Address::_internal_mutable_state() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.state_.Mutable( GetArenaForAllocation()); +} +inline std::string* Address::release_state() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Address.state) + return _impl_.state_.Release(); +} +inline void Address::set_allocated_state(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.state_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.state_.IsDefault()) { + _impl_.state_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Address.state) +} + +// string country = 4; +inline void Address::clear_country() { + _impl_.country_.ClearToEmpty(); +} +inline const std::string& Address::country() const { + // @@protoc_insertion_point(field_get:oteldemo.Address.country) + return _internal_country(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Address::set_country(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.country_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Address.country) +} +inline std::string* Address::mutable_country() { + std::string* _s = _internal_mutable_country(); + // @@protoc_insertion_point(field_mutable:oteldemo.Address.country) + return _s; +} +inline const std::string& Address::_internal_country() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.country_.Get(); +} +inline void Address::_internal_set_country(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.country_.Set(value, GetArenaForAllocation()); +} +inline std::string* Address::_internal_mutable_country() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.country_.Mutable( GetArenaForAllocation()); +} +inline std::string* Address::release_country() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Address.country) + return _impl_.country_.Release(); +} +inline void Address::set_allocated_country(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.country_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.country_.IsDefault()) { + _impl_.country_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Address.country) +} + +// string zip_code = 5; +inline void Address::clear_zip_code() { + _impl_.zip_code_.ClearToEmpty(); +} +inline const std::string& Address::zip_code() const { + // @@protoc_insertion_point(field_get:oteldemo.Address.zip_code) + return _internal_zip_code(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Address::set_zip_code(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.zip_code_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Address.zip_code) +} +inline std::string* Address::mutable_zip_code() { + std::string* _s = _internal_mutable_zip_code(); + // @@protoc_insertion_point(field_mutable:oteldemo.Address.zip_code) + return _s; +} +inline const std::string& Address::_internal_zip_code() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.zip_code_.Get(); +} +inline void Address::_internal_set_zip_code(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.zip_code_.Set(value, GetArenaForAllocation()); +} +inline std::string* Address::_internal_mutable_zip_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.zip_code_.Mutable( GetArenaForAllocation()); +} +inline std::string* Address::release_zip_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Address.zip_code) + return _impl_.zip_code_.Release(); +} +inline void Address::set_allocated_zip_code(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.zip_code_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.zip_code_.IsDefault()) { + _impl_.zip_code_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Address.zip_code) +} + +// ------------------------------------------------------------------- + +// Money + +// string currency_code = 1; +inline void Money::clear_currency_code() { + _impl_.currency_code_.ClearToEmpty(); +} +inline const std::string& Money::currency_code() const { + // @@protoc_insertion_point(field_get:oteldemo.Money.currency_code) + return _internal_currency_code(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Money::set_currency_code(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.currency_code_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Money.currency_code) +} +inline std::string* Money::mutable_currency_code() { + std::string* _s = _internal_mutable_currency_code(); + // @@protoc_insertion_point(field_mutable:oteldemo.Money.currency_code) + return _s; +} +inline const std::string& Money::_internal_currency_code() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.currency_code_.Get(); +} +inline void Money::_internal_set_currency_code(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.currency_code_.Set(value, GetArenaForAllocation()); +} +inline std::string* Money::_internal_mutable_currency_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.currency_code_.Mutable( GetArenaForAllocation()); +} +inline std::string* Money::release_currency_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Money.currency_code) + return _impl_.currency_code_.Release(); +} +inline void Money::set_allocated_currency_code(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.currency_code_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.currency_code_.IsDefault()) { + _impl_.currency_code_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Money.currency_code) +} + +// int64 units = 2; +inline void Money::clear_units() { + _impl_.units_ = ::int64_t{0}; +} +inline ::int64_t Money::units() const { + // @@protoc_insertion_point(field_get:oteldemo.Money.units) + return _internal_units(); +} +inline void Money::set_units(::int64_t value) { + _internal_set_units(value); + // @@protoc_insertion_point(field_set:oteldemo.Money.units) +} +inline ::int64_t Money::_internal_units() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.units_; +} +inline void Money::_internal_set_units(::int64_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.units_ = value; +} + +// int32 nanos = 3; +inline void Money::clear_nanos() { + _impl_.nanos_ = 0; +} +inline ::int32_t Money::nanos() const { + // @@protoc_insertion_point(field_get:oteldemo.Money.nanos) + return _internal_nanos(); +} +inline void Money::set_nanos(::int32_t value) { + _internal_set_nanos(value); + // @@protoc_insertion_point(field_set:oteldemo.Money.nanos) +} +inline ::int32_t Money::_internal_nanos() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.nanos_; +} +inline void Money::_internal_set_nanos(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.nanos_ = value; +} + +// ------------------------------------------------------------------- + +// GetSupportedCurrenciesResponse + +// repeated string currency_codes = 1; +inline int GetSupportedCurrenciesResponse::_internal_currency_codes_size() const { + return _internal_currency_codes().size(); +} +inline int GetSupportedCurrenciesResponse::currency_codes_size() const { + return _internal_currency_codes_size(); +} +inline void GetSupportedCurrenciesResponse::clear_currency_codes() { + _internal_mutable_currency_codes()->Clear(); +} +inline std::string* GetSupportedCurrenciesResponse::add_currency_codes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_currency_codes()->Add(); + // @@protoc_insertion_point(field_add_mutable:oteldemo.GetSupportedCurrenciesResponse.currency_codes) + return _s; +} +inline const std::string& GetSupportedCurrenciesResponse::currency_codes(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.GetSupportedCurrenciesResponse.currency_codes) + return _internal_currency_codes().Get(index); +} +inline std::string* GetSupportedCurrenciesResponse::mutable_currency_codes(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.GetSupportedCurrenciesResponse.currency_codes) + return _internal_mutable_currency_codes()->Mutable(index); +} +inline void GetSupportedCurrenciesResponse::set_currency_codes(int index, const std::string& value) { + _internal_mutable_currency_codes()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::set_currency_codes(int index, std::string&& value) { + _internal_mutable_currency_codes()->Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::set_currency_codes(int index, const char* value) { + ABSL_DCHECK(value != nullptr); + _internal_mutable_currency_codes()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::set_currency_codes(int index, const char* value, + std::size_t size) { + _internal_mutable_currency_codes()->Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::set_currency_codes(int index, absl::string_view value) { + _internal_mutable_currency_codes()->Mutable(index)->assign(value.data(), + value.size()); + // @@protoc_insertion_point(field_set_string_piece:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::add_currency_codes(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_currency_codes()->Add()->assign(value); + // @@protoc_insertion_point(field_add:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::add_currency_codes(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_currency_codes()->Add(std::move(value)); + // @@protoc_insertion_point(field_add:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::add_currency_codes(const char* value) { + ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_currency_codes()->Add()->assign(value); + // @@protoc_insertion_point(field_add_char:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::add_currency_codes(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_currency_codes()->Add()->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline void GetSupportedCurrenciesResponse::add_currency_codes(absl::string_view value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_currency_codes()->Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:oteldemo.GetSupportedCurrenciesResponse.currency_codes) +} +inline const ::google::protobuf::RepeatedPtrField& +GetSupportedCurrenciesResponse::currency_codes() const { + // @@protoc_insertion_point(field_list:oteldemo.GetSupportedCurrenciesResponse.currency_codes) + return _internal_currency_codes(); +} +inline ::google::protobuf::RepeatedPtrField* GetSupportedCurrenciesResponse::mutable_currency_codes() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.GetSupportedCurrenciesResponse.currency_codes) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_currency_codes(); +} +inline const ::google::protobuf::RepeatedPtrField& +GetSupportedCurrenciesResponse::_internal_currency_codes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.currency_codes_; +} +inline ::google::protobuf::RepeatedPtrField* +GetSupportedCurrenciesResponse::_internal_mutable_currency_codes() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.currency_codes_; +} + +// ------------------------------------------------------------------- + +// CurrencyConversionRequest + +// .oteldemo.Money from = 1; +inline bool CurrencyConversionRequest::has_from() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.from_ != nullptr); + return value; +} +inline void CurrencyConversionRequest::clear_from() { + if (_impl_.from_ != nullptr) _impl_.from_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Money& CurrencyConversionRequest::_internal_from() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.from_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& CurrencyConversionRequest::from() const { + // @@protoc_insertion_point(field_get:oteldemo.CurrencyConversionRequest.from) + return _internal_from(); +} +inline void CurrencyConversionRequest::unsafe_arena_set_allocated_from(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.from_); + } + _impl_.from_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.CurrencyConversionRequest.from) +} +inline ::oteldemo::Money* CurrencyConversionRequest::release_from() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* released = _impl_.from_; + _impl_.from_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* CurrencyConversionRequest::unsafe_arena_release_from() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CurrencyConversionRequest.from) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* temp = _impl_.from_; + _impl_.from_ = nullptr; + return temp; +} +inline ::oteldemo::Money* CurrencyConversionRequest::_internal_mutable_from() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.from_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.from_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.from_; +} +inline ::oteldemo::Money* CurrencyConversionRequest::mutable_from() { + ::oteldemo::Money* _msg = _internal_mutable_from(); + // @@protoc_insertion_point(field_mutable:oteldemo.CurrencyConversionRequest.from) + return _msg; +} +inline void CurrencyConversionRequest::set_allocated_from(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.from_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.from_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.CurrencyConversionRequest.from) +} + +// string to_code = 2; +inline void CurrencyConversionRequest::clear_to_code() { + _impl_.to_code_.ClearToEmpty(); +} +inline const std::string& CurrencyConversionRequest::to_code() const { + // @@protoc_insertion_point(field_get:oteldemo.CurrencyConversionRequest.to_code) + return _internal_to_code(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CurrencyConversionRequest::set_to_code(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.to_code_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.CurrencyConversionRequest.to_code) +} +inline std::string* CurrencyConversionRequest::mutable_to_code() { + std::string* _s = _internal_mutable_to_code(); + // @@protoc_insertion_point(field_mutable:oteldemo.CurrencyConversionRequest.to_code) + return _s; +} +inline const std::string& CurrencyConversionRequest::_internal_to_code() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.to_code_.Get(); +} +inline void CurrencyConversionRequest::_internal_set_to_code(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.to_code_.Set(value, GetArenaForAllocation()); +} +inline std::string* CurrencyConversionRequest::_internal_mutable_to_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.to_code_.Mutable( GetArenaForAllocation()); +} +inline std::string* CurrencyConversionRequest::release_to_code() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CurrencyConversionRequest.to_code) + return _impl_.to_code_.Release(); +} +inline void CurrencyConversionRequest::set_allocated_to_code(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.to_code_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.to_code_.IsDefault()) { + _impl_.to_code_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.CurrencyConversionRequest.to_code) +} + +// ------------------------------------------------------------------- + +// CreditCardInfo + +// string credit_card_number = 1; +inline void CreditCardInfo::clear_credit_card_number() { + _impl_.credit_card_number_.ClearToEmpty(); +} +inline const std::string& CreditCardInfo::credit_card_number() const { + // @@protoc_insertion_point(field_get:oteldemo.CreditCardInfo.credit_card_number) + return _internal_credit_card_number(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CreditCardInfo::set_credit_card_number(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.credit_card_number_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.CreditCardInfo.credit_card_number) +} +inline std::string* CreditCardInfo::mutable_credit_card_number() { + std::string* _s = _internal_mutable_credit_card_number(); + // @@protoc_insertion_point(field_mutable:oteldemo.CreditCardInfo.credit_card_number) + return _s; +} +inline const std::string& CreditCardInfo::_internal_credit_card_number() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credit_card_number_.Get(); +} +inline void CreditCardInfo::_internal_set_credit_card_number(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.credit_card_number_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreditCardInfo::_internal_mutable_credit_card_number() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.credit_card_number_.Mutable( GetArenaForAllocation()); +} +inline std::string* CreditCardInfo::release_credit_card_number() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CreditCardInfo.credit_card_number) + return _impl_.credit_card_number_.Release(); +} +inline void CreditCardInfo::set_allocated_credit_card_number(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.credit_card_number_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.credit_card_number_.IsDefault()) { + _impl_.credit_card_number_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.CreditCardInfo.credit_card_number) +} + +// int32 credit_card_cvv = 2; +inline void CreditCardInfo::clear_credit_card_cvv() { + _impl_.credit_card_cvv_ = 0; +} +inline ::int32_t CreditCardInfo::credit_card_cvv() const { + // @@protoc_insertion_point(field_get:oteldemo.CreditCardInfo.credit_card_cvv) + return _internal_credit_card_cvv(); +} +inline void CreditCardInfo::set_credit_card_cvv(::int32_t value) { + _internal_set_credit_card_cvv(value); + // @@protoc_insertion_point(field_set:oteldemo.CreditCardInfo.credit_card_cvv) +} +inline ::int32_t CreditCardInfo::_internal_credit_card_cvv() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credit_card_cvv_; +} +inline void CreditCardInfo::_internal_set_credit_card_cvv(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.credit_card_cvv_ = value; +} + +// int32 credit_card_expiration_year = 3; +inline void CreditCardInfo::clear_credit_card_expiration_year() { + _impl_.credit_card_expiration_year_ = 0; +} +inline ::int32_t CreditCardInfo::credit_card_expiration_year() const { + // @@protoc_insertion_point(field_get:oteldemo.CreditCardInfo.credit_card_expiration_year) + return _internal_credit_card_expiration_year(); +} +inline void CreditCardInfo::set_credit_card_expiration_year(::int32_t value) { + _internal_set_credit_card_expiration_year(value); + // @@protoc_insertion_point(field_set:oteldemo.CreditCardInfo.credit_card_expiration_year) +} +inline ::int32_t CreditCardInfo::_internal_credit_card_expiration_year() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credit_card_expiration_year_; +} +inline void CreditCardInfo::_internal_set_credit_card_expiration_year(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.credit_card_expiration_year_ = value; +} + +// int32 credit_card_expiration_month = 4; +inline void CreditCardInfo::clear_credit_card_expiration_month() { + _impl_.credit_card_expiration_month_ = 0; +} +inline ::int32_t CreditCardInfo::credit_card_expiration_month() const { + // @@protoc_insertion_point(field_get:oteldemo.CreditCardInfo.credit_card_expiration_month) + return _internal_credit_card_expiration_month(); +} +inline void CreditCardInfo::set_credit_card_expiration_month(::int32_t value) { + _internal_set_credit_card_expiration_month(value); + // @@protoc_insertion_point(field_set:oteldemo.CreditCardInfo.credit_card_expiration_month) +} +inline ::int32_t CreditCardInfo::_internal_credit_card_expiration_month() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.credit_card_expiration_month_; +} +inline void CreditCardInfo::_internal_set_credit_card_expiration_month(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.credit_card_expiration_month_ = value; +} + +// ------------------------------------------------------------------- + +// ChargeRequest + +// .oteldemo.Money amount = 1; +inline bool ChargeRequest::has_amount() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.amount_ != nullptr); + return value; +} +inline void ChargeRequest::clear_amount() { + if (_impl_.amount_ != nullptr) _impl_.amount_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Money& ChargeRequest::_internal_amount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.amount_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& ChargeRequest::amount() const { + // @@protoc_insertion_point(field_get:oteldemo.ChargeRequest.amount) + return _internal_amount(); +} +inline void ChargeRequest::unsafe_arena_set_allocated_amount(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.amount_); + } + _impl_.amount_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.ChargeRequest.amount) +} +inline ::oteldemo::Money* ChargeRequest::release_amount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* released = _impl_.amount_; + _impl_.amount_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* ChargeRequest::unsafe_arena_release_amount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ChargeRequest.amount) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* temp = _impl_.amount_; + _impl_.amount_ = nullptr; + return temp; +} +inline ::oteldemo::Money* ChargeRequest::_internal_mutable_amount() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.amount_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.amount_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.amount_; +} +inline ::oteldemo::Money* ChargeRequest::mutable_amount() { + ::oteldemo::Money* _msg = _internal_mutable_amount(); + // @@protoc_insertion_point(field_mutable:oteldemo.ChargeRequest.amount) + return _msg; +} +inline void ChargeRequest::set_allocated_amount(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.amount_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.amount_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.ChargeRequest.amount) +} + +// .oteldemo.CreditCardInfo credit_card = 2; +inline bool ChargeRequest::has_credit_card() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.credit_card_ != nullptr); + return value; +} +inline void ChargeRequest::clear_credit_card() { + if (_impl_.credit_card_ != nullptr) _impl_.credit_card_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::oteldemo::CreditCardInfo& ChargeRequest::_internal_credit_card() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::CreditCardInfo* p = _impl_.credit_card_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_CreditCardInfo_default_instance_); +} +inline const ::oteldemo::CreditCardInfo& ChargeRequest::credit_card() const { + // @@protoc_insertion_point(field_get:oteldemo.ChargeRequest.credit_card) + return _internal_credit_card(); +} +inline void ChargeRequest::unsafe_arena_set_allocated_credit_card(::oteldemo::CreditCardInfo* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.credit_card_); + } + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.ChargeRequest.credit_card) +} +inline ::oteldemo::CreditCardInfo* ChargeRequest::release_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::CreditCardInfo* released = _impl_.credit_card_; + _impl_.credit_card_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::CreditCardInfo* ChargeRequest::unsafe_arena_release_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ChargeRequest.credit_card) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::CreditCardInfo* temp = _impl_.credit_card_; + _impl_.credit_card_ = nullptr; + return temp; +} +inline ::oteldemo::CreditCardInfo* ChargeRequest::_internal_mutable_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.credit_card_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::CreditCardInfo>(GetArenaForAllocation()); + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(p); + } + return _impl_.credit_card_; +} +inline ::oteldemo::CreditCardInfo* ChargeRequest::mutable_credit_card() { + ::oteldemo::CreditCardInfo* _msg = _internal_mutable_credit_card(); + // @@protoc_insertion_point(field_mutable:oteldemo.ChargeRequest.credit_card) + return _msg; +} +inline void ChargeRequest::set_allocated_credit_card(::oteldemo::CreditCardInfo* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::CreditCardInfo*>(_impl_.credit_card_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::CreditCardInfo*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.ChargeRequest.credit_card) +} + +// ------------------------------------------------------------------- + +// ChargeResponse + +// string transaction_id = 1; +inline void ChargeResponse::clear_transaction_id() { + _impl_.transaction_id_.ClearToEmpty(); +} +inline const std::string& ChargeResponse::transaction_id() const { + // @@protoc_insertion_point(field_get:oteldemo.ChargeResponse.transaction_id) + return _internal_transaction_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ChargeResponse::set_transaction_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.transaction_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.ChargeResponse.transaction_id) +} +inline std::string* ChargeResponse::mutable_transaction_id() { + std::string* _s = _internal_mutable_transaction_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.ChargeResponse.transaction_id) + return _s; +} +inline const std::string& ChargeResponse::_internal_transaction_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.transaction_id_.Get(); +} +inline void ChargeResponse::_internal_set_transaction_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.transaction_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChargeResponse::_internal_mutable_transaction_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.transaction_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* ChargeResponse::release_transaction_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.ChargeResponse.transaction_id) + return _impl_.transaction_id_.Release(); +} +inline void ChargeResponse::set_allocated_transaction_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.transaction_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.transaction_id_.IsDefault()) { + _impl_.transaction_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.ChargeResponse.transaction_id) +} + +// ------------------------------------------------------------------- + +// OrderItem + +// .oteldemo.CartItem item = 1; +inline bool OrderItem::has_item() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.item_ != nullptr); + return value; +} +inline void OrderItem::clear_item() { + if (_impl_.item_ != nullptr) _impl_.item_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::CartItem& OrderItem::_internal_item() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::CartItem* p = _impl_.item_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_CartItem_default_instance_); +} +inline const ::oteldemo::CartItem& OrderItem::item() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderItem.item) + return _internal_item(); +} +inline void OrderItem::unsafe_arena_set_allocated_item(::oteldemo::CartItem* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.item_); + } + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.OrderItem.item) +} +inline ::oteldemo::CartItem* OrderItem::release_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::CartItem* released = _impl_.item_; + _impl_.item_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::CartItem* OrderItem::unsafe_arena_release_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderItem.item) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::CartItem* temp = _impl_.item_; + _impl_.item_ = nullptr; + return temp; +} +inline ::oteldemo::CartItem* OrderItem::_internal_mutable_item() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.item_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::CartItem>(GetArenaForAllocation()); + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(p); + } + return _impl_.item_; +} +inline ::oteldemo::CartItem* OrderItem::mutable_item() { + ::oteldemo::CartItem* _msg = _internal_mutable_item(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderItem.item) + return _msg; +} +inline void OrderItem::set_allocated_item(::oteldemo::CartItem* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::CartItem*>(_impl_.item_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::CartItem*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.item_ = reinterpret_cast<::oteldemo::CartItem*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderItem.item) +} + +// .oteldemo.Money cost = 2; +inline bool OrderItem::has_cost() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.cost_ != nullptr); + return value; +} +inline void OrderItem::clear_cost() { + if (_impl_.cost_ != nullptr) _impl_.cost_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::oteldemo::Money& OrderItem::_internal_cost() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.cost_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& OrderItem::cost() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderItem.cost) + return _internal_cost(); +} +inline void OrderItem::unsafe_arena_set_allocated_cost(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cost_); + } + _impl_.cost_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.OrderItem.cost) +} +inline ::oteldemo::Money* OrderItem::release_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::Money* released = _impl_.cost_; + _impl_.cost_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* OrderItem::unsafe_arena_release_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderItem.cost) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::Money* temp = _impl_.cost_; + _impl_.cost_ = nullptr; + return temp; +} +inline ::oteldemo::Money* OrderItem::_internal_mutable_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.cost_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.cost_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.cost_; +} +inline ::oteldemo::Money* OrderItem::mutable_cost() { + ::oteldemo::Money* _msg = _internal_mutable_cost(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderItem.cost) + return _msg; +} +inline void OrderItem::set_allocated_cost(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.cost_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.cost_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderItem.cost) +} + +// ------------------------------------------------------------------- + +// OrderResult + +// string order_id = 1; +inline void OrderResult::clear_order_id() { + _impl_.order_id_.ClearToEmpty(); +} +inline const std::string& OrderResult::order_id() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderResult.order_id) + return _internal_order_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void OrderResult::set_order_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.order_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.OrderResult.order_id) +} +inline std::string* OrderResult::mutable_order_id() { + std::string* _s = _internal_mutable_order_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderResult.order_id) + return _s; +} +inline const std::string& OrderResult::_internal_order_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.order_id_.Get(); +} +inline void OrderResult::_internal_set_order_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.order_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrderResult::_internal_mutable_order_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.order_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* OrderResult::release_order_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderResult.order_id) + return _impl_.order_id_.Release(); +} +inline void OrderResult::set_allocated_order_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.order_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.order_id_.IsDefault()) { + _impl_.order_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderResult.order_id) +} + +// string shipping_tracking_id = 2; +inline void OrderResult::clear_shipping_tracking_id() { + _impl_.shipping_tracking_id_.ClearToEmpty(); +} +inline const std::string& OrderResult::shipping_tracking_id() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderResult.shipping_tracking_id) + return _internal_shipping_tracking_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void OrderResult::set_shipping_tracking_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.shipping_tracking_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.OrderResult.shipping_tracking_id) +} +inline std::string* OrderResult::mutable_shipping_tracking_id() { + std::string* _s = _internal_mutable_shipping_tracking_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderResult.shipping_tracking_id) + return _s; +} +inline const std::string& OrderResult::_internal_shipping_tracking_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.shipping_tracking_id_.Get(); +} +inline void OrderResult::_internal_set_shipping_tracking_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.shipping_tracking_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* OrderResult::_internal_mutable_shipping_tracking_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.shipping_tracking_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* OrderResult::release_shipping_tracking_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderResult.shipping_tracking_id) + return _impl_.shipping_tracking_id_.Release(); +} +inline void OrderResult::set_allocated_shipping_tracking_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.shipping_tracking_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.shipping_tracking_id_.IsDefault()) { + _impl_.shipping_tracking_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderResult.shipping_tracking_id) +} + +// .oteldemo.Money shipping_cost = 3; +inline bool OrderResult::has_shipping_cost() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.shipping_cost_ != nullptr); + return value; +} +inline void OrderResult::clear_shipping_cost() { + if (_impl_.shipping_cost_ != nullptr) _impl_.shipping_cost_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Money& OrderResult::_internal_shipping_cost() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Money* p = _impl_.shipping_cost_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Money_default_instance_); +} +inline const ::oteldemo::Money& OrderResult::shipping_cost() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderResult.shipping_cost) + return _internal_shipping_cost(); +} +inline void OrderResult::unsafe_arena_set_allocated_shipping_cost(::oteldemo::Money* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shipping_cost_); + } + _impl_.shipping_cost_ = reinterpret_cast<::oteldemo::Money*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.OrderResult.shipping_cost) +} +inline ::oteldemo::Money* OrderResult::release_shipping_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* released = _impl_.shipping_cost_; + _impl_.shipping_cost_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Money* OrderResult::unsafe_arena_release_shipping_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderResult.shipping_cost) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Money* temp = _impl_.shipping_cost_; + _impl_.shipping_cost_ = nullptr; + return temp; +} +inline ::oteldemo::Money* OrderResult::_internal_mutable_shipping_cost() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.shipping_cost_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Money>(GetArenaForAllocation()); + _impl_.shipping_cost_ = reinterpret_cast<::oteldemo::Money*>(p); + } + return _impl_.shipping_cost_; +} +inline ::oteldemo::Money* OrderResult::mutable_shipping_cost() { + ::oteldemo::Money* _msg = _internal_mutable_shipping_cost(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderResult.shipping_cost) + return _msg; +} +inline void OrderResult::set_allocated_shipping_cost(::oteldemo::Money* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Money*>(_impl_.shipping_cost_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Money*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.shipping_cost_ = reinterpret_cast<::oteldemo::Money*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderResult.shipping_cost) +} + +// .oteldemo.Address shipping_address = 4; +inline bool OrderResult::has_shipping_address() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.shipping_address_ != nullptr); + return value; +} +inline void OrderResult::clear_shipping_address() { + if (_impl_.shipping_address_ != nullptr) _impl_.shipping_address_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::oteldemo::Address& OrderResult::_internal_shipping_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Address* p = _impl_.shipping_address_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Address_default_instance_); +} +inline const ::oteldemo::Address& OrderResult::shipping_address() const { + // @@protoc_insertion_point(field_get:oteldemo.OrderResult.shipping_address) + return _internal_shipping_address(); +} +inline void OrderResult::unsafe_arena_set_allocated_shipping_address(::oteldemo::Address* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shipping_address_); + } + _impl_.shipping_address_ = reinterpret_cast<::oteldemo::Address*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.OrderResult.shipping_address) +} +inline ::oteldemo::Address* OrderResult::release_shipping_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::Address* released = _impl_.shipping_address_; + _impl_.shipping_address_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Address* OrderResult::unsafe_arena_release_shipping_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.OrderResult.shipping_address) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::Address* temp = _impl_.shipping_address_; + _impl_.shipping_address_ = nullptr; + return temp; +} +inline ::oteldemo::Address* OrderResult::_internal_mutable_shipping_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.shipping_address_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Address>(GetArenaForAllocation()); + _impl_.shipping_address_ = reinterpret_cast<::oteldemo::Address*>(p); + } + return _impl_.shipping_address_; +} +inline ::oteldemo::Address* OrderResult::mutable_shipping_address() { + ::oteldemo::Address* _msg = _internal_mutable_shipping_address(); + // @@protoc_insertion_point(field_mutable:oteldemo.OrderResult.shipping_address) + return _msg; +} +inline void OrderResult::set_allocated_shipping_address(::oteldemo::Address* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Address*>(_impl_.shipping_address_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Address*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.shipping_address_ = reinterpret_cast<::oteldemo::Address*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.OrderResult.shipping_address) +} + +// repeated .oteldemo.OrderItem items = 5; +inline int OrderResult::_internal_items_size() const { + return _internal_items().size(); +} +inline int OrderResult::items_size() const { + return _internal_items_size(); +} +inline void OrderResult::clear_items() { + _internal_mutable_items()->Clear(); +} +inline ::oteldemo::OrderItem* OrderResult::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.OrderResult.items) + return _internal_mutable_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::OrderItem >* +OrderResult::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.OrderResult.items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_items(); +} +inline const ::oteldemo::OrderItem& OrderResult::items(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.OrderResult.items) + return _internal_items().Get(index); +} +inline ::oteldemo::OrderItem* OrderResult::add_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::OrderItem* _add = _internal_mutable_items()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.OrderResult.items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::OrderItem >& +OrderResult::items() const { + // @@protoc_insertion_point(field_list:oteldemo.OrderResult.items) + return _internal_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::OrderItem>& +OrderResult::_internal_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.items_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::OrderItem>* +OrderResult::_internal_mutable_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.items_; +} + +// ------------------------------------------------------------------- + +// SendOrderConfirmationRequest + +// string email = 1; +inline void SendOrderConfirmationRequest::clear_email() { + _impl_.email_.ClearToEmpty(); +} +inline const std::string& SendOrderConfirmationRequest::email() const { + // @@protoc_insertion_point(field_get:oteldemo.SendOrderConfirmationRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE void SendOrderConfirmationRequest::set_email(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.email_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.SendOrderConfirmationRequest.email) +} +inline std::string* SendOrderConfirmationRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:oteldemo.SendOrderConfirmationRequest.email) + return _s; +} +inline const std::string& SendOrderConfirmationRequest::_internal_email() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.email_.Get(); +} +inline void SendOrderConfirmationRequest::_internal_set_email(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.email_.Set(value, GetArenaForAllocation()); +} +inline std::string* SendOrderConfirmationRequest::_internal_mutable_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.email_.Mutable( GetArenaForAllocation()); +} +inline std::string* SendOrderConfirmationRequest::release_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.SendOrderConfirmationRequest.email) + return _impl_.email_.Release(); +} +inline void SendOrderConfirmationRequest::set_allocated_email(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.email_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.email_.IsDefault()) { + _impl_.email_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.SendOrderConfirmationRequest.email) +} + +// .oteldemo.OrderResult order = 2; +inline bool SendOrderConfirmationRequest::has_order() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.order_ != nullptr); + return value; +} +inline void SendOrderConfirmationRequest::clear_order() { + if (_impl_.order_ != nullptr) _impl_.order_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::OrderResult& SendOrderConfirmationRequest::_internal_order() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::OrderResult* p = _impl_.order_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_OrderResult_default_instance_); +} +inline const ::oteldemo::OrderResult& SendOrderConfirmationRequest::order() const { + // @@protoc_insertion_point(field_get:oteldemo.SendOrderConfirmationRequest.order) + return _internal_order(); +} +inline void SendOrderConfirmationRequest::unsafe_arena_set_allocated_order(::oteldemo::OrderResult* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.order_); + } + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.SendOrderConfirmationRequest.order) +} +inline ::oteldemo::OrderResult* SendOrderConfirmationRequest::release_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::OrderResult* released = _impl_.order_; + _impl_.order_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::OrderResult* SendOrderConfirmationRequest::unsafe_arena_release_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.SendOrderConfirmationRequest.order) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::OrderResult* temp = _impl_.order_; + _impl_.order_ = nullptr; + return temp; +} +inline ::oteldemo::OrderResult* SendOrderConfirmationRequest::_internal_mutable_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.order_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::OrderResult>(GetArenaForAllocation()); + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(p); + } + return _impl_.order_; +} +inline ::oteldemo::OrderResult* SendOrderConfirmationRequest::mutable_order() { + ::oteldemo::OrderResult* _msg = _internal_mutable_order(); + // @@protoc_insertion_point(field_mutable:oteldemo.SendOrderConfirmationRequest.order) + return _msg; +} +inline void SendOrderConfirmationRequest::set_allocated_order(::oteldemo::OrderResult* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::OrderResult*>(_impl_.order_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::OrderResult*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.SendOrderConfirmationRequest.order) +} + +// ------------------------------------------------------------------- + +// PlaceOrderRequest + +// string user_id = 1; +inline void PlaceOrderRequest::clear_user_id() { + _impl_.user_id_.ClearToEmpty(); +} +inline const std::string& PlaceOrderRequest::user_id() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderRequest.user_id) + return _internal_user_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void PlaceOrderRequest::set_user_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.PlaceOrderRequest.user_id) +} +inline std::string* PlaceOrderRequest::mutable_user_id() { + std::string* _s = _internal_mutable_user_id(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderRequest.user_id) + return _s; +} +inline const std::string& PlaceOrderRequest::_internal_user_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_id_.Get(); +} +inline void PlaceOrderRequest::_internal_set_user_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::_internal_mutable_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_id_.Mutable( GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::release_user_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderRequest.user_id) + return _impl_.user_id_.Release(); +} +inline void PlaceOrderRequest::set_allocated_user_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_id_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_id_.IsDefault()) { + _impl_.user_id_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderRequest.user_id) +} + +// string user_currency = 2; +inline void PlaceOrderRequest::clear_user_currency() { + _impl_.user_currency_.ClearToEmpty(); +} +inline const std::string& PlaceOrderRequest::user_currency() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderRequest.user_currency) + return _internal_user_currency(); +} +template +inline PROTOBUF_ALWAYS_INLINE void PlaceOrderRequest::set_user_currency(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_currency_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.PlaceOrderRequest.user_currency) +} +inline std::string* PlaceOrderRequest::mutable_user_currency() { + std::string* _s = _internal_mutable_user_currency(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderRequest.user_currency) + return _s; +} +inline const std::string& PlaceOrderRequest::_internal_user_currency() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.user_currency_.Get(); +} +inline void PlaceOrderRequest::_internal_set_user_currency(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.user_currency_.Set(value, GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::_internal_mutable_user_currency() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.user_currency_.Mutable( GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::release_user_currency() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderRequest.user_currency) + return _impl_.user_currency_.Release(); +} +inline void PlaceOrderRequest::set_allocated_user_currency(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.user_currency_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.user_currency_.IsDefault()) { + _impl_.user_currency_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderRequest.user_currency) +} + +// .oteldemo.Address address = 3; +inline bool PlaceOrderRequest::has_address() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.address_ != nullptr); + return value; +} +inline void PlaceOrderRequest::clear_address() { + if (_impl_.address_ != nullptr) _impl_.address_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Address& PlaceOrderRequest::_internal_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Address* p = _impl_.address_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Address_default_instance_); +} +inline const ::oteldemo::Address& PlaceOrderRequest::address() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderRequest.address) + return _internal_address(); +} +inline void PlaceOrderRequest::unsafe_arena_set_allocated_address(::oteldemo::Address* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.address_); + } + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.PlaceOrderRequest.address) +} +inline ::oteldemo::Address* PlaceOrderRequest::release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* released = _impl_.address_; + _impl_.address_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Address* PlaceOrderRequest::unsafe_arena_release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderRequest.address) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Address* temp = _impl_.address_; + _impl_.address_ = nullptr; + return temp; +} +inline ::oteldemo::Address* PlaceOrderRequest::_internal_mutable_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.address_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Address>(GetArenaForAllocation()); + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(p); + } + return _impl_.address_; +} +inline ::oteldemo::Address* PlaceOrderRequest::mutable_address() { + ::oteldemo::Address* _msg = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderRequest.address) + return _msg; +} +inline void PlaceOrderRequest::set_allocated_address(::oteldemo::Address* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Address*>(_impl_.address_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Address*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.address_ = reinterpret_cast<::oteldemo::Address*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderRequest.address) +} + +// string email = 5; +inline void PlaceOrderRequest::clear_email() { + _impl_.email_.ClearToEmpty(); +} +inline const std::string& PlaceOrderRequest::email() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderRequest.email) + return _internal_email(); +} +template +inline PROTOBUF_ALWAYS_INLINE void PlaceOrderRequest::set_email(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.email_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.PlaceOrderRequest.email) +} +inline std::string* PlaceOrderRequest::mutable_email() { + std::string* _s = _internal_mutable_email(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderRequest.email) + return _s; +} +inline const std::string& PlaceOrderRequest::_internal_email() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.email_.Get(); +} +inline void PlaceOrderRequest::_internal_set_email(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.email_.Set(value, GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::_internal_mutable_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.email_.Mutable( GetArenaForAllocation()); +} +inline std::string* PlaceOrderRequest::release_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderRequest.email) + return _impl_.email_.Release(); +} +inline void PlaceOrderRequest::set_allocated_email(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.email_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.email_.IsDefault()) { + _impl_.email_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderRequest.email) +} + +// .oteldemo.CreditCardInfo credit_card = 6; +inline bool PlaceOrderRequest::has_credit_card() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.credit_card_ != nullptr); + return value; +} +inline void PlaceOrderRequest::clear_credit_card() { + if (_impl_.credit_card_ != nullptr) _impl_.credit_card_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +inline const ::oteldemo::CreditCardInfo& PlaceOrderRequest::_internal_credit_card() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::CreditCardInfo* p = _impl_.credit_card_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_CreditCardInfo_default_instance_); +} +inline const ::oteldemo::CreditCardInfo& PlaceOrderRequest::credit_card() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderRequest.credit_card) + return _internal_credit_card(); +} +inline void PlaceOrderRequest::unsafe_arena_set_allocated_credit_card(::oteldemo::CreditCardInfo* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.credit_card_); + } + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.PlaceOrderRequest.credit_card) +} +inline ::oteldemo::CreditCardInfo* PlaceOrderRequest::release_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::CreditCardInfo* released = _impl_.credit_card_; + _impl_.credit_card_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::CreditCardInfo* PlaceOrderRequest::unsafe_arena_release_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderRequest.credit_card) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::oteldemo::CreditCardInfo* temp = _impl_.credit_card_; + _impl_.credit_card_ = nullptr; + return temp; +} +inline ::oteldemo::CreditCardInfo* PlaceOrderRequest::_internal_mutable_credit_card() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.credit_card_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::CreditCardInfo>(GetArenaForAllocation()); + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(p); + } + return _impl_.credit_card_; +} +inline ::oteldemo::CreditCardInfo* PlaceOrderRequest::mutable_credit_card() { + ::oteldemo::CreditCardInfo* _msg = _internal_mutable_credit_card(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderRequest.credit_card) + return _msg; +} +inline void PlaceOrderRequest::set_allocated_credit_card(::oteldemo::CreditCardInfo* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::CreditCardInfo*>(_impl_.credit_card_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::CreditCardInfo*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.credit_card_ = reinterpret_cast<::oteldemo::CreditCardInfo*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderRequest.credit_card) +} + +// ------------------------------------------------------------------- + +// PlaceOrderResponse + +// .oteldemo.OrderResult order = 1; +inline bool PlaceOrderResponse::has_order() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.order_ != nullptr); + return value; +} +inline void PlaceOrderResponse::clear_order() { + if (_impl_.order_ != nullptr) _impl_.order_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::OrderResult& PlaceOrderResponse::_internal_order() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::OrderResult* p = _impl_.order_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_OrderResult_default_instance_); +} +inline const ::oteldemo::OrderResult& PlaceOrderResponse::order() const { + // @@protoc_insertion_point(field_get:oteldemo.PlaceOrderResponse.order) + return _internal_order(); +} +inline void PlaceOrderResponse::unsafe_arena_set_allocated_order(::oteldemo::OrderResult* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.order_); + } + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.PlaceOrderResponse.order) +} +inline ::oteldemo::OrderResult* PlaceOrderResponse::release_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::OrderResult* released = _impl_.order_; + _impl_.order_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::OrderResult* PlaceOrderResponse::unsafe_arena_release_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.PlaceOrderResponse.order) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::OrderResult* temp = _impl_.order_; + _impl_.order_ = nullptr; + return temp; +} +inline ::oteldemo::OrderResult* PlaceOrderResponse::_internal_mutable_order() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.order_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::OrderResult>(GetArenaForAllocation()); + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(p); + } + return _impl_.order_; +} +inline ::oteldemo::OrderResult* PlaceOrderResponse::mutable_order() { + ::oteldemo::OrderResult* _msg = _internal_mutable_order(); + // @@protoc_insertion_point(field_mutable:oteldemo.PlaceOrderResponse.order) + return _msg; +} +inline void PlaceOrderResponse::set_allocated_order(::oteldemo::OrderResult* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::OrderResult*>(_impl_.order_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::OrderResult*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.order_ = reinterpret_cast<::oteldemo::OrderResult*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.PlaceOrderResponse.order) +} + +// ------------------------------------------------------------------- + +// AdRequest + +// repeated string context_keys = 1; +inline int AdRequest::_internal_context_keys_size() const { + return _internal_context_keys().size(); +} +inline int AdRequest::context_keys_size() const { + return _internal_context_keys_size(); +} +inline void AdRequest::clear_context_keys() { + _internal_mutable_context_keys()->Clear(); +} +inline std::string* AdRequest::add_context_keys() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_context_keys()->Add(); + // @@protoc_insertion_point(field_add_mutable:oteldemo.AdRequest.context_keys) + return _s; +} +inline const std::string& AdRequest::context_keys(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.AdRequest.context_keys) + return _internal_context_keys().Get(index); +} +inline std::string* AdRequest::mutable_context_keys(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.AdRequest.context_keys) + return _internal_mutable_context_keys()->Mutable(index); +} +inline void AdRequest::set_context_keys(int index, const std::string& value) { + _internal_mutable_context_keys()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::set_context_keys(int index, std::string&& value) { + _internal_mutable_context_keys()->Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::set_context_keys(int index, const char* value) { + ABSL_DCHECK(value != nullptr); + _internal_mutable_context_keys()->Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::set_context_keys(int index, const char* value, + std::size_t size) { + _internal_mutable_context_keys()->Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::set_context_keys(int index, absl::string_view value) { + _internal_mutable_context_keys()->Mutable(index)->assign(value.data(), + value.size()); + // @@protoc_insertion_point(field_set_string_piece:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::add_context_keys(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_context_keys()->Add()->assign(value); + // @@protoc_insertion_point(field_add:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::add_context_keys(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_context_keys()->Add(std::move(value)); + // @@protoc_insertion_point(field_add:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::add_context_keys(const char* value) { + ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_context_keys()->Add()->assign(value); + // @@protoc_insertion_point(field_add_char:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::add_context_keys(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_context_keys()->Add()->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:oteldemo.AdRequest.context_keys) +} +inline void AdRequest::add_context_keys(absl::string_view value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_context_keys()->Add()->assign(value.data(), value.size()); + // @@protoc_insertion_point(field_add_string_piece:oteldemo.AdRequest.context_keys) +} +inline const ::google::protobuf::RepeatedPtrField& +AdRequest::context_keys() const { + // @@protoc_insertion_point(field_list:oteldemo.AdRequest.context_keys) + return _internal_context_keys(); +} +inline ::google::protobuf::RepeatedPtrField* AdRequest::mutable_context_keys() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.AdRequest.context_keys) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_context_keys(); +} +inline const ::google::protobuf::RepeatedPtrField& +AdRequest::_internal_context_keys() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.context_keys_; +} +inline ::google::protobuf::RepeatedPtrField* +AdRequest::_internal_mutable_context_keys() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.context_keys_; +} + +// ------------------------------------------------------------------- + +// AdResponse + +// repeated .oteldemo.Ad ads = 1; +inline int AdResponse::_internal_ads_size() const { + return _internal_ads().size(); +} +inline int AdResponse::ads_size() const { + return _internal_ads_size(); +} +inline void AdResponse::clear_ads() { + _internal_mutable_ads()->Clear(); +} +inline ::oteldemo::Ad* AdResponse::mutable_ads(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.AdResponse.ads) + return _internal_mutable_ads()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::Ad >* +AdResponse::mutable_ads() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.AdResponse.ads) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_ads(); +} +inline const ::oteldemo::Ad& AdResponse::ads(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.AdResponse.ads) + return _internal_ads().Get(index); +} +inline ::oteldemo::Ad* AdResponse::add_ads() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::Ad* _add = _internal_mutable_ads()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.AdResponse.ads) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::Ad >& +AdResponse::ads() const { + // @@protoc_insertion_point(field_list:oteldemo.AdResponse.ads) + return _internal_ads(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::Ad>& +AdResponse::_internal_ads() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.ads_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::Ad>* +AdResponse::_internal_mutable_ads() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.ads_; +} + +// ------------------------------------------------------------------- + +// Ad + +// string redirect_url = 1; +inline void Ad::clear_redirect_url() { + _impl_.redirect_url_.ClearToEmpty(); +} +inline const std::string& Ad::redirect_url() const { + // @@protoc_insertion_point(field_get:oteldemo.Ad.redirect_url) + return _internal_redirect_url(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Ad::set_redirect_url(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.redirect_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Ad.redirect_url) +} +inline std::string* Ad::mutable_redirect_url() { + std::string* _s = _internal_mutable_redirect_url(); + // @@protoc_insertion_point(field_mutable:oteldemo.Ad.redirect_url) + return _s; +} +inline const std::string& Ad::_internal_redirect_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.redirect_url_.Get(); +} +inline void Ad::_internal_set_redirect_url(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.redirect_url_.Set(value, GetArenaForAllocation()); +} +inline std::string* Ad::_internal_mutable_redirect_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.redirect_url_.Mutable( GetArenaForAllocation()); +} +inline std::string* Ad::release_redirect_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Ad.redirect_url) + return _impl_.redirect_url_.Release(); +} +inline void Ad::set_allocated_redirect_url(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.redirect_url_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.redirect_url_.IsDefault()) { + _impl_.redirect_url_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Ad.redirect_url) +} + +// string text = 2; +inline void Ad::clear_text() { + _impl_.text_.ClearToEmpty(); +} +inline const std::string& Ad::text() const { + // @@protoc_insertion_point(field_get:oteldemo.Ad.text) + return _internal_text(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Ad::set_text(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.text_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Ad.text) +} +inline std::string* Ad::mutable_text() { + std::string* _s = _internal_mutable_text(); + // @@protoc_insertion_point(field_mutable:oteldemo.Ad.text) + return _s; +} +inline const std::string& Ad::_internal_text() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.text_.Get(); +} +inline void Ad::_internal_set_text(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.text_.Set(value, GetArenaForAllocation()); +} +inline std::string* Ad::_internal_mutable_text() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.text_.Mutable( GetArenaForAllocation()); +} +inline std::string* Ad::release_text() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Ad.text) + return _impl_.text_.Release(); +} +inline void Ad::set_allocated_text(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.text_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.text_.IsDefault()) { + _impl_.text_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Ad.text) +} + +// ------------------------------------------------------------------- + +// Flag + +// string name = 1; +inline void Flag::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& Flag::name() const { + // @@protoc_insertion_point(field_get:oteldemo.Flag.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Flag::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Flag.name) +} +inline std::string* Flag::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.Flag.name) + return _s; +} +inline const std::string& Flag::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void Flag::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* Flag::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* Flag::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Flag.name) + return _impl_.name_.Release(); +} +inline void Flag::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Flag.name) +} + +// string description = 2; +inline void Flag::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& Flag::description() const { + // @@protoc_insertion_point(field_get:oteldemo.Flag.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE void Flag::set_description(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.Flag.description) +} +inline std::string* Flag::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:oteldemo.Flag.description) + return _s; +} +inline const std::string& Flag::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.description_.Get(); +} +inline void Flag::_internal_set_description(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* Flag::_internal_mutable_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.description_.Mutable( GetArenaForAllocation()); +} +inline std::string* Flag::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.Flag.description) + return _impl_.description_.Release(); +} +inline void Flag::set_allocated_description(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.Flag.description) +} + +// bool enabled = 3; +inline void Flag::clear_enabled() { + _impl_.enabled_ = false; +} +inline bool Flag::enabled() const { + // @@protoc_insertion_point(field_get:oteldemo.Flag.enabled) + return _internal_enabled(); +} +inline void Flag::set_enabled(bool value) { + _internal_set_enabled(value); + // @@protoc_insertion_point(field_set:oteldemo.Flag.enabled) +} +inline bool Flag::_internal_enabled() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.enabled_; +} +inline void Flag::_internal_set_enabled(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.enabled_ = value; +} + +// ------------------------------------------------------------------- + +// GetFlagRequest + +// string name = 1; +inline void GetFlagRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& GetFlagRequest::name() const { + // @@protoc_insertion_point(field_get:oteldemo.GetFlagRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void GetFlagRequest::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.GetFlagRequest.name) +} +inline std::string* GetFlagRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetFlagRequest.name) + return _s; +} +inline const std::string& GetFlagRequest::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void GetFlagRequest::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetFlagRequest::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* GetFlagRequest::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetFlagRequest.name) + return _impl_.name_.Release(); +} +inline void GetFlagRequest::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetFlagRequest.name) +} + +// ------------------------------------------------------------------- + +// GetFlagResponse + +// .oteldemo.Flag flag = 1; +inline bool GetFlagResponse::has_flag() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flag_ != nullptr); + return value; +} +inline void GetFlagResponse::clear_flag() { + if (_impl_.flag_ != nullptr) _impl_.flag_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Flag& GetFlagResponse::_internal_flag() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Flag* p = _impl_.flag_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Flag_default_instance_); +} +inline const ::oteldemo::Flag& GetFlagResponse::flag() const { + // @@protoc_insertion_point(field_get:oteldemo.GetFlagResponse.flag) + return _internal_flag(); +} +inline void GetFlagResponse::unsafe_arena_set_allocated_flag(::oteldemo::Flag* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flag_); + } + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.GetFlagResponse.flag) +} +inline ::oteldemo::Flag* GetFlagResponse::release_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Flag* released = _impl_.flag_; + _impl_.flag_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Flag* GetFlagResponse::unsafe_arena_release_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.GetFlagResponse.flag) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Flag* temp = _impl_.flag_; + _impl_.flag_ = nullptr; + return temp; +} +inline ::oteldemo::Flag* GetFlagResponse::_internal_mutable_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.flag_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Flag>(GetArenaForAllocation()); + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(p); + } + return _impl_.flag_; +} +inline ::oteldemo::Flag* GetFlagResponse::mutable_flag() { + ::oteldemo::Flag* _msg = _internal_mutable_flag(); + // @@protoc_insertion_point(field_mutable:oteldemo.GetFlagResponse.flag) + return _msg; +} +inline void GetFlagResponse::set_allocated_flag(::oteldemo::Flag* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Flag*>(_impl_.flag_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Flag*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.GetFlagResponse.flag) +} + +// ------------------------------------------------------------------- + +// CreateFlagRequest + +// string name = 1; +inline void CreateFlagRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& CreateFlagRequest::name() const { + // @@protoc_insertion_point(field_get:oteldemo.CreateFlagRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CreateFlagRequest::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.CreateFlagRequest.name) +} +inline std::string* CreateFlagRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.CreateFlagRequest.name) + return _s; +} +inline const std::string& CreateFlagRequest::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void CreateFlagRequest::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateFlagRequest::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* CreateFlagRequest::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CreateFlagRequest.name) + return _impl_.name_.Release(); +} +inline void CreateFlagRequest::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.CreateFlagRequest.name) +} + +// string description = 2; +inline void CreateFlagRequest::clear_description() { + _impl_.description_.ClearToEmpty(); +} +inline const std::string& CreateFlagRequest::description() const { + // @@protoc_insertion_point(field_get:oteldemo.CreateFlagRequest.description) + return _internal_description(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CreateFlagRequest::set_description(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.CreateFlagRequest.description) +} +inline std::string* CreateFlagRequest::mutable_description() { + std::string* _s = _internal_mutable_description(); + // @@protoc_insertion_point(field_mutable:oteldemo.CreateFlagRequest.description) + return _s; +} +inline const std::string& CreateFlagRequest::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.description_.Get(); +} +inline void CreateFlagRequest::_internal_set_description(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.description_.Set(value, GetArenaForAllocation()); +} +inline std::string* CreateFlagRequest::_internal_mutable_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.description_.Mutable( GetArenaForAllocation()); +} +inline std::string* CreateFlagRequest::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CreateFlagRequest.description) + return _impl_.description_.Release(); +} +inline void CreateFlagRequest::set_allocated_description(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.description_.IsDefault()) { + _impl_.description_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.CreateFlagRequest.description) +} + +// bool enabled = 3; +inline void CreateFlagRequest::clear_enabled() { + _impl_.enabled_ = false; +} +inline bool CreateFlagRequest::enabled() const { + // @@protoc_insertion_point(field_get:oteldemo.CreateFlagRequest.enabled) + return _internal_enabled(); +} +inline void CreateFlagRequest::set_enabled(bool value) { + _internal_set_enabled(value); + // @@protoc_insertion_point(field_set:oteldemo.CreateFlagRequest.enabled) +} +inline bool CreateFlagRequest::_internal_enabled() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.enabled_; +} +inline void CreateFlagRequest::_internal_set_enabled(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.enabled_ = value; +} + +// ------------------------------------------------------------------- + +// CreateFlagResponse + +// .oteldemo.Flag flag = 1; +inline bool CreateFlagResponse::has_flag() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flag_ != nullptr); + return value; +} +inline void CreateFlagResponse::clear_flag() { + if (_impl_.flag_ != nullptr) _impl_.flag_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::oteldemo::Flag& CreateFlagResponse::_internal_flag() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::oteldemo::Flag* p = _impl_.flag_; + return p != nullptr ? *p : reinterpret_cast(::oteldemo::_Flag_default_instance_); +} +inline const ::oteldemo::Flag& CreateFlagResponse::flag() const { + // @@protoc_insertion_point(field_get:oteldemo.CreateFlagResponse.flag) + return _internal_flag(); +} +inline void CreateFlagResponse::unsafe_arena_set_allocated_flag(::oteldemo::Flag* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flag_); + } + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:oteldemo.CreateFlagResponse.flag) +} +inline ::oteldemo::Flag* CreateFlagResponse::release_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Flag* released = _impl_.flag_; + _impl_.flag_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArenaForAllocation() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::oteldemo::Flag* CreateFlagResponse::unsafe_arena_release_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.CreateFlagResponse.flag) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::oteldemo::Flag* temp = _impl_.flag_; + _impl_.flag_ = nullptr; + return temp; +} +inline ::oteldemo::Flag* CreateFlagResponse::_internal_mutable_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.flag_ == nullptr) { + auto* p = CreateMaybeMessage<::oteldemo::Flag>(GetArenaForAllocation()); + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(p); + } + return _impl_.flag_; +} +inline ::oteldemo::Flag* CreateFlagResponse::mutable_flag() { + ::oteldemo::Flag* _msg = _internal_mutable_flag(); + // @@protoc_insertion_point(field_mutable:oteldemo.CreateFlagResponse.flag) + return _msg; +} +inline void CreateFlagResponse::set_allocated_flag(::oteldemo::Flag* value) { + ::google::protobuf::Arena* message_arena = GetArenaForAllocation(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::oteldemo::Flag*>(_impl_.flag_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::oteldemo::Flag*>(value)); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.flag_ = reinterpret_cast<::oteldemo::Flag*>(value); + // @@protoc_insertion_point(field_set_allocated:oteldemo.CreateFlagResponse.flag) +} + +// ------------------------------------------------------------------- + +// UpdateFlagRequest + +// string name = 1; +inline void UpdateFlagRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& UpdateFlagRequest::name() const { + // @@protoc_insertion_point(field_get:oteldemo.UpdateFlagRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void UpdateFlagRequest::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.UpdateFlagRequest.name) +} +inline std::string* UpdateFlagRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.UpdateFlagRequest.name) + return _s; +} +inline const std::string& UpdateFlagRequest::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void UpdateFlagRequest::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* UpdateFlagRequest::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* UpdateFlagRequest::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.UpdateFlagRequest.name) + return _impl_.name_.Release(); +} +inline void UpdateFlagRequest::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.UpdateFlagRequest.name) +} + +// bool enabled = 2; +inline void UpdateFlagRequest::clear_enabled() { + _impl_.enabled_ = false; +} +inline bool UpdateFlagRequest::enabled() const { + // @@protoc_insertion_point(field_get:oteldemo.UpdateFlagRequest.enabled) + return _internal_enabled(); +} +inline void UpdateFlagRequest::set_enabled(bool value) { + _internal_set_enabled(value); + // @@protoc_insertion_point(field_set:oteldemo.UpdateFlagRequest.enabled) +} +inline bool UpdateFlagRequest::_internal_enabled() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.enabled_; +} +inline void UpdateFlagRequest::_internal_set_enabled(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.enabled_ = value; +} + +// ------------------------------------------------------------------- + +// UpdateFlagResponse + +// ------------------------------------------------------------------- + +// ListFlagsRequest + +// ------------------------------------------------------------------- + +// ListFlagsResponse + +// repeated .oteldemo.Flag flag = 1; +inline int ListFlagsResponse::_internal_flag_size() const { + return _internal_flag().size(); +} +inline int ListFlagsResponse::flag_size() const { + return _internal_flag_size(); +} +inline void ListFlagsResponse::clear_flag() { + _internal_mutable_flag()->Clear(); +} +inline ::oteldemo::Flag* ListFlagsResponse::mutable_flag(int index) { + // @@protoc_insertion_point(field_mutable:oteldemo.ListFlagsResponse.flag) + return _internal_mutable_flag()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::oteldemo::Flag >* +ListFlagsResponse::mutable_flag() { + // @@protoc_insertion_point(field_mutable_list:oteldemo.ListFlagsResponse.flag) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_flag(); +} +inline const ::oteldemo::Flag& ListFlagsResponse::flag(int index) const { + // @@protoc_insertion_point(field_get:oteldemo.ListFlagsResponse.flag) + return _internal_flag().Get(index); +} +inline ::oteldemo::Flag* ListFlagsResponse::add_flag() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::oteldemo::Flag* _add = _internal_mutable_flag()->Add(); + // @@protoc_insertion_point(field_add:oteldemo.ListFlagsResponse.flag) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::oteldemo::Flag >& +ListFlagsResponse::flag() const { + // @@protoc_insertion_point(field_list:oteldemo.ListFlagsResponse.flag) + return _internal_flag(); +} +inline const ::google::protobuf::RepeatedPtrField<::oteldemo::Flag>& +ListFlagsResponse::_internal_flag() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.flag_; +} +inline ::google::protobuf::RepeatedPtrField<::oteldemo::Flag>* +ListFlagsResponse::_internal_mutable_flag() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.flag_; +} + +// ------------------------------------------------------------------- + +// DeleteFlagRequest + +// string name = 1; +inline void DeleteFlagRequest::clear_name() { + _impl_.name_.ClearToEmpty(); +} +inline const std::string& DeleteFlagRequest::name() const { + // @@protoc_insertion_point(field_get:oteldemo.DeleteFlagRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void DeleteFlagRequest::set_name(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:oteldemo.DeleteFlagRequest.name) +} +inline std::string* DeleteFlagRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:oteldemo.DeleteFlagRequest.name) + return _s; +} +inline const std::string& DeleteFlagRequest::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.name_.Get(); +} +inline void DeleteFlagRequest::_internal_set_name(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* DeleteFlagRequest::_internal_mutable_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.name_.Mutable( GetArenaForAllocation()); +} +inline std::string* DeleteFlagRequest::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:oteldemo.DeleteFlagRequest.name) + return _impl_.name_.Release(); +} +inline void DeleteFlagRequest::set_allocated_name(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:oteldemo.DeleteFlagRequest.name) +} + +// ------------------------------------------------------------------- + +// DeleteFlagResponse + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace oteldemo + + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_demo_2eproto_2epb_2eh diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo_mock.grpc.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo_mock.grpc.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..b8091d166ecead49318624a5fd54d4f18e0af423 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/demo_mock.grpc.pb.h @@ -0,0 +1,132 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: demo.proto + +#ifndef GRPC_MOCK_demo_2eproto__INCLUDED +#define GRPC_MOCK_demo_2eproto__INCLUDED + +#include "demo.pb.h" +#include "demo.grpc.pb.h" + +#include +#include +#include +namespace oteldemo { + +class MockCartServiceStub : public CartService::StubInterface { + public: + MOCK_METHOD3(AddItem, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::oteldemo::Empty* response)); + MOCK_METHOD3(AsyncAddItemRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncAddItemRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::AddItemRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetCart, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::oteldemo::Cart* response)); + MOCK_METHOD3(AsyncGetCartRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>*(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetCartRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Cart>*(::grpc::ClientContext* context, const ::oteldemo::GetCartRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EmptyCart, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::oteldemo::Empty* response)); + MOCK_METHOD3(AsyncEmptyCartRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEmptyCartRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::EmptyCartRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockRecommendationServiceStub : public RecommendationService::StubInterface { + public: + MOCK_METHOD3(ListRecommendations, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::oteldemo::ListRecommendationsResponse* response)); + MOCK_METHOD3(AsyncListRecommendationsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>*(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncListRecommendationsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListRecommendationsResponse>*(::grpc::ClientContext* context, const ::oteldemo::ListRecommendationsRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockProductCatalogServiceStub : public ProductCatalogService::StubInterface { + public: + MOCK_METHOD3(ListProducts, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::ListProductsResponse* response)); + MOCK_METHOD3(AsyncListProductsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>*(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncListProductsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListProductsResponse>*(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetProduct, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::oteldemo::Product* response)); + MOCK_METHOD3(AsyncGetProductRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>*(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetProductRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Product>*(::grpc::ClientContext* context, const ::oteldemo::GetProductRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(SearchProducts, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::oteldemo::SearchProductsResponse* response)); + MOCK_METHOD3(AsyncSearchProductsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>*(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncSearchProductsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::SearchProductsResponse>*(::grpc::ClientContext* context, const ::oteldemo::SearchProductsRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockProductReviewServiceStub : public ProductReviewService::StubInterface { + public: + MOCK_METHOD3(GetProductReviews, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::oteldemo::GetProductReviewsResponse* response)); + MOCK_METHOD3(AsyncGetProductReviewsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetProductReviewsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetProductReviewsResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetProductReviewsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(GetAverageProductReviewScore, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::oteldemo::GetAverageProductReviewScoreResponse* response)); + MOCK_METHOD3(AsyncGetAverageProductReviewScoreRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetAverageProductReviewScoreRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetAverageProductReviewScoreResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetAverageProductReviewScoreRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(AskProductAIAssistant, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::oteldemo::AskProductAIAssistantResponse* response)); + MOCK_METHOD3(AsyncAskProductAIAssistantRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>*(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncAskProductAIAssistantRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AskProductAIAssistantResponse>*(::grpc::ClientContext* context, const ::oteldemo::AskProductAIAssistantRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockShippingServiceStub : public ShippingService::StubInterface { + public: + MOCK_METHOD3(GetQuote, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::oteldemo::GetQuoteResponse* response)); + MOCK_METHOD3(AsyncGetQuoteRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetQuoteRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetQuoteResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetQuoteRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(ShipOrder, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::oteldemo::ShipOrderResponse* response)); + MOCK_METHOD3(AsyncShipOrderRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>*(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncShipOrderRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ShipOrderResponse>*(::grpc::ClientContext* context, const ::oteldemo::ShipOrderRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockCurrencyServiceStub : public CurrencyService::StubInterface { + public: + MOCK_METHOD3(GetSupportedCurrencies, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::oteldemo::GetSupportedCurrenciesResponse* response)); + MOCK_METHOD3(AsyncGetSupportedCurrenciesRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>*(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetSupportedCurrenciesRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetSupportedCurrenciesResponse>*(::grpc::ClientContext* context, const ::oteldemo::Empty& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(Convert, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::oteldemo::Money* response)); + MOCK_METHOD3(AsyncConvertRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>*(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncConvertRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Money>*(::grpc::ClientContext* context, const ::oteldemo::CurrencyConversionRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockPaymentServiceStub : public PaymentService::StubInterface { + public: + MOCK_METHOD3(Charge, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::oteldemo::ChargeResponse* response)); + MOCK_METHOD3(AsyncChargeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>*(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncChargeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ChargeResponse>*(::grpc::ClientContext* context, const ::oteldemo::ChargeRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockEmailServiceStub : public EmailService::StubInterface { + public: + MOCK_METHOD3(SendOrderConfirmation, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::oteldemo::Empty* response)); + MOCK_METHOD3(AsyncSendOrderConfirmationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncSendOrderConfirmationRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::Empty>*(::grpc::ClientContext* context, const ::oteldemo::SendOrderConfirmationRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockCheckoutServiceStub : public CheckoutService::StubInterface { + public: + MOCK_METHOD3(PlaceOrder, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::oteldemo::PlaceOrderResponse* response)); + MOCK_METHOD3(AsyncPlaceOrderRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>*(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncPlaceOrderRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::PlaceOrderResponse>*(::grpc::ClientContext* context, const ::oteldemo::PlaceOrderRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockAdServiceStub : public AdService::StubInterface { + public: + MOCK_METHOD3(GetAds, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::oteldemo::AdResponse* response)); + MOCK_METHOD3(AsyncGetAdsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>*(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetAdsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::AdResponse>*(::grpc::ClientContext* context, const ::oteldemo::AdRequest& request, ::grpc::CompletionQueue* cq)); +}; + +class MockFeatureFlagServiceStub : public FeatureFlagService::StubInterface { + public: + MOCK_METHOD3(GetFlag, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::oteldemo::GetFlagResponse* response)); + MOCK_METHOD3(AsyncGetFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncGetFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::GetFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::GetFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(CreateFlag, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::oteldemo::CreateFlagResponse* response)); + MOCK_METHOD3(AsyncCreateFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncCreateFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::CreateFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::CreateFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(UpdateFlag, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::oteldemo::UpdateFlagResponse* response)); + MOCK_METHOD3(AsyncUpdateFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncUpdateFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::UpdateFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::UpdateFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(ListFlags, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::oteldemo::ListFlagsResponse* response)); + MOCK_METHOD3(AsyncListFlagsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>*(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncListFlagsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::ListFlagsResponse>*(::grpc::ClientContext* context, const ::oteldemo::ListFlagsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(DeleteFlag, ::grpc::Status(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::oteldemo::DeleteFlagResponse* response)); + MOCK_METHOD3(AsyncDeleteFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncDeleteFlagRaw, ::grpc::ClientAsyncResponseReaderInterface< ::oteldemo::DeleteFlagResponse>*(::grpc::ClientContext* context, const ::oteldemo::DeleteFlagRequest& request, ::grpc::CompletionQueue* cq)); +}; + +} // namespace oteldemo + + +#endif // GRPC_MOCK_demo_2eproto__INCLUDED diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.cc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.cc new file mode 100644 index 0000000000000000000000000000000000000000..18b8401f39a782f9fe3271f58783f4683d071372 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.cc @@ -0,0 +1,90 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: grpc/health/v1/health.proto + +#include "grpc/health/v1/health.pb.h" +#include "grpc/health/v1/health.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace grpc { +namespace health { +namespace v1 { + +static const char* Health_method_names[] = { + "/grpc.health.v1.Health/Check", +}; + +std::unique_ptr< Health::Stub> Health::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< Health::Stub> stub(new Health::Stub(channel, options)); + return stub; +} + +Health::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Check_(Health_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status Health::Stub::Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::health::v1::HealthCheckResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Check_, context, request, response); +} + +void Health::Stub::async::Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Check_, context, request, response, std::move(f)); +} + +void Health::Stub::async::Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Check_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>* Health::Stub::PrepareAsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::grpc::health::v1::HealthCheckResponse, ::grpc::health::v1::HealthCheckRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Check_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>* Health::Stub::AsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCheckRaw(context, request, cq); + result->StartCall(); + return result; +} + +Health::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + Health_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Health::Service, ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Health::Service* service, + ::grpc::ServerContext* ctx, + const ::grpc::health::v1::HealthCheckRequest* req, + ::grpc::health::v1::HealthCheckResponse* resp) { + return service->Check(ctx, req, resp); + }, this))); +} + +Health::Service::~Service() { +} + +::grpc::Status Health::Service::Check(::grpc::ServerContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace grpc +} // namespace health +} // namespace v1 + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..8303925196915926b17f3b9095041e913f2326ac --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.grpc.pb.h @@ -0,0 +1,262 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: grpc/health/v1/health.proto +// Original file comments: +// Copyright 2015 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// The canonical version of this proto can be found at +// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto +// +#ifndef GRPC_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED +#define GRPC_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED + +#include "grpc/health/v1/health.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +namespace health { +namespace v1 { + +class Health final { + public: + static constexpr char const* service_full_name() { + return "grpc.health.v1.Health"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::health::v1::HealthCheckResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>> AsyncCheck(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>>(AsyncCheckRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>> PrepareAsyncCheck(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>>(PrepareAsyncCheckRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, std::function) = 0; + virtual void Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>* AsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>* PrepareAsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::health::v1::HealthCheckResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>> AsyncCheck(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>>(AsyncCheckRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>> PrepareAsyncCheck(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>>(PrepareAsyncCheckRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, std::function) override; + void Check(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>* AsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::grpc::health::v1::HealthCheckResponse>* PrepareAsyncCheckRaw(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Check_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status Check(::grpc::ServerContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response); + }; + template + class WithAsyncMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Check() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCheck(::grpc::ServerContext* context, ::grpc::health::v1::HealthCheckRequest* request, ::grpc::ServerAsyncResponseWriter< ::grpc::health::v1::HealthCheckResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Check AsyncService; + template + class WithCallbackMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Check() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::health::v1::HealthCheckRequest* request, ::grpc::health::v1::HealthCheckResponse* response) { return this->Check(context, request, response); }));} + void SetMessageAllocatorFor_Check( + ::grpc::MessageAllocator< ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Check( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Check CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Check() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Check() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCheck(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Check() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Check(context, request, response); })); + } + ~WithRawCallbackMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Check( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Check : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Check() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::grpc::health::v1::HealthCheckRequest, ::grpc::health::v1::HealthCheckResponse>* streamer) { + return this->StreamedCheck(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Check() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Check(::grpc::ServerContext* /*context*/, const ::grpc::health::v1::HealthCheckRequest* /*request*/, ::grpc::health::v1::HealthCheckResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCheck(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::grpc::health::v1::HealthCheckRequest,::grpc::health::v1::HealthCheckResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Check StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_Check StreamedService; +}; + +} // namespace v1 +} // namespace health +} // namespace grpc + + +#endif // GRPC_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.cc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.cc new file mode 100644 index 0000000000000000000000000000000000000000..4eb11beb839aee3900b3924d984ec312458bda91 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.cc @@ -0,0 +1,544 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: grpc/health/v1/health.proto + +#include "grpc/health/v1/health.pb.h" + +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; +namespace grpc { +namespace health { +namespace v1 { + template +PROTOBUF_CONSTEXPR HealthCheckRequest::HealthCheckRequest(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.service_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct HealthCheckRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR HealthCheckRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HealthCheckRequestDefaultTypeInternal() {} + union { + HealthCheckRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HealthCheckRequestDefaultTypeInternal _HealthCheckRequest_default_instance_; + template +PROTOBUF_CONSTEXPR HealthCheckResponse::HealthCheckResponse(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.status_)*/ 0, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct HealthCheckResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR HealthCheckResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HealthCheckResponseDefaultTypeInternal() {} + union { + HealthCheckResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HealthCheckResponseDefaultTypeInternal _HealthCheckResponse_default_instance_; +} // namespace v1 +} // namespace health +} // namespace grpc +static ::_pb::Metadata file_level_metadata_grpc_2fhealth_2fv1_2fhealth_2eproto[2]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_grpc_2fhealth_2fv1_2fhealth_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_grpc_2fhealth_2fv1_2fhealth_2eproto = nullptr; +const ::uint32_t TableStruct_grpc_2fhealth_2fv1_2fhealth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::health::v1::HealthCheckRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::health::v1::HealthCheckRequest, _impl_.service_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::health::v1::HealthCheckResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::health::v1::HealthCheckResponse, _impl_.status_), +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::grpc::health::v1::HealthCheckRequest)}, + {9, -1, -1, sizeof(::grpc::health::v1::HealthCheckResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::grpc::health::v1::_HealthCheckRequest_default_instance_._instance, + &::grpc::health::v1::_HealthCheckResponse_default_instance_._instance, +}; +const char descriptor_table_protodef_grpc_2fhealth_2fv1_2fhealth_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\033grpc/health/v1/health.proto\022\016grpc.heal" + "th.v1\"%\n\022HealthCheckRequest\022\017\n\007service\030\001" + " \001(\t\"\224\001\n\023HealthCheckResponse\022A\n\006status\030\001" + " \001(\01621.grpc.health.v1.HealthCheckRespons" + "e.ServingStatus\":\n\rServingStatus\022\013\n\007UNKN" + "OWN\020\000\022\013\n\007SERVING\020\001\022\017\n\013NOT_SERVING\020\0022Z\n\006H" + "ealth\022P\n\005Check\022\".grpc.health.v1.HealthCh" + "eckRequest\032#.grpc.health.v1.HealthCheckR" + "esponseBa\n\021io.grpc.health.v1B\013HealthProt" + "oP\001Z,google.golang.org/grpc/health/grpc_" + "health_v1\252\002\016Grpc.Health.V1b\006proto3" +}; +static ::absl::once_flag descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto = { + false, + false, + 434, + descriptor_table_protodef_grpc_2fhealth_2fv1_2fhealth_2eproto, + "grpc/health/v1/health.proto", + &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_once, + nullptr, + 0, + 2, + schemas, + file_default_instances, + TableStruct_grpc_2fhealth_2fv1_2fhealth_2eproto::offsets, + file_level_metadata_grpc_2fhealth_2fv1_2fhealth_2eproto, + file_level_enum_descriptors_grpc_2fhealth_2fv1_2fhealth_2eproto, + file_level_service_descriptors_grpc_2fhealth_2fv1_2fhealth_2eproto, +}; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_getter() { + return &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_grpc_2fhealth_2fv1_2fhealth_2eproto(&descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto); +namespace grpc { +namespace health { +namespace v1 { +const ::google::protobuf::EnumDescriptor* HealthCheckResponse_ServingStatus_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto); + return file_level_enum_descriptors_grpc_2fhealth_2fv1_2fhealth_2eproto[0]; +} +bool HealthCheckResponse_ServingStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse::UNKNOWN; +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse::SERVING; +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse::NOT_SERVING; +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse::ServingStatus_MIN; +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse::ServingStatus_MAX; +constexpr int HealthCheckResponse::ServingStatus_ARRAYSIZE; + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +// =================================================================== + +class HealthCheckRequest::_Internal { + public: +}; + +HealthCheckRequest::HealthCheckRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:grpc.health.v1.HealthCheckRequest) +} +HealthCheckRequest::HealthCheckRequest(const HealthCheckRequest& from) : ::google::protobuf::Message() { + HealthCheckRequest* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.service_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_service().empty()) { + _this->_impl_.service_.Set(from._internal_service(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:grpc.health.v1.HealthCheckRequest) +} +inline void HealthCheckRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.service_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.service_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.service_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +HealthCheckRequest::~HealthCheckRequest() { + // @@protoc_insertion_point(destructor:grpc.health.v1.HealthCheckRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void HealthCheckRequest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.service_.Destroy(); +} +void HealthCheckRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void HealthCheckRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:grpc.health.v1.HealthCheckRequest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.service_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* HealthCheckRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 49, 2> HealthCheckRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_HealthCheckRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string service = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(HealthCheckRequest, _impl_.service_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string service = 1; + {PROTOBUF_FIELD_OFFSET(HealthCheckRequest, _impl_.service_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\41\7\0\0\0\0\0\0" + "grpc.health.v1.HealthCheckRequest" + "service" + }}, +}; + +::uint8_t* HealthCheckRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:grpc.health.v1.HealthCheckRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string service = 1; + if (!this->_internal_service().empty()) { + const std::string& _s = this->_internal_service(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.health.v1.HealthCheckRequest.service"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:grpc.health.v1.HealthCheckRequest) + return target; +} + +::size_t HealthCheckRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:grpc.health.v1.HealthCheckRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string service = 1; + if (!this->_internal_service().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_service()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData HealthCheckRequest::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + HealthCheckRequest::MergeImpl +}; +const ::google::protobuf::Message::ClassData*HealthCheckRequest::GetClassData() const { return &_class_data_; } + + +void HealthCheckRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:grpc.health.v1.HealthCheckRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_service().empty()) { + _this->_internal_set_service(from._internal_service()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void HealthCheckRequest::CopyFrom(const HealthCheckRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.health.v1.HealthCheckRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool HealthCheckRequest::IsInitialized() const { + return true; +} + +void HealthCheckRequest::InternalSwap(HealthCheckRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_, lhs_arena, + &other->_impl_.service_, rhs_arena); +} + +::google::protobuf::Metadata HealthCheckRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_getter, &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_once, + file_level_metadata_grpc_2fhealth_2fv1_2fhealth_2eproto[0]); +} +// =================================================================== + +class HealthCheckResponse::_Internal { + public: +}; + +HealthCheckResponse::HealthCheckResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:grpc.health.v1.HealthCheckResponse) +} +HealthCheckResponse::HealthCheckResponse(const HealthCheckResponse& from) + : ::google::protobuf::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:grpc.health.v1.HealthCheckResponse) +} +inline void HealthCheckResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.status_){0}, + /*decltype(_impl_._cached_size_)*/ {}, + }; +} +HealthCheckResponse::~HealthCheckResponse() { + // @@protoc_insertion_point(destructor:grpc.health.v1.HealthCheckResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void HealthCheckResponse::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); +} +void HealthCheckResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void HealthCheckResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:grpc.health.v1.HealthCheckResponse) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.status_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* HealthCheckResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> HealthCheckResponse::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_HealthCheckResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HealthCheckResponse, _impl_.status_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(HealthCheckResponse, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; + {PROTOBUF_FIELD_OFFSET(HealthCheckResponse, _impl_.status_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{ + }}, +}; + +::uint8_t* HealthCheckResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:grpc.health.v1.HealthCheckResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_status(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:grpc.health.v1.HealthCheckResponse) + return target; +} + +::size_t HealthCheckResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:grpc.health.v1.HealthCheckResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData HealthCheckResponse::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + HealthCheckResponse::MergeImpl +}; +const ::google::protobuf::Message::ClassData*HealthCheckResponse::GetClassData() const { return &_class_data_; } + + +void HealthCheckResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:grpc.health.v1.HealthCheckResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void HealthCheckResponse::CopyFrom(const HealthCheckResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.health.v1.HealthCheckResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool HealthCheckResponse::IsInitialized() const { + return true; +} + +void HealthCheckResponse::InternalSwap(HealthCheckResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.status_, other->_impl_.status_); +} + +::google::protobuf::Metadata HealthCheckResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_getter, &descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto_once, + file_level_metadata_grpc_2fhealth_2fv1_2fhealth_2eproto[1]); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace health +} // namespace grpc +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..ebe2598b1d7dbee8fcb3efae8919f1e99b551ce1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health.pb.h @@ -0,0 +1,579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: grpc/health/v1/health.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_grpc_2fhealth_2fv1_2fhealth_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_grpc_2fhealth_2fv1_2fhealth_2eproto_2epb_2eh + +#include +#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION < 4024000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4024004 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_grpc_2fhealth_2fv1_2fhealth_2eproto + +namespace google { +namespace protobuf { +namespace internal { +class AnyMetadata; +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_grpc_2fhealth_2fv1_2fhealth_2eproto { + static const ::uint32_t offsets[]; +}; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_grpc_2fhealth_2fv1_2fhealth_2eproto; +namespace grpc { +namespace health { +namespace v1 { +class HealthCheckRequest; +struct HealthCheckRequestDefaultTypeInternal; +extern HealthCheckRequestDefaultTypeInternal _HealthCheckRequest_default_instance_; +class HealthCheckResponse; +struct HealthCheckResponseDefaultTypeInternal; +extern HealthCheckResponseDefaultTypeInternal _HealthCheckResponse_default_instance_; +} // namespace v1 +} // namespace health +} // namespace grpc +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +namespace grpc { +namespace health { +namespace v1 { +enum HealthCheckResponse_ServingStatus : int { + HealthCheckResponse_ServingStatus_UNKNOWN = 0, + HealthCheckResponse_ServingStatus_SERVING = 1, + HealthCheckResponse_ServingStatus_NOT_SERVING = 2, + HealthCheckResponse_ServingStatus_HealthCheckResponse_ServingStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + HealthCheckResponse_ServingStatus_HealthCheckResponse_ServingStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), +}; + +bool HealthCheckResponse_ServingStatus_IsValid(int value); +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse_ServingStatus_ServingStatus_MIN = static_cast(0); +constexpr HealthCheckResponse_ServingStatus HealthCheckResponse_ServingStatus_ServingStatus_MAX = static_cast(2); +constexpr int HealthCheckResponse_ServingStatus_ServingStatus_ARRAYSIZE = 2 + 1; +const ::google::protobuf::EnumDescriptor* +HealthCheckResponse_ServingStatus_descriptor(); +template +const std::string& HealthCheckResponse_ServingStatus_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to ServingStatus_Name()."); + return HealthCheckResponse_ServingStatus_Name(static_cast(value)); +} +template <> +inline const std::string& HealthCheckResponse_ServingStatus_Name(HealthCheckResponse_ServingStatus value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool HealthCheckResponse_ServingStatus_Parse(absl::string_view name, HealthCheckResponse_ServingStatus* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HealthCheckResponse_ServingStatus_descriptor(), name, value); +} + +// =================================================================== + + +// ------------------------------------------------------------------- + +class HealthCheckRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.health.v1.HealthCheckRequest) */ { + public: + inline HealthCheckRequest() : HealthCheckRequest(nullptr) {} + ~HealthCheckRequest() override; + template + explicit PROTOBUF_CONSTEXPR HealthCheckRequest(::google::protobuf::internal::ConstantInitialized); + + HealthCheckRequest(const HealthCheckRequest& from); + HealthCheckRequest(HealthCheckRequest&& from) noexcept + : HealthCheckRequest() { + *this = ::std::move(from); + } + + inline HealthCheckRequest& operator=(const HealthCheckRequest& from) { + CopyFrom(from); + return *this; + } + inline HealthCheckRequest& operator=(HealthCheckRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const HealthCheckRequest& default_instance() { + return *internal_default_instance(); + } + static inline const HealthCheckRequest* internal_default_instance() { + return reinterpret_cast( + &_HealthCheckRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(HealthCheckRequest& a, HealthCheckRequest& b) { + a.Swap(&b); + } + inline void Swap(HealthCheckRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HealthCheckRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HealthCheckRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const HealthCheckRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const HealthCheckRequest& from) { + HealthCheckRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HealthCheckRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "grpc.health.v1.HealthCheckRequest"; + } + protected: + explicit HealthCheckRequest(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kServiceFieldNumber = 1, + }; + // string service = 1; + void clear_service() ; + const std::string& service() const; + template + void set_service(Arg_&& arg, Args_... args); + std::string* mutable_service(); + PROTOBUF_NODISCARD std::string* release_service(); + void set_allocated_service(std::string* ptr); + + private: + const std::string& _internal_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_service( + const std::string& value); + std::string* _internal_mutable_service(); + + public: + // @@protoc_insertion_point(class_scope:grpc.health.v1.HealthCheckRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 49, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr service_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_grpc_2fhealth_2fv1_2fhealth_2eproto; +};// ------------------------------------------------------------------- + +class HealthCheckResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.health.v1.HealthCheckResponse) */ { + public: + inline HealthCheckResponse() : HealthCheckResponse(nullptr) {} + ~HealthCheckResponse() override; + template + explicit PROTOBUF_CONSTEXPR HealthCheckResponse(::google::protobuf::internal::ConstantInitialized); + + HealthCheckResponse(const HealthCheckResponse& from); + HealthCheckResponse(HealthCheckResponse&& from) noexcept + : HealthCheckResponse() { + *this = ::std::move(from); + } + + inline HealthCheckResponse& operator=(const HealthCheckResponse& from) { + CopyFrom(from); + return *this; + } + inline HealthCheckResponse& operator=(HealthCheckResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const HealthCheckResponse& default_instance() { + return *internal_default_instance(); + } + static inline const HealthCheckResponse* internal_default_instance() { + return reinterpret_cast( + &_HealthCheckResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(HealthCheckResponse& a, HealthCheckResponse& b) { + a.Swap(&b); + } + inline void Swap(HealthCheckResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HealthCheckResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HealthCheckResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const HealthCheckResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const HealthCheckResponse& from) { + HealthCheckResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HealthCheckResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "grpc.health.v1.HealthCheckResponse"; + } + protected: + explicit HealthCheckResponse(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + using ServingStatus = HealthCheckResponse_ServingStatus; + static constexpr ServingStatus UNKNOWN = HealthCheckResponse_ServingStatus_UNKNOWN; + static constexpr ServingStatus SERVING = HealthCheckResponse_ServingStatus_SERVING; + static constexpr ServingStatus NOT_SERVING = HealthCheckResponse_ServingStatus_NOT_SERVING; + static inline bool ServingStatus_IsValid(int value) { + return HealthCheckResponse_ServingStatus_IsValid(value); + } + static constexpr ServingStatus ServingStatus_MIN = HealthCheckResponse_ServingStatus_ServingStatus_MIN; + static constexpr ServingStatus ServingStatus_MAX = HealthCheckResponse_ServingStatus_ServingStatus_MAX; + static constexpr int ServingStatus_ARRAYSIZE = HealthCheckResponse_ServingStatus_ServingStatus_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* ServingStatus_descriptor() { + return HealthCheckResponse_ServingStatus_descriptor(); + } + template + static inline const std::string& ServingStatus_Name(T value) { + return HealthCheckResponse_ServingStatus_Name(value); + } + static inline bool ServingStatus_Parse(absl::string_view name, ServingStatus* value) { + return HealthCheckResponse_ServingStatus_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + }; + // .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; + void clear_status() ; + ::grpc::health::v1::HealthCheckResponse_ServingStatus status() const; + void set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value); + + private: + ::grpc::health::v1::HealthCheckResponse_ServingStatus _internal_status() const; + void _internal_set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value); + + public: + // @@protoc_insertion_point(class_scope:grpc.health.v1.HealthCheckResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int status_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_grpc_2fhealth_2fv1_2fhealth_2eproto; +}; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// HealthCheckRequest + +// string service = 1; +inline void HealthCheckRequest::clear_service() { + _impl_.service_.ClearToEmpty(); +} +inline const std::string& HealthCheckRequest::service() const { + // @@protoc_insertion_point(field_get:grpc.health.v1.HealthCheckRequest.service) + return _internal_service(); +} +template +inline PROTOBUF_ALWAYS_INLINE void HealthCheckRequest::set_service(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.service_.Set(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:grpc.health.v1.HealthCheckRequest.service) +} +inline std::string* HealthCheckRequest::mutable_service() { + std::string* _s = _internal_mutable_service(); + // @@protoc_insertion_point(field_mutable:grpc.health.v1.HealthCheckRequest.service) + return _s; +} +inline const std::string& HealthCheckRequest::_internal_service() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.service_.Get(); +} +inline void HealthCheckRequest::_internal_set_service(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.service_.Set(value, GetArenaForAllocation()); +} +inline std::string* HealthCheckRequest::_internal_mutable_service() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.service_.Mutable( GetArenaForAllocation()); +} +inline std::string* HealthCheckRequest::release_service() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:grpc.health.v1.HealthCheckRequest.service) + return _impl_.service_.Release(); +} +inline void HealthCheckRequest::set_allocated_service(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.service_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.service_.IsDefault()) { + _impl_.service_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:grpc.health.v1.HealthCheckRequest.service) +} + +// ------------------------------------------------------------------- + +// HealthCheckResponse + +// .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1; +inline void HealthCheckResponse::clear_status() { + _impl_.status_ = 0; +} +inline ::grpc::health::v1::HealthCheckResponse_ServingStatus HealthCheckResponse::status() const { + // @@protoc_insertion_point(field_get:grpc.health.v1.HealthCheckResponse.status) + return _internal_status(); +} +inline void HealthCheckResponse::set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:grpc.health.v1.HealthCheckResponse.status) +} +inline ::grpc::health::v1::HealthCheckResponse_ServingStatus HealthCheckResponse::_internal_status() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return static_cast<::grpc::health::v1::HealthCheckResponse_ServingStatus>(_impl_.status_); +} +inline void HealthCheckResponse::_internal_set_status(::grpc::health::v1::HealthCheckResponse_ServingStatus value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.status_ = value; +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace health +} // namespace grpc + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::grpc::health::v1::HealthCheckResponse_ServingStatus> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::grpc::health::v1::HealthCheckResponse_ServingStatus>() { + return ::grpc::health::v1::HealthCheckResponse_ServingStatus_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_grpc_2fhealth_2fv1_2fhealth_2eproto_2epb_2eh diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health_mock.grpc.pb.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health_mock.grpc.pb.h new file mode 100644 index 0000000000000000000000000000000000000000..69e827a425d9314f12aa656436cca2b0503230d4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/build/generated/proto/grpc/health/v1/health_mock.grpc.pb.h @@ -0,0 +1,30 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: grpc/health/v1/health.proto + +#ifndef GRPC_MOCK_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED +#define GRPC_MOCK_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED + +#include "grpc/health/v1/health.pb.h" +#include "grpc/health/v1/health.grpc.pb.h" + +#include +#include +#include +namespace grpc { +namespace health { +namespace v1 { + +class MockHealthStub : public Health::StubInterface { + public: + MOCK_METHOD3(Check, ::grpc::Status(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::health::v1::HealthCheckResponse* response)); + MOCK_METHOD3(AsyncCheckRaw, ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>*(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncCheckRaw, ::grpc::ClientAsyncResponseReaderInterface< ::grpc::health::v1::HealthCheckResponse>*(::grpc::ClientContext* context, const ::grpc::health::v1::HealthCheckRequest& request, ::grpc::CompletionQueue* cq)); +}; + +} // namespace v1 +} // namespace health +} // namespace grpc + + +#endif // GRPC_MOCK_grpc_2fhealth_2fv1_2fhealth_2eproto__INCLUDED diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/CMakeLists.txt b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ba525bed41d25a1ccc68101058d19c506630e5c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/CMakeLists.txt @@ -0,0 +1,62 @@ +cmake_minimum_required(VERSION 3.26) +project(currency-proto) + +find_package(Protobuf REQUIRED) +find_package(gRPC CONFIG REQUIRED) + +set(PROTO_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../proto") +set(GENERATED_PROTOBUF_PATH "${CMAKE_BINARY_DIR}/generated/proto") +set(GENERATED_HEALTH_PROTOBUF_PATH "${GENERATED_PROTOBUF_PATH}/grpc/health/v1") + +file(MAKE_DIRECTORY "${GENERATED_PROTOBUF_PATH}") + +set(DEMO_PROTO "${PROTO_PATH}/demo.proto") +set(DEMO_PB_CPP_FILE "${GENERATED_PROTOBUF_PATH}/demo.pb.cc") +set(DEMO_PB_H_FILE "${GENERATED_PROTOBUF_PATH}/demo.pb.h") +set(DEMO_GRPC_PB_CPP_FILE "${GENERATED_PROTOBUF_PATH}/demo.grpc.pb.cc") +set(DEMO_GRPC_PB_H_FILE "${GENERATED_PROTOBUF_PATH}/demo.grpc.pb.h") +set(HEALTH_PROTO "${PROTO_PATH}/grpc/health/v1/health.proto") +set(HEALTH_PB_CPP_FILE "${GENERATED_HEALTH_PROTOBUF_PATH}/health.pb.cc") +set(HEALTH_PB_H_FILE "${GENERATED_HEALTH_PROTOBUF_PATH}/health.pb.h") +set(HEALTH_GRPC_PB_CPP_FILE "${GENERATED_HEALTH_PROTOBUF_PATH}/health.grpc.pb.cc") +set(HEALTH_GRPC_PB_H_FILE "${GENERATED_HEALTH_PROTOBUF_PATH}/health.grpc.pb.h") + +foreach(IMPORT_DIR ${PROTOBUF_IMPORT_DIRS}) + list(APPEND PROTOBUF_INCLUDE_FLAGS "-I${IMPORT_DIR}") +endforeach() + +find_program(gRPC_CPP_PLUGIN_EXECUTABLE grpc_cpp_plugin) + +add_custom_command( + OUTPUT ${DEMO_PB_H_FILE} + ${DEMO_PB_CPP_FILE} + ${DEMO_GRPC_PB_CPP_FILE} + ${DEMO_GRPC_PB_H_FILE} + ${HEALTH_PB_H_FILE} + ${HEALTH_PB_CPP_FILE} + ${HEALTH_GRPC_PB_CPP_FILE} + ${HEALTH_GRPC_PB_H_FILE} + + COMMAND + ${PROTOBUF_PROTOC_EXECUTABLE} ARGS "--experimental_allow_proto3_optional" + "--proto_path=${PROTO_PATH}" ${PROTOBUF_INCLUDE_FLAGS} + "--cpp_out=${GENERATED_PROTOBUF_PATH}" + "--grpc_out=generate_mock_code=true:${GENERATED_PROTOBUF_PATH}" + --plugin=protoc-gen-grpc="${gRPC_CPP_PLUGIN_EXECUTABLE}" ${DEMO_PROTO} ${HEALTH_PROTO} +) + +message(STATUS "gRPC_CPP_PLUGIN_EXECUTABLE=${gRPC_CPP_PLUGIN_EXECUTABLE}") + +add_library( + demo-proto ${DEMO_PB_H_FILE} + ${DEMO_PB_CPP_FILE} + ${DEMO_GRPC_PB_CPP_FILE} + ${DEMO_GRPC_PB_H_FILE} + ${HEALTH_PB_H_FILE} + ${HEALTH_PB_CPP_FILE} + ${HEALTH_GRPC_PB_CPP_FILE} + ${HEALTH_GRPC_PB_H_FILE} +) + +target_link_libraries(demo-proto gRPC::grpc++ protobuf::libprotobuf) +include_directories("${GENERATED_PROTOBUF_PATH}") diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..e6a8128af7656f4c505ee0757a9cf2fadafc1994 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/genproto/Dockerfile @@ -0,0 +1,31 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2023 The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +FROM docker.io/library/alpine:3.21 AS builder + +RUN apk update && \ + apk add git cmake make g++ grpc-dev protobuf-dev linux-headers + +WORKDIR /currency + +COPY ./src/currency/genproto/CMakeLists.txt genproto/CMakeLists.txt +COPY ./src/currency/proto/ proto/ + +COPY ./pb/demo.proto proto/demo.proto + +RUN mkdir -p build && cd build \ + && cmake ../genproto \ + && make -j$(nproc || sysctl -n hw.ncpu || echo 1) demo-proto diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/proto/grpc/health/v1/health.proto b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/proto/grpc/health/v1/health.proto new file mode 100644 index 0000000000000000000000000000000000000000..4b4677b8a4dd0cf29784bafe13cd216fc5d74537 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/proto/grpc/health/v1/health.proto @@ -0,0 +1,43 @@ +// Copyright 2015 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// The canonical version of this proto can be found at +// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto + +syntax = "proto3"; + +package grpc.health.v1; + +option csharp_namespace = "Grpc.Health.V1"; +option go_package = "google.golang.org/grpc/health/grpc_health_v1"; +option java_multiple_files = true; +option java_outer_classname = "HealthProto"; +option java_package = "io.grpc.health.v1"; + +message HealthCheckRequest { + string service = 1; +} + +message HealthCheckResponse { + enum ServingStatus { + UNKNOWN = 0; + SERVING = 1; + NOT_SERVING = 2; + } + ServingStatus status = 1; +} + +service Health { + rpc Check(HealthCheckRequest) returns (HealthCheckResponse); +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/logger_common.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/logger_common.h new file mode 100644 index 0000000000000000000000000000000000000000..cd58165580c8715fa0232e6dcd6abf7c4239965f --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/logger_common.h @@ -0,0 +1,35 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#include "opentelemetry/exporters/otlp/otlp_grpc_exporter_factory.h" +#include "opentelemetry/logs/provider.h" +#include "opentelemetry/sdk/logs/logger.h" +#include "opentelemetry/sdk/logs/logger_provider_factory.h" +#include "opentelemetry/sdk/logs/simple_log_record_processor_factory.h" +#include "opentelemetry/sdk/logs/logger_context_factory.h" +#include "opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter_factory.h" + +using namespace std; +namespace nostd = opentelemetry::nostd; +namespace otlp = opentelemetry::exporter::otlp; +namespace logs = opentelemetry::logs; +namespace logs_sdk = opentelemetry::sdk::logs; + +namespace +{ + void initLogger() { + otlp::OtlpGrpcLogRecordExporterOptions loggerOptions; + auto exporter = otlp::OtlpGrpcLogRecordExporterFactory::Create(loggerOptions); + auto processor = logs_sdk::SimpleLogRecordProcessorFactory::Create(std::move(exporter)); + std::vector> processors; + processors.push_back(std::move(processor)); + auto context = logs_sdk::LoggerContextFactory::Create(std::move(processors)); + std::shared_ptr provider = logs_sdk::LoggerProviderFactory::Create(std::move(context)); + opentelemetry::logs::Provider::SetLoggerProvider(provider); + } + + nostd::shared_ptr getLogger(std::string name){ + auto provider = logs::Provider::GetLoggerProvider(); + return provider->GetLogger(name + "_logger", name, OPENTELEMETRY_SDK_VERSION); + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/meter_common.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/meter_common.h new file mode 100644 index 0000000000000000000000000000000000000000..72f86f4695bb6372ce5d422a4d9004ba0ec01089 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/meter_common.h @@ -0,0 +1,43 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#include "opentelemetry/exporters/otlp/otlp_grpc_metric_exporter_factory.h" +#include "opentelemetry/metrics/provider.h" +#include "opentelemetry/sdk/metrics/export/periodic_exporting_metric_reader.h" +#include "opentelemetry/sdk/metrics/meter.h" +#include "opentelemetry/sdk/metrics/meter_provider.h" + +// namespaces +namespace common = opentelemetry::common; +namespace metrics_api = opentelemetry::metrics; +namespace metric_sdk = opentelemetry::sdk::metrics; +namespace nostd = opentelemetry::nostd; +namespace otlp_exporter = opentelemetry::exporter::otlp; + +namespace +{ + void initMeter() + { + // Build MetricExporter + otlp_exporter::OtlpGrpcMetricExporterOptions otlpOptions; + auto exporter = otlp_exporter::OtlpGrpcMetricExporterFactory::Create(otlpOptions); + + // Build MeterProvider and Reader + metric_sdk::PeriodicExportingMetricReaderOptions options; + std::unique_ptr reader{ + new metric_sdk::PeriodicExportingMetricReader(std::move(exporter), options) }; + auto provider = std::shared_ptr(new metric_sdk::MeterProvider()); + auto p = std::static_pointer_cast(provider); + p->AddMetricReader(std::move(reader)); + metrics_api::Provider::SetMeterProvider(provider); + } + + nostd::unique_ptr> initIntCounter(std::string name, std::string version) + { + std::string counter_name = name + "_counter"; + auto provider = metrics_api::Provider::GetMeterProvider(); + nostd::shared_ptr meter = provider->GetMeter(name, version); + auto int_counter = meter->CreateUInt64Counter(counter_name); + return int_counter; + } +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/server.cpp b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/server.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9045c98e25ba528b4aaa2d14d2972a6954ae41a4 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/server.cpp @@ -0,0 +1,284 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include +#include +#include + +#include "opentelemetry/trace/context.h" +#include "opentelemetry/semconv/incubating/rpc_attributes.h" +#include "opentelemetry/trace/span_context_kv_iterable_view.h" +#include "opentelemetry/baggage/baggage.h" +#include "opentelemetry/nostd/string_view.h" +#include "logger_common.h" +#include "meter_common.h" +#include "tracer_common.h" + +#include +#include +#include +#include +#include + +using namespace std; +using namespace opentelemetry::baggage; +using namespace opentelemetry::trace; + +using oteldemo::Empty; +using oteldemo::GetSupportedCurrenciesResponse; +using oteldemo::CurrencyConversionRequest; +using oteldemo::Money; + +using grpc::Status; +using grpc::ServerContext; +using grpc::ServerBuilder; +using grpc::Server; + +using Span = Span; +using SpanContext = SpanContext; +namespace context = opentelemetry::context; +namespace metrics_api = opentelemetry::metrics; +namespace nostd = opentelemetry::nostd; +namespace semconv = opentelemetry::semconv; + +namespace +{ + std::unordered_map currency_conversion + { + {"EUR", 1.0}, + {"USD", 1.1305}, + {"JPY", 126.40}, + {"BGN", 1.9558}, + {"CZK", 25.592}, + {"DKK", 7.4609}, + {"GBP", 0.85970}, + {"HUF", 315.51}, + {"PLN", 4.2996}, + {"RON", 4.7463}, + {"SEK", 10.5375}, + {"CHF", 1.1360}, + {"ISK", 136.80}, + {"NOK", 9.8040}, + {"HRK", 7.4210}, + {"RUB", 74.4208}, + {"TRY", 6.1247}, + {"AUD", 1.6072}, + {"BRL", 4.2682}, + {"CAD", 1.5128}, + {"CNY", 7.5857}, + {"HKD", 8.8743}, + {"IDR", 15999.40}, + {"ILS", 4.0875}, + {"INR", 79.4320}, + {"KRW", 1275.05}, + {"MXN", 21.7999}, + {"MYR", 4.6289}, + {"NZD", 1.6679}, + {"PHP", 59.083}, + {"SGD", 1.5349}, + {"THB", 36.012}, + {"ZAR", 16.0583}, + }; + + std::string version = std::getenv("VERSION"); + std::string name{ "currency" }; + + nostd::unique_ptr> currency_counter; + nostd::shared_ptr logger; + +class HealthServer final : public grpc::health::v1::Health::Service +{ + Status Check( + ServerContext* context, + const grpc::health::v1::HealthCheckRequest* request, + grpc::health::v1::HealthCheckResponse* response) override + { + response->set_status(grpc::health::v1::HealthCheckResponse::SERVING); + return Status::OK; + } +}; + +class CurrencyService final : public oteldemo::CurrencyService::Service +{ + Status GetSupportedCurrencies(ServerContext* context, + const Empty* request, + GetSupportedCurrenciesResponse* response) override + { + StartSpanOptions options; + options.kind = SpanKind::kServer; + GrpcServerCarrier carrier(context); + + auto prop = context::propagation::GlobalTextMapPropagator::GetGlobalPropagator(); + auto current_ctx = context::RuntimeContext::GetCurrent(); + auto new_context = prop->Extract(carrier, current_ctx); + options.parent = GetSpan(new_context)->GetContext(); + + std::string span_name = "Currency/GetSupportedCurrencies"; + auto span = + get_tracer("currency")->StartSpan(span_name, + {{semconv::rpc::kRpcSystem, "grpc"}, + {semconv::rpc::kRpcService, "oteldemo.CurrencyService"}, + {semconv::rpc::kRpcMethod, "GetSupportedCurrencies"}, + {semconv::rpc::kRpcGrpcStatusCode, semconv::rpc::RpcGrpcStatusCodeValues::kOk}}, + options); + auto scope = get_tracer("currency")->WithActiveSpan(span); + + span->AddEvent("Processing supported currencies request"); + + for (auto &code : currency_conversion) { + response->add_currency_codes(code.first); + } + + span->AddEvent("Currencies fetched, response sent back"); + span->SetStatus(StatusCode::kOk); + + logger->Info(std::string(__func__) + " successful"); + + // Make sure to end your spans! + span->End(); + return Status::OK; + } + + double getDouble(Money& money) { + auto units = money.units(); + auto nanos = money.nanos(); + + double decimal = 0.0; + while (nanos != 0) { + double t = (double)(nanos%10)/10; + nanos = nanos/10; + decimal = decimal/10 + t; + } + + return double(units) + decimal; + } + + void getUnitsAndNanos(Money& money, double value) { + long unit = (long)value; + double rem = value - unit; + long nano = rem * pow(10, 9); + money.set_units(unit); + money.set_nanos(nano); + } + + Status Convert(ServerContext* context, + const CurrencyConversionRequest* request, + Money* response) override + { + StartSpanOptions options; + options.kind = SpanKind::kServer; + GrpcServerCarrier carrier(context); + + auto prop = context::propagation::GlobalTextMapPropagator::GetGlobalPropagator(); + auto current_ctx = context::RuntimeContext::GetCurrent(); + auto new_context = prop->Extract(carrier, current_ctx); + options.parent = GetSpan(new_context)->GetContext(); + + std::string span_name = "Currency/Convert"; + auto span = + get_tracer("currency")->StartSpan(span_name, + {{semconv::rpc::kRpcSystem, "grpc"}, + {semconv::rpc::kRpcService, "oteldemo.CurrencyService"}, + {semconv::rpc::kRpcMethod, "Convert"}, + {semconv::rpc::kRpcGrpcStatusCode, semconv::rpc::RpcGrpcStatusCodeValues::kOk}}, + options); + auto scope = get_tracer("currency")->WithActiveSpan(span); + + span->AddEvent("Processing currency conversion request"); + + try { + // Do the conversion work + Money from = request->from(); + string from_code = from.currency_code(); + double rate = currency_conversion[from_code]; + double one_euro = getDouble(from) / rate ; + + string to_code = request->to_code(); + double to_rate = currency_conversion[to_code]; + + double final = one_euro * to_rate; + getUnitsAndNanos(*response, final); + response->set_currency_code(to_code); + + span->SetAttribute("app.currency.conversion.from", from_code); + span->SetAttribute("app.currency.conversion.to", to_code); + + CurrencyCounter(to_code); + + span->AddEvent("Conversion successful, response sent back"); + span->SetStatus(StatusCode::kOk); + + logger->Info(std::string(__func__) + " conversion successful"); + + // End the span + span->End(); + return Status::OK; + + } catch(...) { + span->AddEvent("Conversion failed"); + span->SetStatus(StatusCode::kError); + + logger->Error(std::string(__func__) + " conversion failure"); + + span->End(); + return Status::CANCELLED; + } + return Status::OK; + } + + void CurrencyCounter(const std::string& currency_code) + { + std::map labels = { {"currency_code", currency_code} }; + auto labelkv = common::KeyValueIterableView{ labels }; + currency_counter->Add(1, labelkv); + } +}; + +void RunServer(uint16_t port) +{ + std::string ip("0.0.0.0"); + + const char* ipv6_enabled = std::getenv("IPV6_ENABLED"); + + if (ipv6_enabled == "true") { + ip = "[::]"; + logger->Info("Overwriting Localhost IP: " + ip); + } + + std::string address(ip + ":" + std::to_string(port)); + + CurrencyService currencyService; + HealthServer healthService; + ServerBuilder builder; + + builder.RegisterService(¤cyService); + builder.RegisterService(&healthService); + builder.AddListeningPort(address, grpc::InsecureServerCredentials()); + + std::unique_ptr server(builder.BuildAndStart()); + logger->Info("Currency Server listening on port: " + address); + server->Wait(); + server->Shutdown(); +} +} + +int main(int argc, char **argv) { + + if (argc < 2) { + std::cout << "Usage: currency "; + return 0; + } + + uint16_t port = atoi(argv[1]); + + initTracer(); + initMeter(); + initLogger(); + currency_counter = initIntCounter("app.currency", version); + logger = getLogger(name); + RunServer(port); + + return 0; +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/tracer_common.h b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/tracer_common.h new file mode 100644 index 0000000000000000000000000000000000000000..57cbf08ad8ac364fd6699b16fb7d0764aa81573c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/currency/src/tracer_common.h @@ -0,0 +1,101 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include "opentelemetry/exporters/otlp/otlp_grpc_exporter_factory.h" +#include "opentelemetry/context/propagation/global_propagator.h" +#include "opentelemetry/context/propagation/text_map_propagator.h" +#include "opentelemetry/exporters/ostream/span_exporter_factory.h" +#include "opentelemetry/nostd/shared_ptr.h" +#include "opentelemetry/sdk/trace/simple_processor_factory.h" +#include "opentelemetry/sdk/trace/tracer_context.h" +#include "opentelemetry/sdk/trace/tracer_context_factory.h" +#include "opentelemetry/sdk/trace/tracer_provider_factory.h" +#include "opentelemetry/trace/propagation/http_trace_context.h" +#include "opentelemetry/trace/provider.h" + +#include +#include +#include +#include + +using grpc::ClientContext; +using grpc::ServerContext; + +namespace +{ +class GrpcClientCarrier : public opentelemetry::context::propagation::TextMapCarrier +{ +public: + GrpcClientCarrier(ClientContext *context) : context_(context) {} + GrpcClientCarrier() = default; + virtual opentelemetry::nostd::string_view Get( + opentelemetry::nostd::string_view key) const noexcept override + { + return ""; + } + + virtual void Set(opentelemetry::nostd::string_view key, + opentelemetry::nostd::string_view value) noexcept override + { + std::cout << " Client ::: Adding " << key << " " << value << "\n"; + context_->AddMetadata(key.data(), value.data()); + } + + ClientContext *context_; +}; + +class GrpcServerCarrier : public opentelemetry::context::propagation::TextMapCarrier +{ +public: + GrpcServerCarrier(ServerContext *context) : context_(context) {} + GrpcServerCarrier() = default; + virtual opentelemetry::nostd::string_view Get( + opentelemetry::nostd::string_view key) const noexcept override + { + auto it = context_->client_metadata().find(key.data()); + if (it != context_->client_metadata().end()) + { + return it->second.data(); + } + return ""; + } + + virtual void Set(opentelemetry::nostd::string_view key, + opentelemetry::nostd::string_view value) noexcept override + { + // Not required for server + } + + ServerContext *context_; +}; + +void initTracer() +{ + auto exporter = opentelemetry::exporter::otlp::OtlpGrpcExporterFactory::Create(); + auto processor = + opentelemetry::sdk::trace::SimpleSpanProcessorFactory::Create(std::move(exporter)); + std::vector> processors; + processors.push_back(std::move(processor)); + + auto context = + opentelemetry::sdk::trace::TracerContextFactory::Create(std::move(processors)); + std::shared_ptr provider = + opentelemetry::sdk::trace::TracerProviderFactory::Create(std::move(context)); + + // Set the global trace provider + opentelemetry::trace::Provider::SetTracerProvider(provider); + + // set global propagator + opentelemetry::context::propagation::GlobalTextMapPropagator::SetGlobalPropagator( + opentelemetry::nostd::shared_ptr( + new opentelemetry::trace::propagation::HttpTraceContext())); +} + +opentelemetry::nostd::shared_ptr get_tracer(std::string tracer_name) +{ + auto provider = opentelemetry::trace::Provider::GetTracerProvider(); + return provider->GetTracer(tracer_name); +} + +} // namespace diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..b43bf86b50fd8d3529a0dc062c30006ed38f309e --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.dockerignore @@ -0,0 +1 @@ +README.md diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.ruby-version b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.ruby-version new file mode 100644 index 0000000000000000000000000000000000000000..2aa513199211985f85c887809621de0d68e05ba1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/.ruby-version @@ -0,0 +1 @@ +3.4.7 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..2ea72cc4df800872869cd012f21f3ec6ab2de820 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Dockerfile @@ -0,0 +1,28 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM docker.io/library/ruby:3.4.7-alpine3.22 AS builder + +COPY ./src/email/Gemfile Gemfile +COPY ./src/email/Gemfile.lock Gemfile.lock + +RUN apk update && \ + apk add make gcc musl-dev gcompat && \ + bundle install + +FROM docker.io/library/ruby:3.4.7-alpine3.22 + +COPY --from=builder /usr/local/bundle/ /usr/local/bundle/ + +WORKDIR /email_server + +COPY ./src/email/views/ views/ + +COPY ./src/email/.ruby-version .ruby-version +COPY ./src/email/Gemfile Gemfile +COPY ./src/email/Gemfile.lock Gemfile.lock +COPY ./src/email/email_server.rb email_server.rb + +EXPOSE ${EMAIL_PORT} +ENTRYPOINT ["bundle", "exec", "ruby", "email_server.rb"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile new file mode 100644 index 0000000000000000000000000000000000000000..cc03ca0ae6ad301eda632d0b64d7c2d0f4dff683 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile @@ -0,0 +1,25 @@ + + +source "https://rubygems.org" + +gem "net-smtp", "~> 0.5.1" +gem "pony", "~> 1.13" +gem "puma", "~> 7.1" +gem "sinatra", "~> 4.2" +gem "rackup", "~> 2.2" + +gem "google-protobuf", "~> 4.33.0" + +gem "ostruct" + +gem "opentelemetry-sdk", "~> 1.10" +gem "opentelemetry-common", "~> 0.23" +gem "opentelemetry-logs-sdk", "~> 0.4" +gem 'opentelemetry-metrics-sdk', "~> 0.11" +gem "opentelemetry-exporter-otlp", "~> 0.31" +gem 'opentelemetry-exporter-otlp-metrics', "~> 0.6" +gem 'opentelemetry-exporter-otlp-logs', "~> 0.2" +gem "opentelemetry-instrumentation-all", "~> 0.87" + +gem "openfeature-sdk", "~> 0.4" +gem "openfeature-flagd-provider", "~> 0.1" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile.lock b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile.lock new file mode 100644 index 0000000000000000000000000000000000000000..daace2f60017c4269439a795a923ad6504efe521 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/Gemfile.lock @@ -0,0 +1,311 @@ +GEM + remote: https://rubygems.org/ + specs: + base64 (0.2.0) + bigdecimal (3.2.2) + date (3.4.1) + google-protobuf (4.33.0-aarch64-linux-musl) + bigdecimal + rake (>= 13) + google-protobuf (4.33.0-arm64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.33.0-x86_64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.33.0-x86_64-linux-musl) + bigdecimal + rake (>= 13) + googleapis-common-protos-types (1.20.0) + google-protobuf (>= 3.18, < 5.a) + grpc (1.76.0-aarch64-linux-musl) + google-protobuf (>= 3.25, < 5.0) + googleapis-common-protos-types (~> 1.0) + grpc (1.76.0-arm64-darwin) + google-protobuf (>= 3.25, < 5.0) + googleapis-common-protos-types (~> 1.0) + grpc (1.76.0-x86_64-darwin) + google-protobuf (>= 3.25, < 5.0) + googleapis-common-protos-types (~> 1.0) + grpc (1.76.0-x86_64-linux-musl) + google-protobuf (>= 3.25, < 5.0) + googleapis-common-protos-types (~> 1.0) + logger (1.7.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + mini_mime (1.1.5) + mustermann (3.0.3) + ruby2_keywords (~> 0.0.1) + net-imap (0.5.8) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.5.1) + net-protocol + nio4r (2.7.4) + openfeature-flagd-provider (0.1.0) + grpc (~> 1.50) + openfeature-sdk (~> 0.3) + openfeature-sdk (0.4.1) + opentelemetry-api (1.7.0) + opentelemetry-common (0.23.0) + opentelemetry-api (~> 1.0) + opentelemetry-exporter-otlp (0.31.1) + google-protobuf (>= 3.18) + googleapis-common-protos-types (~> 1.3) + opentelemetry-api (~> 1.1) + opentelemetry-common (~> 0.20) + opentelemetry-sdk (~> 1.10) + opentelemetry-semantic_conventions + opentelemetry-exporter-otlp-logs (0.2.2) + google-protobuf (>= 3.18) + googleapis-common-protos-types (~> 1.3) + opentelemetry-api (~> 1.1) + opentelemetry-common (~> 0.20) + opentelemetry-logs-api (~> 0.1) + opentelemetry-logs-sdk (~> 0.1) + opentelemetry-sdk + opentelemetry-semantic_conventions + opentelemetry-exporter-otlp-metrics (0.6.1) + google-protobuf (>= 3.18, < 5.0) + googleapis-common-protos-types (~> 1.3) + opentelemetry-api (~> 1.1) + opentelemetry-common (~> 0.20) + opentelemetry-metrics-api (~> 0.2) + opentelemetry-metrics-sdk (~> 0.5) + opentelemetry-sdk (~> 1.2) + opentelemetry-semantic_conventions + opentelemetry-helpers-mysql (0.2.0) + opentelemetry-api (~> 1.0) + opentelemetry-common (~> 0.21) + opentelemetry-helpers-sql (0.1.1) + opentelemetry-api (~> 1.0) + opentelemetry-helpers-sql-obfuscation (0.3.0) + opentelemetry-common (~> 0.21) + opentelemetry-instrumentation-action_mailer (0.6.1) + opentelemetry-instrumentation-active_support (~> 0.10) + opentelemetry-instrumentation-action_pack (0.15.1) + opentelemetry-instrumentation-rack (~> 0.29) + opentelemetry-instrumentation-action_view (0.11.1) + opentelemetry-instrumentation-active_support (~> 0.10) + opentelemetry-instrumentation-active_job (0.10.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-active_model_serializers (0.24.0) + opentelemetry-instrumentation-active_support (>= 0.7.0) + opentelemetry-instrumentation-active_record (0.11.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-active_storage (0.3.1) + opentelemetry-instrumentation-active_support (~> 0.10) + opentelemetry-instrumentation-active_support (0.10.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-all (0.87.0) + opentelemetry-instrumentation-active_model_serializers (~> 0.24.0) + opentelemetry-instrumentation-anthropic (~> 0.3.0) + opentelemetry-instrumentation-aws_lambda (~> 0.6.0) + opentelemetry-instrumentation-aws_sdk (~> 0.11.0) + opentelemetry-instrumentation-bunny (~> 0.24.0) + opentelemetry-instrumentation-concurrent_ruby (~> 0.24.0) + opentelemetry-instrumentation-dalli (~> 0.29.0) + opentelemetry-instrumentation-delayed_job (~> 0.25.1) + opentelemetry-instrumentation-ethon (~> 0.25.0) + opentelemetry-instrumentation-excon (~> 0.26.0) + opentelemetry-instrumentation-faraday (~> 0.30.0) + opentelemetry-instrumentation-grape (~> 0.5.0) + opentelemetry-instrumentation-graphql (~> 0.31.1) + opentelemetry-instrumentation-grpc (~> 0.4.1) + opentelemetry-instrumentation-gruf (~> 0.5.0) + opentelemetry-instrumentation-http (~> 0.27.0) + opentelemetry-instrumentation-http_client (~> 0.26.0) + opentelemetry-instrumentation-httpx (~> 0.5.0) + opentelemetry-instrumentation-koala (~> 0.23.0) + opentelemetry-instrumentation-lmdb (~> 0.25.0) + opentelemetry-instrumentation-mongo (~> 0.25.0) + opentelemetry-instrumentation-mysql2 (~> 0.31.0) + opentelemetry-instrumentation-net_http (~> 0.26.0) + opentelemetry-instrumentation-pg (~> 0.33.0) + opentelemetry-instrumentation-que (~> 0.11.1) + opentelemetry-instrumentation-racecar (~> 0.6.0) + opentelemetry-instrumentation-rack (~> 0.29.0) + opentelemetry-instrumentation-rails (~> 0.39.1) + opentelemetry-instrumentation-rake (~> 0.5.0) + opentelemetry-instrumentation-rdkafka (~> 0.9.0) + opentelemetry-instrumentation-redis (~> 0.28.0) + opentelemetry-instrumentation-resque (~> 0.8.0) + opentelemetry-instrumentation-restclient (~> 0.26.0) + opentelemetry-instrumentation-ruby_kafka (~> 0.24.0) + opentelemetry-instrumentation-sidekiq (~> 0.28.0) + opentelemetry-instrumentation-sinatra (~> 0.28.0) + opentelemetry-instrumentation-trilogy (~> 0.64.0) + opentelemetry-instrumentation-anthropic (0.3.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-aws_lambda (0.6.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-aws_sdk (0.11.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-base (0.25.0) + opentelemetry-api (~> 1.7) + opentelemetry-common (~> 0.21) + opentelemetry-registry (~> 0.1) + opentelemetry-instrumentation-bunny (0.24.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-concurrent_ruby (0.24.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-dalli (0.29.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-delayed_job (0.25.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-ethon (0.25.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-excon (0.26.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-faraday (0.30.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-grape (0.5.0) + opentelemetry-instrumentation-rack (~> 0.29) + opentelemetry-instrumentation-graphql (0.31.2) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-grpc (0.4.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-gruf (0.5.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-http (0.27.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-http_client (0.26.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-httpx (0.5.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-koala (0.23.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-lmdb (0.25.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-mongo (0.25.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-mysql2 (0.31.0) + opentelemetry-helpers-mysql + opentelemetry-helpers-sql + opentelemetry-helpers-sql-obfuscation + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-net_http (0.26.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-pg (0.33.0) + opentelemetry-helpers-sql + opentelemetry-helpers-sql-obfuscation + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-que (0.11.1) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-racecar (0.6.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-rack (0.29.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-rails (0.39.1) + opentelemetry-instrumentation-action_mailer (~> 0.6) + opentelemetry-instrumentation-action_pack (~> 0.15) + opentelemetry-instrumentation-action_view (~> 0.11) + opentelemetry-instrumentation-active_job (~> 0.10) + opentelemetry-instrumentation-active_record (~> 0.11) + opentelemetry-instrumentation-active_storage (~> 0.3) + opentelemetry-instrumentation-active_support (~> 0.10) + opentelemetry-instrumentation-concurrent_ruby (~> 0.23) + opentelemetry-instrumentation-rake (0.5.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-rdkafka (0.9.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-redis (0.28.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-resque (0.8.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-restclient (0.26.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-ruby_kafka (0.24.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-sidekiq (0.28.0) + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-instrumentation-sinatra (0.28.0) + opentelemetry-instrumentation-rack (~> 0.29) + opentelemetry-instrumentation-trilogy (0.64.0) + opentelemetry-helpers-mysql + opentelemetry-helpers-sql + opentelemetry-helpers-sql-obfuscation + opentelemetry-instrumentation-base (~> 0.25) + opentelemetry-semantic_conventions (>= 1.8.0) + opentelemetry-logs-api (0.2.0) + opentelemetry-api (~> 1.0) + opentelemetry-logs-sdk (0.4.0) + opentelemetry-api (~> 1.2) + opentelemetry-logs-api (~> 0.1) + opentelemetry-sdk (~> 1.3) + opentelemetry-metrics-api (0.4.0) + opentelemetry-api (~> 1.0) + opentelemetry-metrics-sdk (0.11.1) + opentelemetry-api (~> 1.1) + opentelemetry-metrics-api (~> 0.2) + opentelemetry-sdk (~> 1.2) + opentelemetry-registry (0.4.0) + opentelemetry-api (~> 1.1) + opentelemetry-sdk (1.10.0) + opentelemetry-api (~> 1.1) + opentelemetry-common (~> 0.20) + opentelemetry-registry (~> 0.2) + opentelemetry-semantic_conventions + opentelemetry-semantic_conventions (1.11.0) + opentelemetry-api (~> 1.0) + ostruct (0.6.3) + pony (1.13.1) + mail (>= 2.0) + puma (7.1.0) + nio4r (~> 2.0) + rack (3.1.15) + rack-protection (4.2.1) + base64 (>= 0.1.0) + logger (>= 1.6.0) + rack (>= 3.0.0, < 4) + rack-session (2.1.1) + base64 (>= 0.1.0) + rack (>= 3.0.0) + rackup (2.2.1) + rack (>= 3) + rake (13.3.0) + ruby2_keywords (0.0.5) + sinatra (4.2.1) + logger (>= 1.6.0) + mustermann (~> 3.0) + rack (>= 3.0.0, < 4) + rack-protection (= 4.2.1) + rack-session (>= 2.0.0, < 3) + tilt (~> 2.0) + tilt (2.6.0) + timeout (0.4.3) + +PLATFORMS + aarch64-linux-musl + arm64-darwin + x86_64-darwin + x86_64-linux-musl + +DEPENDENCIES + google-protobuf (~> 4.33.0) + net-smtp (~> 0.5.1) + openfeature-flagd-provider (~> 0.1) + openfeature-sdk (~> 0.4) + opentelemetry-common (~> 0.23) + opentelemetry-exporter-otlp (~> 0.31) + opentelemetry-exporter-otlp-logs (~> 0.2) + opentelemetry-exporter-otlp-metrics (~> 0.6) + opentelemetry-instrumentation-all (~> 0.87) + opentelemetry-logs-sdk (~> 0.4) + opentelemetry-metrics-sdk (~> 0.11) + opentelemetry-sdk (~> 1.10) + ostruct + pony (~> 1.13) + puma (~> 7.1) + rackup (~> 2.2) + sinatra (~> 4.2) + +BUNDLED WITH + 2.6.7 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/README.md new file mode 100644 index 0000000000000000000000000000000000000000..13533d83eee7582d6b33be179f3d6f03d5da0677 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/README.md @@ -0,0 +1,23 @@ +# Email Service + +The Email service "sends" an email to the customer with their order details by +rendering it as a log message. It expects a JSON payload like: + +```json +{ + "email": "some.address@website.com", + "order": "" +} +``` + +## Local Build + +We use `bundler` to manage dependencies. To get started, simply `bundle install`. + +## Running locally + +You may run this service locally with `bundle exec ruby email_server.rb`. + +## Docker Build + +From `src/email`, run `docker build .` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/email_server.rb b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/email_server.rb new file mode 100644 index 0000000000000000000000000000000000000000..b8bf6a7ce4f409c9b580b63b88d2ca457d4eb5bd --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/email_server.rb @@ -0,0 +1,101 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +require "ostruct" +require "pony" +require "sinatra" +require "open_feature/sdk" +require "openfeature/flagd/provider" + +require "opentelemetry/sdk" +require "opentelemetry-logs-sdk" +require "opentelemetry-metrics-sdk" +require "opentelemetry/exporter/otlp" +require "opentelemetry-exporter-otlp-logs" +require "opentelemetry-exporter-otlp-metrics" +require "opentelemetry/instrumentation/sinatra" + +set :port, ENV["EMAIL_PORT"] + +# Initialize OpenFeature SDK with flagd provider +flagd_client = OpenFeature::Flagd::Provider.build_client +flagd_client.configure do |config| + config.host = ENV.fetch("FLAGD_HOST", "localhost") + config.port = ENV.fetch("FLAGD_PORT", 8013).to_i + config.tls = ENV.fetch("FLAGD_TLS", "false") == "true" +end + +OpenFeature::SDK.configure do |config| + config.set_provider(flagd_client) +end + +OpenTelemetry::SDK.configure do |c| + c.use "OpenTelemetry::Instrumentation::Sinatra" +end + +$logger = OpenTelemetry.logger_provider.logger(name: 'email') + +otlp_metric_exporter = OpenTelemetry::Exporter::OTLP::Metrics::MetricsExporter.new +OpenTelemetry.meter_provider.add_metric_reader(otlp_metric_exporter) +meter = OpenTelemetry.meter_provider.meter("email") +$confirmation_counter = meter.create_counter("app.confirmation.counter", unit: "1", description: "Counts the number of order confirmation emails sent") + +post "/send_order_confirmation" do + data = JSON.parse(request.body.read, object_class: OpenStruct) + + # get the current auto-instrumented span + current_span = OpenTelemetry::Trace.current_span + current_span.add_attributes({ + "app.order.id" => data.order.order_id, + }) + + $confirmation_counter.add(1) + send_email(data) + +end + +error do + OpenTelemetry::Trace.current_span.record_exception(env['sinatra.error']) +end + +def send_email(data) + # create and start a manual span + tracer = OpenTelemetry.tracer_provider.tracer('email') + tracer.in_span("send_email") do |span| + # Check if memory leak flag is enabled + client = OpenFeature::SDK.build_client + memory_leak_multiplier = client.fetch_number_value(flag_key: "emailMemoryLeak", default_value: 0) + + # To speed up the memory leak we create a long email body + confirmation_content = erb(:confirmation, locals: { order: data.order }) + whitespace_length = [0, confirmation_content.length * (memory_leak_multiplier-1)].max + + Pony.mail( + to: data.email, + from: "noreply@example.com", + subject: "Your confirmation email", + body: confirmation_content + " " * whitespace_length, + via: :test + ) + + # If not clearing the deliveries, the emails will accumulate in the test mailer + # We use this to create a memory leak. + if memory_leak_multiplier < 1 + Mail::TestMailer.deliveries.clear + end + + span.set_attribute("app.email.recipient", data.email) + $logger.on_emit( + timestamp: Time.now, + severity_text: 'INFO', + body: 'Order confirmation email sent', + attributes: { 'app.email.recipient' => data.email }, + ) + + puts "Order confirmation email sent to: #{data.email}" + end + # manually created spans need to be ended + # in Ruby, the method `in_span` ends it automatically + # check out the OpenTelemetry Ruby docs at: + # https://opentelemetry.io/docs/instrumentation/ruby/manual/#creating-new-spans +end diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/views/confirmation.erb b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/views/confirmation.erb new file mode 100644 index 0000000000000000000000000000000000000000..aba297dae0a05b0858a3d2ab6b128e517cdb6305 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/email/views/confirmation.erb @@ -0,0 +1,53 @@ + + + + + + Your Order Confirmation + + + + +

Your Order Confirmation

+

Thanks for shopping with us!

+

Order ID

+

<%= order.order_id %>

+

Shipping

+

<%= order.shipping_tracking_id %>

+

<%= order.shipping_cost.units %>.<%= order.shipping_cost.nanos %> <%= order.shipping_cost.currency_code %>

+

<%= order.shipping_address.street_address_1 %>, <%= order.shipping_address.street_address_2 %>, <%= order.shipping_address.city %>, <%= order.shipping_address.country %> <%= order.shipping_address.zip_code %>

+

Items

+ + + + + + + <% order.items.each do |item| %> + + + + + + <% end %> +
Item No.QuantityPrice
<%= item.item.product_id %><%= item.item.quantity %><%= item.cost.units %>.<%= item.cost.nanos %> <%= item.cost.currency_code %>
+ + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..61a73933c80232109ec75907d0f87781edcc8b76 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.dockerignore @@ -0,0 +1,45 @@ +# This file excludes paths from the Docker build context. +# +# By default, Docker's build context includes all files (and folders) in the +# current directory. Even if a file isn't copied into the container it is still sent to +# the Docker daemon. +# +# There are multiple reasons to exclude files from the build context: +# +# 1. Prevent nested folders from being copied into the container (ex: exclude +# /assets/node_modules when copying /assets) +# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc) +# 3. Avoid sending files containing sensitive information +# +# More information on using .dockerignore is available here: +# https://docs.docker.com/engine/reference/builder/#dockerignore-file + +.dockerignore + +# Ignore git, but keep git HEAD and refs to access current commit hash if needed: +# +# $ cat .git/HEAD | awk '{print ".git/"$2}' | xargs cat +# d0b8727759e1e0e7aa3d41707d12376e373d5ecc +.git +!.git/HEAD +!.git/refs + +# Common development/test artifacts +/cover/ +/doc/ +/test/ +/tmp/ +.elixir_ls + +# Mix artifacts +/_build/ +/deps/ +*.ez + +# Generated on crash by the VM +erl_crash.dump + +# Static artifacts - These should be fetched and built inside the Docker image +/assets/node_modules/ +/priv/static/assets/ +/priv/static/cache_manifest.json diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.formatter.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.formatter.exs new file mode 100644 index 0000000000000000000000000000000000000000..1185122d61de7f68bcc0c6ee6776ecc218f9d6a5 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.formatter.exs @@ -0,0 +1,8 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +[ + import_deps: [:phoenix], + plugins: [Phoenix.LiveView.HTMLFormatter], + inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"] +] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.gitignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7cf954ef870ef1aec618c317b9611891d6890772 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/.gitignore @@ -0,0 +1,39 @@ +# The directory Mix will write compiled artifacts to. +/_build/ + +# If you run "mix test --cover", coverage assets end up here. +/cover/ + +# The directory Mix downloads your dependencies sources to. +/deps/ + +# Where 3rd-party dependencies like ExDoc output generated docs. +/doc/ + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez + +# Temporary files, for example, from tests. +/tmp/ + +# Ignore package tarball (built via "mix hex.build"). +flagd_ui-*.tar + +# Ignore assets that are produced by build tools. +/priv/static/assets/ + +# Ignore digested assets cache. +/priv/static/cache_manifest.json + +# In case you use Node.js/npm, you want to ignore these. +npm-debug.log +/assets/node_modules/ + +demo.flagd.json +/data diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a9d4de4805f84e8ea2ce2971806eac36218f1d91 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/Dockerfile @@ -0,0 +1,101 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian +# instead of Alpine to avoid DNS resolution issues in production. +# +# https://hub.docker.com/r/hexpm/elixir/tags?name=ubuntu +# https://hub.docker.com/_/ubuntu/tags +# +# This file is based on these images: +# +# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image +# - https://hub.docker.com/_/debian/tags?name=bookworm-20250610-slim - for the release image +# - https://pkgs.org/ - resource for finding needed packages +# - Ex: docker.io/hexpm/elixir:1.18.4-erlang-27.3.4-debian-bookworm-20250610-slim +# +ARG ELIXIR_VERSION=1.19.3 +ARG OTP_VERSION=28.0.2 +ARG DEBIAN_VERSION=bullseye-20251117-slim + +ARG BUILDER_IMAGE="docker.io/hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" +ARG RUNNER_IMAGE="docker.io/debian:${DEBIAN_VERSION}" + +FROM ${BUILDER_IMAGE} AS builder + +# install build dependencies +RUN apt-get update \ + && apt-get install -y --no-install-recommends build-essential git \ + && rm -rf /var/lib/apt/lists/* + +# prepare build dir +WORKDIR /app + +# install hex + rebar +RUN mix local.hex --force \ + && mix local.rebar --force + +# set build ENV +ENV MIX_ENV="prod" + +# install mix dependencies +COPY ./src/flagd-ui/mix.exs ./src/flagd-ui/mix.lock ./ +RUN mix deps.get --only $MIX_ENV +RUN mkdir config + +# copy compile-time config files before we compile dependencies +# to ensure any relevant config change will trigger the dependencies +# to be re-compiled. +COPY ./src/flagd-ui/config/config.exs ./src/flagd-ui/config/${MIX_ENV}.exs ./src/flagd-ui/config/runtime.exs config/ +RUN mix deps.compile + +RUN mix assets.setup + +COPY ./src/flagd-ui/priv priv + +COPY ./src/flagd-ui/lib lib + +COPY ./src/flagd-ui/assets assets + +# compile assets +RUN mix assets.deploy + +# Compile the release +RUN mix compile + +COPY ./src/flagd-ui/rel rel +RUN mix release + +# start a new build stage so that the final image will only contain +# the compiled release and other runtime necessities +FROM ${RUNNER_IMAGE} AS final + +RUN apt-get update \ + && apt-get install -y --no-install-recommends libstdc++6 openssl libncurses5 locales ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ + && locale-gen + +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + +WORKDIR "/app" +RUN chown nobody /app + +# set runner ENV +ENV MIX_ENV="prod" + +# Only copy the final release from the build stage +COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/flagd_ui ./ + +EXPOSE ${FLAGD_UI_PORT} + +# If using an environment that doesn't automatically reap zombie processes, it is +# advised to add an init process such as tini via `apt-get install` +# above and adding an entrypoint. See https://github.com/krallin/tini for details +# ENTRYPOINT ["/tini", "--"] + +CMD ["/app/bin/server"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/README.md new file mode 100644 index 0000000000000000000000000000000000000000..de5fcf5fa690398e1b5c199d86aefd4bf767d94a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/README.md @@ -0,0 +1,83 @@ +# Flagd-ui + +This application provides a user interface for configuring the feature +flags of the flagd service. + +This is a [Phoenix](https://www.phoenixframework.org/) project. + +## Running the application + +The application can be run with the rest of the demo using the documented +[docker compose or make commands](https://opentelemetry.io/docs/demo/#running-the-demo). + +## Local development + +* Run `mix setup` to install and setup dependencies +* Create a `data` folder: `mkdir data`. +* Copy [../flagd/demo.flagd.json](../flagd/demo.flagd.json) to `./data/demo.flagd.json` + * `cp ../flagd/demo.flagd.json ./data/demo.flagd.json` +* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server` + +Now you can visit `localhost:4000` from your browser. + +## Programmatic use through the API + +This service exposes a REST API to ease its usage in a programmatic way for +power users. + +You can read the current configuration using this HTTP call: + +```json +$ curl localhost:8080/feature/api/read | jq + +{ + "flags": { + "adFailure": { + "defaultVariant": "off", + "description": "Fail ad service", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "adHighCpu": { + "defaultVariant": "off", + "description": "Triggers high cpu load in the ad service", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "adManualGc": { + "defaultVariant": "off", + "description": "Triggers full manual garbage collections in the ad service", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + ... + } +} +``` + +You can also write a new settings file by sending a new configuration inside +the `data` field of a POST request body. + +Bear in mind that _all_ the data will be rewritten by this write operation. + +```sh +$ curl --header "Content-Type: application/json" \ + --request POST \ + --data '{"data": {"$schema":"https://flagd.dev/schema/v0/flags.json","flags":{"adFailure":{"defaultVariant":"on","description":"Fail ad service","state":"ENABLED","variants":{"off":false,"on":true}}...' \ + http://localhost:8080/feature/api/write +``` + +In addition to the `/read` and `/write` endpoint, we also offer these endpoint +to stay compatible with the old version of Flagd-ui: + +* `/read-file` (`GET`) +* `/write-to-file` (`POST`) diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/config.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/config.exs new file mode 100644 index 0000000000000000000000000000000000000000..bf85a5f818bbe9582092f01b427c2351e00ccf74 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/config.exs @@ -0,0 +1,67 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +# This file is responsible for configuring your application +# and its dependencies with the aid of the Config module. +# +# This configuration file is loaded before any dependency and +# is restricted to this project. + +# General application configuration +import Config + +config :flagd_ui, + generators: [timestamp_type: :utc_datetime] + +# Configures the endpoint +config :flagd_ui, FlagdUiWeb.Endpoint, + url: [host: "localhost", path: "/feature"], + adapter: Bandit.PhoenixAdapter, + render_errors: [ + formats: [html: FlagdUiWeb.ErrorHTML, json: FlagdUiWeb.ErrorJSON], + layout: false + ], + pubsub_server: FlagdUi.PubSub, + live_view: [signing_salt: "1M4OCh0v"] + +# Configures the mailer +# +# By default it uses the "Local" adapter which stores the emails +# locally. You can see the emails in your browser, at "/dev/mailbox". +# +# For production it's recommended to configure a different adapter +# at the `config/runtime.exs`. +config :flagd_ui, FlagdUi.Mailer, adapter: Swoosh.Adapters.Local + +# Configure esbuild (the version is required) +config :esbuild, + version: "0.17.11", + flagd_ui: [ + args: + ~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets/js --external:/fonts/* --external:/images/*), + cd: Path.expand("../assets", __DIR__), + env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)} + ] + +# Configure tailwind (the version is required) +config :tailwind, + version: "4.0.9", + flagd_ui: [ + args: ~w( + --input=assets/css/app.css + --output=priv/static/assets/css/app.css + ), + cd: Path.expand("..", __DIR__) + ] + +# Configures Elixir's Logger +config :logger, :default_formatter, + format: "$time $metadata[$level] $message\n", + metadata: [:request_id] + +# Use Jason for JSON parsing in Phoenix +config :phoenix, :json_library, Jason + +# Import environment specific config. This must remain at the bottom +# of this file so it overrides the configuration defined above. +import_config "#{config_env()}.exs" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/dev.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/dev.exs new file mode 100644 index 0000000000000000000000000000000000000000..a2e606e3d223922c97ce098e3544e80974634b30 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/dev.exs @@ -0,0 +1,85 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import Config + +# For development, we disable any cache and enable +# debugging and code reloading. +# +# The watchers configuration can be used to run external +# watchers to your application. For example, we can use it +# to bundle .js and .css sources. +config :flagd_ui, FlagdUiWeb.Endpoint, + # Binding to loopback ipv4 address prevents access from other machines. + # Change to `ip: {0, 0, 0, 0}` to allow access from other machines. + url: [path: "/"], + http: [ip: {127, 0, 0, 1}, port: 4000], + check_origin: false, + code_reloader: true, + debug_errors: true, + secret_key_base: "9CY+MFunosoVAMkzDqYQnSIYRDoaheVhN0pXKk0T3RJRU/FT5wGTZ1rUkZj/jXW/", + watchers: [ + esbuild: {Esbuild, :install_and_run, [:flagd_ui, ~w(--sourcemap=inline --watch)]}, + tailwind: {Tailwind, :install_and_run, [:flagd_ui, ~w(--watch)]} + ] + +# ## SSL Support +# +# In order to use HTTPS in development, a self-signed +# certificate can be generated by running the following +# Mix task: +# +# mix phx.gen.cert +# +# Run `mix help phx.gen.cert` for more information. +# +# The `http:` config above can be replaced with: +# +# https: [ +# port: 4001, +# cipher_suite: :strong, +# keyfile: "priv/cert/selfsigned_key.pem", +# certfile: "priv/cert/selfsigned.pem" +# ], +# +# If desired, both `http:` and `https:` keys can be +# configured to run both http and https servers on +# different ports. + +# Watch static and templates for browser reloading. +config :flagd_ui, FlagdUiWeb.Endpoint, + live_reload: [ + web_console_logger: true, + patterns: [ + ~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$", + ~r"priv/gettext/.*(po)$", + ~r"lib/flagd_ui_web/(controllers|live|components)/.*(ex|heex)$" + ] + ] + +# Enable dev routes for dashboard and mailbox +config :flagd_ui, dev_routes: true + +# Do not include metadata nor timestamps in development logs +config :logger, :default_formatter, format: "[$level] $message\n" + +# Set a higher stacktrace during development. Avoid configuring such +# in production as building large stacktraces may be expensive. +config :phoenix, :stacktrace_depth, 20 + +# Initialize plugs at runtime for faster development compilation +config :phoenix, :plug_init_mode, :runtime + +config :phoenix_live_view, + # Include HEEx debug annotations as HTML comments in rendered markup. + # Changing this configuration will require mix clean and a full recompile. + debug_heex_annotations: true, + # Enable helpful, but potentially expensive runtime checks + enable_expensive_runtime_checks: true + +# Disable swoosh api client as it is only required for production adapters. +config :swoosh, :api_client, false + +config :opentelemetry, traces_exporter: {:otel_exporter_stdout, []} + +config :flagd_ui, storage_file_path: "./data/demo.flagd.json" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/prod.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/prod.exs new file mode 100644 index 0000000000000000000000000000000000000000..6288f7ab7a738bf44bfe1d8079db9836e9d63986 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/prod.exs @@ -0,0 +1,25 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import Config + +# Note we also include the path to a cache manifest +# containing the digested version of static files. This +# manifest is generated by the `mix assets.deploy` task, +# which you should run after static files are built and +# before starting your production server. +config :flagd_ui, FlagdUiWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" + +# Configures Swoosh API Client +config :swoosh, api_client: Swoosh.ApiClient.Req + +# Disable Swoosh Local Memory Storage +config :swoosh, local: false + +# Do not print debug messages in production +config :logger, level: :info + +config :flagd_ui, storage_file_path: "/app/data/demo.flagd.json" + +# Runtime production configuration, including reading +# of environment variables, is done on config/runtime.exs. diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/runtime.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/runtime.exs new file mode 100644 index 0000000000000000000000000000000000000000..90d841dd7a6952fac67121948b341b2d64d0edd9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/runtime.exs @@ -0,0 +1,117 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import Config + +# config/runtime.exs is executed for all environments, including +# during releases. It is executed after compilation and before the +# system starts, so it is typically used to load production configuration +# and secrets from environment variables or elsewhere. Do not define +# any compile-time configuration in here, as it won't be applied. +# The block below contains prod specific runtime configuration. + +# ## Using releases +# +# If you use `mix release`, you need to explicitly enable the server +# by passing the PHX_SERVER=true when you start it: +# +# PHX_SERVER=true bin/flagd_ui start +# +# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server` +# script that automatically sets the env var above. +if System.get_env("PHX_SERVER") do + config :flagd_ui, FlagdUiWeb.Endpoint, server: true +end + +if config_env() == :prod do + # The secret key base is used to sign/encrypt cookies and other secrets. + # A default value is used in config/dev.exs and config/test.exs but you + # want to use a different value for prod and you most likely don't want + # to check this value into version control, so we use an environment + # variable instead. + secret_key_base = + System.get_env("SECRET_KEY_BASE") || + raise """ + environment variable SECRET_KEY_BASE is missing. + You can generate one by calling: mix phx.gen.secret + """ + + otel_endpoint = + System.get_env("OTEL_EXPORTER_OTLP_ENDPOINT") || + raise """ + environment variable OTEL_EXPORTER_OTLP_ENDPOINT is missing. + """ + + host = System.get_env("PHX_HOST") || "example.com" + port = String.to_integer(System.get_env("FLAGD_UI_PORT") || "4000") + + config :flagd_ui, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") + + config :flagd_ui, FlagdUiWeb.Endpoint, + url: [host: host, port: 443, scheme: "https"], + http: [ + # Enable IPv6 and bind on all interfaces. + # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. + # See the documentation on https://hexdocs.pm/bandit/Bandit.html#t:options/0 + # for details about using IPv6 vs IPv4 and loopback vs public addresses. + ip: {0, 0, 0, 0, 0, 0, 0, 0}, + port: port + ], + check_origin: false, + secret_key_base: secret_key_base + + config :opentelemetry, :processors, + otel_batch_processor: %{ + exporter: {:opentelemetry_exporter, %{endpoints: [otel_endpoint]}} + } + + # ## SSL Support + # + # To get SSL working, you will need to add the `https` key + # to your endpoint configuration: + # + # config :flagd_ui, FlagdUiWeb.Endpoint, + # https: [ + # ..., + # port: 443, + # cipher_suite: :strong, + # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"), + # certfile: System.get_env("SOME_APP_SSL_CERT_PATH") + # ] + # + # The `cipher_suite` is set to `:strong` to support only the + # latest and more secure SSL ciphers. This means old browsers + # and clients may not be supported. You can set it to + # `:compatible` for wider support. + # + # `:keyfile` and `:certfile` expect an absolute path to the key + # and cert in disk or a relative path inside priv, for example + # "priv/ssl/server.key". For all supported SSL configuration + # options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1 + # + # We also recommend setting `force_ssl` in your config/prod.exs, + # ensuring no data is ever sent via http, always redirecting to https: + # + # config :flagd_ui, FlagdUiWeb.Endpoint, + # force_ssl: [hsts: true] + # + # Check `Plug.SSL` for all available options in `force_ssl`. + + # ## Configuring the mailer + # + # In production you need to configure the mailer to use a different adapter. + # Also, you may need to configure the Swoosh API client of your choice if you + # are not using SMTP. Here is an example of the configuration: + # + # config :flagd_ui, FlagdUi.Mailer, + # adapter: Swoosh.Adapters.Mailgun, + # api_key: System.get_env("MAILGUN_API_KEY"), + # domain: System.get_env("MAILGUN_DOMAIN") + # + # For this example you need include a HTTP client required by Swoosh API client. + # Swoosh supports Hackney, Req and Finch out of the box: + # + # config :swoosh, :api_client, Swoosh.ApiClient.Hackney + # + # See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details. +end diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/test.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/test.exs new file mode 100644 index 0000000000000000000000000000000000000000..4ef02e7dcecc0149bc0b91a9d9da688bc2e1b38d --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/config/test.exs @@ -0,0 +1,30 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import Config + +# We don't run a server during test. If one is required, +# you can enable the server option below. +config :flagd_ui, FlagdUiWeb.Endpoint, + url: [path: "/"], + http: [ip: {127, 0, 0, 1}, port: 4002], + secret_key_base: "7WKq9+4aRwQEUAE69h03WLZKqkUmgMOlrrXvsq28ZvKNK9HSinOQ3ZBcnUG/eSgb", + server: false + +# In test we don't send emails +config :flagd_ui, FlagdUi.Mailer, adapter: Swoosh.Adapters.Test + +# Disable swoosh api client as it is only required for production adapters +config :swoosh, :api_client, false + +# Print only warnings and errors during test +config :logger, level: :warning + +# Initialize plugs at runtime for faster test compilation +config :phoenix, :plug_init_mode, :runtime + +# Enable helpful, but potentially expensive runtime checks +config :phoenix_live_view, + enable_expensive_runtime_checks: true + +config :flagd_ui, storage_file_path: "./test/fixtures/demo.flagd.json" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui.ex b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui.ex new file mode 100644 index 0000000000000000000000000000000000000000..50606af263f1d0f775a149e95a453997d3b3edf8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui.ex @@ -0,0 +1,12 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUi do + @moduledoc """ + FlagdUi keeps the contexts that define your domain + and business logic. + + Contexts are also responsible for managing your data, regardless + if it comes from the database, an external API or others. + """ +end diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web.ex b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web.ex new file mode 100644 index 0000000000000000000000000000000000000000..b0dcfb27a50806462460a38cf1c65581fc890902 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/lib/flagd_ui_web.ex @@ -0,0 +1,117 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUiWeb do + @moduledoc """ + The entrypoint for defining your web interface, such + as controllers, components, channels, and so on. + + This can be used in your application as: + + use FlagdUiWeb, :controller + use FlagdUiWeb, :html + + The definitions below will be executed for every controller, + component, etc, so keep them short and clean, focused + on imports, uses and aliases. + + Do NOT define functions inside the quoted expressions + below. Instead, define additional modules and import + those modules here. + """ + + def static_paths, do: ~w(assets fonts images favicon.ico robots.txt) + + def router do + quote do + use Phoenix.Router, helpers: false + + # Import common connection and controller functions to use in pipelines + import Plug.Conn + import Phoenix.Controller + import Phoenix.LiveView.Router + end + end + + def channel do + quote do + use Phoenix.Channel + end + end + + def controller do + quote do + use Phoenix.Controller, formats: [:html, :json] + + use Gettext, backend: FlagdUiWeb.Gettext + + import Plug.Conn + + unquote(verified_routes()) + end + end + + def live_view do + quote do + use Phoenix.LiveView + + unquote(html_helpers()) + end + end + + def live_component do + quote do + use Phoenix.LiveComponent + + unquote(html_helpers()) + end + end + + def html do + quote do + use Phoenix.Component + + # Import convenience functions from controllers + import Phoenix.Controller, + only: [get_csrf_token: 0, view_module: 1, view_template: 1] + + # Include general helpers for rendering HTML + unquote(html_helpers()) + end + end + + defp html_helpers do + quote do + # Translation + use Gettext, backend: FlagdUiWeb.Gettext + + # HTML escaping functionality + import Phoenix.HTML + # Core UI components + import FlagdUiWeb.CoreComponents + + # Common modules used in templates + alias Phoenix.LiveView.JS + alias FlagdUiWeb.Layouts + + # Routes generation with the ~p sigil + unquote(verified_routes()) + end + end + + def verified_routes do + quote do + use Phoenix.VerifiedRoutes, + endpoint: FlagdUiWeb.Endpoint, + router: FlagdUiWeb.Router, + statics: FlagdUiWeb.static_paths() + end + end + + @doc """ + When used, dispatch to the appropriate controller/live_view/etc. + """ + defmacro __using__(which) when is_atom(which) do + apply(__MODULE__, which, []) + end +end diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.exs new file mode 100644 index 0000000000000000000000000000000000000000..b7caa51e26ab7fa0f5f68157161e26bab43e55aa --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.exs @@ -0,0 +1,96 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +defmodule FlagdUi.MixProject do + use Mix.Project + + def project do + [ + app: :flagd_ui, + version: "0.1.1", + elixir: "~> 1.19", + elixirc_paths: elixirc_paths(Mix.env()), + start_permanent: Mix.env() == :prod, + aliases: aliases(), + deps: deps(), + releases: [ + flagd_ui: [ + applications: [ + opentelemetry_exporter: :permanent, + opentelemetry: :temporary + ] + ] + ] + ] + end + + # Configuration for the OTP application. + # + # Type `mix help compile.app` for more information. + def application do + [ + mod: {FlagdUi.Application, []}, + extra_applications: [:logger, :runtime_tools] + ] + end + + # Specifies which paths to compile per environment. + defp elixirc_paths(:test), do: ["lib", "test/support"] + defp elixirc_paths(_), do: ["lib"] + + # Specifies your project dependencies. + # + # Type `mix help deps` for examples and options. + defp deps do + [ + {:phoenix, "~> 1.8.1", override: true}, + {:phoenix_html, "~> 4.3.0"}, + {:phoenix_live_reload, "~> 1.6.1", only: :dev}, + {:phoenix_live_view, "~> 1.1.18"}, + {:floki, "~> 0.38.0", only: :test}, + {:phoenix_live_dashboard, "~> 0.8.7"}, + {:esbuild, "~> 0.10.0", runtime: Mix.env() == :dev}, + {:tailwind, "~> 0.4.1", runtime: Mix.env() == :dev}, + {:heroicons, + github: "tailwindlabs/heroicons", + tag: "v2.2.0", + sparse: "optimized", + app: false, + compile: false, + depth: 1}, + {:swoosh, "~> 1.20.0"}, + {:req, "~> 0.5.16"}, + {:telemetry_metrics, "~> 1.1.0"}, + {:telemetry_poller, "~> 1.3.0"}, + {:gettext, "~> 1.0.2"}, + {:jason, "~> 1.4.4"}, + {:dns_cluster, "~> 0.2.0"}, + {:bandit, "~> 1.10.0"}, + {:credo, "~> 1.7.13", only: [:dev, :test], runtime: false}, + {:opentelemetry, "~> 1.7.0"}, + {:opentelemetry_api, "~> 1.5.0"}, + {:opentelemetry_exporter, "~> 1.10.0"}, + {:opentelemetry_phoenix, "~> 2.0.1"}, + {:opentelemetry_bandit, "~> 0.3.0"} + ] + end + + # Aliases are shortcuts or tasks specific to the current project. + # For example, to install project dependencies and perform other setup tasks, run: + # + # $ mix setup + # + # See the documentation for `Mix` for more info on aliases. + defp aliases do + [ + setup: ["deps.get", "assets.setup", "assets.build"], + "assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"], + "assets.build": ["tailwind flagd_ui", "esbuild flagd_ui"], + "assets.deploy": [ + "tailwind flagd_ui --minify", + "esbuild flagd_ui --minify", + "phx.digest" + ] + ] + end +end diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.lock b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.lock new file mode 100644 index 0000000000000000000000000000000000000000..efed64c1dc939d25587f502bd1ef1d7bc4ab6526 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/mix.lock @@ -0,0 +1,62 @@ +%{ + "acceptor_pool": {:hex, :acceptor_pool, "1.0.0", "43c20d2acae35f0c2bcd64f9d2bde267e459f0f3fd23dab26485bf518c281b21", [:rebar3], [], "hexpm", "0cbcd83fdc8b9ad2eee2067ef8b91a14858a5883cb7cd800e6fcd5803e158788"}, + "bandit": {:hex, :bandit, "1.10.1", "6b1f8609d947ae2a74da5bba8aee938c94348634e54e5625eef622ca0bbbb062", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.18", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "4b4c35f273030e44268ace53bf3d5991dfc385c77374244e2f960876547671aa"}, + "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, + "chatterbox": {:hex, :ts_chatterbox, "0.15.1", "5cac4d15dd7ad61fc3c4415ce4826fc563d4643dee897a558ec4ea0b1c835c9c", [:rebar3], [{:hpack, "~> 0.3.0", [hex: :hpack_erl, repo: "hexpm", optional: false]}], "hexpm", "4f75b91451338bc0da5f52f3480fa6ef6e3a2aeecfc33686d6b3d0a0948f31aa"}, + "cowboy": {:hex, :cowboy, "2.13.0", "09d770dd5f6a22cc60c071f432cd7cb87776164527f205c5a6b0f24ff6b38990", [:make, :rebar3], [{:cowlib, ">= 2.14.0 and < 3.0.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, ">= 1.8.0 and < 3.0.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "e724d3a70995025d654c1992c7b11dbfea95205c047d86ff9bf1cda92ddc5614"}, + "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, + "cowlib": {:hex, :cowlib, "2.15.0", "3c97a318a933962d1c12b96ab7c1d728267d2c523c25a5b57b0f93392b6e9e25", [:make, :rebar3], [], "hexpm", "4f00c879a64b4fe7c8fcb42a4281925e9ffdb928820b03c3ad325a617e857532"}, + "credo": {:hex, :credo, "1.7.15", "283da72eeb2fd3ccf7248f4941a0527efb97afa224bcdef30b4b580bc8258e1c", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "291e8645ea3fea7481829f1e1eb0881b8395db212821338e577a90bf225c5607"}, + "ctx": {:hex, :ctx, "0.6.0", "8ff88b70e6400c4df90142e7f130625b82086077a45364a78d208ed3ed53c7fe", [:rebar3], [], "hexpm", "a14ed2d1b67723dbebbe423b28d7615eb0bdcba6ff28f2d1f1b0a7e1d4aa5fc2"}, + "dns_cluster": {:hex, :dns_cluster, "0.2.0", "aa8eb46e3bd0326bd67b84790c561733b25c5ba2fe3c7e36f28e88f384ebcb33", [:mix], [], "hexpm", "ba6f1893411c69c01b9e8e8f772062535a4cf70f3f35bcc964a324078d8c8240"}, + "esbuild": {:hex, :esbuild, "0.10.0", "b0aa3388a1c23e727c5a3e7427c932d89ee791746b0081bbe56103e9ef3d291f", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "468489cda427b974a7cc9f03ace55368a83e1a7be12fba7e30969af78e5f8c70"}, + "expo": {:hex, :expo, "1.1.1", "4202e1d2ca6e2b3b63e02f69cfe0a404f77702b041d02b58597c00992b601db5", [:mix], [], "hexpm", "5fb308b9cb359ae200b7e23d37c76978673aa1b06e2b3075d814ce12c5811640"}, + "file_system": {:hex, :file_system, "1.1.1", "31864f4685b0148f25bd3fbef2b1228457c0c89024ad67f7a81a3ffbc0bbad3a", [:mix], [], "hexpm", "7a15ff97dfe526aeefb090a7a9d3d03aa907e100e262a0f8f7746b78f8f87a5d"}, + "finch": {:hex, :finch, "0.20.0", "5330aefb6b010f424dcbbc4615d914e9e3deae40095e73ab0c1bb0968933cadf", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.6.2 or ~> 1.7", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.1", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "2658131a74d051aabfcba936093c903b8e89da9a1b63e430bee62045fa9b2ee2"}, + "floki": {:hex, :floki, "0.38.0", "62b642386fa3f2f90713f6e231da0fa3256e41ef1089f83b6ceac7a3fd3abf33", [:mix], [], "hexpm", "a5943ee91e93fb2d635b612caf5508e36d37548e84928463ef9dd986f0d1abd9"}, + "gettext": {:hex, :gettext, "1.0.2", "5457e1fd3f4abe47b0e13ff85086aabae760497a3497909b8473e0acee57673b", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "eab805501886802071ad290714515c8c4a17196ea76e5afc9d06ca85fb1bfeb3"}, + "gproc": {:hex, :gproc, "0.9.1", "f1df0364423539cf0b80e8201c8b1839e229e5f9b3ccb944c5834626998f5b8c", [:rebar3], [], "hexpm", "905088e32e72127ed9466f0bac0d8e65704ca5e73ee5a62cb073c3117916d507"}, + "grpcbox": {:hex, :grpcbox, "0.17.1", "6e040ab3ef16fe699ffb513b0ef8e2e896da7b18931a1ef817143037c454bcce", [:rebar3], [{:acceptor_pool, "~> 1.0.0", [hex: :acceptor_pool, repo: "hexpm", optional: false]}, {:chatterbox, "~> 0.15.1", [hex: :ts_chatterbox, repo: "hexpm", optional: false]}, {:ctx, "~> 0.6.0", [hex: :ctx, repo: "hexpm", optional: false]}, {:gproc, "~> 0.9.1", [hex: :gproc, repo: "hexpm", optional: false]}], "hexpm", "4a3b5d7111daabc569dc9cbd9b202a3237d81c80bf97212fbc676832cb0ceb17"}, + "heroicons": {:git, "https://github.com/tailwindlabs/heroicons.git", "0435d4ca364a608cc75e2f8683d374e55abbae26", [tag: "v2.2.0", sparse: "optimized", depth: 1]}, + "hpack": {:hex, :hpack_erl, "0.3.0", "2461899cc4ab6a0ef8e970c1661c5fc6a52d3c25580bc6dd204f84ce94669926", [:rebar3], [], "hexpm", "d6137d7079169d8c485c6962dfe261af5b9ef60fbc557344511c1e65e3d95fb0"}, + "hpax": {:hex, :hpax, "1.0.3", "ed67ef51ad4df91e75cc6a1494f851850c0bd98ebc0be6e81b026e765ee535aa", [:mix], [], "hexpm", "8eab6e1cfa8d5918c2ce4ba43588e894af35dbd8e91e6e55c817bca5847df34a"}, + "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, + "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, + "mime": {:hex, :mime, "2.0.7", "b8d739037be7cd402aee1ba0306edfdef982687ee7e9859bee6198c1e7e2f128", [:mix], [], "hexpm", "6171188e399ee16023ffc5b76ce445eb6d9672e2e241d2df6050f3c771e80ccd"}, + "mint": {:hex, :mint, "1.7.1", "113fdb2b2f3b59e47c7955971854641c61f378549d73e829e1768de90fc1abf1", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "fceba0a4d0f24301ddee3024ae116df1c3f4bb7a563a731f45fdfeb9d39a231b"}, + "nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"}, + "nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"}, + "opentelemetry": {:hex, :opentelemetry, "1.7.0", "20d0f12d3d1c398d3670fd44fd1a7c495dd748ab3e5b692a7906662e2fb1a38a", [:rebar3], [{:opentelemetry_api, "~> 1.5.0", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}], "hexpm", "a9173b058c4549bf824cbc2f1d2fa2adc5cdedc22aa3f0f826951187bbd53131"}, + "opentelemetry_api": {:hex, :opentelemetry_api, "1.5.0", "1a676f3e3340cab81c763e939a42e11a70c22863f645aa06aafefc689b5550cf", [:mix, :rebar3], [], "hexpm", "f53ec8a1337ae4a487d43ac89da4bd3a3c99ddf576655d071deed8b56a2d5dda"}, + "opentelemetry_bandit": {:hex, :opentelemetry_bandit, "0.3.0", "2c242dfdaabd747c75f4d8331fc9c17cfc9fb1db0638309762a4fcfa6d49a147", [:mix], [{:nimble_options, "~> 1.1", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:opentelemetry_api, "~> 1.3", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:opentelemetry_semantic_conventions, "~> 1.27", [hex: :opentelemetry_semantic_conventions, repo: "hexpm", optional: false]}, {:otel_http, "~> 0.2", [hex: :otel_http, repo: "hexpm", optional: false]}, {:plug, ">= 1.15.0", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "5aa12378f5ff7cc3368f02905693571833f9449df86211fd99f4d764720cff60"}, + "opentelemetry_cowboy": {:hex, :opentelemetry_cowboy, "1.0.0", "786c7cde66a2493323c79d2c94e679ff501d459a9b403d8b60b9bef116333117", [:rebar3], [{:cowboy_telemetry, "~> 0.4", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:opentelemetry_api, "~> 1.4", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:opentelemetry_semantic_conventions, "~> 1.27", [hex: :opentelemetry_semantic_conventions, repo: "hexpm", optional: false]}, {:opentelemetry_telemetry, "~> 1.1", [hex: :opentelemetry_telemetry, repo: "hexpm", optional: false]}, {:otel_http, "~> 0.2", [hex: :otel_http, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7575716eaccacd0eddc3e7e61403aecb5d0a6397183987d6049094aeb0b87a7c"}, + "opentelemetry_exporter": {:hex, :opentelemetry_exporter, "1.10.0", "972e142392dbfa679ec959914664adefea38399e4f56ceba5c473e1cabdbad79", [:rebar3], [{:grpcbox, ">= 0.0.0", [hex: :grpcbox, repo: "hexpm", optional: false]}, {:opentelemetry, "~> 1.7.0", [hex: :opentelemetry, repo: "hexpm", optional: false]}, {:opentelemetry_api, "~> 1.5.0", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:tls_certificate_check, "~> 1.18", [hex: :tls_certificate_check, repo: "hexpm", optional: false]}], "hexpm", "33a116ed7304cb91783f779dec02478f887c87988077bfd72840f760b8d4b952"}, + "opentelemetry_phoenix": {:hex, :opentelemetry_phoenix, "2.0.1", "c664cdef205738cffcd409b33599439a4ffb2035ef6e21a77927ac1da90463cb", [:mix], [{:nimble_options, "~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:opentelemetry_api, "~> 1.4", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:opentelemetry_process_propagator, "~> 0.3", [hex: :opentelemetry_process_propagator, repo: "hexpm", optional: false]}, {:opentelemetry_semantic_conventions, "~> 1.27", [hex: :opentelemetry_semantic_conventions, repo: "hexpm", optional: false]}, {:opentelemetry_telemetry, "~> 1.1", [hex: :opentelemetry_telemetry, repo: "hexpm", optional: false]}, {:otel_http, "~> 0.2", [hex: :otel_http, repo: "hexpm", optional: false]}, {:plug, ">= 1.11.0", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a24fdccdfa6b890c8892c6366beab4a15a27ec0c692b0f77ec2a862e7b235f6e"}, + "opentelemetry_phoenix_live_view_process_propagator": {:hex, :opentelemetry_phoenix_live_view_process_propagator, "0.1.0", "ca94346d3cc4171a322a61afbe60cd989629aef06081b2499329b3e84036cc50", [:mix], [{:opentelemetry_api, "~> 1.4", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "10d264fbd2aae191160ca61714f159e68f49b2ef603e08d377c3a80d6d367710"}, + "opentelemetry_process_propagator": {:hex, :opentelemetry_process_propagator, "0.3.0", "ef5b2059403a1e2b2d2c65914e6962e56371570b8c3ab5323d7a8d3444fb7f84", [:mix, :rebar3], [{:opentelemetry_api, "~> 1.0", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}], "hexpm", "7243cb6de1523c473cba5b1aefa3f85e1ff8cc75d08f367104c1e11919c8c029"}, + "opentelemetry_semantic_conventions": {:hex, :opentelemetry_semantic_conventions, "1.27.0", "acd0194a94a1e57d63da982ee9f4a9f88834ae0b31b0bd850815fe9be4bbb45f", [:mix, :rebar3], [], "hexpm", "9681ccaa24fd3d810b4461581717661fd85ff7019b082c2dff89c7d5b1fc2864"}, + "opentelemetry_telemetry": {:hex, :opentelemetry_telemetry, "1.1.2", "410ab4d76b0921f42dbccbe5a7c831b8125282850be649ee1f70050d3961118a", [:mix, :rebar3], [{:opentelemetry_api, "~> 1.3", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "641ab469deb181957ac6d59bce6e1321d5fe2a56df444fc9c19afcad623ab253"}, + "otel_http": {:hex, :otel_http, "0.2.0", "b17385986c7f1b862f5d577f72614ecaa29de40392b7618869999326b9a61d8a", [:rebar3], [], "hexpm", "f2beadf922c8cfeb0965488dd736c95cc6ea8b9efce89466b3904d317d7cc717"}, + "phoenix": {:hex, :phoenix, "1.8.3", "49ac5e485083cb1495a905e47eb554277bdd9c65ccb4fc5100306b350151aa95", [:mix], [{:bandit, "~> 1.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.7", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "36169f95cc2e155b78be93d9590acc3f462f1e5438db06e6248613f27c80caec"}, + "phoenix_html": {:hex, :phoenix_html, "4.3.0", "d3577a5df4b6954cd7890c84d955c470b5310bb49647f0a114a6eeecc850f7ad", [:mix], [], "hexpm", "3eaa290a78bab0f075f791a46a981bbe769d94bc776869f4f3063a14f30497ad"}, + "phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.8.7", "405880012cb4b706f26dd1c6349125bfc903fb9e44d1ea668adaf4e04d4884b7", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:ecto_sqlite3_extras, "~> 1.1.7 or ~> 1.2.0", [hex: :ecto_sqlite3_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.19 or ~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "3a8625cab39ec261d48a13b7468dc619c0ede099601b084e343968309bd4d7d7"}, + "phoenix_live_reload": {:hex, :phoenix_live_reload, "1.6.2", "b18b0773a1ba77f28c52decbb0f10fd1ac4d3ae5b8632399bbf6986e3b665f62", [:mix], [{:file_system, "~> 0.2.10 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "d1f89c18114c50d394721365ffb428cce24f1c13de0467ffa773e2ff4a30d5b9"}, + "phoenix_live_view": {:hex, :phoenix_live_view, "1.1.20", "4f20850ee700b309b21906a0e510af1b916b454b4f810fb8581ada016eb42dfc", [:mix], [{:igniter, ">= 0.6.16 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:lazy_html, "~> 0.1.0", [hex: :lazy_html, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6.15 or ~> 1.7.0 or ~> 1.8.0-rc", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.15", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c16abd605a21f778165cb0079946351ef20ef84eb1ef467a862fb9a173b1d27d"}, + "phoenix_pubsub": {:hex, :phoenix_pubsub, "2.2.0", "ff3a5616e1bed6804de7773b92cbccfc0b0f473faf1f63d7daf1206c7aeaaa6f", [:mix], [], "hexpm", "adc313a5bf7136039f63cfd9668fde73bba0765e0614cba80c06ac9460ff3e96"}, + "phoenix_template": {:hex, :phoenix_template, "1.0.4", "e2092c132f3b5e5b2d49c96695342eb36d0ed514c5b252a77048d5969330d639", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "2c0c81f0e5c6753faf5cca2f229c9709919aba34fab866d3bc05060c9c444206"}, + "plug": {:hex, :plug, "1.19.1", "09bac17ae7a001a68ae393658aa23c7e38782be5c5c00c80be82901262c394c0", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "560a0017a8f6d5d30146916862aaf9300b7280063651dd7e532b8be168511e62"}, + "plug_crypto": {:hex, :plug_crypto, "2.1.1", "19bda8184399cb24afa10be734f84a16ea0a2bc65054e23a62bb10f06bc89491", [:mix], [], "hexpm", "6470bce6ffe41c8bd497612ffde1a7e4af67f36a15eea5f921af71cf3e11247c"}, + "ranch": {:hex, :ranch, "2.2.0", "25528f82bc8d7c6152c57666ca99ec716510fe0925cb188172f41ce93117b1b0", [:make, :rebar3], [], "hexpm", "fa0b99a1780c80218a4197a59ea8d3bdae32fbff7e88527d7d8a4787eff4f8e7"}, + "req": {:hex, :req, "0.5.17", "0096ddd5b0ed6f576a03dde4b158a0c727215b15d2795e59e0916c6971066ede", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.17", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 2.0.6 or ~> 2.1", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "0b8bc6ffdfebbc07968e59d3ff96d52f2202d0536f10fef4dc11dc02a2a43e39"}, + "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, + "swoosh": {:hex, :swoosh, "1.20.1", "0f570fc03a87d71b4d74d64f33f57d6c3d69a6f0a6b3ae73f682acce1fdc5a7b", [:mix], [{:bandit, ">= 1.0.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:idna, "~> 6.0", [hex: :idna, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mua, "~> 0.2.3", [hex: :mua, repo: "hexpm", optional: true]}, {:multipart, "~> 0.4", [hex: :multipart, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:req, "~> 0.5.10 or ~> 0.6 or ~> 1.0", [hex: :req, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "08292f83045f57296398a8640bbd49cd44fe23eb8146351b14c8efdcee474454"}, + "tailwind": {:hex, :tailwind, "0.4.1", "e7bcc222fe96a1e55f948e76d13dd84a1a7653fb051d2a167135db3b4b08d3e9", [:mix], [], "hexpm", "6249d4f9819052911120dbdbe9e532e6bd64ea23476056adb7f730aa25c220d1"}, + "telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"}, + "telemetry_metrics": {:hex, :telemetry_metrics, "1.1.0", "5bd5f3b5637e0abea0426b947e3ce5dd304f8b3bc6617039e2b5a008adc02f8f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "e7b79e8ddfde70adb6db8a6623d1778ec66401f366e9a8f5dd0955c56bc8ce67"}, + "telemetry_poller": {:hex, :telemetry_poller, "1.3.0", "d5c46420126b5ac2d72bc6580fb4f537d35e851cc0f8dbd571acf6d6e10f5ec7", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "51f18bed7128544a50f75897db9974436ea9bfba560420b646af27a9a9b35211"}, + "thousand_island": {:hex, :thousand_island, "1.4.3", "2158209580f633be38d43ec4e3ce0a01079592b9657afff9080d5d8ca149a3af", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "6e4ce09b0fd761a58594d02814d40f77daff460c48a7354a15ab353bb998ea0b"}, + "tls_certificate_check": {:hex, :tls_certificate_check, "1.30.0", "ef9bdfcb5b551b747cad231a65ebd449623628bb72471c1d2aefcbbc5730683d", [:rebar3], [{:ssl_verify_fun, "~> 1.1", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm", "dfbada8fddb80ae19b8aeaac34d95cfce98c91393b0db9c3ee079b488fd68d81"}, + "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.1", "a48703a25c170eedadca83b11e88985af08d35f37c6f664d6dcfb106a97782fc", [:rebar3], [], "hexpm", "b3a917854ce3ae233619744ad1e0102e05673136776fb2fa76234f3e03b23642"}, + "websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"}, + "websock_adapter": {:hex, :websock_adapter, "0.5.9", "43dc3ba6d89ef5dec5b1d0a39698436a1e856d000d84bf31a3149862b01a287f", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "5534d5c9adad3c18a0f58a9371220d75a803bf0b9a3d87e6fe072faaeed76a08"}, +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/en/LC_MESSAGES/errors.po b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/en/LC_MESSAGES/errors.po new file mode 100644 index 0000000000000000000000000000000000000000..cdec3a113c4d651cedfc86deb37390647f48da02 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/en/LC_MESSAGES/errors.po @@ -0,0 +1,11 @@ +## `msgid`s in this file come from POT (.pot) files. +## +## Do not add, change, or remove `msgid`s manually here as +## they're tied to the ones in the corresponding POT file +## (with the same domain). +## +## Use `mix gettext.extract --merge` or `mix gettext.merge` +## to merge POT files into PO files. +msgid "" +msgstr "" +"Language: en\n" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/errors.pot b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/errors.pot new file mode 100644 index 0000000000000000000000000000000000000000..d6f47fa87a72007bb5818ae284fec53d5eea1ce3 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/gettext/errors.pot @@ -0,0 +1,10 @@ +## This is a PO Template file. +## +## `msgid`s here are often extracted from source code. +## Add new translations manually only if they're dynamic +## translations that can't be statically extracted. +## +## Run `mix gettext.extract` to bring this file up to +## date. Leave `msgstr`s empty as changing them here has no +## effect: edit them in PO (`.po`) files instead. + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/favicon.ico b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7f372bfc21cdd8cb47585339d5fa4d9dd424402f Binary files /dev/null and b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/favicon.ico differ diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/robots.txt b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..26e06b5f19e872df2c99ee3b1c072e65b8ee7fd7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/priv/static/robots.txt @@ -0,0 +1,5 @@ +# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +# User-agent: * +# Disallow: / diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/test/test_helper.exs b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/test/test_helper.exs new file mode 100644 index 0000000000000000000000000000000000000000..184ffde3f09f96793bdad53b34893015dca5bb25 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd-ui/test/test_helper.exs @@ -0,0 +1,4 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +ExUnit.start() diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd/demo.flagd.json b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd/demo.flagd.json new file mode 100644 index 0000000000000000000000000000000000000000..3e766e9fde1d3b01f77c9950d23e3178b288e2e7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/flagd/demo.flagd.json @@ -0,0 +1,150 @@ +{ + "$schema": "https://flagd.dev/schema/v0/flags.json", + "flags": { + "llmInaccurateResponse": { + "defaultVariant": "off", + "description": "LLM returns an inaccurate product summary for product ID L9ECAV7KIM", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "llmRateLimitError": { + "defaultVariant": "off", + "description": "LLM intermittently returns a rate limit error", + "state": "ENABLED", + "variants": { + "off": false, + "on": true + } + }, + "productCatalogFailure": { + "description": "Fail product catalog service on a specific product", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "recommendationCacheFailure": { + "description": "Fail recommendation service cache", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adManualGc": { + "description": "Triggers full manual garbage collections in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adHighCpu": { + "description": "Triggers high cpu load in the ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "adFailure": { + "description": "Fail ad service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "kafkaQueueProblems": { + "description": "Overloads Kafka queue while simultaneously introducing a consumer side delay leading to a lag spike", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "cartFailure": { + "description": "Fail cart service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "paymentFailure": { + "description": "Fail payment service charge requests n%", + "state": "ENABLED", + "variants": { + "100%": 1, + "90%": 0.95, + "75%": 0.75, + "50%": 0.5, + "25%": 0.25, + "10%": 0.1, + "off": 0 + }, + "defaultVariant": "off" + }, + "paymentUnreachable": { + "description": "Payment service is unavailable", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "loadGeneratorFloodHomepage": { + "description": "Flood the frontend with a large amount of requests.", + "state": "ENABLED", + "variants": { + "on": 100, + "off": 0 + }, + "defaultVariant": "off" + }, + "imageSlowLoad": { + "description": "slow loading images in the frontend", + "state": "ENABLED", + "variants": { + "10sec": 10000, + "5sec": 5000, + "off": 0 + }, + "defaultVariant": "off" + }, + "failedReadinessProbe": { + "description": "readiness probe failure for cart service", + "state": "ENABLED", + "variants": { + "on": true, + "off": false + }, + "defaultVariant": "off" + }, + "emailMemoryLeak": { + "description": "Memory leak in the email service.", + "state": "ENABLED", + "variants": { + "off": 0, + "1x": 1, + "10x": 10, + "100x": 100, + "1000x": 1000, + "10000x": 10000 + }, + "defaultVariant": "off" + } + } +} \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..1d1fe94df492104ae6b144c08727a0fa8f15ab86 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/.dockerignore @@ -0,0 +1 @@ +Dockerfile \ No newline at end of file diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..60ed4b4ef4378b5382d2a4ca1b6430d2b7794011 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/Dockerfile @@ -0,0 +1,26 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +FROM --platform=${BUILDPLATFORM} gradle:8-jdk17 AS builder + +WORKDIR /usr/src/app/ + +COPY ./src/fraud-detection/ ./ +COPY ./pb/ ./src/main/proto/ + +RUN gradle shadowJar + +# ----------------------------------------------------------------------------- + +FROM gcr.io/distroless/java17-debian12:nonroot + +ARG OTEL_JAVA_AGENT_VERSION +WORKDIR /usr/src/app/ + +ADD --chmod=644 https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$OTEL_JAVA_AGENT_VERSION/opentelemetry-javaagent.jar /usr/src/app/opentelemetry-javaagent.jar +ENV JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar + +COPY --from=builder /usr/src/app/build/libs/fraud-detection-1.0-all.jar fraud-detection-1.0-all.jar + +ENTRYPOINT [ "java", "-jar", "fraud-detection-1.0-all.jar" ] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c844776c2ea6d6a03b8c0d628c345a7d5fdb93f6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/README.md @@ -0,0 +1,21 @@ +# Fraud Detection Service + +This service receives new orders by a Kafka topic and returns cases which are +suspected of fraud. + +## Local Build + +To build the protos and the service binary, run from the repo root: + +```sh +cp -r ../../pb/ src/main/proto/ +./gradlew shadowJar +``` + +## Docker Build + +To build using Docker run from the repo root: + +```sh +docker build -f ./src/fraud-detection/Dockerfile . +``` diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/build.gradle.kts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/build.gradle.kts new file mode 100644 index 0000000000000000000000000000000000000000..f4a430039035eec99bf74809b114ab36d707adad --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/build.gradle.kts @@ -0,0 +1,101 @@ + +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import com.google.protobuf.gradle.* +import org.jetbrains.kotlin.gradle.dsl.JvmTarget + +plugins { + kotlin("jvm") version "2.3.0" + application + id("java") + id("idea") + id("com.google.protobuf") version "0.9.6" + id("com.github.johnrengelman.shadow") version "8.1.1" +} + +group = "io.opentelemetry" +version = "1.0" + + +val grpcVersion = "1.78.0" +val protobufVersion = "4.33.4" + + +repositories { + mavenCentral() + gradlePluginPortal() +} + + + +dependencies { + implementation("com.google.protobuf:protobuf-java:${protobufVersion}") + testImplementation(kotlin("test")) + implementation(kotlin("script-runtime")) + implementation("org.apache.kafka:kafka-clients:4.1.1") + implementation("com.google.api.grpc:proto-google-common-protos:2.64.1") + implementation("io.grpc:grpc-protobuf:${grpcVersion}") + implementation("io.grpc:grpc-stub:${grpcVersion}") + implementation("io.grpc:grpc-netty:${grpcVersion}") + implementation("io.grpc:grpc-services:${grpcVersion}") + implementation("io.opentelemetry:opentelemetry-api:1.58.0") + implementation("io.opentelemetry:opentelemetry-sdk:1.58.0") + implementation("io.opentelemetry:opentelemetry-extension-annotations:1.18.0") + implementation("org.apache.logging.log4j:log4j-core:2.25.3") + implementation("org.slf4j:slf4j-api:2.0.17") + implementation("com.google.protobuf:protobuf-kotlin:${protobufVersion}") + implementation("dev.openfeature:sdk:1.20.0") + implementation("dev.openfeature.contrib.providers:flagd:0.11.19") + + if (JavaVersion.current().isJava9Compatible) { + // Workaround for @javax.annotation.Generated + // see: https://github.com/grpc/grpc-java/issues/3633 + implementation("javax.annotation:javax.annotation-api:1.3.2") + } +} + +tasks { + shadowJar { + mergeServiceFiles() + } +} + +tasks.test { + useJUnitPlatform() +} + +kotlin { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_17) + } +} + +protobuf { + protoc { + artifact = "com.google.protobuf:protoc:${protobufVersion}" + } + plugins { + + id("grpc") { + artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" + } + } + generateProtoTasks { + ofSourceSet("main").forEach { + it.plugins { + // Apply the "grpc" plugin whose spec is defined above, without + // options. Note the braces cannot be omitted, otherwise the + // plugin will not be added. This is because of the implicit way + // NamedDomainObjectContainer binds the methods. + id("grpc") { } + } + } + } +} + +application { + mainClass.set("frauddetection.MainKt") +} + +tasks.jar { + manifest.attributes["Main-Class"] = "frauddetection.MainKt" +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle.properties b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..7fc6f1ff272ee12d8be9694acdaa36b4284eefdb --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle.properties @@ -0,0 +1 @@ +kotlin.code.style=official diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.jar b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..7f93135c49b765f8051ef9d0a6055ff8e46073d8 Binary files /dev/null and b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.properties b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e18bc253b857cc9614e63c8975b677f496755957 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew new file mode 100644 index 0000000000000000000000000000000000000000..1aa94a4269074199e6ed2c37e8db3e0826030965 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew.bat b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..93e3f59f135dd2dd498de4beb5c64338cc33beeb --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/settings.gradle.kts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/settings.gradle.kts new file mode 100644 index 0000000000000000000000000000000000000000..d9c4193dd3d2546d2efdaa7d28b2f3f05fad2eff --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/settings.gradle.kts @@ -0,0 +1,3 @@ + +rootProject.name = "fraud-detection" + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/kotlin/frauddetection/main.kt b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/kotlin/frauddetection/main.kt new file mode 100644 index 0000000000000000000000000000000000000000..bcb480ae77ea0107d29cac53c8f33a8e54f588ed --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/kotlin/frauddetection/main.kt @@ -0,0 +1,88 @@ +/* + * Copyright The OpenTelemetry Authors + * SPDX-License-Identifier: Apache-2.0 + */ + +package frauddetection + +import org.apache.kafka.clients.consumer.ConsumerConfig.* +import org.apache.kafka.clients.consumer.KafkaConsumer +import org.apache.kafka.common.serialization.ByteArrayDeserializer +import org.apache.kafka.common.serialization.StringDeserializer +import org.apache.logging.log4j.LogManager +import org.apache.logging.log4j.Logger +import oteldemo.Demo.* +import java.time.Duration.ofMillis +import java.util.* +import kotlin.system.exitProcess +import dev.openfeature.contrib.providers.flagd.FlagdOptions +import dev.openfeature.contrib.providers.flagd.FlagdProvider +import dev.openfeature.sdk.Client +import dev.openfeature.sdk.EvaluationContext +import dev.openfeature.sdk.ImmutableContext +import dev.openfeature.sdk.Value +import dev.openfeature.sdk.OpenFeatureAPI + +const val topic = "orders" +const val groupID = "fraud-detection" + +private val logger: Logger = LogManager.getLogger(groupID) + +fun main() { + val options = FlagdOptions.builder() + .withGlobalTelemetry(true) + .build() + val flagdProvider = FlagdProvider(options) + OpenFeatureAPI.getInstance().setProvider(flagdProvider) + + val props = Properties() + props[KEY_DESERIALIZER_CLASS_CONFIG] = StringDeserializer::class.java.name + props[VALUE_DESERIALIZER_CLASS_CONFIG] = ByteArrayDeserializer::class.java.name + props[GROUP_ID_CONFIG] = groupID + val bootstrapServers = System.getenv("KAFKA_ADDR") + if (bootstrapServers == null) { + println("KAFKA_ADDR is not supplied") + exitProcess(1) + } + props[BOOTSTRAP_SERVERS_CONFIG] = bootstrapServers + val consumer = KafkaConsumer(props).apply { + subscribe(listOf(topic)) + } + + var totalCount = 0L + + consumer.use { + while (true) { + totalCount = consumer + .poll(ofMillis(100)) + .fold(totalCount) { accumulator, record -> + val newCount = accumulator + 1 + if (getFeatureFlagValue("kafkaQueueProblems") > 0) { + logger.info("FeatureFlag 'kafkaQueueProblems' is enabled, sleeping 1 second") + Thread.sleep(1000) + } + val orders = OrderResult.parseFrom(record.value()) + logger.info("Consumed record with orderId: ${orders.orderId}, and updated total count to: $newCount") + newCount + } + } + } +} + +/** +* Retrieves the status of a feature flag from the Feature Flag service. +* +* @param ff The name of the feature flag to retrieve. +* @return `true` if the feature flag is enabled, `false` otherwise or in case of errors. +*/ +fun getFeatureFlagValue(ff: String): Int { + val client = OpenFeatureAPI.getInstance().client + // TODO: Plumb the actual session ID from the frontend via baggage? + val uuid = UUID.randomUUID() + + val clientAttrs = mutableMapOf() + clientAttrs["session"] = Value(uuid.toString()) + client.evaluationContext = ImmutableContext(clientAttrs) + val intValue = client.getIntegerValue(ff, 0) + return intValue +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/resources/log4j2.xml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/resources/log4j2.xml new file mode 100644 index 0000000000000000000000000000000000000000..db5cb39e968e33f359599529733e55a2a86782b0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/fraud-detection/src/main/resources/log4j2.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b4972d2acbe9ce4ae00cce1b69e4608a1d29dfd1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/Dockerfile @@ -0,0 +1,19 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM envoyproxy/envoy:v1.34-latest + +RUN apt-get update && \ + apt-get install -y gettext-base && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +USER envoy + +WORKDIR /home/envoy + +COPY ./src/frontend-proxy/envoy.tmpl.yaml envoy.tmpl.yaml + +EXPOSE ${ENVOY_PORT} +EXPOSE ${ENVOY_ADMIN_PORT} +ENTRYPOINT ["/bin/sh", "-c", "envsubst < envoy.tmpl.yaml > envoy.yaml && envoy -c envoy.yaml;"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/README.md new file mode 100644 index 0000000000000000000000000000000000000000..27988e5c168ed3cd1752b6192fbc0384608ca0a0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/README.md @@ -0,0 +1,8 @@ +# Frontend Proxy Service + +This service acts as a reverse proxy for the various user-facing web interfaces. + +## Modifying the Envoy Configuration + +The envoy configuration is generated from the `envoy.tmpl.yaml` file in this +directory. Environment variables are substituted at deploy-time. diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f74a1c1def58718d625685342f1cfb03c74eb19 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend-proxy/envoy.tmpl.yaml @@ -0,0 +1,258 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + + +static_resources: + listeners: + - address: + socket_address: + address: "${ENVOY_ADDR}" + port_value: ${ENVOY_PORT} + filter_chains: + - filters: + - name: envoy.filters.network.http_connection_manager + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + codec_type: AUTO + stat_prefix: ingress_http + tracing: + spawn_upstream_span: true + provider: + name: envoy.tracers.opentelemetry + typed_config: + "@type": type.googleapis.com/envoy.config.trace.v3.OpenTelemetryConfig + grpc_service: + envoy_grpc: + cluster_name: opentelemetry_collector_grpc + timeout: 0.250s + service_name: ${OTEL_SERVICE_NAME} + resource_detectors: + - name: envoy.tracers.opentelemetry.resource_detectors.environment + typed_config: + "@type": type.googleapis.com/envoy.extensions.tracers.opentelemetry.resource_detectors.v3.EnvironmentResourceDetectorConfig + route_config: + name: local_route + virtual_hosts: + - name: frontend + domains: + - "*" + routes: + - match: { path: "/loadgen" } + redirect: { path_redirect: "/loadgen/" } + - match: { prefix: "/loadgen/" } + route: { cluster: loadgen, prefix_rewrite: "/" } + - match: { prefix: "/otlp-http/" } + route: { cluster: opentelemetry_collector_http, prefix_rewrite: "/" } + - match: { path: "/jaeger" } + redirect: { path_redirect: "/jaeger/" } + - match: { prefix: "/jaeger/" } + route: { cluster: jaeger } + - match: { path: "/grafana" } + redirect: { path_redirect: "/grafana/" } + - match: { prefix: "/grafana/" } + route: { cluster: grafana } + - match: { prefix: "/images/" } + route: { cluster: image-provider, prefix_rewrite: "/" } + - match: { prefix: "/flagservice/" } + route: { cluster: flagservice, prefix_rewrite: "/", timeout: 0s } + - match: { prefix: "/feature" } + route: + cluster: flagd-ui + prefix_rewrite: "/" + upgrade_configs: + - upgrade_type: websocket + - match: { prefix: "/" } # Default/catch-all route - keep last since prefix:"/" matches everything + route: { cluster: frontend } + http_filters: + - name: envoy.filters.http.fault + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.fault.v3.HTTPFault + max_active_faults: 100 + delay: + header_delay: {} + percentage: + numerator: 100 + - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + access_log: + - name: envoy.access_loggers.open_telemetry + typed_config: + "@type": "type.googleapis.com/envoy.extensions.access_loggers.open_telemetry.v3.OpenTelemetryAccessLogConfig" + common_config: + log_name: "otel_envoy_access_log" + grpc_service: + envoy_grpc: + cluster_name: opentelemetry_collector_grpc + transport_api_version: "V3" + body: + # yamllint disable-line rule:line-length + string_value: "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% \"%UPSTREAM_TRANSPORT_FAILURE_REASON%\" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME%\n" + resource_attributes: + values: + - key: "service.name" + value: + string_value: ${OTEL_SERVICE_NAME} + attributes: + values: + - key: "destination.address" + value: + string_value: "%UPSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%" + - key: "event.name" + value: + string_value: "proxy.access" + - key: "server.address" + value: + string_value: "%DOWNSTREAM_LOCAL_ADDRESS%" + - key: "source.address" + value: + string_value: "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%" + - key: "upstream.cluster" + value: + string_value: "%UPSTREAM_CLUSTER%" + - key: "upstream.host" + value: + string_value: "%UPSTREAM_HOST%" + - key: "user_agent.original" + value: + string_value: "%REQ(USER-AGENT)%" + - key: "url.full" + value: + string_value: "%REQ(:SCHEME)%://%REQ(:AUTHORITY)%%REQ(:PATH)%" + - key: "url.path" + value: + string_value: "%REQ(:PATH)%" + - key: "url.query" + value: + string_value: "%REQ(:QUERY)%" + - key: "url.template" + value: + string_value: "%ROUTE_NAME%" + clusters: + - name: opentelemetry_collector_grpc + type: STRICT_DNS + lb_policy: ROUND_ROBIN + typed_extension_protocol_options: + envoy.extensions.upstreams.http.v3.HttpProtocolOptions: + "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions + explicit_http_config: + http2_protocol_options: {} + load_assignment: + cluster_name: opentelemetry_collector_grpc + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${OTEL_COLLECTOR_HOST} + port_value: ${OTEL_COLLECTOR_PORT_GRPC} + - name: opentelemetry_collector_http + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: opentelemetry_collector_http + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${OTEL_COLLECTOR_HOST} + port_value: ${OTEL_COLLECTOR_PORT_HTTP} + - name: frontend + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: frontend + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FRONTEND_HOST} + port_value: ${FRONTEND_PORT} + - name: image-provider + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: image-provider + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${IMAGE_PROVIDER_HOST} + port_value: ${IMAGE_PROVIDER_PORT} + - name: flagservice + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: flagservice + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FLAGD_HOST} + port_value: ${FLAGD_PORT} + - name: flagd-ui + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: flagd-ui + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${FLAGD_UI_HOST} + port_value: ${FLAGD_UI_PORT} + - name: loadgen + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: loadgen + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${LOCUST_WEB_HOST} + port_value: ${LOCUST_WEB_PORT} + - name: grafana + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: grafana + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${GRAFANA_HOST} + port_value: ${GRAFANA_PORT} + - name: jaeger + type: STRICT_DNS + lb_policy: ROUND_ROBIN + load_assignment: + cluster_name: jaeger + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: ${JAEGER_HOST} + port_value: ${JAEGER_UI_PORT} +admin: + address: + socket_address: + address: 0.0.0.0 + port_value: ${ENVOY_ADMIN_PORT} +layered_runtime: + layers: + - name: static_layer_0 + static_layer: + envoy: + resource_limits: + listener: + example_listener_name: + connection_limit: 10000 diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.dockerignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..b90a368f6ad29226e36d73ab5bf3faa6a07e6c0a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.dockerignore @@ -0,0 +1,2 @@ +node_modules +.next diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.eslintrc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.eslintrc new file mode 100644 index 0000000000000000000000000000000000000000..8698cfb210f5c6471dc95afc80101199c74fb349 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.eslintrc @@ -0,0 +1,26 @@ +{ + "extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals"], + "plugins": ["@typescript-eslint"], + "root": true, + "globals": {}, + "rules": { + "@typescript-eslint/no-non-null-assertion": "off", + "react-hooks/exhaustive-deps": "warn", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "error", + "max-len": [ + "error", + { + "code": 150, + "ignoreComments": true, + "ignoreTrailingComments": true, + "ignoreUrls": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } + ] + }, + "parser": "@typescript-eslint/parser", + "env": {}, + "overrides": [] +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierignore b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierignore new file mode 100644 index 0000000000000000000000000000000000000000..8eca8b360a99251b7a00f8a87c9065c3d835e6ee --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierignore @@ -0,0 +1,7 @@ +.idea +.git +build +dist +.husky +node_modules +protos/ diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierrc b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierrc new file mode 100644 index 0000000000000000000000000000000000000000..af54e89b3d129014c319ccc4a2faca7283dea97a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/.prettierrc @@ -0,0 +1,15 @@ +{ + "importOrderSeparation": true, + "importOrderSortSpecifiers": true, + "singleQuote": true, + "arrowParens": "avoid", + "bracketSpacing": true, + "semi": true, + "trailingComma": "es5", + "printWidth": 120, + "jsxBracketSameLine": false, + "proseWrap": "always", + "quoteProps": "as-needed", + "tabWidth": 2, + "useTabs": false +} diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..1dbbbc70af127d4388129e878a2c0641fabc6d44 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile @@ -0,0 +1,60 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +FROM docker.io/library/node:22-slim AS builder + +WORKDIR /app + +COPY ./src/frontend/package.json package.json +COPY ./src/frontend/package-lock.json package-lock.json + +RUN npm ci + +COPY ./src/frontend/components/ components/ +COPY ./src/frontend/gateways/ gateways/ +COPY ./src/frontend/pages/ pages/ +COPY ./src/frontend/protos/ protos/ +COPY ./src/frontend/providers/ providers/ +COPY ./src/frontend/services/ services/ +COPY ./src/frontend/styles/ styles/ +COPY ./src/frontend/types/ types/ + +COPY ./src/frontend/utils/enums/ utils/enums/ +COPY ./src/frontend/utils/telemetry/ utils/telemetry/ +COPY ./src/frontend/utils/imageLoader.js utils/imageLoader.js +COPY ./src/frontend/utils/Request.ts utils/Request.ts + +COPY ./src/frontend/next.config.js next.config.js +COPY ./src/frontend/tsconfig.json tsconfig.json + +RUN npm run build + +# ----------------------------------------------------------------------------- + +FROM docker.io/library/node:22-slim AS deps + +WORKDIR /app + +COPY ./src/frontend/package.json package.json +COPY ./src/frontend/package-lock.json package-lock.json + +RUN npm ci --omit=dev + +# ----------------------------------------------------------------------------- + +FROM gcr.io/distroless/nodejs22-debian12:nonroot + +WORKDIR /app + +COPY --from=builder /app/.next/standalone/ ./ +COPY --from=builder /app/.next/static/ .next/static/ + +COPY --from=deps /app/node_modules/ node_modules/ + +COPY ./src/frontend/public/ public/ + +COPY ./src/frontend/utils/telemetry/Instrumentation.js Instrumentation.js + +EXPOSE ${FRONTEND_PORT} + +CMD ["--require=./Instrumentation.js", "server.js"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress new file mode 100644 index 0000000000000000000000000000000000000000..f3b7d9af7ba06fb5963d51c3a2212f3ebb6d520a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/Dockerfile.cypress @@ -0,0 +1,9 @@ +FROM cypress/included:14.5.0 + +WORKDIR /app + +COPY ./src/frontend . + +RUN npm clean-install + +ENTRYPOINT ["cypress", "run"] diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/README.md b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ea2a26f06cd86d6a70975230b1d5d776e46710b0 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/README.md @@ -0,0 +1,26 @@ +# Frontend service + +The frontend is a [Next.js](https://nextjs.org/) application that is composed +by two layers. + +1. Client side application. Which renders the components for the OTEL webstore. +2. API layer. Connects the client to the backend services by exposing REST endpoints. + +## Build Locally + +By running `docker compose up` at the root of the project you'll have access to +the frontend client by going to . + +## Local development + +Currently, the easiest way to run the frontend for local development is to execute + +```shell +docker compose run --service-ports -e NODE_ENV=development --volume $(pwd)/src/frontend:/app --volume $(pwd)/pb:/app/pb --user node --entrypoint sh frontend +``` + +from the root folder. + +It will start all of the required backend services +and within the container simply run `npm run dev`. +After that the app should be available at . diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..2940e581e60308dffd8bf454a1e6f9084759bc07 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.styled.ts @@ -0,0 +1,24 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; +import RouterLink from 'next/link'; + +export const Ad = styled.section` + position: relative; + background-color: ${({ theme }) => theme.colors.otelYellow}; + font-size: ${({ theme }) => theme.sizes.dMedium}; + text-align: center; + padding: 48px; + + * { + color: ${({ theme }) => theme.colors.white}; + margin: 0; + cursor: pointer; + } +`; + +export const Link = styled(RouterLink)` + color: black; + text-decoration: none; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.tsx new file mode 100644 index 0000000000000000000000000000000000000000..6a5ae1435b53440400b7ced9b7ee87cf355f7fa1 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/Ad.tsx @@ -0,0 +1,21 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { CypressFields } from '../../utils/enums/CypressFields'; +import { useAd } from '../../providers/Ad.provider'; +import * as S from './Ad.styled'; + +const Ad = () => { + const { adList } = useAd(); + const { text, redirectUrl } = adList[Math.floor(Math.random() * adList.length)] || { text: '', redirectUrl: '' }; + + return ( + + +

{text}

+
+
+ ); +}; + +export default Ad; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..b64732f5fb9e29a66757ad6a590bfc60f119eed5 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Ad/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './Ad'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..6aa7d62d53d82dc86451775ded62d2b887632023 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.styled.ts @@ -0,0 +1,59 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; +import Button from '../Button'; + +export const Banner = styled.div` + display: flex; + flex-direction: column; + + ${({ theme }) => theme.breakpoints.desktop} { + flex-direction: row-reverse; + padding-bottom: 38px; + background: ${({ theme }) => theme.colors.backgroundGray}; + } +`; + +export const BannerImg = styled.img.attrs({ + src: '/images/Banner.png', +})` + width: 100%; + height: auto; +`; + +export const ImageContainer = styled.div` + ${({ theme }) => theme.breakpoints.desktop} { + min-width: 50%; + } +`; + +export const TextContainer = styled.div` + padding: 20px; + + ${({ theme }) => theme.breakpoints.desktop} { + display: flex; + flex-direction: column; + justify-content: center; + align-items: start; + width: 50%; + padding: 100px 160px 100px 100px; + } +`; + +export const Title = styled.h1` + font-size: ${({ theme }) => theme.sizes.mxLarge}; + font-weight: ${({ theme }) => theme.fonts.bold}; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dxLarge}; + } +`; + +export const GoShoppingButton = styled(Button)` + width: 100%; + + ${({ theme }) => theme.breakpoints.desktop} { + width: auto; + } +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.tsx new file mode 100644 index 0000000000000000000000000000000000000000..f2d75e244338d23d532201084004f1388b9d9851 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/Banner.tsx @@ -0,0 +1,21 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import * as S from './Banner.styled'; + +const Banner = () => { + return ( + + + + + + The best telescopes to see the world closer + Go Shopping + + + ); +}; + +export default Banner; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..1d8726638f31edcbd1f82789208793ae3998e7b6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Banner/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './Banner'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/Button.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/Button.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0807750f2242cb4713ae3d5020e2510c307a58a8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/Button.tsx @@ -0,0 +1,36 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled, { css } from 'styled-components'; + +const Button = styled.button<{ $type?: 'primary' | 'secondary' | 'link' }>` + background-color: #5262a8; + color: white; + display: inline-block; + border: solid 1px #5262a8; + padding: 8px 16px; + outline: none; + font-weight: 700; + font-size: 20px; + line-height: 27px; + border-radius: 10px; + height: 62px; + cursor: pointer; + + ${({ $type = 'primary' }) => + $type === 'secondary' && + css` + background: none; + color: #5262a8; + `}; + + ${({ $type = 'primary' }) => + $type === 'link' && + css` + background: none; + color: #5262a8; + border: none; + `}; +`; + +export default Button; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..0af447b58d8d668d92c93a1723709cc59f0fe736 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Button/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './Button'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/CartDetail.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/CartDetail.tsx new file mode 100644 index 0000000000000000000000000000000000000000..4d777e49501d4275b99d4f3d8d65ef572aa97ec2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/CartDetail.tsx @@ -0,0 +1,81 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { useRouter } from 'next/router'; +import { useCallback } from 'react'; +import CartItems from '../CartItems'; +import CheckoutForm from '../CheckoutForm'; +import { IFormData } from '../CheckoutForm/CheckoutForm'; +import SessionGateway from '../../gateways/Session.gateway'; +import { useCart } from '../../providers/Cart.provider'; +import { useCurrency } from '../../providers/Currency.provider'; +import * as S from '../../styles/Cart.styled'; + +const { userId } = SessionGateway.getSession(); + +const CartDetail = () => { + const { + cart: { items }, + emptyCart, + placeOrder, + } = useCart(); + const { selectedCurrency } = useCurrency(); + const { push } = useRouter(); + + const onPlaceOrder = useCallback( + async ({ + email, + state, + streetAddress, + country, + city, + zipCode, + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }: IFormData) => { + const order = await placeOrder({ + userId, + email, + address: { + streetAddress, + state, + country, + city, + zipCode, + }, + userCurrency: selectedCurrency, + creditCard: { + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }, + }); + + push({ + pathname: `/cart/checkout/${order.orderId}`, + query: { order: JSON.stringify(order) }, + }); + }, + [placeOrder, push, selectedCurrency] + ); + + return ( + +
+ + Shopping Cart + + Empty Cart + + + +
+ +
+ ); +}; + +export default CartDetail; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/EmptyCart.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/EmptyCart.tsx new file mode 100644 index 0000000000000000000000000000000000000000..70f403fcf1cad3370ab478f9842b6286308383f7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Cart/EmptyCart.tsx @@ -0,0 +1,23 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import Button from '../Button'; +import * as S from '../../styles/Cart.styled'; + +const EmptyCart = () => { + return ( + + Your shopping cart is empty! + Items you add to your shopping cart will appear here. + + + + + + + + ); +}; + +export default EmptyCart; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..d4318f16e0022b2f6db21d7b3338d9e9aee280d8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.styled.ts @@ -0,0 +1,121 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Image from 'next/image'; +import styled from 'styled-components'; +import Button from '../Button'; + +export const CartDropdown = styled.div` + position: fixed; + top: 0; + right: 0; + width: 100%; + height: 100%; + max-height: 100%; + padding: 5px; + display: flex; + flex-direction: column; + align-items: center; + gap: 24px; + background: ${({ theme }) => theme.colors.white}; + z-index: 1000; + border-radius: 5px; + box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%); + + ${({ theme }) => theme.breakpoints.desktop} { + position: absolute; + width: 400px; + top: 95px; + right: 17px; + max-height: 600px; + } +`; + +export const Title = styled.h5` + margin: 0px; + font-size: ${({ theme }) => theme.sizes.mxLarge}; + + ${({ theme }) => theme.breakpoints.desktop} { + font-size: ${({ theme }) => theme.sizes.dLarge}; + } +`; + +export const ItemList = styled.div` + ${({ theme }) => theme.breakpoints.desktop} { + max-height: 450px; + overflow-y: auto; + } +`; + +export const Item = styled.div` + display: grid; + grid-template-columns: 29% 59%; + gap: 2%; + padding: 25px 0; + border-bottom: 1px solid ${({ theme }) => theme.colors.textLightGray}; +`; + +export const ItemImage = styled(Image).attrs({ + width: '80', + height: '80', +})` + border-radius: 5px; + object-fit: contain; +`; + +export const ItemName = styled.p` + margin: 0px; + font-size: ${({ theme }) => theme.sizes.mLarge}; + font-weight: ${({ theme }) => theme.fonts.regular}; +`; + +export const ItemDetails = styled.div` + display: flex; + flex-direction: column; + gap: 5px; +`; + +export const ItemQuantity = styled(ItemName)` + font-size: ${({ theme }) => theme.sizes.mMedium}; +`; + +export const CartButton = styled(Button)``; + +export const ContentWrapper = styled.div` + width: 100%; + overflow-y: auto; + flex: 1; + min-height: 0; + + ${({ theme }) => theme.breakpoints.desktop} { + overflow-y: visible; + flex: 0 1 auto; + min-height: auto; + } +`; + +export const Header = styled.div` + display: flex; + justify-content: center; + align-items: center; + width: 100%; + + span { + position: absolute; + right: 25px; + } + + ${({ theme }) => theme.breakpoints.desktop} { + span { + display: none; + } + } +`; + +export const EmptyCart = styled.h3` + margin: 0; + margin-top: 25px; + font-size: ${({ theme }) => theme.sizes.mLarge}; + color: ${({ theme }) => theme.colors.textLightGray}; + text-align: center; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0e060e9f45eff92da6062e368d0a3b5ef7776161 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/CartDropdown.tsx @@ -0,0 +1,65 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import { useEffect, useRef } from 'react'; +import { CypressFields } from '../../utils/enums/CypressFields'; +import { IProductCartItem } from '../../types/Cart'; +import ProductPrice from '../ProductPrice'; +import * as S from './CartDropdown.styled'; + +interface IProps { + isOpen: boolean; + onClose(): void; + productList: IProductCartItem[]; +} + +const CartDropdown = ({ productList, isOpen, onClose }: IProps) => { + const ref = useRef(null); + + useEffect(() => { + const handleClickOutside = (event: Event) => { + if (ref.current && !ref.current.contains(event.target as Node)) { + onClose(); + } + }; + // Bind the event listener + document.addEventListener('mousedown', handleClickOutside); + + return () => { + // Unbind the event listener on clean up + document.removeEventListener('mousedown', handleClickOutside); + }; + }, [ref, onClose]); + + return isOpen ? ( + + + + Shopping Cart + Close + + + {!productList.length && Your shopping cart is empty} + {productList.map( + ({ quantity, product: { name, picture, id, priceUsd = { nanos: 0, currencyCode: 'USD', units: 0 } } }) => ( + + + + {name} + + Quantity: {quantity} + + + ) + )} + + + + Go to Shopping Cart + + + ) : null; +}; + +export default CartDropdown; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..559fff3cb60875f7d895ac87614d3640328fb325 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartDropdown/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CartDropdown'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..d76e4fd7d4ff15fe4271f34036143609f529597b --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.styled.ts @@ -0,0 +1,39 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Image from 'next/image'; +import styled from 'styled-components'; + +export const CartIcon = styled.a` + position: relative; + display: block; + margin-left: 25px; + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; + cursor: pointer; +`; + +export const Icon = styled(Image).attrs({ + width: '24', + height: '24', +})` + margin-bottom: 3px; +`; + +export const ItemsCount = styled.span` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + top: 9px; + left: 15px; + width: 15px; + height: 15px; + font-size: ${({ theme }) => theme.sizes.nano}; + border-radius: 50%; + border: 1px solid ${({ theme }) => theme.colors.white}; + color: ${({ theme }) => theme.colors.white}; + background: ${({ theme }) => theme.colors.otelRed}; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8ec128a9e0224b83773c158963e8cfb7c220b958 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/CartIcon.tsx @@ -0,0 +1,27 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { useState } from 'react'; +import { CypressFields } from '../../utils/enums/CypressFields'; +import { useCart } from '../../providers/Cart.provider'; +import CartDropdown from '../CartDropdown'; +import * as S from './CartIcon.styled'; + +const CartIcon = () => { + const [isOpen, setIsOpen] = useState(false); + const { + cart: { items }, + } = useCart(); + + return ( + <> + setIsOpen(true)}> + + {!!items.length && {items.length}} + + setIsOpen(false)} /> + + ); +}; + +export default CartIcon; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..ffb59cc92e2126b7f3faf0b2064ffeeb0116e8bc --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartIcon/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CartIcon'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItem.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItem.tsx new file mode 100644 index 0000000000000000000000000000000000000000..e78bb7a5b97955fdd7aa63d19a19b139b7ec9b8c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItem.tsx @@ -0,0 +1,40 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import { Product } from '../../protos/demo'; +import ProductPrice from '../ProductPrice'; +import * as S from './CartItems.styled'; + +interface IProps { + product: Product; + quantity: number; +} + +const CartItem = ({ + product: { id, name, picture, priceUsd = { units: 0, nanos: 0, currencyCode: 'USD' } }, + quantity, +}: IProps) => { + return ( + + + + +

{name}

+
+ + +

{quantity}

+
+ + +

+ +

+
+
+
+ ); +}; + +export default CartItem; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..884d6758325585e0928acfb59f2e3a66e0a04fe6 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.styled.ts @@ -0,0 +1,80 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; + +export const CartItems = styled.section` + display: flex; + flex-direction: column; +`; + +export const CardItemsHeader = styled.div` + display: grid; + grid-template-columns: 150px 100px auto; + gap: 24px; + + ${({ theme }) => theme.breakpoints.desktop} { + grid-template-columns: 1fr auto auto; + } +`; + +export const CartItemImage = styled.img` + width: 100%; + height: auto; + border-radius: 5px; + object-fit: contain; + + ${({ theme }) => theme.breakpoints.desktop} { + width: 120px; + height: 120px; + } +`; + +export const CartItem = styled.div` + display: grid; + grid-template-columns: 150px 100px auto; + gap: 24px; + padding: 24px 0; + align-items: center; + border-bottom: 1px solid ${({ theme }) => theme.colors.textLightGray}; + + ${({ theme }) => theme.breakpoints.desktop} { + grid-template-columns: 1fr auto auto; + } +`; + +export const CartItemDetails = styled.div` + display: flex; + flex-direction: column; + justify-content: space-between; +`; + +export const NameContainer = styled.div` + display: flex; + align-items: center; + gap: 5px; + flex-direction: column; + cursor: pointer; + + ${({ theme }) => theme.breakpoints.desktop} { + flex-direction: row; + gap: 24px; + } +`; + +export const PriceContainer = styled.div` + display: flex; + width: 100%; + justify-content: space-between; +`; + +export const DataRow = styled.div` + display: flex; + justify-content: flex-end; + padding: 24px 0; + gap: 24px; +`; + +export const TotalText = styled.h3` + margin: 0; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.tsx new file mode 100644 index 0000000000000000000000000000000000000000..11350d392dde66019db294f302b20c260975b109 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/CartItems.tsx @@ -0,0 +1,82 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { useMemo } from 'react'; +import { useQuery, UseQueryOptions } from '@tanstack/react-query'; +import ApiGateway from '../../gateways/Api.gateway'; +import { Address, Money } from '../../protos/demo'; +import { useCurrency } from '../../providers/Currency.provider'; +import { IProductCartItem } from '../../types/Cart'; +import ProductPrice from '../ProductPrice'; +import CartItem from './CartItem'; +import * as S from './CartItems.styled'; + +interface IProps { + productList: IProductCartItem[]; + shouldShowPrice?: boolean; +} + +const CartItems = ({ productList, shouldShowPrice = true }: IProps) => { + const { selectedCurrency } = useCurrency(); + const address: Address = { + streetAddress: '1600 Amphitheatre Parkway', + city: 'Mountain View', + state: 'CA', + country: 'United States', + zipCode: '94043', + }; + + const queryKey = ['shipping', productList, selectedCurrency, address]; + const queryFn = () => ApiGateway.getShippingCost(productList, selectedCurrency, address); + const queryOptions: UseQueryOptions = { + queryKey, + queryFn, + }; + const { data: shippingConst = { units: 0, currencyCode: 'USD', nanos: 0 } } = useQuery(queryOptions); + + const total = useMemo(() => { + const nanoSum = + productList.reduce((acc, { product: { priceUsd: { nanos = 0 } = {} }, quantity }) => acc + Number(nanos) * quantity, 0) + + shippingConst?.nanos || 0; + const nanoExceed = Math.floor(nanoSum / 1000000000); + + const unitSum = + productList.reduce((acc, { product: { priceUsd: { units = 0 } = {} }, quantity }) => acc + Number(units) * quantity, 0) + + (shippingConst?.units || 0) + nanoExceed; + + return { + units: unitSum, + currencyCode: selectedCurrency, + nanos: nanoSum % 1000000000, + }; + }, [shippingConst?.units, shippingConst?.nanos, productList, selectedCurrency]); + + return ( + + + + + + + {productList.map(({ productId, product, quantity }) => ( + + ))} + {shouldShowPrice && ( + <> + + Shipping + + + + Total + + + + + + )} + + ); +}; + +export default CartItems; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..ad419fa3b2e220416d01234f9eebb559dde69226 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CartItems/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CartItems'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..c11ebc5164892d3f90c01d53a07fe77268d481fb --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.styled.ts @@ -0,0 +1,59 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; +import Button from '../Button'; + +export const CheckoutForm = styled.form``; + +export const StateRow = styled.div` + display: grid; + grid-template-columns: 35% 55%; + gap: 10%; +`; + +export const Title = styled.h1` + margin: 0; + margin-bottom: 24px; +`; + +export const CardRow = styled.div` + display: grid; + grid-template-columns: 35% 35% 20%; + gap: 5%; +`; + +export const SubmitContainer = styled.div` + display: flex; + justify-content: center; + align-items: center; + gap: 20px; + flex-direction: column-reverse; + + ${({ theme }) => theme.breakpoints.desktop} { + flex-direction: row; + justify-content: end; + align-items: center; + margin-top: 67px; + } +`; + +export const CartButton = styled(Button)` + padding: 16px 35px; + font-weight: ${({ theme }) => theme.fonts.regular}; + width: 100%; + + ${({ theme }) => theme.breakpoints.desktop} { + width: inherit; + } +`; + +export const EmptyCartButton = styled(Button)` + font-weight: ${({ theme }) => theme.fonts.regular}; + color: ${({ theme }) => theme.colors.otelRed}; + width: 100%; + + ${({ theme }) => theme.breakpoints.desktop} { + width: inherit; + } +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1c8e5c9eba35b2ffec18f019621c114c5a28aeb7 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/CheckoutForm.tsx @@ -0,0 +1,202 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import { useCallback, useState } from 'react'; +import { CypressFields } from '../../utils/enums/CypressFields'; +import Input from '../Input'; +import * as S from './CheckoutForm.styled'; + +const currentYear = new Date().getFullYear(); +const yearList = Array.from(new Array(20), (v, i) => i + currentYear); + +export interface IFormData { + email: string; + streetAddress: string; + city: string; + state: string; + country: string; + zipCode: string; + creditCardNumber: string; + creditCardCvv: number; + creditCardExpirationYear: number; + creditCardExpirationMonth: number; +} + +interface IProps { + onSubmit(formData: IFormData): void; +} + +const CheckoutForm = ({ onSubmit }: IProps) => { + const [ + { + email, + streetAddress, + city, + state, + country, + zipCode, + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }, + setFormData, + ] = useState({ + email: 'someone@example.com', + streetAddress: '1600 Amphitheatre Parkway', + city: 'Mountain View', + state: 'CA', + country: 'United States', + zipCode: "94043", + creditCardNumber: '4432-8015-6152-0454', + creditCardCvv: 672, + creditCardExpirationYear: 2030, + creditCardExpirationMonth: 1, + }); + + const handleChange = useCallback((e: React.ChangeEvent) => { + setFormData(formData => ({ + ...formData, + [e.target.name]: e.target.value, + })); + }, []); + + return ( + void; }) => { + event.preventDefault(); + onSubmit({ + email, + streetAddress, + city, + state, + country, + zipCode, + creditCardCvv, + creditCardExpirationMonth, + creditCardExpirationYear, + creditCardNumber, + }); + }} + > + Shipping Address + + + + + + + + + + + +
+ Payment Method +
+ + + + + + + + + + + + + + + + + + + + {yearList.map(year => ( + + ))} + + + + + + + Continue Shopping + + Place Order + +
+ ); +}; + +export default CheckoutForm; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..897f43b38cbde0d47b8c1d0a5f8c05e7df55f37a --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutForm/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CheckoutForm'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..1658215061baec2aadaec4651a6df42b1e47a2ec --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts @@ -0,0 +1,91 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Image from 'next/image'; +import styled from 'styled-components'; + +export const CheckoutItem = styled.div` + display: grid; + grid-template-columns: 1fr; + padding: 25px; + border-radius: 5px; + border: 1px solid ${({ theme }) => theme.colors.lightBorderGray}; + + ${({ theme }) => theme.breakpoints.desktop} { + grid-template-columns: 40% 40% 1fr; + } +`; + +export const ItemDetails = styled.div` + display: flex; + gap: 25px; + padding-bottom: 25px; + border-bottom: 1px solid ${({ theme }) => theme.colors.lightBorderGray}; + + ${({ theme }) => theme.breakpoints.desktop} { + padding-bottom: 0; + padding-right: 25px; + border-bottom: none; + border-right: 1px solid ${({ theme }) => theme.colors.lightBorderGray}; + } +`; + +export const Details = styled.div` + display: flex; + flex-direction: column; + gap: 5px; + + span, + p { + margin: 0; + font-weight: ${({ theme }) => theme.fonts.regular}; + } +`; + +export const ItemName = styled.h5` + margin: 0; + font-size: ${({ theme }) => theme.sizes.mLarge}; +`; + +export const ShippingData = styled.div` + display: flex; + flex-direction: column; + gap: 5px; + padding: 25px 0; + border-bottom: 1px solid ${({ theme }) => theme.colors.lightBorderGray}; + + p { + margin: 0; + font-weight: ${({ theme }) => theme.fonts.light}; + } + + ${({ theme }) => theme.breakpoints.desktop} { + padding: 0 25px; + border-bottom: none; + border-right: 1px solid ${({ theme }) => theme.colors.lightBorderGray}; + } +`; + +export const Status = styled.div` + display: flex; + align-items: center; + justify-content: center; + padding-top: 25px; + gap: 10px; + + ${({ theme }) => theme.breakpoints.desktop} { + padding-top: 0; + } +`; + +export const ItemImage = styled(Image).attrs({ + width: '80', + height: '80', +})` + border-radius: 5px; + object-fit: contain; +`; + +export const SeeMore = styled.a` + color: ${({ theme }) => theme.colors.otelBlue}; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8fd0ecf2e803bafb0cde38f3227069c7a8ede274 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/CheckoutItem.tsx @@ -0,0 +1,61 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Image from 'next/image'; +import { useState } from 'react'; +import { CypressFields } from '../../utils/enums/CypressFields'; +import { Address } from '../../protos/demo'; +import { IProductCheckoutItem } from '../../types/Cart'; +import ProductPrice from '../ProductPrice'; +import * as S from './CheckoutItem.styled'; + +interface IProps { + checkoutItem: IProductCheckoutItem; + address: Address; +} + +const CheckoutItem = ({ + checkoutItem: { + item: { + quantity, + product: { picture, name }, + }, + cost = { currencyCode: 'USD', units: 0, nanos: 0 }, + }, + address: { streetAddress = '', city = '', state = '', zipCode = '', country = '' }, +}: IProps) => { + const [isCollapsed, setIsCollapsed] = useState(false); + + return ( + + + + + {name} +

Quantity: {quantity}

+

+ Total: +

+
+
+ + Shipping Data +

Street: {streetAddress}

+ {!isCollapsed && setIsCollapsed(true)}>See More} + {isCollapsed && ( + <> +

City: {city}

+

State: {state}

+

Zip Code: {zipCode}

+

Country: {country}

+ + )} +
+ + check Done + +
+ ); +}; + +export default CheckoutItem; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..f4c6b78928ffc8273750149d83669ff65ea228c3 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CheckoutItem/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CheckoutItem'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..6ea0669fc6bb34e884916daff96ce014ef7c2f0c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.styled.ts @@ -0,0 +1,65 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; + +export const CurrencySwitcher = styled.div` + display: flex; + justify-content: flex-end; +`; + +export const Container = styled.div` + display: flex; + align-items: center; + position: relative; + margin-left: 40px; + color: #605f64; + + &::-webkit-input-placeholder, + &::-moz-placeholder, + :-ms-input-placeholder, + :-moz-placeholder { + font-size: 12px; + color: #605f64; + } +`; + +export const SelectedConcurrency = styled.span` + font-size: ${({ theme }) => theme.sizes.mLarge}; + text-align: center; + font-weight: ${({ theme }) => theme.fonts.regular}; + + position: relative; + left: 35px; + width: 20px; + display: inline-block; +`; + +export const Arrow = styled.img.attrs({ + src: '/icons/Chevron.svg', + alt: 'arrow', +})` + position: absolute; + right: 15px; + width: 12px; + height: 17px; +`; + +export const Select = styled.select` + -webkit-appearance: none; + -webkit-border-radius: 0px; + font-size: ${({ theme }) => theme.sizes.mLarge}; + cursor: pointer; + + display: flex; + align-items: center; + background: transparent; + font-weight: ${({ theme }) => theme.fonts.regular}; + border: 1px solid ${({ theme }) => theme.colors.borderGray}; + width: 130px; + height: 40px; + flex-shrink: 0; + padding: 1px 0 0 45px; + font-size: 16px; + border-radius: 10px; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0e3b174653de49cc59cbb3507bf1a3cefd04ac7b --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/CurrencySwitcher.tsx @@ -0,0 +1,37 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { useMemo } from 'react'; +import getSymbolFromCurrency from 'currency-symbol-map'; +import { useCurrency } from '../../providers/Currency.provider'; +import * as S from './CurrencySwitcher.styled'; +import { CypressFields } from '../../utils/enums/CypressFields'; + +const CurrencySwitcher = () => { + const { currencyCodeList, setSelectedCurrency, selectedCurrency } = useCurrency(); + + const currencySymbol = useMemo(() => getSymbolFromCurrency(selectedCurrency), [selectedCurrency]); + + return ( + + + {currencySymbol} + setSelectedCurrency(event.target.value)} + value={selectedCurrency} + data-cy={CypressFields.CurrencySwitcher} + > + {currencyCodeList.map(currencyCode => ( + + ))} + + + + + ); +}; + +export default CurrencySwitcher; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..3a0af9c66e4a84e49eead1318b2aab14c2c9c7a5 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/CurrencySwitcher/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './CurrencySwitcher'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..513039b71b33db37e809440426057a3ebf46aae2 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.styled.ts @@ -0,0 +1,16 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; + +export const Footer = styled.footer` + position: relative; + padding: 65px 9%; + background-color: ${({ theme }) => theme.colors.otelGray}; + + * { + color: ${({ theme }) => theme.colors.white}; + font-size: ${({ theme }) => theme.sizes.dSmall}; + font-weight: ${({ theme }) => theme.fonts.regular}; + } +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8831271b40492cd4475c2cfdb2a2dff9c9d5e749 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/Footer.tsx @@ -0,0 +1,37 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { useEffect, useState } from 'react'; +import * as S from './Footer.styled'; +import SessionGateway from '../../gateways/Session.gateway'; +import { CypressFields } from '../../utils/enums/CypressFields'; +import PlatformFlag from '../PlatformFlag'; + +const currentYear = new Date().getFullYear(); + +const { userId } = SessionGateway.getSession(); + +const Footer = () => { + const [sessionId, setSessionId] = useState(''); + + useEffect(() => { + setSessionId(userId); + }, []); + + return ( + +
+

This website is hosted for demo purpose only. It is not an actual shop.

+

+ session-id: {sessionId} +

+
+

+ @ {currentYear} OpenTelemetry (Source Code) +

+ +
+ ); +}; + +export default Footer; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..0961dac2249c53716f18b0c141c99661cd8537ee --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Footer/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export { default } from './Footer'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..39d624041022ec37d66c2df7e43c7e28c0fe3321 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.styled.ts @@ -0,0 +1,55 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Link from 'next/link'; +import styled from 'styled-components'; + +export const Header = styled.header` + background-color: #853b5c; + color: white; +`; + +export const NavBar = styled.nav` + height: 80px; + background-color: white; + font-size: 15px; + color: #b4b2bb; + border-bottom: 1px solid ${({ theme }) => theme.colors.textGray}; + z-index: 1; + padding: 0; + + ${({ theme }) => theme.breakpoints.desktop} { + height: 100px; + } +`; + +export const Container = styled.div` + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + height: 100%; + padding: 0 20px; + + ${({ theme }) => theme.breakpoints.desktop} { + padding: 25px 100px; + } +`; + +export const NavBarBrand = styled(Link)` + display: flex; + align-items: center; + padding: 0; +`; + +export const BrandImg = styled.img.attrs({ + src: '/images/opentelemetry-demo-logo.png', +})` + width: 280px; + height: auto; +`; + +export const Controls = styled.div` + display: flex; + height: 60px; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.tsx new file mode 100644 index 0000000000000000000000000000000000000000..857fc7bf28cdd9d3ac6788cf8d78056411524429 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/Header.tsx @@ -0,0 +1,26 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import CartIcon from '../CartIcon'; +import CurrencySwitcher from '../CurrencySwitcher'; +import * as S from './Header.styled'; + +const Header = () => { + return ( + + + + + + + + + + + + + + ); +}; + +export default Header; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..4afb2c787ab2e1c1295c44e9c0f9f61ee46265f8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Header/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export {default} from './Header'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.styled.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.styled.ts new file mode 100644 index 0000000000000000000000000000000000000000..d2078d13d88fcc3c13460d2300f22f651eff46f9 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.styled.ts @@ -0,0 +1,54 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import styled from 'styled-components'; + +export const Input = styled.input` + width: -webkit-fill-available; + border: none; + padding: 16px; + outline: none; + + font-weight: ${({ theme }) => theme.fonts.regular}; + font-size: ${({ theme }) => theme.sizes.dMedium}; + + border-radius: 10px; + background: #f9f9f9; + border: 1px solid #cacaca; +`; + +export const InputLabel = styled.p` + font-size: ${({ theme }) => theme.sizes.dMedium}; + font-weight: ${({ theme }) => theme.fonts.semiBold}; + margin: 0; + margin-bottom: 15px; +`; + +export const Select = styled.select` + width: 100%; + border: none; + + padding: 16px; + font-weight: ${({ theme }) => theme.fonts.regular}; + font-size: ${({ theme }) => theme.sizes.dMedium}; + + border-radius: 10px; + background: #f9f9f9; + border: 1px solid #cacaca; +`; + +export const InputRow = styled.div` + position: relative; + margin-bottom: 24px; +`; + +export const Arrow = styled.img.attrs({ + src: '/icons/Chevron.svg', + alt: 'arrow', +})` + position: absolute; + right: 20px; + width: 10px; + height: 5px; + top: 64px; +`; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.tsx new file mode 100644 index 0000000000000000000000000000000000000000..14782b0cf90b3e3cfd0da34108eb94a755eb8069 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/Input.tsx @@ -0,0 +1,31 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { HTMLInputTypeAttribute, InputHTMLAttributes } from 'react'; +import * as S from './Input.styled'; + +interface IProps extends InputHTMLAttributes { + type: HTMLInputTypeAttribute | 'select'; + children?: React.ReactNode; + label: string; +} + +const Input = ({ type, id = '', children, label, ...props }: IProps) => { + return ( + + {label} + {type === 'select' ? ( + <> + + {children} + + + + ) : ( + + )} + + ); +}; + +export default Input; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/index.ts b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..f1d092366e5887afe17b14a89f8834579a0e2ec8 --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Input/index.ts @@ -0,0 +1,4 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +export {default} from './Input'; diff --git a/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Layout/Layout.tsx b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Layout/Layout.tsx new file mode 100644 index 0000000000000000000000000000000000000000..6a487e7621fc13e57d3668af8773a2fbf0222d7c --- /dev/null +++ b/tasks/productcatalogfailure-03-lag0m-avail1m/environment/opentelemetry-demo/src/frontend/components/Layout/Layout.tsx @@ -0,0 +1,21 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import Header from '../Header'; +import Footer from '../Footer'; + +interface IProps { + children: React.ReactNode; +} + +const Layout = ({ children }: IProps) => { + return ( + <> +
+
{children}
+