File tree 1 file changed +0
-15
lines changed
sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -120,21 +120,6 @@ private static void addAttributesProcessor(
120
120
}
121
121
}
122
122
123
- /**
124
- * Reflectively set the {@code cardinalityLimit} on the {@link ViewBuilder}.
125
- *
126
- * @param viewBuilder the builder
127
- */
128
- public static void setCardinalityLimit (ViewBuilder viewBuilder , int cardinalityLimit ) {
129
- try {
130
- Method method = ViewBuilder .class .getDeclaredMethod ("setCardinalityLimit" , int .class );
131
- method .setAccessible (true );
132
- method .invoke (viewBuilder , cardinalityLimit );
133
- } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e ) {
134
- throw new IllegalStateException ("Error setting cardinalityLimit on ViewBuilder" , e );
135
- }
136
- }
137
-
138
123
/** Reflectively reset the {@link SdkMeterProvider}, clearing all registered instruments. */
139
124
public static void resetForTest (SdkMeterProvider sdkMeterProvider ) {
140
125
try {
You can’t perform that action at this time.
0 commit comments