Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ls-trace / ext / __init__.py
Size: Mime:
from enum import Enum

from ..vendor.debtcollector import removals
from ..utils import removed_classproperty


class SpanTypes(Enum):
    CACHE = "cache"
    CASSANDRA = "cassandra"
    ELASTICSEARCH = "elasticsearch"
    GRPC = "grpc"
    HTTP = "http"
    MONGODB = "mongodb"
    REDIS = "redis"
    SQL = "sql"
    TEMPLATE = "template"
    WEB = "web"
    WORKER = "worker"


@removals.removed_class("AppTypes")
class AppTypes(object):
    @removed_classproperty
    def web(cls):
        return SpanTypes.WEB

    @removed_classproperty
    def db(cls):
        return "db"

    @removed_classproperty
    def cache(cls):
        return SpanTypes.CACHE

    @removed_classproperty
    def worker(cls):
        return SpanTypes.WORKER