Skip to content

Error: object has no attribute 'META' #46

@julidr

Description

@julidr

Hi! I got the following error 'GetExampleView' object has no attribute 'META' when i implement @tracing.trace() inside a class that inherits from any kind of APiView related model.

class GetExampleView(APIView):
    @tracing.trace()
    def get(self, request):
        pass

I don't know if the fact that it was used inside a class and the attribute self (which is the GetExampleView) was sent before request caused this error.

There is any kind of support when this is implemented inside classes? i noticed that all examples where used directly in functions that received request as first param or maybe i'm doing something wrong with the implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions