Skip to content

Commit dd99b5f

Browse files
Fix client certificate property
Use correct property name. Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
1 parent 24b8602 commit dd99b5f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/binding/CaasBindingPropertiesSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Map<String, String> get() {
8989
File clientKeyFile = pemFileCreator.writeFile("caas-client-key-", ".key", clientKey);
9090

9191
properties.put("otel.exporter.otlp.certificate", serverCertFile.getAbsolutePath());
92-
properties.put("otel.exporter.otlp.client.cert", clientCertFile.getAbsolutePath());
92+
properties.put("otel.exporter.otlp.client.certificate", clientCertFile.getAbsolutePath());
9393
properties.put("otel.exporter.otlp.client.key", clientKeyFile.getAbsolutePath());
9494

9595
} catch (IOException e) {

cf-java-logging-support-opentelemetry-agent-extension/src/test/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/binding/CaasBindingPropertiesSupplierTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void shouldReturnFullPropertiesWithTlsConfiguration() throws IOException {
188188
.containsEntry("otel.exporter.otlp.protocol", "http/protobuf")
189189
.containsEntry("otel.exporter.otlp.compression", "gzip")
190190
.containsEntry("otel.exporter.otlp.certificate", "/tmp/server.crt")
191-
.containsEntry("otel.exporter.otlp.client.cert", "/tmp/client.crt")
191+
.containsEntry("otel.exporter.otlp.client.certificate", "/tmp/client.crt")
192192
.containsEntry("otel.exporter.otlp.client.key", "/tmp/client.key");
193193
}
194194

0 commit comments

Comments
 (0)