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

fix(deps): update versions.opentelemetryjavaagent to v2 (release/v1.33.x) (major) #10695

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 27, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.opentelemetry.javaagent:opentelemetry-javaagent 1.32.1 -> 2.1.0 age adoption passing confidence
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom 1.32.1 -> 2.1.0 age adoption passing confidence

Release Notes

open-telemetry/opentelemetry-java-instrumentation (io.opentelemetry.javaagent:opentelemetry-javaagent)

v2.1.0

Migration notes
  • Deprecated config properties have been removed in favor of the new names:
    • otel.instrumentation.kafka.client-propagation.enabled ->
      otel.instrumentation.kafka.producer-propagation.enabled
    • otel.instrumentation.netty.always-create-connect-span ->
      otel.instrumentation.netty.connection-telemetry.enabled
    • otel.instrumentation.http.capture-headers.client.request ->
      otel.instrumentation.http.client.capture-request-headers
    • otel.instrumentation.http.capture-headers.client.response ->
      otel.instrumentation.http.client.capture-response-headers
    • otel.instrumentation.http.capture-headers.server.request ->
      otel.instrumentation.http.server.capture-request-headers
    • otel.instrumentation.http.capture-headers.server.response ->
      otel.instrumentation.http.server.capture-response-headers
    • otel.instrumentation.http.client.emit-experimental-metrics ->
      otel.instrumentation.http.client.emit-experimental-telemetry
    • otel.instrumentation.http.server.emit-experimental-metrics ->
      otel.instrumentation.http.server.emit-experimental-telemetry
      (#​10349)
  • The deprecated Jaeger exporter has been removed
    (#​10241)
  • Actuator instrumentation has been disabled by default.
    You can enable using OTEL_INSTRUMENTATION_SPRING_BOOT_ACTUATOR_AUTOCONFIGURE_ENABLED=true
    or -Dotel.instrumentation.spring-boot-actuator-autoconfigure.enabled=true.
    (#​10394)
  • Spring starter: removed support for the deprecated @​io.opentelemetry.extension.annotations.WithSpan
    annotation. Use @​io.opentelemetry.instrumentation.annotations.WithSpan annotation instead.
    (#​10530)
🌟 New javaagent instrumentation
🌟 New library instrumentation
  • Apache HttpClient 5 instrumentation
    (#​10100)
📈 Enhancements
  • Spring starter: add distro version resource attribute
    (#​10276)
  • Add context propagation for rector schedulers
    (#​10311)
  • Spring starter: automatic addition of the OTel Logback appender
    (#​10306)
  • Spring starter: add resource detectors
    (#​10277)
  • Allow closing the observables for System and Process metrics gathered by OSHI
    (#​10364)
  • Spring starter: Allow to configure the OTel Logback appender from system properties
    (#​10355)
  • Spring starter: re-use sdk logic for configuring otlp exporters
    (#​10292)
    • All available spring starter properties (including the new properties) can be found
      here
    • You can also use auto-completion in your IDE to see the available properties in
      application.properties or application.yml
  • Spring starter: add SystemOutLogRecordExporter
    (#​10420)
  • Spring starter: use duration parser of config properties
    (#​10512)
  • Spring starter: support otel.propagators
    (#​10408)
  • Set route only on the SERVER span
    (#​10290)
  • Convert Apache HttpClient 4.3 library instrumentation to "low-level" HTTP instrumentation
    (#​10253)
🛠️ Bug fixes
  • Fix log replay of the Log4j 2 appender
    (#​10243)
  • Fix Netty addListener instrumentation
    (#​10254)
  • Fix Calling shutdown() multiple times warning in spring starter
    (#​10222)
  • Correctly fix NPE in servlet AsyncListener
    (#​10250)
  • add @​ConditionalOnMissingBean to LoggingMetricExporter
    (#​10283)
  • Make Netty Instrumentation HttpServerRequestTracingHandler propagate "Channel Inactive" event
    to downstream according to parent contract
    (#​10303)
  • Improve rediscala instrumentation to address sporadic test failure
    (#​10301)
  • Undertow: restore attached context only when it is for different trace
    (#​10336)
  • Reactor kafka wrapper delegates to wrong method
    (#​10333)
  • Spring starter: add missing LoggingMetricExporterAutoConfiguration to spring factories
    (#​10282)
  • Spring starter: Fix MapConverter does not get initialized if some exporters are turned off
    (#​10346)
  • Update azure-core-tracing-opentelemetry version and fix double-collection for synchronous
    HTTP requests
    (#​10350)
  • Allow OSGI dynamic import for io.opentelemetry package when matching
    (#​10385)
  • Use direct peer address in client.address when X-Forwarded-For is not present
    (#​10370)
  • Netty: don't expose tracing handler in handlers map
    (#​10410)
  • Wrap request to avoid modifying attributes of the original request
    (#​10389)
  • Fix JarAnalyzer warnings on Payara
    (#​10458)
  • Return wrapped connection from Statement.getConnection()
    (#​10554)
  • Spring starter: Fix otel.propagators
    (#​10559)
  • Populate server.address and server.port in Cassandra instrumentation
    (#​10357)
🧰 Tooling
  • Allow multiple invokedynamic InstrumentationModules to share classloaders
    (#​10015)

v2.0.0

The 2.0.0 release contains significant breaking changes that will most likely affect all users,
please be sure to read the breaking changes below carefully.

Note: 1.32.x will be security patched for at least 6 months in case some of the changes below are
too disruptive to adopt right away.

⚠️⚠️ Breaking changes ⚠️⚠️
  • The default OTLP protocol has been changed from grpc to http/protobuf in order to align with
    the specification.
    You can switch to the grpc protocol using OTEL_EXPORTER_OTLP_PROTOCOL=grpc
    or -Dotel.exporter.otlp.protocol=grpc.
  • Micrometer metric bridge has been disabled by default. You can enable it using
    OTEL_INSTRUMENTATION_MICROMETER_ENABLED=true
    or -Dotel.instrumentation.micrometer.enabled=true.
  • The OTLP logs exporter is now enabled by default. You can disable it using
    OTEL_LOGS_EXPORTER=none or -Dotel.logs.exporter=none.
  • Controller spans are now disabled by default. You can enable them using
    OTEL_INSTRUMENTATION_COMMON_EXPERIMENTAL_CONTROLLER_TELEMETRY_ENABLED=true
    or -Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true.
  • View spans are now disabled by default. You can enable them using
    OTEL_INSTRUMENTATION_COMMON_EXPERIMENTAL_VIEW_TELEMETRY_ENABLED=true
    or -Dotel.instrumentation.common.experimental.view-telemetry.enabled=true.
  • ⚠️⚠️ Stable HTTP semantic conventions are now emitted ⚠️⚠️
    • TOO MANY CHANGES TO LIST HERE, be sure to review the full
      list of changes.
  • Stable JVM semantic conventions are now emitted.
    • Memory metrics
      • process.runtime.jvm.memory.usage renamed to jvm.memory.used
      • process.runtime.jvm.memory.committed renamed to jvm.memory.committed
      • process.runtime.jvm.memory.limit renamed to jvm.memory.limit
      • process.runtime.jvm.memory.usage_after_last_gc renamed to jvm.memory.used_after_last_gc
      • process.runtime.jvm.memory.init renamed to jvm.memory.init (still experimental)
      • Metric attributes
        • type renamed to jvm.memory.type
        • pool renamed to jvm.memory.pool.name
    • Garbage collection metrics
      • process.runtime.jvm.gc.duration renamed to jvm.gc.duration
      • Metric attributes
        • name renamed to jvm.gc.name
        • action renamed to jvm.gc.action
    • Thread metrics
      • process.runtime.jvm.threads.count renamed to jvm.threads.count
      • Metric attributes
        • daemon renamed to jvm.thread.daemon
    • Classes metrics
      • process.runtime.jvm.classes.loaded renamed to jvm.classes.loaded
      • process.runtime.jvm.classes.unloaded renamed to jvm.classes.unloaded
      • process.runtime.jvm.classes.current_loaded renamed to jvm.classes.count
    • CPU metrics
      • process.runtime.jvm.cpu.utilization renamed to jvm.cpu.recent_utilization
      • process.runtime.jvm.system.cpu.load_1m renamed to jvm.system.cpu.load_1m (still experimental)
      • process.runtime.jvm.system.cpu.utilization renamed to jvm.system.cpu.utilization (still experimental)
    • Buffer metrics
      • process.runtime.jvm.buffer.limit renamed to jvm.buffer.memory.limit (still experimental)
      • process.runtime.jvm.buffer.count renamed to jvm.buffer.count (still experimental)
      • process.runtime.jvm.buffer.usage renamed to jvm.buffer.memory.usage (still experimental)
      • Metric attributes
        • pool renamed to jvm.buffer.pool.name
More migration notes
  • Lettuce CONNECT spans are now disabled by default. You can enable them using
    OTEL_INSTRUMENTATION_LETTUCE_CONNECTION_TELEMETRY_ENABLED=true
    or -Dotel.instrumentation.lettuce.connection-telemetry.enabled=true.
  • The configuration property
    otel.instrumentation.log4j-appender.experimental.capture-context-data-attributes has been
    renamed to otel.instrumentation.log4j-appender.experimental.capture-mdc-attributes.
  • MDC attribute prefixes (log4j.mdc. and logback.mdc.*) have been removed.
  • The artifact instrumentation-api-semconv has been renamed to instrumentation-api-incubator.
  • HTTP classes have been moved from instrumentation-api-incubator to instrumentation-api
    and as a result are now stable.
🌟 New javaagent instrumentation
📈 Enhancements
  • Reduce reactor stack trace depth
    (#​9923)
  • Implement error.type in spring-webflux and reactor-netty instrumentations
    (#​9967)
  • Bridge metric advice in OpenTelemetry API 1.32
    (#​10026)
  • Capture http.route for akka-http
    (#​10039)
  • Rename telemetry.auto.version to telemetry.distro.version and add telemetry.distro.name
    (#​9065)
  • Implement forEach support for aws sqs tracing list
    (#​10062)
  • Add http client response attributes to aws sqs process spans
    (#​10074)
  • Add support for OTEL_RESOURCE_ATTRIBUTES, OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_HEADERS,
    and OTEL_EXPORTER_OTLP_PROTOCOL for spring boot starter
    (#​9950)
  • Add elasticsearch-api-client as instrumentation name to elasticsearch-api-client-7.16
    (#​10102)
  • Add instrumentation for druid connection pool
    (#​9935)
  • Remove deprecated rocketmq setting
    (#​10125)
  • JMX metrics for Tomcat with 'Tomcat' JMX domain
    (#​10115)
  • Capture the SNS topic ARN under the 'messaging.destination.name' span attribute.
    (#​10096)
  • Add network attributes to rabbitmq process spans
    (#​10210)
  • Add UserExcludedClassloadersConfigurer
    (#​10134)
  • Apply both server attributes & network attributes to Lettuce 5.1
    (#​10197)
🛠️ Bug fixes
  • Fix aws propagator presence check in spring boot starter
    (#​9924)
  • Capture authority from apache httpclient request when HttpHost is null
    (#​9990)
  • Fix NoSuchBeanDefinitionException with the JDBC driver configuration in spring boot starter
    (#​9978)
  • Null check for nullable response object in aws sdk 1.1 instrumentation
    (#​10029)
  • Fix using opentelemetry-spring-boot with Java 8 and Gradle
    (#​10066)
  • Fix transforming Java record types
    (#​10052)
  • Fix warnings from the spring boot starter
    (#​10086)
  • Resolve ParameterNameDiscoverer Bean Conflict in spring-boot-autoconfigure
    (#​10105)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team February 27, 2024 20:51
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

@laurit laurit closed this Feb 28, 2024
Copy link
Contributor Author

renovate bot commented Feb 28, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/release/v1.33.x-major-versions.opentelemetryjavaagent branch February 28, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants