Skip to content

Commit

Permalink
Name update
Browse files Browse the repository at this point in the history
  • Loading branch information
goodspark committed Oct 8, 2024
1 parent a038474 commit 2ca06ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/contrib/internal/graphql/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_version():
dict(
_default_service=schematize_service_name("graphql"),
resolvers_enabled=asbool(os.getenv("DD_TRACE_GRAPHQL_RESOLVERS_ENABLED", default=False)),
simplify_resource=asbool(os.getenv("DD_TRACE_GRAPHQL_SIMPLIFY_RESOURCES", default=False)),
simplify_resource_name=asbool(os.getenv("DD_TRACE_GRAPHQL_SIMPLIFY_RESOURCE_NAME", default=False)),
),
)

Expand Down Expand Up @@ -170,7 +170,7 @@ def _traced_execute(func, args, kwargs):
document = get_argument_value(args, kwargs, 1, "document")
source_str = _get_source_str(document)
resource = source_str
if config.graphql.simplify_resource:
if config.graphql.simplify_resource_name:
# queries can look like:
# query Name(args) {...
# query Name {...
Expand Down

0 comments on commit 2ca06ad

Please sign in to comment.