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

Spans metric resource is broken when include_percentiles is not set #2706

Open
VenelinMartinov opened this issue Dec 5, 2024 · 0 comments · May be fixed by #2707
Open

Spans metric resource is broken when include_percentiles is not set #2706

VenelinMartinov opened this issue Dec 5, 2024 · 0 comments · May be fixed by #2707
Labels

Comments

@VenelinMartinov
Copy link

VenelinMartinov commented Dec 5, 2024

Datadog Terraform Provider Version

v3.49.0

Terraform Version

v1.10.1

What resources or data sources are affected?

  • datadog_spans_metric

Terraform Configuration Files

resource "datadog_spans_metric" "my_backup_success" {
  name = "my_backup.backup_success2"
  
  compute {
    aggregation_type = "distribution"
    path            = "@backup_success"
  }
  
  filter {
    query = "service:my-backup resource_name:my-backup.backup"
  }
  
  group_by {
    path     = "env"
    tag_name = "env"
  }
}

Relevant debug or panic output

datadog_spans_metric.my_backup_success: Creating...
╷
│ 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

Expected Behavior

Provisions without an error

Actual Behavior

errors

Steps to Reproduce

  1. terraform apply

Important Factoids

The provider sets a value for a non-computed property, which breaks the Plugin Framework data consistency rules.

References

No response

@VenelinMartinov VenelinMartinov changed the title Spans metric resource is broken Spans metric resource is broken when include_percentiles is not set Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant