jamesnetherton opened a new issue, #9638:
URL: https://github.com/apache/camel-quarkus/issues/9638

   ### Description
   
   The upgrade to `libraries-bom` 26.94.0 (google-cloud-storage 2.79.0) added a 
workaround in the `google-storage` extension that should be removed once the 
Google Cloud BOMs pick up a newer `exporter-metrics`.
   
   #### Background
   
   google-cloud-storage 2.79.0 enables client-side OpenTelemetry metrics by 
default, exported to Cloud Monitoring via 
`com.google.cloud.opentelemetry:exporter-metrics`.
   
   The Google `third-party-dependencies` BOM pins `exporter-metrics` to 0.33.0. 
Its default resource attributes filter in `MetricConfiguration` references 
`io.opentelemetry.semconv.ResourceAttributes`. That class exists in the 
`opentelemetry-semconv` 1.29.0-alpha that Google pins, but not in the 1.44.0 
managed by the Quarkus BOM, which is what we resolve.
   
   As a result:
   
   * Native builds of `google-storage` fail with an unresolved type error for 
`io.opentelemetry.semconv.ResourceAttributes`
   * In JVM mode, exporting metrics to Cloud Monitoring would fail with 
`NoClassDefFoundError`
   
   #### Workaround
   
   
`extensions/google-storage/runtime/.../graal/MetricConfigurationSubstitutions` 
substitutes the filter lambda (`lambda$static$1`) with an equivalent check 
against literal `service.name`, `service.namespace` and `service.instance.id` 
attribute keys.
   
   This only applies to native mode. The JVM mode issue is not worked around.
   
   #### Upstream
   
   * Fixed in `exporter-metrics` 0.35.0 
(GoogleCloudPlatform/opentelemetry-operations-java#399, 
GoogleCloudPlatform/opentelemetry-operations-java#413)
   * Google's BOM bump to `exporter-metrics` 0.37.0 and semconv 1.45.0 is in 
progress in googleapis/google-cloud-java#15421, fixing 
googleapis/google-cloud-java#15315
   
   #### Tasks
   
   When a `libraries-bom` release includes `exporter-metrics` >= 0.35.0:
   
   - [ ] Remove `MetricConfigurationSubstitutions` and, if nothing else needs 
it, the `nativeimage` dependency from 
`extensions/google-storage/runtime/pom.xml`
   - [ ] Verify `integration-tests/google-storage` passes in native mode
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to