The resource attribute is a required and fundamental info that is reported in all telemetry data. It is used to identify the service that emitted a span, metric or log record for useability in most observability tools.

Odigos will automatically populate this attribute based on the name of the Deployment / DaemonSet / StatefulSet. If there are multiple containers in the workload, the will be set to the container name.

If odigos fails to set a, or if you want to override the default value, you can set it manually for a specific source.

From Odigos UI

Open the sources page in Odigos UI, select the source you want to edit and fill in the value in the Override field for this source.

To undo the override, simply erase the value from the Override field.

Kubernetes Manifest

You can also set the attribute by adding an annotation to the workload manifest: <>

For example, to set the attribute in telemetry for a deployment named my-deployment, to a value of foo with kubectl, you can run:

kubectl annotate deployment my-deployment

Below is a snippet of the deployment manifest with the annotation:

apiVersion: apps/v1
kind: Deployment
  annotations: foo
name: my-deployment
  odigos-instrumentation: enabled

To undo the override, simply remove the annotation from the workload manifest.