Skip to content

Commit 7bc364f

Browse files
authored
Switch Python services to Elastic OTel distribution (#41)
* recommendationservice: switch to elastic OTel distribution * Update README * loadgenerator: switch to elastic OTel distribution
1 parent ff6f2e9 commit 7bc364f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The following guide describes how to setup the OpenTelemetry demo with Elastic O
66
- The Java agent within the [Ad](../src/adservice/Dockerfile.elastic), the [Fraud Detection](../src/frauddetectionservice/Dockerfile.elastic) and the [Kafka](../src/kafka/Dockerfile.elastic) services have been replaced with the Elastic distribution of the OpenTelemetry Java Agent. You can find more information about the Elastic distribution in [this blog post](https://www.elastic.co/observability-labs/blog/elastic-distribution-opentelemetry-java-agent).
77
- The .NET agent within the [Cart service](../src/cartservice/src/Directory.Build.props) has been replaced with the Elastic distribution of the OpenTelemetry .NET Agent. You can find more information about the Elastic distribution in [this blog post](https://www.elastic.co/observability-labs/blog/elastic-opentelemetry-distribution-dotnet-applications).
88
- The Elastic distribution of the OpenTelemetry Node.js Agent has replaced the OpenTelemetry Node.js agent in the [Payment service](../src/paymentservice/package.json). Additional details about the Elastic distribution are available in [this blog post](https://www.elastic.co/observability-labs/blog/elastic-opentelemetry-distribution-node-js).
9+
- The Elastic distribution for OpenTelemetry Python has replaced the OpenTelemetry Python agent in the [Recommendation service](..src/recommendationservice/requirements.txt). Additional details about the Elastic distribution are available in [this blog post](https://www.elastic.co/observability-labs/blog/elastic-opentelemetry-distribution-python).
910

1011
Additionally, the OpenTelemetry Contrib collector has also been changed to the [Elastic OpenTelemetry Collector distribution](https://github.com/elastic/elastic-agent/blob/main/internal/pkg/otel/README.md). This ensures a more integrated and optimized experience with Elastic Observability.
1112

src/loadgenerator/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ charset-normalizer==3.3.2
55
click==8.1.7
66
configargparse==1.7
77
deprecated==1.2.14
8+
elastic-opentelemetry==0.1.0
89
flask==3.0.0
910
flask-basicauth==0.2.0
1011
flask-cors==4.0.0
@@ -20,7 +21,10 @@ locust_plugins==3.4.0
2021
markupsafe==2.1.3
2122
msgpack==1.0.7
2223
opentelemetry-api==1.25.0
24+
opentelemetry-exporter-otlp==1.25.0
25+
opentelemetry-exporter-otlp-proto-common==1.25.0
2326
opentelemetry-exporter-otlp-proto-grpc==1.25.0
27+
opentelemetry-exporter-otlp-proto-http==1.25.0
2428
opentelemetry-instrumentation==0.46b0
2529
opentelemetry-instrumentation-jinja2==0.46b0
2630
opentelemetry-instrumentation-requests==0.46b0

src/recommendationservice/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
grpcio-health-checking==1.60.0
22
grpcio==1.60.0
3-
opentelemetry-distro==0.46b0
4-
opentelemetry-exporter-otlp-proto-grpc==1.25.0
3+
elastic-opentelemetry==0.1.0
54
python-dotenv==1.0.0
65
python-json-logger==2.0.7
76
openfeature-sdk==0.7.0

0 commit comments

Comments
 (0)