File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
ddtrace/contrib/internal/graphql Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
from typing import Callable # noqa:F401
14
14
from typing import Dict # noqa:F401
15
15
from typing import Iterable # noqa:F401
16
+ from typing import List
16
17
from typing import Tuple # noqa:F401
17
18
from typing import Union # noqa:F401
18
19
19
-
20
20
import graphql
21
21
from graphql import MiddlewareManager
22
22
from graphql .error import GraphQLError
23
23
from graphql .execution import ExecutionResult
24
24
from graphql .language .source import Source
25
25
26
26
from ddtrace import config
27
+ from ddtrace ._trace .span import Span
27
28
from ddtrace .constants import _ANALYTICS_SAMPLE_RATE_KEY
28
29
from ddtrace .constants import _SPAN_MEASURED_KEY
29
30
from ddtrace .constants import ERROR_MSG
34
35
from ddtrace .internal .constants import COMPONENT
35
36
from ddtrace .internal .schema import schematize_service_name
36
37
from ddtrace .internal .schema import schematize_url_operation
38
+ from ddtrace .internal .schema .span_attribute_schema import SpanDirection
37
39
from ddtrace .internal .utils import ArgumentError
38
40
from ddtrace .internal .utils import get_argument_value
39
41
from ddtrace .internal .utils import set_argument_value
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def resolve_patron(root, info):
32
32
class Query (graphene .ObjectType ):
33
33
user = graphene .String (id = graphene .ID ())
34
34
35
- def resolve_user (self , info , id ): # noqa: A002
35
+ def resolve_user (self , info , id ): # noqa: A002
36
36
if id != "123" :
37
37
raise graphql .error .GraphQLError (
38
38
"User not found" ,
You can’t perform that action at this time.
0 commit comments