Skip to content

Commit

Permalink
Added section describing possible values for Instrumentation annota…
Browse files Browse the repository at this point in the history
…tion (#2589)
  • Loading branch information
pavankrish123 authored Apr 11, 2023
1 parent 2403de2 commit 8f988a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/en/docs/k8s-operator/automatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,17 @@ language-specific annotation:
- Node.js: `instrumentation.opentelemetry.io/inject-nodejs: "true"`
- Python: `instrumentation.opentelemetry.io/inject-python: "true"`

The possible values for the annotation can be

- `"true"` - to inject `Instrumentation` resource with default name from the
curent namespace.
- `"my-instrumentation"` - to inject `Instrumentation` CR instance with name
`"my-instrumentation"` in the current namespace.
- `"my-other-namespace/my-instrumentation"` - to inject `Instrumentation` CR
instance with name `"my-instrumentation"` from another namespace
`"my-other-namespace"`.
- `"false"` - do not inject

Alternatively, the annotation can be added to a namespace, which will result in
all services in that namespace to opt-in to autoinstrumentation. See the
[Operators auto-instrumentation documentation](https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md#opentelemetry-auto-instrumentation-injection)
Expand Down

0 comments on commit 8f988a2

Please sign in to comment.