Skip to content

Commit e54439d

Browse files
[accounting]: rename accountingservice to accounting (open-telemetry#1827)
* rename accountingservice to accounting * Add ignore protos back --------- Co-authored-by: Juliano Costa <juliano.costa@datadoghq.com>
1 parent 5f28491 commit e54439d

18 files changed

+34
-32
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ 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
5252
AD_SERVICE_PORT=9555

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
file_tag:
54-
- file: ./src/accountingservice/Dockerfile
55-
tag_suffix: accountingservice
54+
- file: ./src/accounting/Dockerfile
55+
tag_suffix: accounting
5656
context: ./
5757
setup-qemu: true
5858
- file: ./src/adservice/Dockerfile

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ src/shippingservice/target/
4343
test/tracetesting/tracetesting-vars.yaml
4444

4545
# Ignore copied/generated protobuf files
46+
/src/accounting/src/protos/
4647
/src/cartservice/src/protos/
4748
/src/featureflagservice/proto/
4849
/src/featureflagservice/src/ffs_demo_pb.erl
@@ -54,4 +55,3 @@ test/tracetesting/tracetesting-vars.yaml
5455
/src/paymentservice/demo.proto
5556
/src/shippingservice/proto/
5657
/src/currencyservice/proto
57-
/src/accountingservice/genproto

.licenserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
],
3939
"ignore": [
4040
"node_modules/",
41-
"src/accountingservice/genproto/",
41+
"/src/accounting/src/protos/",
4242
"src/cartservice/src/obj/",
4343
"src/cartservice/tests/obj/",
4444
"src/checkoutservice/genproto/",

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ the release.
2525
([#1794](https://github.com/open-telemetry/opentelemetry-demo/pull/1784))
2626
* [paymentservice] Add nodejs instrumentation for runtime metrics
2727
([#1797](https://github.com/open-telemetry/opentelemetry-demo/pull/1797))
28+
* [accounting] rename accountingservice to accounting
29+
([#1827](https://github.com/open-telemetry/opentelemetry-demo/pull/1827))
2830

2931
## 1.12.0
3032

docker-compose-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
tracetest-server:
5858
condition: service_healthy
5959
# adding demo services as dependencies
60-
accountingservice:
60+
accounting:
6161
condition: service_started
6262
adservice:
6363
condition: service_started

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ services:
1818
# Core Demo Services
1919
# ******************
2020
# Accounting service
21-
accountingservice:
22-
image: ${IMAGE_NAME}:${DEMO_VERSION}-accountingservice
23-
container_name: accounting-service
21+
accounting:
22+
image: ${IMAGE_NAME}:${DEMO_VERSION}-accounting
23+
container_name: accounting
2424
build:
2525
context: ./
26-
dockerfile: ${ACCOUNTING_SERVICE_DOCKERFILE}
26+
dockerfile: ${ACCOUNTING_DOCKERFILE}
2727
cache_from:
28-
- ${IMAGE_NAME}:${IMAGE_VERSION}-accountingservice
28+
- ${IMAGE_NAME}:${IMAGE_VERSION}-accounting
2929
deploy:
3030
resources:
3131
limits:
@@ -36,7 +36,7 @@ services:
3636
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
3737
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
3838
- OTEL_RESOURCE_ATTRIBUTES
39-
- OTEL_SERVICE_NAME=accountingservice
39+
- OTEL_SERVICE_NAME=accounting
4040
depends_on:
4141
otelcol:
4242
condition: service_started

docker-gen-proto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ gen_proto_python() {
2121
python -m grpc_tools.protoc -I /build/pb/ --python_out="./src/$1/" --grpc_python_out="./src/$1/" /build/pb/demo.proto
2222
}
2323

24-
#gen_proto_dotnet accountingservice
24+
#gen_proto_dotnet accounting
2525
#gen_proto_java adservice
2626
#gen_proto_dotnet cartservice
2727
gen_proto_go checkoutservice

ide-gen-proto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ gen_proto_ts() {
6565
cd "$base_dir" || return
6666
}
6767

68-
gen_proto_dotnet accountingservice
68+
gen_proto_dotnet accounting
6969
# gen_proto_java adservice
7070
gen_proto_dotnet cartservice
7171
gen_proto_go checkoutservice

renovate.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
"packageRules": [
1717
{
18-
"matchFileNames": ["src/accountingservice/**"],
19-
"groupName": "accountingservice",
18+
"matchFileNames": ["src/accounting/**"],
19+
"groupName": "accounting",
2020
},
2121
{
2222
"matchFileNames": ["src/adservice/**"],

0 commit comments

Comments
 (0)