Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractCounter extends AbstractInstrument {
Map<String, String> constantLabels,
List<String> labelKeys,
InstrumentValueType instrumentValueType,
MeterSharedState meterSharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean monotonic) {
super(name, description, unit, constantLabels, labelKeys);
Expand Down Expand Up @@ -76,9 +76,9 @@ abstract static class Builder<B extends Counter.Builder<B, V>, V>

Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ abstract static class Builder<B extends Instrument.Builder<B, V>, V>
+ " characters.";

private final String name;
private final MeterSharedState meterSharedState;
private final MeterProviderSharedState meterProviderSharedState;
private final InstrumentationLibraryInfo instrumentationLibraryInfo;
private String description = "";
private String unit = "1";
Expand All @@ -114,14 +114,14 @@ abstract static class Builder<B extends Instrument.Builder<B, V>, V>

Builder(
String name,
MeterSharedState meterSharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
Utils.checkNotNull(name, "name");
Utils.checkArgument(
StringUtils.isValidMetricName(name) && name.length() <= NAME_MAX_LENGTH,
ERROR_MESSAGE_INVALID_NAME);
this.name = name;
this.meterSharedState = meterSharedState;
this.meterProviderSharedState = meterProviderSharedState;
this.instrumentationLibraryInfo = instrumentationLibraryInfo;
}

Expand Down Expand Up @@ -156,8 +156,8 @@ final String getName() {
return name;
}

final MeterSharedState getMeterSharedState() {
return meterSharedState;
final MeterProviderSharedState getMeterProviderSharedState() {
return meterProviderSharedState;
}

final InstrumentationLibraryInfo getInstrumentationLibraryInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractMeasure extends AbstractInstrument {
Map<String, String> constantLabels,
List<String> labelKeys,
InstrumentValueType instrumentValueType,
MeterSharedState meterSharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean absolute) {
super(name, description, unit, constantLabels, labelKeys);
Expand Down Expand Up @@ -76,9 +76,9 @@ abstract static class Builder<B extends Measure.Builder<B, V>, V>

Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AbstractObserver extends AbstractInstrument {
Map<String, String> constantLabels,
List<String> labelKeys,
InstrumentValueType instrumentValueType,
MeterSharedState meterSharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean monotonic) {
super(name, description, unit, constantLabels, labelKeys);
Expand Down Expand Up @@ -76,9 +76,9 @@ abstract static class Builder<B extends Observer.Builder<B, V>, V>

Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private DoubleCounterSdk(
Map<String, String> constantLabels,
List<String> labelKeys,
boolean monotonic,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(
name,
Expand All @@ -41,7 +41,7 @@ private DoubleCounterSdk(
constantLabels,
labelKeys,
InstrumentValueType.DOUBLE,
sharedState,
meterProviderSharedState,
instrumentationLibraryInfo,
monotonic);
}
Expand Down Expand Up @@ -78,9 +78,9 @@ public void add(double delta) {

static DoubleCounter.Builder builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
return new Builder(name, sharedState, instrumentationLibraryInfo);
return new Builder(name, meterProviderSharedState, instrumentationLibraryInfo);
}

private static final class Builder
Expand All @@ -89,9 +89,9 @@ private static final class Builder

private Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand All @@ -108,7 +108,7 @@ public DoubleCounter build() {
getConstantLabels(),
getLabelKeys(),
isMonotonic(),
getMeterSharedState(),
getMeterProviderSharedState(),
getInstrumentationLibraryInfo());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private DoubleMeasureSdk(
String unit,
Map<String, String> constantLabels,
List<String> labelKeys,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean absolute) {
super(
Expand All @@ -41,7 +41,7 @@ private DoubleMeasureSdk(
constantLabels,
labelKeys,
InstrumentValueType.DOUBLE,
sharedState,
meterProviderSharedState,
instrumentationLibraryInfo,
absolute);
}
Expand Down Expand Up @@ -78,9 +78,9 @@ public void record(double value) {

static DoubleMeasure.Builder builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
return new Builder(name, sharedState, instrumentationLibraryInfo);
return new Builder(name, meterProviderSharedState, instrumentationLibraryInfo);
}

private static final class Builder
Expand All @@ -89,9 +89,9 @@ private static final class Builder

private Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand All @@ -107,7 +107,7 @@ public DoubleMeasure build() {
getUnit(),
getConstantLabels(),
getLabelKeys(),
getMeterSharedState(),
getMeterProviderSharedState(),
getInstrumentationLibraryInfo(),
isAbsolute());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class DoubleObserverSdk extends AbstractObserver implements DoubleObserver
String unit,
Map<String, String> constantLabels,
List<String> labelKeys,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean monotonic) {
super(
Expand All @@ -39,7 +39,7 @@ final class DoubleObserverSdk extends AbstractObserver implements DoubleObserver
constantLabels,
labelKeys,
InstrumentValueType.DOUBLE,
sharedState,
meterProviderSharedState,
instrumentationLibraryInfo,
monotonic);
}
Expand All @@ -51,9 +51,9 @@ public void setCallback(Callback<DoubleObserver.ResultDoubleObserver> metricUpda

static DoubleObserver.Builder builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
return new Builder(name, sharedState, instrumentationLibraryInfo);
return new Builder(name, meterProviderSharedState, instrumentationLibraryInfo);
}

private static final class Builder
Expand All @@ -62,9 +62,9 @@ private static final class Builder

private Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand All @@ -80,7 +80,7 @@ public DoubleObserver build() {
getUnit(),
getConstantLabels(),
getLabelKeys(),
getMeterSharedState(),
getMeterProviderSharedState(),
getInstrumentationLibraryInfo(),
isMonotonic());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private LongCounterSdk(
String unit,
Map<String, String> constantLabels,
List<String> labelKeys,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean monotonic) {
super(
Expand All @@ -41,7 +41,7 @@ private LongCounterSdk(
constantLabels,
labelKeys,
InstrumentValueType.LONG,
sharedState,
meterProviderSharedState,
instrumentationLibraryInfo,
monotonic);
}
Expand Down Expand Up @@ -78,9 +78,9 @@ public void add(long delta) {

static LongCounter.Builder builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
return new Builder(name, sharedState, instrumentationLibraryInfo);
return new Builder(name, meterProviderSharedState, instrumentationLibraryInfo);
}

private static final class Builder
Expand All @@ -89,9 +89,9 @@ private static final class Builder

private Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand All @@ -107,7 +107,7 @@ public LongCounter build() {
getUnit(),
getConstantLabels(),
getLabelKeys(),
getMeterSharedState(),
getMeterProviderSharedState(),
getInstrumentationLibraryInfo(),
isMonotonic());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private LongMeasureSdk(
String unit,
Map<String, String> constantLabels,
List<String> labelKeys,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo,
boolean absolute) {
super(
Expand All @@ -41,7 +41,7 @@ private LongMeasureSdk(
constantLabels,
labelKeys,
InstrumentValueType.LONG,
sharedState,
meterProviderSharedState,
instrumentationLibraryInfo,
absolute);
}
Expand Down Expand Up @@ -78,9 +78,9 @@ public void record(long value) {

static LongMeasure.Builder builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
return new Builder(name, sharedState, instrumentationLibraryInfo);
return new Builder(name, meterProviderSharedState, instrumentationLibraryInfo);
}

private static final class Builder
Expand All @@ -89,9 +89,9 @@ private static final class Builder

private Builder(
String name,
MeterSharedState sharedState,
MeterProviderSharedState meterProviderSharedState,
InstrumentationLibraryInfo instrumentationLibraryInfo) {
super(name, sharedState, instrumentationLibraryInfo);
super(name, meterProviderSharedState, instrumentationLibraryInfo);
}

@Override
Expand All @@ -107,7 +107,7 @@ public LongMeasure build() {
getUnit(),
getConstantLabels(),
getLabelKeys(),
getMeterSharedState(),
getMeterProviderSharedState(),
getInstrumentationLibraryInfo(),
isAbsolute());
}
Expand Down
Loading