Skip to content

Commit 90d1a26

Browse files
committed
Merge branch 'upstream-main' into jpmunz/react-native-example
2 parents 9a190ce + 623c0e4 commit 90d1a26

File tree

129 files changed

+13099
-7250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+13099
-7250
lines changed

.env

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ ENV_PLATFORM=local
2828
# OpenTelemetry Collector
2929
HOST_FILESYSTEM=/
3030
DOCKER_SOCK=/var/run/docker.sock
31-
OTEL_COLLECTOR_HOST=otelcol
31+
OTEL_COLLECTOR_HOST=otel-collector
3232
OTEL_COLLECTOR_PORT_GRPC=4317
3333
OTEL_COLLECTOR_PORT_HTTP=4318
34-
OTEL_COLLECTOR_CONFIG=./src/otelcollector/otelcol-config.yml
35-
OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otelcollector/otelcol-config-extras.yml
34+
OTEL_COLLECTOR_CONFIG=./src/otel-collector/otelcol-config.yml
35+
OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otel-collector/otelcol-config-extras.yml
3636
OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
3737
PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces
3838

@@ -46,17 +46,17 @@ OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative
4646
# Core Demo Services
4747
# ******************
4848
# Accounting Service
49-
ACCOUNTING_SERVICE_DOCKERFILE=./src/accountingservice/Dockerfile
49+
ACCOUNTING_DOCKERFILE=./src/accounting/Dockerfile
5050

5151
# Ad Service
52-
AD_SERVICE_PORT=9555
53-
AD_SERVICE_ADDR=adservice:${AD_SERVICE_PORT}
54-
AD_SERVICE_DOCKERFILE=./src/adservice/Dockerfile
52+
AD_PORT=9555
53+
AD_ADDR=ad:${AD_PORT}
54+
AD_DOCKERFILE=./src/ad/Dockerfile
5555

5656
# Cart Service
57-
CART_SERVICE_PORT=7070
58-
CART_SERVICE_ADDR=cartservice:${CART_SERVICE_PORT}
59-
CART_SERVICE_DOCKERFILE=./src/cartservice/src/Dockerfile
57+
CART_PORT=7070
58+
CART_ADDR=cart:${CART_PORT}
59+
CART_DOCKERFILE=./src/cart/src/Dockerfile
6060

6161
# Checkout Service
6262
CHECKOUT_SERVICE_PORT=5050
@@ -94,7 +94,7 @@ IMAGE_PROVIDER_DOCKERFILE=./src/imageprovider/Dockerfile
9494

9595
# Load Generator
9696
LOCUST_WEB_PORT=8089
97-
LOCUST_USERS=10
97+
LOCUST_USERS=5
9898
LOCUST_HOST=http://${FRONTEND_PROXY_ADDR}
9999
LOCUST_WEB_HOST=loadgenerator
100100
LOCUST_AUTOSTART=true
@@ -112,9 +112,9 @@ PRODUCT_CATALOG_SERVICE_ADDR=productcatalogservice:${PRODUCT_CATALOG_SERVICE_POR
112112
PRODUCT_CATALOG_DOCKERFILE=./src/productcatalogservice/Dockerfile
113113

114114
# Quote Service
115-
QUOTE_SERVICE_PORT=8090
116-
QUOTE_SERVICE_ADDR=http://quoteservice:${QUOTE_SERVICE_PORT}
117-
QUOTE_SERVICE_DOCKERFILE=./src/quoteservice/Dockerfile
115+
QUOTE_PORT=8090
116+
QUOTE_ADDR=http://quote:${QUOTE_PORT}
117+
QUOTE_DOCKERFILE=./src/quote/Dockerfile
118118

119119
# Recommendation Service
120120
RECOMMENDATION_SERVICE_PORT=9001
@@ -134,7 +134,7 @@ FLAGD_HOST=flagd
134134
FLAGD_PORT=8013
135135

136136
# Flagd UI
137-
FLAGD_UI_HOST=flagdui
137+
FLAGD_UI_HOST=flagd-ui
138138
FLAGD_UI_PORT=4000
139139
FLAGD_UI_DOCKERFILE=./src/flagd-ui/Dockerfile
140140

.github/component_owners.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# this file is used by .github/workflows/assign-reviewers.yml
44
components:
5-
src/adservice:
5+
src/ad:
66
- jack-berg
77
- mateuszrzeszutek
88
- trask

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ updates:
88
interval: "daily"
99
labels:
1010
- "infra"
11+
- package-ecosystem: "gomod"
12+
directories:
13+
- "/src/checkoutservice"
14+
- "/src/productcatalogservice"
15+
groups:
16+
go-production-dependencies:
17+
dependency-type: "production"
18+
schedule:
19+
interval: "daily"

.github/workflows/component-build-images.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,20 @@ on:
2626
type: string
2727

2828
jobs:
29+
protobufcheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Generate
35+
run: make clean docker-generate-protobuf
36+
- name: Check Clean Work Tree
37+
run: make check-clean-work-tree
38+
2939
build_and_push_images:
3040
runs-on: ubuntu-latest
41+
needs: protobufcheck
42+
3143
permissions:
3244
contents: read
3345
packages: write
@@ -39,16 +51,16 @@ jobs:
3951
fail-fast: false
4052
matrix:
4153
file_tag:
42-
- file: ./src/accountingservice/Dockerfile
43-
tag_suffix: accountingservice
54+
- file: ./src/accounting/Dockerfile
55+
tag_suffix: accounting
4456
context: ./
4557
setup-qemu: true
46-
- file: ./src/adservice/Dockerfile
47-
tag_suffix: adservice
58+
- file: ./src/ad/Dockerfile
59+
tag_suffix: ad
4860
context: ./
4961
setup-qemu: true
50-
- file: ./src/cartservice/src/Dockerfile
51-
tag_suffix: cartservice
62+
- file: ./src/cart/src/Dockerfile
63+
tag_suffix: cart
5264
context: ./
5365
setup-qemu: false
5466
- file: ./src/checkoutservice/Dockerfile
@@ -99,8 +111,8 @@ jobs:
99111
tag_suffix: productcatalogservice
100112
context: ./
101113
setup-qemu: true
102-
- file: ./src/quoteservice/Dockerfile
103-
tag_suffix: quoteservice
114+
- file: ./src/quote/Dockerfile
115+
tag_suffix: quote
104116
context: ./
105117
setup-qemu: true
106118
- file: ./src/recommendationservice/Dockerfile
@@ -112,7 +124,7 @@ jobs:
112124
context: ./
113125
setup-qemu: true
114126
- file: ./src/flagd-ui/Dockerfile
115-
tag_suffix: flagdui
127+
tag_suffix: flagd-ui
116128
context: ./
117129
setup-qemu: true
118130
- file: ./test/tracetesting/Dockerfile
@@ -177,7 +189,7 @@ jobs:
177189
max-parallelism = 2
178190
- name: Matrix Build and push demo images
179191
if: steps.check_changes.outputs.skip == 'false'
180-
uses: docker/build-push-action@v6.9.0
192+
uses: docker/build-push-action@v6.10.0
181193
with:
182194
context: ${{ matrix.file_tag.context }}
183195
file: ${{ matrix.file_tag.file }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright The OpenTelemetry Authors
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
on:
5+
pull_request:
6+
branches: [ main ]
7+
8+
permissions:
9+
actions: write
10+
pull-requests: write
11+
contents: write
12+
packages: write
13+
14+
jobs:
15+
dependabot-auto-update-protobuf-diff:
16+
runs-on: ubuntu-latest
17+
# Only run this job if the PR is opened by dependabot and the last commit is from dependabot
18+
if: github.event.pull_request.user.login == 'dependabot[bot]'
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.head_ref }}
24+
token: ${{ secrets.DEPENDABOT_TOKEN }}
25+
- name: Generate
26+
run: make clean docker-generate-protobuf
27+
- name: Commit only if there are changes
28+
run: |
29+
if ! git diff --quiet; then
30+
git config user.name "dependabot[bot]"
31+
git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
32+
git add .
33+
git commit -s -m "chore: update protobuf"
34+
git push
35+
fi

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- uses: gradle/actions/[email protected].0
18+
- uses: gradle/actions/[email protected].2

.github/workflows/label-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- 'docker-compose*.yml'
3131
- 'src/flagd/**'
3232
- 'src/grafana/**'
33-
- 'src/otelcollector/**'
33+
- 'src/otel-collector/**'
3434
- 'src/prometheus/**'
3535
3636
- name: "Add Label: docs-update-required"

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ src/shippingservice/target/
4343
test/tracetesting/tracetesting-vars.yaml
4444

4545
# Ignore copied/generated protobuf files
46-
/src/cartservice/src/protos/
46+
/src/accounting/src/protos/
47+
/src/cart/src/protos/
4748
/src/featureflagservice/proto/
4849
/src/featureflagservice/src/ffs_demo_pb.erl
4950
/src/featureflagservice/src/ffs_service_*.erl
@@ -52,12 +53,8 @@ test/tracetesting/tracetesting-vars.yaml
5253
/src/frontend/pb/
5354
/src/frontend/protos/
5455
/src/paymentservice/demo.proto
55-
/src/recommendationservice/demo_pb2*.py
5656
/src/shippingservice/proto/
57-
/src/productcatalogservice/genproto
5857
/src/currencyservice/proto
59-
/src/checkoutservice/genproto
60-
/src/accountingservice/genproto
6158

6259
# Android
6360
*.apk

.licenserc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
],
3939
"ignore": [
4040
"node_modules/",
41-
"src/accountingservice/genproto/",
42-
"src/cartservice/src/obj/",
43-
"src/cartservice/tests/obj/",
41+
"/src/accounting/src/protos/",
42+
"src/cart/src/obj/",
43+
"src/cart/tests/obj/",
4444
"src/checkoutservice/genproto/",
4545
"src/featureflagservice/assets/vendor/",
4646
"src/featureflagservice/priv/",
@@ -51,6 +51,8 @@
5151
"src/react-native-app/android/.gradle/",
5252
"src/react-native-app/.expo/",
5353
"src/react-native-app/expo-env.d.ts",
54+
"src/recommendationservice/demo_pb2.py",
55+
"src/recommendationservice/demo_pb2_grpc.py",
5456
"internal/tools/"
5557
]
56-
}
58+
}

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,39 @@ the release.
1111
([#1764](https://github.com/open-telemetry/opentelemetry-demo/pull/1764))
1212
* [chore] Move build args to .env file
1313
([#1767](https://github.com/open-telemetry/opentelemetry-demo/pull/1767))
14+
* [frontendproxy] add access logs
15+
([#1768](https://github.com/open-telemetry/opentelemetry-demo/pull/1768))
16+
* [grafana] Fix Dashboards
17+
([#1779](https://github.com/open-telemetry/opentelemetry-demo/pull/1779))
1418
* [accountingservice] bump OpenTelemetry .NET Automatic Instrumentation
1519
to 1.9.0 ([#1780](https://github.com/open-telemetry/opentelemetry-demo/pull/1780))
20+
* [chore] update memory limits for flagd, flagdui, and loadgenerator
21+
([#1786](https://github.com/open-telemetry/opentelemetry-demo/pull/1786))
22+
* [chore] Add multi-platform build support
23+
([#1785](https://github.com/open-telemetry/opentelemetry-demo/pull/1785))
24+
* [chore] Generate protobuf code for Go and Python services
25+
([#1794](https://github.com/open-telemetry/opentelemetry-demo/pull/1784))
26+
* [paymentservice] Add nodejs instrumentation for runtime metrics
27+
([#1797](https://github.com/open-telemetry/opentelemetry-demo/pull/1797))
28+
* [flagd and paymentservice] Update `paymentServiceFailure` to use a list of
29+
variants and add loyalty level attributes to spans. Added `service.name` to logs.
30+
([#1815](https://github.com/open-telemetry/opentelemetry-demo/pull/1815))
31+
* [accounting] rename accountingservice to accounting
32+
([#1827](https://github.com/open-telemetry/opentelemetry-demo/pull/1827))
33+
* [cartservice] - Add Exemplars to Cart Service
34+
([#1830](https://github.com/open-telemetry/opentelemetry-demo/pull/1830))
35+
* [ad] rename adservice to ad
36+
([#1832](https://github.com/open-telemetry/opentelemetry-demo/pull/1832))
37+
* [grafana] Add Exemplars Dashboard
38+
([#1836](https://github.com/open-telemetry/opentelemetry-demo/pull/1836))
39+
* [quote] rename quoteservice to quote
40+
([#1838](https://github.com/open-telemetry/opentelemetry-demo/pull/1838))
41+
* [flagd-ui] rename flagdui to flagd-ui
42+
([#1840](https://github.com/open-telemetry/opentelemetry-demo/pull/1840))
43+
* [otel-collector] rename otelcol to otel-collector
44+
([#1841](https://github.com/open-telemetry/opentelemetry-demo/pull/1841))
45+
* [cart] rename cartservice to cart
46+
([#1839](https://github.com/open-telemetry/opentelemetry-demo/pull/1839))
1647
* [react-native-app] Add React Native example app
1748
([#1781](https://github.com/open-telemetry/opentelemetry-demo/pull/1781))
1849

0 commit comments

Comments
 (0)