ddtrace/pin.py
def override(cls, obj, service=None, app=None, app_type=None, tags=None, tracer=None):
        """Override an object with the given attributes.

        That's the recommended way to customize an already instrumented client, without
        losing existing attributes.

            >>> conn = sqlite.connect("/tmp/user.db")
            >>> # Override a pin for a specific connection
            >>> Pin.override(conn, service="user-db")
        """
        if not obj:
            return

        pin = cls.get_from(obj)
        if not pin:
            pin = Pin(service)

        pin.clone(
            service=service,
            app=app,
            app_type=app_type,
            tags=tags,
            tracer=tracer,
        ).onto(obj)
Override an object with the given attributes.

        That's the recommended way to customize an already instrumented client, without
        losing existing attributes.

            >>> conn = sqlite.connect("/tmp/user.db")
            >>> # Override a pin for a specific connection
            >>> Pin.override(conn, service="user-db")
        
Override an object with the given attributes.
That's the recommended way to customize an already instrumented client, without
losing existing attributes.


Override an object with the given attributes . That ' s the recommended way to customize an already instrumented client without losing existing attributes .
def override(cls, obj, service=None, app=None, app_type=None, tags=None, tracer=None):
        if not obj:
            return
        pin = cls.get_from(obj)
        if not pin:
            pin = Pin(service)
        pin.clone(
            service=service,
            app=app,
            app_type=app_type,
            tags=tags,
            tracer=tracer,
        ).onto(obj)
def override ( cls , obj , service = None , app = None , app_type = None , tags = None , tracer = None ) : if not obj : return pin = cls . get_from ( obj ) if not pin : pin = Pin ( service ) pin . clone ( service = service , app = app , app_type = app_type , tags = tags , tracer = tracer , ) . onto ( obj )
Override an object with the given attributes.
Override an object with the given attributes .
"""Override an object with the given attributes.

        That's the recommended way to customize an already instrumented client, without
        losing existing attributes.

            >>> conn = sqlite.connect("/tmp/user.db")
            >>> # Override a pin for a specific connection
            >>> Pin.override(conn, service="user-db")
        """
cls
obj
service
app
app_type
tags
tracer