Skip to content

Commit

Permalink
Improved javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren authored and octonato committed Nov 20, 2024
1 parent 1aa467a commit 7177134
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions akka-javasdk/src/main/java/akka/javasdk/Tracing.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
* Factory for manually creating open telemetry spans in addition to those automatically provided by
* the runtime and SDK.
*
* <p>Not for user extension. Injectable into endpoint constructors or available through component command contexts.
* <p>Not for user extension. Injectable into endpoint constructors or available through component
* command contexts.
*/
@DoNotInherit
public interface Tracing {
Expand All @@ -27,8 +28,11 @@ public interface Tracing {
Optional<Span> startSpan(String name);

/**
* If tracing is enabled, this returns the current parent span, to use for propagating trace parent
* through third party integrations.
* If tracing is enabled, this returns the current parent span, to use for propagating trace
* parent through third party integrations. This span should only be used for observing, ending it
* or marking it as failed etc. is managed by the SDK and the runtime.
*
* @see {{@link #startSpan(String)}} for creating a custom span tied to some logic in a service.
*/
Optional<Span> parentSpan();
}

0 comments on commit 7177134

Please sign in to comment.