Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin-otel/main' into merge-upstream-2
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercoll committed Jan 15, 2025
2 parents c43b84b + b604d28 commit 2a73b7f
Show file tree
Hide file tree
Showing 93 changed files with 33,538 additions and 3,581 deletions.
25 changes: 1 addition & 24 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,12 @@ src/*/*/Dockerfile
./src/currency/node_modules/
###################################

###################################
# featureflagservice
# Common development/test artifacts
./src/featureflagservice/cover/
./src/featureflagservice/doc/
./src/featureflagservice/test/
./src/featureflagservice/tmp/
./src/featureflagservice/.elixir_ls

###################################
# frontend
./src/frontend/node_modules/

###################################
# shippingservice
# shipping
./src/shipping/target
###################################

# Mix artifacts
./src/featureflagservice/_build/
./src/featureflagservice/deps/
./src/featureflagservice/*.ez

# Generated on crash by the VM
./src/featureflagservice/erl_crash.dump

# Static artifacts - These should be fetched and built inside the Docker image
./src/featureflagservice/assets/node_modules/
./src/featureflagservice/priv/static/assets/
./src/featureflagservice/priv/static/cache_manifest.json
###################################

34 changes: 17 additions & 17 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ CART_ADDR=cart:${CART_PORT}
CART_DOCKERFILE=./src/cart/src/Dockerfile

# Checkout Service
CHECKOUT_SERVICE_PORT=5050
CHECKOUT_SERVICE_ADDR=checkoutservice:${CHECKOUT_SERVICE_PORT}
CHECKOUT_SERVICE_DOCKERFILE=./src/checkoutservice/Dockerfile
CHECKOUT_PORT=5050
CHECKOUT_ADDR=checkout:${CHECKOUT_PORT}
CHECKOUT_DOCKERFILE=./src/checkout/Dockerfile

# Currency Service
CURRENCY_PORT=7001
Expand All @@ -85,7 +85,7 @@ FRONTEND_DOCKERFILE=./src/frontend/Dockerfile
FRONTEND_HOST=frontend
ENVOY_PORT=8080
FRONTEND_PROXY_ADDR=frontend-proxy:${ENVOY_PORT}
FRONTEND_PROXY_DOCKERFILE=./src/frontendproxy/Dockerfile
FRONTEND_PROXY_DOCKERFILE=./src/frontend-proxy/Dockerfile

# Image Provider
IMAGE_PROVIDER_HOST=image-provider
Expand All @@ -107,9 +107,9 @@ PAYMENT_ADDR=payment:${PAYMENT_PORT}
PAYMENT_DOCKERFILE=./src/payment/Dockerfile

# Product Catalog Service
PRODUCT_CATALOG_SERVICE_PORT=3550
PRODUCT_CATALOG_SERVICE_ADDR=productcatalogservice:${PRODUCT_CATALOG_SERVICE_PORT}
PRODUCT_CATALOG_DOCKERFILE=./src/productcatalogservice/Dockerfile
PRODUCT_CATALOG_PORT=3550
PRODUCT_CATALOG_ADDR=product-catalog:${PRODUCT_CATALOG_PORT}
PRODUCT_CATALOG_DOCKERFILE=./src/product-catalog/Dockerfile

# Quote Service
QUOTE_PORT=8090
Expand Down Expand Up @@ -139,9 +139,9 @@ FLAGD_UI_PORT=4000
FLAGD_UI_DOCKERFILE=./src/flagd-ui/Dockerfile

# Kafka
KAFKA_SERVICE_PORT=9092
KAFKA_SERVICE_ADDR=kafka:${KAFKA_SERVICE_PORT}
KAFKA_SERVICE_DOCKERFILE=./src/kafka/Dockerfile
KAFKA_PORT=9092
KAFKA_ADDR=kafka:${KAFKA_PORT}
KAFKA_DOCKERFILE=./src/kafka/Dockerfile

# Valkey
VALKEY_PORT=6379
Expand All @@ -151,14 +151,14 @@ VALKEY_ADDR=valkey-cart:${VALKEY_PORT}
# Telemetry Components
# ********************
# Grafana
GRAFANA_SERVICE_PORT=3000
GRAFANA_SERVICE_HOST=grafana
GRAFANA_PORT=3000
GRAFANA_HOST=grafana

# Jaeger
JAEGER_SERVICE_PORT=16686
JAEGER_SERVICE_HOST=jaeger
JAEGER_PORT=16686
JAEGER_HOST=jaeger

# Prometheus
PROMETHEUS_SERVICE_PORT=9090
PROMETHEUS_SERVICE_HOST=prometheus
PROMETHEUS_ADDR=${PROMETHEUS_SERVICE_HOST}:${PROMETHEUS_SERVICE_PORT}
PROMETHEUS_PORT=9090
PROMETHEUS_HOST=prometheus
PROMETHEUS_ADDR=${PROMETHEUS_HOST}:${PROMETHEUS_PORT}
1 change: 1 addition & 0 deletions .env.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_JAVA_OPTIONS=-XX:UseSVE=0
61 changes: 56 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,68 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
directories:
- "/"
groups:
actions-production-dependencies:
dependency-type: "production"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directories:
- "/src/**/*"
groups:
docker-production-dependencies:
dependency-type: "production"
schedule:
interval: "daily"
labels:
- "infra"
- package-ecosystem: "gomod"
directories:
- "/src/checkoutservice"
- "/src/productcatalogservice"
- "/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/**/*"
groups:
npm-production-dependencies:
dependency-type: "production"
npm-development-dependencies:
dependency-type: "development"
schedule:
interval: "daily"
14 changes: 7 additions & 7 deletions .github/workflows/component-build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
tag_suffix: cart
context: ./
setup-qemu: false
- file: ./src/checkoutservice/Dockerfile
tag_suffix: checkoutservice
- file: ./src/checkout/Dockerfile
tag_suffix: checkout
context: ./
setup-qemu: true
- file: ./src/currency/Dockerfile
Expand All @@ -83,8 +83,8 @@ jobs:
tag_suffix: frontend
context: ./
setup-qemu: true
- file: ./src/frontendproxy/Dockerfile
tag_suffix: frontendproxy
- file: ./src/frontend-proxy/Dockerfile
tag_suffix: frontend-proxy
context: ./
setup-qemu: true
- file: ./src/frontend/Dockerfile.cypress
Expand All @@ -107,8 +107,8 @@ jobs:
tag_suffix: payment
context: ./
setup-qemu: true
- file: ./src/productcatalogservice/Dockerfile
tag_suffix: productcatalogservice
- file: ./src/product-catalog/Dockerfile
tag_suffix: product-catalog
context: ./
setup-qemu: true
- file: ./src/quote/Dockerfile
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
max-parallelism = 2
- name: Matrix Build and push demo images
if: steps.check_changes.outputs.skip == 'false'
uses: docker/build-push-action@v6.10.0
uses: docker/build-push-action@v6.11.0
with:
context: ${{ matrix.file_tag.context }}
file: ${{ matrix.file_tag.file }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Check for changed files
id: file_changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
with:
list-files: shell
filters: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
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.'
Expand Down
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


*~
*.iml
*.ipr
Expand Down Expand Up @@ -45,10 +43,6 @@ test/tracetesting/tracetesting-vars.yaml
# Ignore copied/generated protobuf files
/src/accounting/src/protos/
/src/cart/src/protos/
/src/featureflagservice/proto/
/src/featureflagservice/src/ffs_demo_pb.erl
/src/featureflagservice/src/ffs_service_*.erl
/src/featureflagservice/src/oteldemo_*.erl
/src/fraud-detection/src/main/proto
/src/frontend/pb/
/src/frontend/protos/
Expand All @@ -58,3 +52,5 @@ test/tracetesting/tracetesting-vars.yaml

# Android
*.apk

!src/currency/build
7 changes: 3 additions & 4 deletions .licenserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@
"/src/accounting/src/protos/",
"src/cart/src/obj/",
"src/cart/tests/obj/",
"src/checkoutservice/genproto/",
"src/featureflagservice/assets/vendor/",
"src/featureflagservice/priv/",
"src/productcatalogservice/genproto/",
"src/currency/build/",
"src/checkout/genproto/",
"src/product-catalog/genproto/",
"src/react-native-app/ios/Pods/",
"src/react-native-app/ios/build/",
"src/react-native-app/android/app/build/",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ the release.
([#1863](https://github.com/open-telemetry/opentelemetry-demo/pull/1863))
* [recommendation] rename recommendationservice to recommendation
([#1865](https://github.com/open-telemetry/opentelemetry-demo/pull/1865))
* [product-catalog] rename productcatalogservice to product-catalog
([#1864](https://github.com/open-telemetry/opentelemetry-demo/pull/1864))
* [checkout] rename checkoutservice to checkout
([#1867](https://github.com/open-telemetry/opentelemetry-demo/pull/1867))
* [chore] remove `SERVICE_` from environment variables
([#1897](https://github.com/open-telemetry/opentelemetry-demo/pull/1897))
* [frontend-proxy] rename frontendproxy to frontend-proxy
([#1910](https://github.com/open-telemetry/opentelemetry-demo/pull/1910))

## 1.12.0

Expand Down
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ 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!
Expand Down Expand Up @@ -77,11 +86,11 @@ install-tools: $(MISSPELL)

.PHONY: build
build:
$(DOCKER_COMPOSE_CMD) build
$(DOCKER_COMPOSE_CMD) build $(DOCKER_COMPOSE_BUILD_ARGS)

.PHONY: build-and-push
build-and-push:
$(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build --push
$(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build $(DOCKER_COMPOSE_BUILD_ARGS) --push

# Create multiplatform builder for buildx
.PHONY: create-multiplatform-builder
Expand Down Expand Up @@ -139,7 +148,7 @@ docker-generate-protobuf:

.PHONY: clean
clean:
rm -rf ./src/{checkoutservice,productcatalogservice}/genproto/oteldemo/
rm -rf ./src/{checkout,product-catalog}/genproto/oteldemo/
rm -rf ./src/recommendation/{demo_pb2,demo_pb2_grpc}.py

.PHONY: check-clean-work-tree
Expand Down Expand Up @@ -209,7 +218,7 @@ ifdef SERVICE
endif

ifdef service
$(DOCKER_COMPOSE_CMD) $(DOCKER_COMPOSE_ENV) build $(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)
Expand Down
10 changes: 5 additions & 5 deletions docker-compose-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ services:
environment:
- AD_ADDR
- CART_ADDR
- CHECKOUT_SERVICE_ADDR
- CHECKOUT_ADDR
- CURRENCY_ADDR
- EMAIL_ADDR
- FRONTEND_ADDR
- PAYMENT_ADDR
- PRODUCT_CATALOG_SERVICE_ADDR
- PRODUCT_CATALOG_ADDR
- RECOMMENDATION_ADDR
- SHIPPING_ADDR
- KAFKA_SERVICE_ADDR
- KAFKA_ADDR
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
Expand All @@ -63,7 +63,7 @@ services:
condition: service_started
cart:
condition: service_started
checkoutservice:
checkout:
condition: service_started
currency:
condition: service_started
Expand All @@ -75,7 +75,7 @@ services:
condition: service_started
payment:
condition: service_started
productcatalogservice:
product-catalog:
condition: service_started
quote:
condition: service_started
Expand Down
Loading

0 comments on commit 2a73b7f

Please sign in to comment.