Instrumentation Rules control how telemetry is recorded from your application. A rule can be applied to a set of Kubernetes workloads and instrumentation libraries.
ruleName
string
: Allows you to attach a meaningful name to the rule for convenience and documentation.notes
string
: Allows you to attach notes regarding the rule for convenience.disabled
boolean
: Allows you to temporarily disable the rule, but keep it saved for future use.false
workloads
{ namespace; name; kind; }[]
: Allows you to apply/limit the rule to specific workloads. If not specified, the rule will be applied to all workloads.nil
(all workloads)namespace
string
- The name of the Kubernetes namespace.name
string
- The name of the Kubernetes workload.kind
string
- The kind of the Kubernetes workload.Deployment
, DaemonSet
, StatefulSet
instrumentationLibraries
{ name; language; spanKind; }[]
: Allows you to apply/limit the rule to specific instrumentation libraries. If not specified, the rule will be applied to all instrumentation libraries.nil
(all libraries)name
string
- The unique name of the instrumentation library.language
string
- The programming language of the instrumentation library.spanKind
string
- The span kind of the instrumentation library.client
, server
, producer
, consumer
, internal
workloads
field.instrumentationLibraries
field.