from __future__ import absolute_import

from django.apps import AppConfig


class CommonAppConfig(AppConfig):
    name = "common"

    def ready(self):
        import common.signals  # noqa: F401

from __future__ import absolute_import

from django.apps import AppConfig
from prometheus_client import Info

from storage_service import __version__


version_info = Info("version", "Archivematica Storage Service version info")


class CommonAppConfig(AppConfig):
    name = "common"

    def ready(self):
        import common.signals  # noqa: F401
        version_info.info({"version": __version__})

Include application version info metric
Include application version info metric

  from __future__ import absolute_import
  
  from django.apps import AppConfig
+ from prometheus_client import Info
+ 
+ from storage_service import __version__
+ 
+ 
+ version_info = Info("version", "Archivematica Storage Service version info")
  
  
  class CommonAppConfig(AppConfig):
      name = "common"
  
      def ready(self):
          import common.signals  # noqa: F401
+         version_info.info({"version": __version__})
  
Include application version info metric
## Code Before:
from __future__ import absolute_import

from django.apps import AppConfig


class CommonAppConfig(AppConfig):
    name = "common"

    def ready(self):
        import common.signals  # noqa: F401

## Instruction:
Include application version info metric
## Code After:
from __future__ import absolute_import

from django.apps import AppConfig
from prometheus_client import Info

from storage_service import __version__


version_info = Info("version", "Archivematica Storage Service version info")


class CommonAppConfig(AppConfig):
    name = "common"

    def ready(self):
        import common.signals  # noqa: F401
        version_info.info({"version": __version__})
