Skip to content

Commit ee7907f

Browse files
Major version update (version 2.0.0) for OTel Java instrumentation (#1352)
* Major version update (version 2.0.0) for OTel Java instrumentation for adservice, frauddetectionservice, kafka The new Java instrumentation uses HTTP as the default export protocol. This PR changes the Java services to export HTTP instead of gRPC. The new Java instrumentation introduces a lot of new kafka.consumer.* metrics from frauddetectionservice. * Add CHANGELOG * Fix CHANGELOG. Update docker-compose.minimal.yml --------- Co-authored-by: Juliano Costa <[email protected]>
1 parent 022ba90 commit ee7907f

File tree

8 files changed

+24
-15
lines changed

8 files changed

+24
-15
lines changed

CHANGELOG.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Changelog
22

33
Please update changelog as part of any significant pull request. Place short
4-
description of your change into "Unreleased" section. As part of release process
5-
content of "Unreleased" section content will generate release notes for the
6-
release.
4+
description of your change into "Unreleased" section. As part of release
5+
process content of "Unreleased" section content will generate release notes for
6+
the release.
77

88
## Unreleased
99

@@ -25,10 +25,19 @@ release.
2525
([#1346](https://github.com/open-telemetry/opentelemetry-demo/pull/1346))
2626
* [productcatalogservice] update wiki link
2727
([#1346](https://github.com/open-telemetry/opentelemetry-demo/pull/1346))
28-
* [adservice] added group and anonymous read permission to opentelemetry-javaagent.jar
28+
* [adservice] added group and anonymous read permission to
29+
opentelemetry-javaagent.jar
2930
([#1348](https://github.com/open-telemetry/opentelemetry-demo/pull/1348))
30-
* [frauddetectionservice] added group and anonymous read permission to opentelemetry-javaagent.jar
31+
* [frauddetectionservice] added group and anonymous read permission to
32+
opentelemetry-javaagent.jar
3133
([#1348](https://github.com/open-telemetry/opentelemetry-demo/pull/1348))
34+
* [adservice] Major version update for Java instrumentation, version 2.0.0
35+
([#1352](https://github.com/open-telemetry/opentelemetry-demo/pull/1352))
36+
* [frauddetectionservice] Major version update for Java instrumentation,
37+
version 2.0.0
38+
([#1352](https://github.com/open-telemetry/opentelemetry-demo/pull/1352))
39+
* [kafka] Major version update for Java instrumentation, version 2.0.0
40+
([#1352](https://github.com/open-telemetry/opentelemetry-demo/pull/1352))
3241

3342
## 1.7.2
3443

docker-compose.minimal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
- "${AD_SERVICE_PORT}"
3737
environment:
3838
- AD_SERVICE_PORT
39-
- OTEL_EXPORTER_OTLP_ENDPOINT
39+
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
4040
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
4141
- OTEL_RESOURCE_ATTRIBUTES
4242
- OTEL_LOGS_EXPORTER=otlp

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ services:
6363
environment:
6464
- AD_SERVICE_PORT
6565
- FEATURE_FLAG_GRPC_SERVICE_ADDR
66-
- OTEL_EXPORTER_OTLP_ENDPOINT
66+
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
6767
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
6868
- OTEL_RESOURCE_ATTRIBUTES
6969
- OTEL_LOGS_EXPORTER=otlp
@@ -252,7 +252,7 @@ services:
252252
restart: unless-stopped
253253
environment:
254254
- KAFKA_SERVICE_ADDR
255-
- OTEL_EXPORTER_OTLP_ENDPOINT
255+
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
256256
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
257257
- OTEL_RESOURCE_ATTRIBUTES
258258
- OTEL_SERVICE_NAME=frauddetectionservice
@@ -584,7 +584,7 @@ services:
584584
restart: unless-stopped
585585
environment:
586586
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
587-
- OTEL_EXPORTER_OTLP_ENDPOINT
587+
- OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP}
588588
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
589589
- OTEL_RESOURCE_ATTRIBUTES
590590
- OTEL_SERVICE_NAME=kafka

src/adservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN ./gradlew installDist -PprotoSourceDir=./proto
2020

2121
FROM eclipse-temurin:21-jre
2222

23-
ARG version=1.31.0
23+
ARG version=2.0.0
2424
WORKDIR /usr/src/app/
2525

2626
COPY --from=builder /usr/src/app/ ./

src/adservice/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ description = 'Ad Service'
1616
group = "adservice"
1717
version = "0.1.0-SNAPSHOT"
1818

19-
def opentelemetryVersion = "1.31.0"
20-
def opentelemetryInstrumentationAlphaVersion = "1.31.0-alpha"
19+
def opentelemetryVersion = "1.34.1"
20+
def opentelemetryInstrumentationAlphaVersion = "2.0.0-alpha"
2121
def grpcVersion = "1.59.0"
2222
def jacksonVersion = "2.15.3"
2323
def protocVersion = "3.25.0"

src/adservice/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/frauddetectionservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN gradle shadowJar
1414

1515
FROM gcr.io/distroless/java17-debian11
1616

17-
ARG version=1.31.0
17+
ARG version=2.0.0
1818
WORKDIR /usr/src/app/
1919

2020
COPY --from=builder /usr/src/app/build/libs/frauddetectionservice-1.0-all.jar ./

src/kafka/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FROM confluentinc/cp-kafka:7.5.2
66

77
USER root
8-
ARG version=1.31.0
8+
ARG version=2.0.0
99
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /tmp/opentelemetry-javaagent.jar
1010
RUN chmod go+r /tmp/opentelemetry-javaagent.jar
1111

0 commit comments

Comments
 (0)