Skip to content

Commit adc8130

Browse files
committed
initial commit
0 parents  commit adc8130

431 files changed

Lines changed: 74700 additions & 0 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
3+
.github
4+
docs
5+
internal
6+
src/*/README.md
7+
src/*/Dockerfile
8+
src/*/*/Dockerfile
9+
10+
###################################
11+
# currencyservice
12+
./src/currencyservice/client.js
13+
./src/currencyservice/node_modules/
14+
###################################
15+
16+
###################################
17+
# featureflagservice
18+
# Common development/test artifacts
19+
./src/featureflagservice/cover/
20+
./src/featureflagservice/doc/
21+
./src/featureflagservice/test/
22+
./src/featureflagservice/tmp/
23+
./src/featureflagservice/.elixir_ls
24+
25+
###################################
26+
# frontend
27+
./src/frontend/node_modules/
28+
29+
###################################
30+
# shippingservice
31+
./src/shippingservice/target
32+
###################################
33+
34+
# Mix artifacts
35+
./src/featureflagservice/_build/
36+
./src/featureflagservice/deps/
37+
./src/featureflagservice/*.ez
38+
39+
# Generated on crash by the VM
40+
./src/featureflagservice/erl_crash.dump
41+
42+
# Static artifacts - These should be fetched and built inside the Docker image
43+
./src/featureflagservice/assets/node_modules/
44+
./src/featureflagservice/priv/static/assets/
45+
./src/featureflagservice/priv/static/cache_manifest.json
46+
###################################
47+

.env

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
2+
3+
# Images
4+
IMAGE_VERSION=1.6.0
5+
IMAGE_NAME=ghcr.io/open-telemetry/demo
6+
TRACETEST_IMAGE_VERSION=v0.14.5
7+
8+
# Demo Platform
9+
ENV_PLATFORM=local
10+
11+
# OpenTelemetry Collector
12+
OTEL_COLLECTOR_HOST=otelcol
13+
OTEL_COLLECTOR_PORT_GRPC=4317
14+
OTEL_COLLECTOR_PORT_HTTP=4318
15+
OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
16+
PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces
17+
18+
# OpenTelemetry Resource Definitions
19+
OTEL_RESOURCE_ATTRIBUTES="service.namespace=opentelemetry-demo"
20+
21+
# Metrics Temporality
22+
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative
23+
24+
# ******************
25+
# Core Demo Services
26+
# ******************
27+
# Ad Service
28+
AD_SERVICE_PORT=9555
29+
AD_SERVICE_ADDR=adservice:${AD_SERVICE_PORT}
30+
31+
# Cart Service
32+
CART_SERVICE_PORT=7070
33+
CART_SERVICE_ADDR=cartservice:${CART_SERVICE_PORT}
34+
35+
# Checkout Service
36+
CHECKOUT_SERVICE_PORT=5050
37+
CHECKOUT_SERVICE_ADDR=checkoutservice:${CHECKOUT_SERVICE_PORT}
38+
39+
# Currency Service
40+
CURRENCY_SERVICE_PORT=7001
41+
CURRENCY_SERVICE_ADDR=currencyservice:${CURRENCY_SERVICE_PORT}
42+
43+
# Email Service
44+
EMAIL_SERVICE_PORT=6060
45+
EMAIL_SERVICE_ADDR=http://emailservice:${EMAIL_SERVICE_PORT}
46+
47+
# Feature Flag Service
48+
FEATURE_FLAG_SERVICE_PORT=8081
49+
FEATURE_FLAG_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_SERVICE_PORT}
50+
FEATURE_FLAG_SERVICE_HOST=feature-flag-service
51+
FEATURE_FLAG_GRPC_SERVICE_PORT=50053
52+
FEATURE_FLAG_GRPC_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_GRPC_SERVICE_PORT}
53+
54+
# Frontend
55+
FRONTEND_PORT=8080
56+
FRONTEND_ADDR=frontend:${FRONTEND_PORT}
57+
58+
# Frontend Proxy (Envoy)
59+
FRONTEND_HOST=frontend
60+
ENVOY_PORT=8080
61+
FRONTEND_PROXY_ADDR=frontend-proxy:${ENVOY_PORT}
62+
63+
# Load Generator
64+
LOCUST_WEB_PORT=8089
65+
LOCUST_USERS=10
66+
LOCUST_HOST=http://${FRONTEND_PROXY_ADDR}
67+
LOCUST_WEB_HOST=loadgenerator
68+
LOCUST_AUTOSTART=true
69+
LOCUST_HEADLESS=false
70+
LOCUST_BROWSER_TRAFFIC_ENABLED=false
71+
72+
# Payment Service
73+
PAYMENT_SERVICE_PORT=50051
74+
PAYMENT_SERVICE_ADDR=paymentservice:${PAYMENT_SERVICE_PORT}
75+
76+
# Product Catalog Service
77+
PRODUCT_CATALOG_SERVICE_PORT=3550
78+
PRODUCT_CATALOG_SERVICE_ADDR=productcatalogservice:${PRODUCT_CATALOG_SERVICE_PORT}
79+
80+
# Quote Service
81+
QUOTE_SERVICE_PORT=8090
82+
QUOTE_SERVICE_ADDR=http://quoteservice:${QUOTE_SERVICE_PORT}
83+
84+
# Recommendation Service
85+
RECOMMENDATION_SERVICE_PORT=9001
86+
RECOMMENDATION_SERVICE_ADDR=recommendationservice:${RECOMMENDATION_SERVICE_PORT}
87+
88+
# Shipping Service
89+
SHIPPING_SERVICE_PORT=50050
90+
SHIPPING_SERVICE_ADDR=shippingservice:${SHIPPING_SERVICE_PORT}
91+
92+
# ******************
93+
# Dependent Services
94+
# ******************
95+
# Kafka
96+
KAFKA_SERVICE_PORT=9092
97+
KAFKA_SERVICE_ADDR=kafka:${KAFKA_SERVICE_PORT}
98+
99+
# Redis
100+
REDIS_PORT=6379
101+
REDIS_ADDR=redis-cart:${REDIS_PORT}
102+
103+
# ********************
104+
# Telemetry Components
105+
# ********************
106+
# Grafana
107+
GRAFANA_SERVICE_PORT=3000
108+
GRAFANA_SERVICE_HOST=grafana
109+
110+
# Jaeger
111+
JAEGER_SERVICE_PORT=16686
112+
JAEGER_SERVICE_HOST=jaeger
113+
114+
# Prometheus
115+
PROMETHEUS_SERVICE_PORT=9090
116+
PROMETHEUS_SERVICE_HOST=prometheus
117+
PROMETHEUS_ADDR=${PROMETHEUS_SERVICE_HOST}:${PROMETHEUS_SERVICE_PORT}

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
* text=auto
4+
5+
gradlew text eol=lf

.github/.mlc_config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ignorePatterns": [
3+
{"pattern": "^http://localhost:8080"},
4+
{"pattern": "^https://calendar.google.com/calendar"}
5+
],
6+
"replacementPatterns": [
7+
{
8+
"pattern": "^/",
9+
"replacement": "/github/workspace/"
10+
}
11+
],
12+
"aliveStatusCodes": [
13+
200,
14+
429
15+
]
16+
}

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
4+
# For anything not explicitly taken by someone else:
5+
* @open-telemetry/demo-approvers
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
labels: bug
5+
---
6+
7+
# Bug Report
8+
9+
Which version of the demo you are using? (please provide either a specific
10+
[commit
11+
hash](https://github.com/open-telemetry/opentelemetry-demo/commits/main)
12+
or a specific
13+
[release](https://github.com/open-telemetry/opentelemetry-demo/releases)).
14+
15+
## Symptom
16+
17+
A clear and concise description of what the bug is.
18+
19+
**What is the expected behavior?**
20+
21+
What do you expect to see?
22+
23+
**What is the actual behavior?**
24+
25+
What did you see instead?
26+
27+
## Reproduce
28+
29+
Provide the minimum required steps to result in the issue you're observing.
30+
31+
We will close this issue if:
32+
33+
* The steps you provided are complex.
34+
* If we can not reproduce the behavior you're reporting.
35+
36+
## Additional Context
37+
38+
Add any other context about the problem here.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
labels: enhancement
5+
---
6+
7+
# Feature Request
8+
9+
Before opening a feature request against this repo, consider whether the feature
10+
should/could be implemented in the [other OpenTelemetry client
11+
libraries](https://github.com/open-telemetry/). If so, please [open an issue on
12+
opentelemetry-specification](https://github.com/open-telemetry/opentelemetry-specification/issues/new)
13+
first.
14+
15+
**Is your feature request related to a problem?**
16+
17+
If so, provide a concise description of the problem.
18+
19+
**Describe the solution you'd like:**
20+
21+
What do you want to happen instead? What is the expected behavior?
22+
23+
**Describe alternatives you've considered.**
24+
25+
Which alternative solutions or features have you considered?
26+
27+
## Additional Context
28+
29+
Add any other context about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Question
3+
about: Create a question to help us improve our knowledge base and documentation
4+
labels: question
5+
---
6+
7+
# Question
8+
9+
Use [Github Discussions](https://github.com/open-telemetry/opentelemetry-demo/discussions/).

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changes
2+
3+
Please provide a brief description of the changes here.
4+
5+
## Merge Requirements
6+
7+
For new features contributions please make sure you have completed the following
8+
essential items:
9+
10+
* [ ] `CHANGELOG.md` updated to document new feature additions
11+
* [ ] Appropriate documentation updates in the [docs][]
12+
* [ ] Appropriate Helm chart updates in the [helm-charts][]
13+
14+
<!--
15+
A Pull Request that modifies instrumentation code will likely require an
16+
update in docs. Please make sure to update the opentelemetry.io repo with any
17+
docs changes.
18+
19+
A Pull Request that modifies docker-compose.yaml, otelcol-config.yaml, or
20+
Grafana dashboards, will likely require an update to the Demo Helm chart.
21+
Other changes affecting how a service is deployed will also likely require an
22+
update to the Demo Helm chart.
23+
-->
24+
25+
Maintainers will not merge until the above have been completed. If you're unsure
26+
which docs need to be changed ping the
27+
[@open-telemetry/demo-approvers](https://github.com/orgs/open-telemetry/teams/demo-approvers).
28+
29+
[docs]: https://opentelemetry.io/docs/demo/
30+
[helm-charts]: https://github.com/open-telemetry/opentelemetry-helm-charts

.github/component_owners.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright The OpenTelemetry Authors
2+
# SPDX-License-Identifier: Apache-2.0
3+
# this file is used by .github/workflows/assign-reviewers.yml
4+
components:
5+
src/adservice:
6+
- jack-berg
7+
- mateuszrzeszutek
8+
- trask

0 commit comments

Comments
 (0)