Skip to content

Commit

Permalink
Update instrumentation-api/src/main/java/io/opentelemetry/instrumenta…
Browse files Browse the repository at this point in the history
…tion/api/instrumenter/EndTimeExtractor.java

Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
Mateusz Rzeszutek and trask authored Sep 8, 2021
1 parent f4ebf8d commit 1c8c9f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
public interface EndTimeExtractor<REQUEST, RESPONSE> {

/** Returns the timestamp marking the end of the response processing. */
// passing error for consistency with other extractors of always passing response and error
// together (we don't know of a use case yet for extracting end time from error)
Instant extract(REQUEST request, @Nullable RESPONSE response, @Nullable Throwable error);
}

0 comments on commit 1c8c9f7

Please sign in to comment.