Class ModelAndViewAttributesExtractor
java.lang.Object
io.opentelemetry.javaagent.instrumentation.spring.webmvc.ModelAndViewAttributesExtractor
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.servlet.ModelAndView,Void>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, org.springframework.web.servlet.ModelAndView modelAndView, Void unused, Throwable error) voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, org.springframework.web.servlet.ModelAndView modelAndView)
-
Constructor Details
-
ModelAndViewAttributesExtractor
public ModelAndViewAttributesExtractor()
-
-
Method Details
-
onStart
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, org.springframework.web.servlet.ModelAndView modelAndView) - Specified by:
onStartin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.servlet.ModelAndView,Void>
-
onEnd
public void onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, org.springframework.web.servlet.ModelAndView modelAndView, @Nullable Void unused, @Nullable Throwable error) - Specified by:
onEndin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.servlet.ModelAndView,Void>
-