Skip to content

Commit

Permalink
Merge pull request #2124 from Netflix/feature/gh-1932
Browse files Browse the repository at this point in the history
Add property dgs.graphql.errors.classification.enabled to allow disabling error classification
  • Loading branch information
paulbakker authored Feb 19, 2025
2 parents 6ddc67f + f5f2213 commit f2a12d0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ open class DgsSpringGraphQLAutoConfiguration(
): Instrumentation = GraphQLContextContributorInstrumentation(graphQLContextContributors.orderedStream().toList())

@Bean
@ConditionalOnProperty(
prefix = "${AUTO_CONF_PREFIX}.errors.classification",
name = ["enabled"],
havingValue = "true",
matchIfMissing = true,
)
open fun graphqlJavaErrorInstrumentation(): Instrumentation = GraphQLJavaErrorInstrumentation()

@Bean
Expand Down Expand Up @@ -370,7 +376,7 @@ open class DgsSpringGraphQLAutoConfiguration(
@Qualifier("dgsAsyncTaskExecutor")
@ConditionalOnThreading(Threading.VIRTUAL)
@ConditionalOnMissingBean(name = ["dgsAsyncTaskExecutor"])
@ConditionalOnProperty(name = ["dgs.graphql.virtualthreads.enabled"], havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(prefix = "${AUTO_CONF_PREFIX}.virtualthreads", name = ["enabled"], havingValue = "true", matchIfMissing = false)
open fun virtualThreadsTaskExecutor(): AsyncTaskExecutor {
LOG.info("Enabling virtual threads for DGS")

Expand Down

0 comments on commit f2a12d0

Please sign in to comment.