-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out instrumentation-api-semconv (open-telemetry#5721)
* Split out instrumentation-api-semconv * fix tests * Moved LoggingContextConstants to semconv module too
- Loading branch information
Showing
108 changed files
with
128 additions
and
147 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
plugins { | ||
id("org.xbib.gradle.plugin.jflex") | ||
|
||
id("otel.java-conventions") | ||
id("otel.animalsniffer-conventions") | ||
id("otel.jacoco-conventions") | ||
id("otel.japicmp-conventions") | ||
id("otel.publish-conventions") | ||
} | ||
|
||
group = "io.opentelemetry.instrumentation" | ||
|
||
dependencies { | ||
api("io.opentelemetry:opentelemetry-semconv") | ||
api(project(":instrumentation-api")) | ||
|
||
compileOnly("com.google.auto.value:auto-value-annotations") | ||
annotationProcessor("com.google.auto.value:auto-value") | ||
|
||
testImplementation(project(":testing-common")) | ||
testImplementation("io.opentelemetry:opentelemetry-sdk-metrics") | ||
testImplementation("io.opentelemetry:opentelemetry-sdk-testing") | ||
} | ||
|
||
tasks { | ||
// exclude auto-generated code | ||
named<Checkstyle>("checkstyleMain") { | ||
exclude("**/AutoSqlSanitizer.java") | ||
} | ||
|
||
// Work around https://github.com/jflex-de/jflex/issues/762 | ||
compileJava { | ||
with(options) { | ||
compilerArgs.add("-Xlint:-fallthrough") | ||
} | ||
} | ||
|
||
sourcesJar { | ||
dependsOn("generateJflex") | ||
} | ||
|
||
val testStatementSanitizerConfig by registering(Test::class) { | ||
filter { | ||
includeTestsMatching("StatementSanitizationConfigTest") | ||
} | ||
include("**/StatementSanitizationConfigTest.*") | ||
jvmArgs("-Dotel.instrumentation.common.db-statement-sanitizer.enabled=false") | ||
} | ||
|
||
test { | ||
filter { | ||
excludeTestsMatching("StatementSanitizationConfigTest") | ||
} | ||
} | ||
|
||
check { | ||
dependsOn(testStatementSanitizerConfig) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...entation-api-semconv/src/main/java/io/opentelemetry/instrumentation/api/package-info.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,4 @@ | ||
@ParametersAreNonnullByDefault | ||
package io.opentelemetry.instrumentation.api; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.