Start building against Micrometer 1.12.0 snapshots
See gh-37226
This commit is contained in:
parent
96368a4e61
commit
88f8311a59
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2022 the original author or authors.
|
* Copyright 2012-2023 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -140,6 +140,12 @@ public class DynatraceProperties extends StepRegistryProperties {
|
||||||
*/
|
*/
|
||||||
private boolean useDynatraceSummaryInstruments = true;
|
private boolean useDynatraceSummaryInstruments = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to export meter metadata (unit and description) to the Dynatrace
|
||||||
|
* backend.
|
||||||
|
*/
|
||||||
|
private boolean exportMeterMetadata = true;
|
||||||
|
|
||||||
public Map<String, String> getDefaultDimensions() {
|
public Map<String, String> getDefaultDimensions() {
|
||||||
return this.defaultDimensions;
|
return this.defaultDimensions;
|
||||||
}
|
}
|
||||||
|
|
@ -172,6 +178,14 @@ public class DynatraceProperties extends StepRegistryProperties {
|
||||||
this.useDynatraceSummaryInstruments = useDynatraceSummaryInstruments;
|
this.useDynatraceSummaryInstruments = useDynatraceSummaryInstruments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isExportMeterMetadata() {
|
||||||
|
return this.exportMeterMetadata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExportMeterMetadata(boolean exportMeterMetadata) {
|
||||||
|
this.exportMeterMetadata = exportMeterMetadata;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2022 the original author or authors.
|
* Copyright 2012-2023 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -95,6 +95,11 @@ class DynatracePropertiesConfigAdapter extends StepRegistryPropertiesConfigAdapt
|
||||||
return get(v2(V2::isUseDynatraceSummaryInstruments), DynatraceConfig.super::useDynatraceSummaryInstruments);
|
return get(v2(V2::isUseDynatraceSummaryInstruments), DynatraceConfig.super::useDynatraceSummaryInstruments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean exportMeterMetadata() {
|
||||||
|
return (get(v2(V2::isExportMeterMetadata), DynatraceConfig.super::exportMeterMetadata));
|
||||||
|
}
|
||||||
|
|
||||||
private <V> Function<DynatraceProperties, V> v1(Function<V1, V> getter) {
|
private <V> Function<DynatraceProperties, V> v1(Function<V1, V> getter) {
|
||||||
return (properties) -> getter.apply(properties.getV1());
|
return (properties) -> getter.apply(properties.getV1());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ class DynatracePropertiesTests extends StepRegistryPropertiesTests {
|
||||||
assertThat(properties.getV1().getTechnologyType()).isEqualTo(config.technologyType());
|
assertThat(properties.getV1().getTechnologyType()).isEqualTo(config.technologyType());
|
||||||
assertThat(properties.getV2().isUseDynatraceSummaryInstruments())
|
assertThat(properties.getV2().isUseDynatraceSummaryInstruments())
|
||||||
.isEqualTo(config.useDynatraceSummaryInstruments());
|
.isEqualTo(config.useDynatraceSummaryInstruments());
|
||||||
|
assertThat(properties.getV2().isExportMeterMetadata()).isEqualTo(config.exportMeterMetadata());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -988,7 +988,7 @@ bom {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
library("Micrometer", "1.12.0-M2") {
|
library("Micrometer", "1.12.0-SNAPSHOT") {
|
||||||
considerSnapshots()
|
considerSnapshots()
|
||||||
group("io.micrometer") {
|
group("io.micrometer") {
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue