Skip to content

feat(helm): add GraphQL shape logging configuration#686

Open
bart-agent[bot] wants to merge 5 commits intomasterfrom
bart/feature--helm-chart-defaults-d7a43b5b
Open

feat(helm): add GraphQL shape logging configuration#686
bart-agent[bot] wants to merge 5 commits intomasterfrom
bart/feature--helm-chart-defaults-d7a43b5b

Conversation

@bart-agent
Copy link
Copy Markdown
Contributor

@bart-agent bart-agent bot commented Apr 2, 2026

Summary

This PR adds support for GraphQL shape logging configuration to the DataHub Helm chart, mirroring the feature added in datahub-project/datahub#16876.

Changes

Added to values.yaml:

graphql:
  shapeLogging:
    enabled: false
    fieldCountThreshold: 100
    durationThresholdMs: 3000
    responseSizeThresholdBytes: 1048576
    errorCountThreshold: 1

Added to deployment.yaml:

  • GRAPHQL_SHAPE_LOGGING_ENABLED
  • GRAPHQL_SHAPE_FIELD_COUNT_THRESHOLD
  • GRAPHQL_SHAPE_DURATION_THRESHOLD_MS
  • GRAPHQL_SHAPE_RESPONSE_SIZE_THRESHOLD_BYTES
  • GRAPHQL_SHAPE_ERROR_COUNT_THRESHOLD

Configuration Details

Property Default Purpose
enabled false Toggles shape logging feature (opt-in)
fieldCountThreshold 100 Logs when response exceeds 100 fields
durationThresholdMs 3000 Logs queries taking >3 seconds
responseSizeThresholdBytes 1048576 Logs responses >1MB
errorCountThreshold 1 Logs when errors occur

Related

🤖 Generated with Claude Code

Bart and others added 3 commits April 2, 2026 10:43
Add support for GraphQL shape logging feature with configurable thresholds:
- enabled: false (default, opt-in feature)
- fieldCountThreshold: 100
- durationThresholdMs: 3000
- responseSizeThresholdBytes: 1048576
- errorCountThreshold: 1

This mirrors the configuration added in datahub-project/datahub#16876

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add documentation for GraphQL shape logging configuration values:
- graphql.shapeLogging.enabled
- graphql.shapeLogging.fieldCountThreshold
- graphql.shapeLogging.durationThresholdMs
- graphql.shapeLogging.responseSizeThresholdBytes
- graphql.shapeLogging.errorCountThreshold

Also includes graphql.introspection.enabled entry that was missing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This version bump is required by the Helm chart lint workflow which enforces that chart versions must be incremented when changes are made to the chart.
Bart added 2 commits April 2, 2026 13:42
- Removed GraphQL introspection config (not part of original PR scope)
- Fixed VALUES_REFERENCE.md paths: datahub-gms.graphql → global.datahub.gms.graphql
- Removed introspection documentation entirely
- Only shape logging config remains as originally requested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant