Skip to content

Commit 97a9c1e

Browse files
committed
Fix otel.experimental.javascript-snippet description
1 parent 355bbec commit 97a9c1e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/advanced-configuration-options.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ This feature is designed for integrating client-side monitoring.
4545
We plan to integrate OpenTelemetry's own client-side monitoring solution by default once it's available
4646
(see the [browser instrumentation proposal](https://github.com/open-telemetry/community/blob/main/projects/browser-phase-1.md)).
4747

48-
| System property | Environment variable | Purpose |
49-
|--------------------------------------|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
50-
| otel.experimental.javascript-snippet | OTEL_EXPERIMENTAL_JAVASCRIPT_SNIPPET | JavaScript code to inject into HTML responses before the closing `</head>` tag. The value should be a complete JavaScript snippet including `<script>` tags if needed, e.g. `-Dotel.experimental.javascript-snippet="<script>console.log('Hello world!');</script>"` |
48+
| System property | Environment variable | Purpose |
49+
|--------------------------------------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
50+
| otel.experimental.javascript-snippet | OTEL_EXPERIMENTAL_JAVASCRIPT_SNIPPET | Experimental setting to inject a JavaScript snippet into HTML responses after the opening `<head>` tag. The value should be a complete JavaScript snippet including `<script>` tags if needed, e.g. `-Dotel.experimental.javascript-snippet="<script>console.log('Hello world!');</script>"` |
5151

5252
**Important notes:**
5353

instrumentation/servlet/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Settings
44

5-
| System property | Type | Default | Description |
6-
|------------------------------------------------------------------------|---------|---------|------------------------------------------------------------------------------------------------|
7-
| `otel.instrumentation.servlet.experimental-span-attributes` | Boolean | `false` | Enable the capture of experimental span attributes. |
8-
| `otel.instrumentation.servlet.experimental.capture-request-parameters` | List | Empty | Request parameters to be captured (experimental). |
9-
| `otel.experimental.javascript-snippet` | String | Empty | Experimental setting to inject a JavaScript snippet into servlet responses (before `</body>`). |
5+
| System property | Type | Default | Description |
6+
|------------------------------------------------------------------------|---------|---------|-----------------------------------------------------------------------------------------------------------------------------|
7+
| `otel.instrumentation.servlet.experimental-span-attributes` | Boolean | `false` | Enable the capture of experimental span attributes. |
8+
| `otel.instrumentation.servlet.experimental.capture-request-parameters` | List | Empty | Request parameters to be captured (experimental). |
9+
| `otel.experimental.javascript-snippet` | String | Empty | Experimental setting to inject a JavaScript snippet into servlet responses. Snippet is injected after opening `<head>` tag. |
1010

1111
### A word about version
1212

@@ -86,4 +86,4 @@ Of course, still adhering to OpenTelemetry
8686

8787
`HttpServletResponseInstrumentation` instruments `javax.servlet.http.HttpServletResponse.sendError`
8888
and `javax.servlet.http.HttpServletResponse.sendRedirect` methods to create new `INTERNAL` spans
89-
around their invocations.
89+
around their invocations.

0 commit comments

Comments
 (0)