Removed type target from New/ContinueSpan; fixes #772

This commit is contained in:
Marcin Grzejszczak
2017-11-14 11:32:16 +01:00
parent c72bb22cf9
commit 360f7ed187
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ import java.lang.annotation.Target;
*/
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Target(value = { ElementType.METHOD, ElementType.TYPE })
@Target(value = { ElementType.METHOD })
public @interface ContinueSpan {
/**

View File

@@ -24,7 +24,7 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
/**
* Allows to create a new span around a public method or a class. The new span
* Allows to create a new span around a public method. The new span
* will be either a child of an existing span if a trace is already in progress
* or a new span will be created if there was no previous trace.
* <p>
@@ -38,7 +38,7 @@ import org.springframework.core.annotation.AliasFor;
*/
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Target(value = { ElementType.METHOD, ElementType.TYPE })
@Target(value = { ElementType.METHOD })
public @interface NewSpan {
/**