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>

public class ModelAndViewAttributesExtractor extends Object implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.servlet.ModelAndView,Void>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, org.springframework.web.servlet.ModelAndView modelAndView, Void unused, Throwable error)
     
    void
    onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, org.springframework.web.servlet.ModelAndView modelAndView)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      onStart in interface io.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:
      onEnd in interface io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<org.springframework.web.servlet.ModelAndView,Void>