Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_trace" "default" {
provider = konnect-beta
type = "MeshTrace"
name = "default"
spec = {
default = {
tags = [
{
name = "team"
literal = "core"
},
{
name = "env"
header = {
name = "x-env"
default = "prod"
}
},
{
name = "version"
header = {
name = "x-version"
}
}
]
sampling = {
overall = "80"
random = "60"
client = "40"
}
backends = [
{
type = "Datadog"
datadog = {
url = "http://127.0.0.1:8126"
split_service = "true"
}
}
]
}
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}