Export traces to Datadog
Send spans to a Datadog agent, splitting the reported service name by traffic direction and destination.
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshTrace
metadata:
name: datadog-tracing
namespace: kong-mesh-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Mesh
default:
backends:
- type: Datadog
datadog:
url: http://datadog-agent.observability:8126
splitService: trueCopied!
type: MeshTrace
name: datadog-tracing
mesh: default
spec:
targetRef:
kind: Mesh
default:
backends:
- type: Datadog
datadog:
url: http://datadog-agent.observability:8126
splitService: trueCopied!
Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_trace" "datadog_tracing" {
provider = konnect-beta
type = "MeshTrace"
name = "datadog-tracing"
spec = {
target_ref = {
kind = "Mesh"
}
default = {
backends = [
{
type = "Datadog"
datadog = {
url = "http://datadog-agent.observability: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
}
Copied!