Skip to content

Commit

Permalink
Do not leak OTLP types on public-facing API (#5699)
Browse files Browse the repository at this point in the history
See #5733
  • Loading branch information
jonatan-ivanov authored Dec 4, 2024
1 parent c69a307 commit d8b7ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ subprojects {
packageExcludes = ['io.micrometer.shaded.*', 'io.micrometer.statsd.internal']

fieldExcludes = []
methodExcludes = ['io.micrometer.registry.otlp.AggregationTemporality#toOtlpAggregationTemporality(io.micrometer.registry.otlp.AggregationTemporality)']

onlyIf { compatibleVersion != 'SKIP' }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ public enum AggregationTemporality {
*/
CUMULATIVE;

/**
* @deprecated This method was not intended to be public, users should not use it.
*/
@Deprecated
public static io.opentelemetry.proto.metrics.v1.AggregationTemporality toOtlpAggregationTemporality(
static io.opentelemetry.proto.metrics.v1.AggregationTemporality toOtlpAggregationTemporality(
AggregationTemporality aggregationTemporality) {
switch (aggregationTemporality) {
case DELTA:
Expand Down

0 comments on commit d8b7ccf

Please # to comment.