Skip to content

Commit f1d6eac

Browse files
authored
Merge from upstream up to c44af53
Merge upstream up to c44af53
2 parents 5795094 + b6be117 commit f1d6eac

File tree

236 files changed

+42572
-29021
lines changed

Some content is hidden

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

236 files changed

+42572
-29021
lines changed

.env

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
2-
31
# Demo App version
4-
IMAGE_VERSION=2.0.2
2+
IMAGE_VERSION=2.1.3
53
IMAGE_NAME=ghcr.io/open-telemetry/demo
64
DEMO_VERSION=latest
75

86
# Build Args
97
TRACETEST_IMAGE_VERSION=v1.7.1
10-
OTEL_JAVA_AGENT_VERSION=2.13.3
11-
OPENTELEMETRY_CPP_VERSION=1.19.0
8+
OTEL_JAVA_AGENT_VERSION=2.20.1
9+
OPENTELEMETRY_CPP_VERSION=1.23.0
1210

1311
# Dependent images
14-
COLLECTOR_CONTRIB_IMAGE=ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.120.0
15-
FLAGD_IMAGE=ghcr.io/open-feature/flagd:v0.12.1
16-
GRAFANA_IMAGE=grafana/grafana:11.5.2
17-
JAEGERTRACING_IMAGE=jaegertracing/all-in-one:1.66.0
12+
COLLECTOR_CONTRIB_IMAGE=ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.133.0
13+
FLAGD_IMAGE=ghcr.io/open-feature/flagd:v0.12.8
14+
GRAFANA_IMAGE=grafana/grafana:12.2.0
15+
JAEGERTRACING_IMAGE=jaegertracing/jaeger:2.10.0
1816
# must also update version field in src/grafana/provisioning/datasources/opensearch.yaml
19-
OPENSEARCH_IMAGE=opensearchproject/opensearch:2.19.0
20-
POSTGRES_IMAGE=postgres:17.3
21-
PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v3.2.0
22-
VALKEY_IMAGE=valkey/valkey:8.1-alpine
17+
OPENSEARCH_IMAGE=opensearchproject/opensearch:3.2.0
18+
OPENSEARCH_DOCKERFILE=./src/opensearch/Dockerfile
19+
POSTGRES_IMAGE=postgres:17.6 # used only for TraceTest
20+
PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v3.5.0
21+
VALKEY_IMAGE=valkey/valkey:8.1.3-alpine
2322
TRACETEST_IMAGE=kubeshop/tracetest:${TRACETEST_IMAGE_VERSION}
2423

2524
# Demo Platform
2625
ENV_PLATFORM=local
2726

27+
# IPv6 Flag control
28+
IPV6_ENABLED=false
29+
2830
# OpenTelemetry Collector
2931
HOST_FILESYSTEM=/
3032
DOCKER_SOCK=/var/run/docker.sock
@@ -82,8 +84,10 @@ FRONTEND_ADDR=frontend:${FRONTEND_PORT}
8284
FRONTEND_DOCKERFILE=./src/frontend/Dockerfile
8385

8486
# Frontend Proxy (Envoy)
85-
FRONTEND_HOST=frontend
87+
ENVOY_ADDR=0.0.0.0
8688
ENVOY_PORT=8080
89+
ENVOY_ADMIN_PORT=10000
90+
FRONTEND_HOST=frontend
8791
FRONTEND_PROXY_ADDR=frontend-proxy:${ENVOY_PORT}
8892
FRONTEND_PROXY_DOCKERFILE=./src/frontend-proxy/Dockerfile
8993

@@ -124,7 +128,7 @@ RECOMMENDATION_DOCKERFILE=./src/recommendation/Dockerfile
124128

125129
# Shipping Service
126130
SHIPPING_PORT=50050
127-
SHIPPING_ADDR=shipping:${SHIPPING_PORT}
131+
SHIPPING_ADDR=http://shipping:${SHIPPING_PORT}
128132
SHIPPING_DOCKERFILE=./src/shipping/Dockerfile
129133

130134
# ******************
@@ -142,13 +146,21 @@ FLAGD_UI_DOCKERFILE=./src/flagd-ui/Dockerfile
142146

143147
# Kafka
144148
KAFKA_PORT=9092
145-
KAFKA_ADDR=kafka:${KAFKA_PORT}
149+
KAFKA_HOST=kafka
150+
KAFKA_ADDR=${KAFKA_HOST}:${KAFKA_PORT}
146151
KAFKA_DOCKERFILE=./src/kafka/Dockerfile
147152

148153
# Valkey
149154
VALKEY_PORT=6379
150155
VALKEY_ADDR=valkey-cart:${VALKEY_PORT}
151156

157+
# Postgres
158+
POSTGRES_HOST=postgresql
159+
POSTGRES_PORT=5432
160+
POSTGRES_DB=otel
161+
POSTGRES_PASSWORD=otel
162+
POSTGRES_DOCKERFILE=./src/postgres/Dockerfile
163+
152164
# ********************
153165
# Telemetry Components
154166
# ********************
@@ -157,8 +169,9 @@ GRAFANA_PORT=3000
157169
GRAFANA_HOST=grafana
158170

159171
# Jaeger
160-
JAEGER_PORT=16686
161172
JAEGER_HOST=jaeger
173+
JAEGER_UI_PORT=16686
174+
JAEGER_GRPC_PORT=4317
162175

163176
# Prometheus
164177
PROMETHEUS_PORT=9090

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ We will close this issue if:
3636
## Additional Context
3737

3838
Please feel free to add any other context about the problem here.
39+
40+
<sub>**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/).</sub>

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Which alternative solutions or features have you considered?
2727
## Additional Context
2828

2929
Feel free to add any other context about the feature request here.
30+
31+
<sub>**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/).</sub>

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ labels: question
77
# Question
88

99
Use [Github Discussions](https://github.com/open-telemetry/opentelemetry-demo/discussions/).
10+
11+
<sub>**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/).</sub>

.github/dependabot.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ updates:
5252
interval: "daily"
5353
- package-ecosystem: "npm"
5454
directories:
55-
- "/src/flagd-ui/*"
55+
- "/"
5656
- "/src/frontend/*"
5757
- "/src/payment/*"
5858
groups:
@@ -62,3 +62,29 @@ updates:
6262
dependency-type: "development"
6363
schedule:
6464
interval: "daily"
65+
- package-ecosystem: "cargo"
66+
directories:
67+
- "/src/shipping/*"
68+
groups:
69+
cargo-production-dependencies:
70+
dependency-type: "production"
71+
schedule:
72+
interval: "daily"
73+
- package-ecosystem: "bundler"
74+
directories:
75+
- "/src/email/*"
76+
groups:
77+
bundler-production-dependencies:
78+
dependency-type: "production"
79+
bundler-development-dependencies:
80+
dependency-type: "development"
81+
schedule:
82+
interval: "daily"
83+
- package-ecosystem: "mix"
84+
directories:
85+
- "/src/flagd-ui/*"
86+
groups:
87+
mix-production-dependencies:
88+
dependency-type: "production"
89+
schedule:
90+
interval: "daily"

.github/workflows/assign-reviewers.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ on:
1010
# because repository write permission is needed to assign reviewers
1111
pull_request_target:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
assign-reviewers:
18+
permissions:
19+
pull-requests: write # required for assigning reviewers to PRs
1520
if: github.repository == 'open-telemetry/opentelemetry-demo'
1621
runs-on: ubuntu-latest
1722
steps:

.github/workflows/build-images.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ on:
88
- 'src/**'
99
- 'test/**'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build_images:
16+
permissions:
17+
contents: read
18+
packages: write
1319
if: github.repository == 'open-telemetry/opentelemetry-demo'
1420
uses: ./.github/workflows/component-build-images.yml

.github/workflows/checks.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ on:
99
branches: [main]
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build_images:
17+
permissions: # required by the reusable workflow
18+
contents: read
19+
packages: write
1420
uses: ./.github/workflows/component-build-images.yml
1521
with:
1622
push: false
@@ -20,7 +26,7 @@ jobs:
2026
runs-on: ubuntu-latest
2127
steps:
2228
- name: check out code
23-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
2430
- name: install dependencies
2531
run: npm install
2632
- name: run markdownlint
@@ -30,8 +36,8 @@ jobs:
3036
runs-on: ubuntu-latest
3137
steps:
3238
- name: check out code
33-
uses: actions/checkout@v4
34-
- uses: actions/setup-python@v5
39+
uses: actions/checkout@v5
40+
- uses: actions/setup-python@v6
3541
with:
3642
python-version: '3.x'
3743
- name: install yamllint
@@ -43,15 +49,15 @@ jobs:
4349
runs-on: ubuntu-latest
4450
steps:
4551
- name: check out code
46-
uses: actions/checkout@v4
52+
uses: actions/checkout@v5
4753
- name: run misspell
4854
run: make misspell
4955

5056
checklinks:
5157
name: linkspector
5258
runs-on: ubuntu-latest
5359
steps:
54-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
5561
- name: Run linkspector
5662
uses: umbrelladocs/action-linkspector@v1
5763
with:
@@ -62,15 +68,15 @@ jobs:
6268
sanity:
6369
runs-on: ubuntu-latest
6470
steps:
65-
- uses: actions/checkout@v4
71+
- uses: actions/checkout@v5
6672
- name: run sanitycheck.py
6773
run: python3 ./internal/tools/sanitycheck.py
6874

6975
checklicense:
7076
runs-on: ubuntu-latest
7177
steps:
7278
- name: check out code
73-
uses: actions/checkout@v4
79+
uses: actions/checkout@v5
7480
- name: install tools
7581
run: make install-tools
7682
- name: run checklicense

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

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ on:
2525
required: false
2626
type: string
2727

28+
permissions:
29+
contents: read
30+
2831
jobs:
2932
protobufcheck:
3033
runs-on: ubuntu-latest
3134
steps:
3235
- name: Checkout
33-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3437
- name: Generate
3538
run: make clean docker-generate-protobuf
3639
- name: Check Clean Work Tree
@@ -75,6 +78,10 @@ jobs:
7578
tag_suffix: email
7679
context: ./
7780
setup-qemu: true
81+
- file: ./src/flagd-ui/Dockerfile
82+
tag_suffix: flagd-ui
83+
context: ./
84+
setup-qemu: true
7885
- file: ./src/fraud-detection/Dockerfile
7986
tag_suffix: fraud-detection
8087
context: ./
@@ -103,10 +110,18 @@ jobs:
103110
tag_suffix: load-generator
104111
context: ./
105112
setup-qemu: true
113+
- file: ./src/opensearch/Dockerfile
114+
tag_suffix: opensearch
115+
context: ./
116+
setup-qemu: true
106117
- file: ./src/payment/Dockerfile
107118
tag_suffix: payment
108119
context: ./
109120
setup-qemu: true
121+
- file: ./src/postgres/Dockerfile
122+
tag_suffix: postgresql
123+
context: ./
124+
setup-qemu: true
110125
- file: ./src/product-catalog/Dockerfile
111126
tag_suffix: product-catalog
112127
context: ./
@@ -123,17 +138,13 @@ jobs:
123138
tag_suffix: shipping
124139
context: ./
125140
setup-qemu: true
126-
- file: ./src/flagd-ui/Dockerfile
127-
tag_suffix: flagd-ui
128-
context: ./
129-
setup-qemu: true
130141
- file: ./test/tracetesting/Dockerfile
131142
tag_suffix: traceBasedTests
132143
context: ./
133144
setup-qemu: true
134145

135146
steps:
136-
- uses: actions/checkout@v4
147+
- uses: actions/checkout@v5
137148
with:
138149
fetch-depth: 0
139150
- name: Load environment variables from .env file
@@ -189,7 +200,7 @@ jobs:
189200
max-parallelism = 2
190201
- name: Matrix Build and push demo images
191202
if: steps.check_changes.outputs.skip == 'false'
192-
uses: docker/build-push-action@v6.15.0
203+
uses: docker/build-push-action@v6.18.0
193204
with:
194205
context: ${{ matrix.file_tag.context }}
195206
file: ${{ matrix.file_tag.file }}

.github/workflows/component_build-images-elastic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ jobs:
108108
tag_suffix: traceBasedTests
109109
context: ./
110110
setup-qemu: true
111+
- file: ./src/postgres/Dockerfile
112+
tag_suffix: postgresql
113+
context: ./
114+
setup-qemu: true
111115

112116
steps:
113117
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)