Skip to content

Commit 5ffc6ce

Browse files
create modules for counted and timed.
1 parent 4271e31 commit 5ffc6ce

File tree

1 file changed

+4
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-annotation-timed/javaagent/src/test/java/io/opentelemetry/test/annotations/timed

1 file changed

+4
-4
lines changed

instrumentation/opentelemetry-instrumentation-annotation-timed/javaagent/src/test/java/io/opentelemetry/test/annotations/timed/TimedInstrumentationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void testExampleWithUnitAndDefaultValue() {
5959
void testExampleWithDescription() {
6060
new TimedExample().exampleWithDescription();
6161
testing.waitAndAssertMetrics(
62-
"io.opentelemetry.opentelemetry-instrumentation-annotations-1.16",
62+
TIMED_INSTRUMENTATION_NAME,
6363
metric ->
6464
metric.hasName("example.with.description.duration").hasDescription(METRIC_DESCRIPTION));
6565
}
@@ -68,15 +68,15 @@ void testExampleWithDescription() {
6868
void testExampleWithUnit() {
6969
new TimedExample().exampleWithUnit();
7070
testing.waitAndAssertMetrics(
71-
"io.opentelemetry.opentelemetry-instrumentation-annotations-1.16",
71+
TIMED_INSTRUMENTATION_NAME,
7272
metric -> metric.hasName("example.with.unit.duration").hasUnit(METRIC_UNIT));
7373
}
7474

7575
@Test
7676
void testExampleWithAdditionalAttributes1() {
7777
new TimedExample().exampleWithAdditionalAttributes1();
7878
testing.waitAndAssertMetrics(
79-
"io.opentelemetry.opentelemetry-instrumentation-annotations-1.16",
79+
TIMED_INSTRUMENTATION_NAME,
8080
metric ->
8181
metric
8282
.hasName(TIMED_DEFAULT_NAME)
@@ -99,7 +99,7 @@ void testExampleWithAdditionalAttributes1() {
9999
void testExampleWithAdditionalAttributes2() {
100100
new TimedExample().exampleWithAdditionalAttributes2();
101101
testing.waitAndAssertMetrics(
102-
"io.opentelemetry.opentelemetry-instrumentation-annotations-1.16",
102+
TIMED_INSTRUMENTATION_NAME,
103103
metric ->
104104
metric
105105
.hasName(TIMED_DEFAULT_NAME)

0 commit comments

Comments
 (0)