Skip to content

Commit

Permalink
Fix typos in Readme for auto-instrumentation (#499)
Browse files Browse the repository at this point in the history
* Fix typos in Readme for auto-instrumentation

Signed-off-by: Pavol Loffay <[email protected]>

* do not wrap lines

Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay authored Nov 4, 2021
1 parent 87e65e2 commit 640e531
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,20 @@ EOF

### OpenTelemetry auto-instrumentation injection

The operator can inject and configure OpenTelemetry auto-instrumentation libraries. At this moment, the operator can inject only
OpenTelemetry [Java auto-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation).
The operator can inject and configure OpenTelemetry auto-instrumentation libraries. At this moment, the operator can inject only OpenTelemetry [Java auto-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation).

The injection of the Java agent can be enabled by adding an annotation to the namespace, so that all pods within that
namespace will get the instrumentation, or by adding the annotation to individual PodSpec objects, available as part
of Deployment, Statefulset, and other resources.
The injection of the Java agent can be enabled by adding an annotation to the namespace, so that all pods within that namespace will get the instrumentation, or by adding the annotation to individual PodSpec objects, available as part of Deployment, Statefulset, and other resources.

```console
instrumentation.opentelemetry.io/inject-java: "true"
```

The value can be
* `false` - do not inject
* `true` - inject
* `java-instrumentation` - name of `Instrumentation` CR instance.
* `"false"` - do not inject
* `"true"` - inject and `Instrumentation` resource from the namespace.
* `"java-instrumentation"` - name of `Instrumentation` CR instance.

In the addition to the annotation the following `CR` has to be created. The `Instrumentation`
provides configuration for OpenTelemetry SDK and auto-instrumentation.
In addition to the annotation, the following `CR` has to be created. The `Instrumentation` resource provides configuration for OpenTelemetry SDK and auto-instrumentation.

```yaml
kubectl apply -f - <<EOF
Expand All @@ -189,8 +185,7 @@ spec:
EOF
```

1. Container image with [OpenTelemetry Java auto-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation).
The image has to contain Java agent JAR `/javaagent.jar` and the JAR is copied to a shared volume mounted to the application container.
1. Container image with [OpenTelemetry Java auto-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation). The image must contain the Java agent JAR `/javaagent.jar`, and the operator will copy it to a shared volume mounted to the application container.

The above CR can be queried by `kubectl get otelinst`.

Expand Down

0 comments on commit 640e531

Please sign in to comment.