Skip to content

Commit 32e69b1

Browse files
authored
fix: missing annotation in Annotation example (#827)
1 parent 2ff97ac commit 32e69b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc-snippets/spring-starter/src/main/java/otel/TracedClass.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ public void tracedMethodWithName() {
2323
@WithSpan(kind = SpanKind.CLIENT)
2424
public void tracedClientSpan() {}
2525

26+
@WithSpan
2627
public void tracedMethodWithAttribute(@SpanAttribute("attributeName") String parameter) {}
2728
}

0 commit comments

Comments
 (0)