KVL-914 Expose metrics-test-lib for the oem integration kit (#9662)

* Expose metrics-test-lib for the oem integration kit
CHANGELOG_BEGIN
CHANGELOG_END

* Change the instrumentation name for tests
This commit is contained in:
Hubert Slojewski 2021-05-12 16:13:23 +02:00 committed by GitHub
parent cc01e933e5
commit c282a09ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,7 @@ da_scala_library(
da_scala_library(
name = "metrics-test-lib",
srcs = glob(["src/test/lib/scala/**/*.scala"]),
tags = ["maven_coordinates=com.daml:metrics-test-lib:__VERSION__"],
versioned_scala_deps = {
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
},

View File

@ -12,7 +12,7 @@ import scala.jdk.CollectionConverters._
trait TelemetrySpecBase {
protected val anInstrumentationName = "com.daml.telemetry.TelemetrySpec"
protected val anInstrumentationName: String = this.getClass.getCanonicalName
protected val aSpanName = "aSpan"
protected val anApplicationIdSpanAttribute: (SpanAttribute, String) =
SpanAttribute.ApplicationId -> "anApplicationId"

View File

@ -125,6 +125,8 @@
type: jar-scala
- target: //ledger/metrics:metrics
type: jar-scala
- target: //ledger/metrics:metrics-test-lib
type: jar-scala
- target: //ledger/participant-integration-api:ledger-api-server
type: jar-scala
- target: //ledger/participant-integration-api:participant-integration-api