-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General attribute limits configuration factory (#5779)
- Loading branch information
Showing
13 changed files
with
357 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...o/opentelemetry/sdk/extension/incubator/fileconfig/LogRecordLimitsAndAttributeLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.sdk.extension.incubator.fileconfig; | ||
|
||
import com.google.auto.value.AutoValue; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.AttributeLimits; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.LogRecordLimits; | ||
import javax.annotation.Nullable; | ||
|
||
@AutoValue | ||
abstract class LogRecordLimitsAndAttributeLimits { | ||
|
||
static LogRecordLimitsAndAttributeLimits create( | ||
@Nullable AttributeLimits attributeLimits, @Nullable LogRecordLimits spanLimits) { | ||
return new AutoValue_LogRecordLimitsAndAttributeLimits(attributeLimits, spanLimits); | ||
} | ||
|
||
@Nullable | ||
abstract AttributeLimits getAttributeLimits(); | ||
|
||
@Nullable | ||
abstract LogRecordLimits getLogRecordLimits(); | ||
} |
26 changes: 26 additions & 0 deletions
26
...io/opentelemetry/sdk/extension/incubator/fileconfig/LoggerProviderAndAttributeLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.sdk.extension.incubator.fileconfig; | ||
|
||
import com.google.auto.value.AutoValue; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.AttributeLimits; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.LoggerProvider; | ||
import javax.annotation.Nullable; | ||
|
||
@AutoValue | ||
abstract class LoggerProviderAndAttributeLimits { | ||
|
||
static LoggerProviderAndAttributeLimits create( | ||
@Nullable AttributeLimits attributeLimits, @Nullable LoggerProvider loggerProvider) { | ||
return new AutoValue_LoggerProviderAndAttributeLimits(attributeLimits, loggerProvider); | ||
} | ||
|
||
@Nullable | ||
abstract AttributeLimits getAttributeLimits(); | ||
|
||
@Nullable | ||
abstract LoggerProvider getLoggerProvider(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ava/io/opentelemetry/sdk/extension/incubator/fileconfig/SpanLimitsAndAttributeLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.sdk.extension.incubator.fileconfig; | ||
|
||
import com.google.auto.value.AutoValue; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.AttributeLimits; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.SpanLimits; | ||
import javax.annotation.Nullable; | ||
|
||
@AutoValue | ||
abstract class SpanLimitsAndAttributeLimits { | ||
|
||
static SpanLimitsAndAttributeLimits create( | ||
@Nullable AttributeLimits attributeLimits, @Nullable SpanLimits spanLimits) { | ||
return new AutoValue_SpanLimitsAndAttributeLimits(attributeLimits, spanLimits); | ||
} | ||
|
||
@Nullable | ||
abstract AttributeLimits getAttributeLimits(); | ||
|
||
@Nullable | ||
abstract SpanLimits getSpanLimits(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...io/opentelemetry/sdk/extension/incubator/fileconfig/TracerProviderAndAttributeLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.sdk.extension.incubator.fileconfig; | ||
|
||
import com.google.auto.value.AutoValue; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.AttributeLimits; | ||
import io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model.TracerProvider; | ||
import javax.annotation.Nullable; | ||
|
||
@AutoValue | ||
abstract class TracerProviderAndAttributeLimits { | ||
|
||
static TracerProviderAndAttributeLimits create( | ||
@Nullable AttributeLimits attributeLimits, @Nullable TracerProvider tracerProvider) { | ||
return new AutoValue_TracerProviderAndAttributeLimits(attributeLimits, tracerProvider); | ||
} | ||
|
||
@Nullable | ||
abstract AttributeLimits getAttributeLimits(); | ||
|
||
@Nullable | ||
abstract TracerProvider getTracerProvider(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.