mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
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:
parent
cc01e933e5
commit
c282a09ffb
@ -36,6 +36,7 @@ da_scala_library(
|
|||||||
da_scala_library(
|
da_scala_library(
|
||||||
name = "metrics-test-lib",
|
name = "metrics-test-lib",
|
||||||
srcs = glob(["src/test/lib/scala/**/*.scala"]),
|
srcs = glob(["src/test/lib/scala/**/*.scala"]),
|
||||||
|
tags = ["maven_coordinates=com.daml:metrics-test-lib:__VERSION__"],
|
||||||
versioned_scala_deps = {
|
versioned_scala_deps = {
|
||||||
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
|
"2.12": ["@maven//:org_scala_lang_modules_scala_collection_compat"],
|
||||||
},
|
},
|
||||||
|
@ -12,7 +12,7 @@ import scala.jdk.CollectionConverters._
|
|||||||
|
|
||||||
trait TelemetrySpecBase {
|
trait TelemetrySpecBase {
|
||||||
|
|
||||||
protected val anInstrumentationName = "com.daml.telemetry.TelemetrySpec"
|
protected val anInstrumentationName: String = this.getClass.getCanonicalName
|
||||||
protected val aSpanName = "aSpan"
|
protected val aSpanName = "aSpan"
|
||||||
protected val anApplicationIdSpanAttribute: (SpanAttribute, String) =
|
protected val anApplicationIdSpanAttribute: (SpanAttribute, String) =
|
||||||
SpanAttribute.ApplicationId -> "anApplicationId"
|
SpanAttribute.ApplicationId -> "anApplicationId"
|
||||||
|
@ -125,6 +125,8 @@
|
|||||||
type: jar-scala
|
type: jar-scala
|
||||||
- target: //ledger/metrics:metrics
|
- target: //ledger/metrics:metrics
|
||||||
type: jar-scala
|
type: jar-scala
|
||||||
|
- target: //ledger/metrics:metrics-test-lib
|
||||||
|
type: jar-scala
|
||||||
- target: //ledger/participant-integration-api:ledger-api-server
|
- target: //ledger/participant-integration-api:ledger-api-server
|
||||||
type: jar-scala
|
type: jar-scala
|
||||||
- target: //ledger/participant-integration-api:participant-integration-api
|
- target: //ledger/participant-integration-api:participant-integration-api
|
||||||
|
Loading…
Reference in New Issue
Block a user