Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spans_metric resource include_percentiles property #2707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VenelinMartinov
Copy link

@VenelinMartinov VenelinMartinov commented Dec 5, 2024

The property was being set by the provider when the user doesn't set it but is not marked as Computed in the schema. This results in an error on apply:

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to datadog_spans_metric.my_backup_success, provider
│ "provider[\"registry.terraform.io/datadog/datadog\"]" produced an unexpected new value:
│ .compute.include_percentiles: was null, but now cty.False.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
Error: exit status 1

This change fixes that by setting the property as Computed in the schema. Let me know if you have any feedback here!

fixes #2706

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.

Spans metric resource is broken when include_percentiles is not set
1 participant