Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(python): update instrumentation version #94

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion applications/python-the-coffee-bar-apps/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine
FROM python:3.11-alpine

RUN apk add --no-cache bash net-tools iproute2 build-base gcc pkgconfig postgresql-dev linux-headers tzdata

Expand Down
2 changes: 1 addition & 1 deletion applications/python-the-coffee-bar-apps/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BASE_TAG = pythonAppsv0.3.1-ot1.17.0-0.38b0
BASE_TAG = pythonAppsv0.3.2-ot1.23.0-0.44b0

ifndef GITHUB_HEAD_REF
TAG = $(BASE_TAG)
Expand Down
36 changes: 18 additions & 18 deletions applications/python-the-coffee-bar-apps/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ verify_ssl = true
[dev-packages]

[packages]
APScheduler = "3.10.1"
cron-descriptor = "1.3.0"
Flask = "2.3.2"
flask-cors = "3.0.10"
opentelemetry-distro = "0.38b0"
opentelemetry-exporter-jaeger = "1.17.0"
opentelemetry-exporter-otlp-proto-http = "1.17.0"
opentelemetry-exporter-zipkin = "1.17.0"
opentelemetry-instrumentation = "0.38b0"
opentelemetry-sdk = "1.17.0"
APScheduler = "3.10.4"
cron-descriptor = "1.4.3"
Flask = "3.0.2"
flask-cors = "4.0.0"
opentelemetry-distro = "0.44b0"
opentelemetry-exporter-jaeger = "1.21.0"
opentelemetry-exporter-otlp-proto-http = "1.23.0"
opentelemetry-exporter-zipkin = "1.23.0"
opentelemetry-instrumentation = "0.44b0"
opentelemetry-sdk = "1.23.0"
opentelemetry-propagator-aws-xray = "1.0.1"
opentelemetry-propagator-b3 = "1.17.0"
opentelemetry-util-http = "0.38b0"
paste = "3.5.3"
psycopg2 = "2.9.6"
pyjson5 = "1.6.2"
requests = "2.30.0"
opentelemetry-propagator-b3 = "1.23.0"
opentelemetry-util-http = "0.44b0"
paste = "3.7.1"
psycopg2 = "2.9.9"
pyjson5 = "1.6.6"
requests = "2.31.0"
statsd = "4.0.1"
tcconfig = "0.28.0"
waitress = "2.1.2"
waitress = "3.0.0"
the-coffee-bar = {path = "."}

[requires]
python_version = "3.10"
python_version = "3.11"
37 changes: 19 additions & 18 deletions applications/python-the-coffee-bar-apps/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from setuptools import setup, find_packages
# pylint: disable=line-too-long
from os import path
from setuptools import setup, find_packages

here = path.abspath(path.dirname(__file__))

Expand Down Expand Up @@ -28,26 +29,26 @@
packages=find_packages(),
python_requires='>=3.8, <4',

install_requires=['APScheduler==3.10.1',
'cron-descriptor==1.3.0',
'Flask==2.3.2',
'flask-cors==3.0.10',
'opentelemetry-distro==0.38b0',
'opentelemetry-exporter-jaeger==1.17.0',
'opentelemetry-exporter-otlp-proto-http==1.17.0',
'opentelemetry-exporter-zipkin==1.17.0',
'opentelemetry-instrumentation==0.38b0',
'opentelemetry-sdk==1.17.0',
install_requires=['APScheduler==3.10.4',
'cron-descriptor==1.4.3',
'Flask==3.0.2',
'flask-cors==4.0.0',
'opentelemetry-distro==0.44b0',
'opentelemetry-exporter-jaeger==1.21.0',
'opentelemetry-exporter-otlp-proto-http==1.23.0',
'opentelemetry-exporter-zipkin==1.23.0',
'opentelemetry-instrumentation==0.44b0',
'opentelemetry-sdk==1.23.0',
'opentelemetry-propagator-aws-xray==1.0.1',
'opentelemetry-propagator-b3==1.17.0',
'opentelemetry-util-http==0.38b0',
'paste==3.5.3',
'psycopg2==2.9.6',
'pyjson5==1.6.2',
'requests==2.30.0',
'opentelemetry-propagator-b3==1.23.0',
'opentelemetry-util-http==0.44b0',
'paste==3.7.1',
'psycopg2==2.9.9',
'pyjson5==1.6.6',
'requests==2.31.0',
'statsd==4.0.1',
'tcconfig==0.28.0',
'waitress==2.1.2',
'waitress==3.0.0',
],
data_files=[],
entry_points={
Expand Down
14 changes: 9 additions & 5 deletions deployments/docker-compose/docker-compose-aws-lambda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ services:
- 8082:8082
command: ["opentelemetry-instrument", "python3", "src/bin/the_coffee_bar.py",
"--host=the-coffee-bar", "--port=8082", "--coffeemachine-host=the-coffee-machine",
"--coffeemachine-port=8083", "--cashdesk-host=the-cashdesk", "--cashdesk-port=8084"]
"--coffeemachine-port=8083", "--cashdesk-host=the-cashdesk", "--cashdesk-port=8084",
"--cakes-url=URL_TO_LAMBDA_FUNC"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_SERVICE_NAME=aws-lambda-the-coffee-bar
Expand All @@ -37,7 +38,8 @@ services:
"--host=the-coffee-machine", "--port=8083", "--machine-svc-host=machine-svc",
"--machine-svc-port=9090"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_SERVICE_NAME=aws-lambda-the-coffee-machine
Expand All @@ -52,7 +54,8 @@ services:
"--host=the-cashdesk", "--port=8084", "--calculator-host=calculator-svc", "--calculator-port=8090",
"--connection-string=postgresql://account:account@postgres:5432/account"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_SERVICE_NAME=aws-lambda-the-cashdesk
Expand All @@ -64,7 +67,8 @@ services:
command: ["opentelemetry-instrument", "python3", "src/bin/the_coffee_lover.py",
"--host=the-coffee-bar", "--port=8082", "--ratio=5"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_SERVICE_NAME=aws-lambda-the-coffee-lover
Expand Down
20 changes: 12 additions & 8 deletions deployments/docker-compose/docker-compose-interval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
# expose:
# - 9222
the-coffee-bar:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-coffee-bar
hostname: the-coffee-bar
ports:
Expand All @@ -43,7 +43,8 @@ services:
"--coffeemachine-port=8083", "--cashdesk-host=the-cashdesk", "--cashdesk-port=8084"]
# ,"--cakes-url=LAMBDA_URL_HERE"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-bar
Expand Down Expand Up @@ -77,7 +78,7 @@ services:
- REACT_APP_PROPAGATION_CORS_URLS=[/^http:\/\/localhost:8082\/.*/,/^http:\/\/the-coffee-bar:8082\/.*/,]
- REACT_APP_ENVIRONMENT_NAME=default
the-coffee-machine:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-coffee-machine
hostname: the-coffee-machine
ports:
Expand All @@ -86,12 +87,13 @@ services:
"--host=the-coffee-machine", "--port=8083", "--machine-svc-host=machine-svc",
"--machine-svc-port=9090", "--spike-cron=*/2 * * * *", "--spike-duration=60", "--cpu-spike-processes=1", "--interval-based-trigger=true", "--spike-interval-days=0", "--spike-interval-hours=1"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-machine
the-cashdesk:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-cashdesk
hostname: the-cashdesk
ports:
Expand All @@ -100,18 +102,20 @@ services:
"--host=the-cashdesk", "--port=8084", "--calculator-host=calculator-svc", "--calculator-port=8090",
"--connection-string=postgresql://account:account@postgres:5432/account"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-cashdesk
# the-coffee-lover:
# image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
# image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
# container_name: the-coffee-lover
# hostname: the-coffee-lover
# command: ["opentelemetry-instrument", "python3", "src/bin/the_coffee_lover.py",
# "--host=the-coffee-bar", "--port=8082", "--ratio=30"]
# environment:
# - OTEL_TRACES_EXPORTER=otlp_proto_http
# - OTEL_TRACES_EXPORTER=otlp
# - OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
# - OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:55681/v1/traces
# - OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-lover
machine-svc:
Expand Down
12 changes: 8 additions & 4 deletions deployments/docker-compose/docker-compose-local-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ services:
"--port=8082",
"--ratio=30"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-lover
Expand Down Expand Up @@ -94,7 +95,8 @@ services:
"--cashdesk-port=8084"]
# ,"--cakes-url=LAMBDA_URL_HERE"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-bar
Expand All @@ -115,7 +117,8 @@ services:
"--spike-duration=60",
"--cpu-spike-processes=1"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-machine
Expand All @@ -133,7 +136,8 @@ services:
"--calculator-port=8090",
"--connection-string=postgresql://account:account@postgres:5432/account"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-cashdesk
Expand Down
17 changes: 10 additions & 7 deletions deployments/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
# expose:
# - 9222
the-coffee-bar:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0 pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-coffee-bar
hostname: the-coffee-bar
ports:
Expand All @@ -43,7 +43,8 @@ services:
"--coffeemachine-port=8083", "--cashdesk-host=the-cashdesk", "--cashdesk-port=8084"]
# ,"--cakes-url=LAMBDA_URL_HERE"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-bar
Expand Down Expand Up @@ -74,7 +75,7 @@ services:
- REACT_APP_DROP_SINGLE_TRACES=false
- REACT_APP_ENVIRONMENT_NAME=default
the-coffee-machine:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-coffee-machine
hostname: the-coffee-machine
ports:
Expand All @@ -83,12 +84,13 @@ services:
"--host=the-coffee-machine", "--port=8083", "--machine-svc-host=machine-svc",
"--machine-svc-port=9090", "--spike-cron=*/2 * * * *", "--spike-duration=60", "--cpu-spike-processes=1"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-coffee-machine
the-cashdesk:
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
container_name: the-cashdesk
hostname: the-cashdesk
ports:
Expand All @@ -97,12 +99,13 @@ services:
"--host=the-cashdesk", "--port=8084", "--calculator-host=calculator-svc", "--calculator-port=8090",
"--connection-string=postgresql://account:account@postgres:5432/account"]
environment:
- OTEL_TRACES_EXPORTER=otlp_proto_http
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_METRICS_EXPORTER=none
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otelcol:4318/v1/traces
- OTEL_RESOURCE_ATTRIBUTES=application=tcb-local,service.name=the-cashdesk
# the-coffee-lover:
# image: public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.1-ot1.17.0-0.38b0
# image: public.ecr.aws/sumologic/the-coffee-bar:public.ecr.aws/sumologic/the-coffee-bar:pythonAppsv0.3.2-ot1.23.0-0.44b0
# container_name: the-coffee-lover
# hostname: the-coffee-lover
# command: ["opentelemetry-instrument", "python3", "src/bin/the_coffee_lover.py",
Expand Down
2 changes: 1 addition & 1 deletion deployments/helm/sumologic-the-coffee-bar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ image:
tag: frontend-v0.1.4
python:
repository: public.ecr.aws/sumologic/the-coffee-bar
tag: pythonAppsv0.3.1-ot1.17.0-0.38b0
tag: pythonAppsv0.3.2-ot1.23.0-0.44b0
ruby:
repository: public.ecr.aws/sumologic/the-coffee-bar
tag: rubyAppsv0.2.1-ot1.2.0-0.35.0-0.24.0
Expand Down
Loading