Skip to content

Commit

Permalink
Bump io.opentelemetry.javaagent:opentelemetry-javaagent from 1.32.0 t…
Browse files Browse the repository at this point in the history
…o 2.2.0 in /other-examples/java (#558)

* Bump io.opentelemetry.javaagent:opentelemetry-javaagent

Bumps [io.opentelemetry.javaagent:opentelemetry-javaagent](https://github.com/open-telemetry/opentelemetry-java-instrumentation) from 1.32.0 to 2.2.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-java-instrumentation@v1.32.0...v2.2.0)

---
updated-dependencies:
- dependency-name: io.opentelemetry.javaagent:opentelemetry-javaagent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Remove java properties after default updates in 2.x

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <[email protected]>
  • Loading branch information
dependabot[bot] and jack-berg authored Mar 27, 2024
1 parent c607149 commit 8718408
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions other-examples/java/agent-nr-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ Set the following environment variables:
* New Relic supports metrics in delta temporality, instead of the default cumulative.
* `OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM`
* Use exponential histogram instead of default explicit bucket histogram for better data compression.
* `OTEL_LOGS_EXPORTER=otlp`
* Enable log export over OTLP. Log export is disabled by default.
* `OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net`
* Export data to New Relic's OTLP endpoint.
* `OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf`
* Use OTLP http/protobuf version of protocol, which is tends to be less problematic without any downside in performance.
* `OTEL_EXPORTER_OTLP_COMPRESSION=gzip`
* Gzip compression has good performance and lowers data egress.
* `OTEL_EXPERIMENTAL_EXPORTER_OTLP_RETRY_ENABLED=true`
Expand All @@ -47,9 +43,7 @@ export OTEL_EXPORTER_OTLP_HEADERS=api-key=your_license_key \
&& export OTEL_METRIC_EXPORT_INTERVAL=5000 \
&& export OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=DELTA \
&& export OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM \
&& export OTEL_LOGS_EXPORTER=otlp \
&& export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net \
&& export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf \
&& export OTEL_EXPORTER_OTLP_COMPRESSION=gzip \
&& export OTEL_EXPERIMENTAL_EXPORTER_OTLP_RETRY_ENABLED=true \
&& export OTEL_SERVICE_NAME=agent-nr-config \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ configurations {
dependencies {
implementation 'io.opentelemetry:opentelemetry-api'

agent("io.opentelemetry.javaagent:opentelemetry-javaagent:1.32.0")
agent("io.opentelemetry.javaagent:opentelemetry-javaagent:2.2.0")

implementation platform(SpringBootPlugin.BOM_COORDINATES)
implementation 'org.springframework.boot:spring-boot-starter-web'
Expand Down

0 comments on commit 8718408

Please sign in to comment.