ddtrace-graphql icon indicating copy to clipboard operation
ddtrace-graphql copied to clipboard

Out of date with ddtrace library

Open westfarn opened this issue 2 years ago • 1 comments

When installing any version of ddtrace>=1.0.0, 0.2.0 of this library will fail on load because ddtrace has been updated. Specifically when trying to do from ddtrace.contrib.util import requires_modules, will fail because requires_module was moved in version 1.0.0 of ddtrace. So the line needs to be updated to from ddtrace.contrib import require_modules.

Other import lines to be updated are: from ddtrace.ext import errors as ddtrace_errors -> from ddtrace.constants import ERROR_MSG, ERROR_STACK, ERROR_TYPE from ddtrace.util import unwrap -> from ddtrace.internal.utils.wrappers import unwrap Remove import graphql.backend.core

westfarn avatar Oct 04 '23 16:10 westfarn

I have a branch with a proposed fix, but I can't push my branch because I don't have permissions. If you can add me to the repo, I can push the branch.

westfarn avatar Oct 04 '23 16:10 westfarn