Skip to content

Commit 044bf51

Browse files
zeitlingerjaydelucatrask
authored
move Declarative config bridge to a dedicated module (#14548)
Co-authored-by: Jay DeLuca <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
1 parent abc85c1 commit 044bf51

File tree

15 files changed

+38
-40
lines changed

15 files changed

+38
-40
lines changed

.fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ targets:
44
only:
55
# only scanning the modules which are published
66
# (as opposed to internal testing modules
7+
- type: gradle
8+
path: ./
9+
target: ':declarative-config-bridge'
710
- type: gradle
811
path: ./
912
target: ':instrumentation-annotations'

instrumentation-api-incubator/README.md renamed to declarative-config-bridge/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
# OpenTelemetry Instrumentation API Incubator
2-
3-
Instrumentation API Incubator is a collection of libraries that provide additional functionality
4-
for OpenTelemetry instrumentation and auto-configuration. It is intended to be used by
5-
instrumentation authors and auto-configuration providers to enhance their capabilities and provide a
6-
more consistent experience when working with OpenTelemetry.
7-
8-
## Declarative Config Bridge
1+
# Declarative Config Bridge
92

103
Declarative Config Bridge allows instrumentation authors to access configuration in a uniform way,
114
regardless of the configuration source.
125

136
The bridge allows you to read configuration using the system property style when dealing with
147
declarative configuration.
158

16-
### Example
9+
## Example
1710

1811
As an example, let's look at the inferred spans configuration.
1912
First, there is a configuration method that reads the properties and is unaware of the source of the
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
id("otel.java-conventions")
3+
id("otel.publish-conventions")
4+
id("otel.nullaway-conventions")
5+
}
6+
7+
group = "io.opentelemetry.instrumentation"
8+
9+
dependencies {
10+
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
11+
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
12+
implementation("io.opentelemetry:opentelemetry-api-incubator")
13+
14+
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-incubator")
15+
testImplementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
16+
17+
compileOnly("com.google.code.findbugs:annotations")
18+
testCompileOnly("com.google.code.findbugs:annotations")
19+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
public final class ConfigPropertiesUtil {
99
private ConfigPropertiesUtil() {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static io.opentelemetry.api.incubator.config.DeclarativeConfigProperties.empty;
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static io.opentelemetry.api.incubator.config.DeclarativeConfigProperties.empty;
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static org.assertj.core.api.Assertions.assertThat;
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static org.assertj.core.api.Assertions.assertThat;
99
import static org.mockito.ArgumentMatchers.eq;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package io.opentelemetry.instrumentation.api.incubator.sdk.config.bridge;
6+
package io.opentelemetry.instrumentation.config.bridge;
77

88
import static org.assertj.core.api.Assertions.assertThat;
99

0 commit comments

Comments
 (0)