richardstartin commented on code in PR #8628:
URL: https://github.com/apache/pinot/pull/8628#discussion_r863951473
##########
pinot-spi/src/main/java/org/apache/pinot/spi/trace/Tracer.java:
##########
@@ -43,6 +43,14 @@ public interface Tracer {
*/
InvocationScope createScope(Class<?> clazz);
+ /**
+ * Starts
+ * @return the request record
+ */
+ default RequestScope createRequestScope() {
Review Comment:
Yes, you can do that, or just construct `new DefaultRequestStatistics()`,
which is the old class which has moved to `pinot-spi`, if you don't want to use
the `Tracer` SPI though this would break if you do use it and change the tracer
implementation.
I'm surprised this is currently used as an API, so it's probably a good
thing that this is being turned into an SPI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]