Skip to content

Commit 0d6e0c6

Browse files
Remove unused constants
Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
1 parent 94bd069 commit 0d6e0c6

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class CloudFoundryServicesAdapter {
2121
private static final String SERVICE_NAME = "name";
2222
private static final String SERVICE_TAGS = "tags";
2323
private static final String SERVICE_CREDENTIALS = "credentials";
24-
private static final String SERVICE_CREDENTIALS_ENDPOINT = "ingest-otlp-endpoint";
25-
private static final String SERVICE_CREDENTIALS_CLIENT_KEY = "ingest-otlp-key";
2624

2725
private final String vcapServicesJson;
2826

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
public class CloudLoggingMetricsExporterProvider implements ConfigurableMetricExporterProvider {
3030

31-
private static final String METRICS_CONFIG_PREFIX = "otel.exporter.cloud-logging.metrics.";
3231
private static final Logger LOG = Logger.getLogger(CloudLoggingMetricsExporterProvider.class.getName());
3332

3433
private final Function<ConfigProperties, Stream<CloudFoundryServiceInstance>> servicesProvider;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ public class DynatraceMetricsExporterProvider implements ConfigurableMetricExpor
3030

3131
public static final String CRED_DYNATRACE_APIURL = "apiurl";
3232
public static final String DT_APIURL_METRICS_SUFFIX = "/v2/otlp/v1/metrics";
33-
34-
private static final String GENERIC_CONFIG_PREFIX = "otel.exporter.dynatrace.";
35-
private static final String METRICS_CONFIG_PREFIX = "otel.exporter.dynatrace.metrics.";
36-
33+
3734
private static final Logger LOG = Logger.getLogger(DynatraceMetricsExporterProvider.class.getName());
3835
private static final AggregationTemporalitySelector ALWAYS_DELTA = instrumentType -> AggregationTemporality.DELTA;
3936
private final Function<ConfigProperties, CloudFoundryServiceInstance> serviceProvider;

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
public class FilteringMetricExporter implements MetricExporter {
2424

25-
private static final String INCLUDED_NAMES_KEY = "include.names";
26-
private static final String EXCLUDED_NAMES_KEY = "exclude.names";
27-
2825
private final MetricExporter delegate;
2926
private final Predicate<MetricData> predicate;
3027

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
public class SanitizeSpanExporterCustomizer implements BiFunction<SpanExporter, ConfigProperties, SpanExporter> {
2020

21-
private static final String PROPERTY_ENABLED_KEY = "sap.cf.integration.otel.extension.sanitizer.enabled";
2221
private static final AttributeKey<String> DB_QUERY_TEXT = stringKey("db.query.text");
2322
//@Deprecated
2423
private static final AttributeKey<String> DB_STATEMENT = stringKey("db.statement");

0 commit comments

Comments
 (0)