from pyramid.tweens import MAIN


def includeme(config):  # pragma: no cover
    """
    :type config: :class:`pyramid.config.Configurator`
    """
    config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=MAIN)

from pyramid.tweens import EXCVIEW


def includeme(config):  # pragma: no cover
    """
    :type config: :class:`pyramid.config.Configurator`
    """
    config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=EXCVIEW)

Change to over=EXCVIEW to make response status work correctly
Change to over=EXCVIEW to make response status work correctly

- from pyramid.tweens import MAIN
+ from pyramid.tweens import EXCVIEW
  
  
  def includeme(config):  # pragma: no cover
      """
      :type config: :class:`pyramid.config.Configurator`
      """
-     config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=MAIN)
+     config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=EXCVIEW)
  
Change to over=EXCVIEW to make response status work correctly
## Code Before:
from pyramid.tweens import MAIN


def includeme(config):  # pragma: no cover
    """
    :type config: :class:`pyramid.config.Configurator`
    """
    config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=MAIN)

## Instruction:
Change to over=EXCVIEW to make response status work correctly
## Code After:
from pyramid.tweens import EXCVIEW


def includeme(config):  # pragma: no cover
    """
    :type config: :class:`pyramid.config.Configurator`
    """
    config.add_tween('pyramid_zipkin.zipkin.zipkin_tween', over=EXCVIEW)
