You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2023/08/07 14:52:54 UTC

[cxf] branch 3.5.x-fixes updated: CXF-8457: Provide OpenTelemetry support (fix JDK-8 compilation issues)

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.5.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.5.x-fixes by this push:
     new e3edd50169 CXF-8457: Provide OpenTelemetry support (fix JDK-8 compilation issues)
e3edd50169 is described below

commit e3edd5016902eb3b8283f9f4cac0b8dd8519e14d
Author: Andriy Redko <dr...@gmail.com>
AuthorDate: Mon Aug 7 10:52:32 2023 -0400

    CXF-8457: Provide OpenTelemetry support (fix JDK-8 compilation issues)
---
 .../cxf/tracing/opentelemetry/internal/TextMapInjectAdapter.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/internal/TextMapInjectAdapter.java b/integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/internal/TextMapInjectAdapter.java
index 0cd5f5b44a..936f70f023 100644
--- a/integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/internal/TextMapInjectAdapter.java
+++ b/integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/internal/TextMapInjectAdapter.java
@@ -18,6 +18,7 @@
  */
 package org.apache.cxf.tracing.opentelemetry.internal;
 
+import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
@@ -49,6 +50,6 @@ public final class TextMapInjectAdapter
 
     @Override
     public void set(Map<String, List<String>> carrier, String key, String value) {
-        carrier.put(key, List.of(value));
+        carrier.put(key, Collections.singletonList(value));
     }
 }