@@ -183,7 +183,7 @@ For more details, see [.NET Auto Instrumentation docs](/docs/zero-code/net/).
183
183
### Deno
184
184
185
185
The following command creates a basic Instrumentation resource that is
186
- configured for instrumenting Deno services.
186
+ configured for instrumenting [ Deno](https://deno.com) services.
187
187
188
188
` ` ` bash
189
189
kubectl apply -f - <<EOF
@@ -220,26 +220,29 @@ the `otlpreceiver` of the Collector created in the previous step.
220
220
221
221
{{% alert title="Note" color="info" %}}
222
222
223
- Deno's OpenTelemetry integration is not yet stable. As a result all workloads
224
- that want to be instrumented with Deno must have the ` --unstable-otel ` flag set
225
- when starting the Deno process.
223
+ [ Deno's OpenTelemetry integration] [ deno-otel-docs ] is not yet stable. As a
224
+ result all workloads that want to be instrumented with Deno must have the
225
+ ` --unstable-otel ` flag set when starting the Deno process.
226
226
227
227
{{% /alert %}}
228
228
229
- #### Configuring console.log capturing in Deno
229
+ #### Configuration options
230
230
231
- By default, the Deno OpenTelemetry integration captures ` console.log ` output as
232
- logs, while still printing the logs to stdout / stderr. There are two other
233
- behaviours that can be configured:
231
+ By default, the Deno OpenTelemetry integration exports ` console.log() ` output as
232
+ [ logs] ( /docs/concepts/signals/logs/ ) , while still printing the logs to stdout /
233
+ stderr. You can configure these alternative behaviors:
234
234
235
- - ` OTEL_DENO_CONSOLE=replace ` : capture ` console.log ` output as logs and do not
235
+ - ` OTEL_DENO_CONSOLE=replace ` : only export ` console.log() ` output as logs; do
236
+ not print to stdout / stderr.
237
+ - ` OTEL_DENO_CONSOLE=ignore ` : do not export ` console.log() ` output as logs; do
236
238
print to stdout / stderr.
237
- - ` OTEL_DENO_CONSOLE=ignore ` : do not capture ` console.log ` output as logs.
238
239
239
240
#### Learn more {#deno-learn-more}
240
241
241
- For more details, see
242
- [ Deno's documentation on the OpenTelemetry integration] ( https://docs.deno.com/runtime/fundamentals/open_telemetry/ ) .
242
+ For more details, see Deno's [ OpenTelemetry integration] [ deno-otel-docs ]
243
+ documentation.
244
+
245
+ [ deno-otel-docs] : https://docs.deno.com/runtime/fundamentals/open_telemetry/
243
246
244
247
### Java
245
248
@@ -746,21 +749,15 @@ Here are a few things to check for:
746
749
- **Is the auto-instrumentation for the right language?** For example, when
747
750
instrumenting a Python application, make sure that the annotation doesn't
748
751
incorrectly say `instrumentation.opentelemetry.io/inject-java : " true" `
749
- instead.
752
+ instead. Note that Deno uses the uses the
753
+ ` instrumentation.opentelemetry.io/inject-sdk: "true"` annotation, rather than
754
+ an annotation containing the string `deno`.
750
755
- **Is the auto-instrumentation annotation in the correct location?** When
751
756
defining a `Deployment`, annotations can be added in one of two locations :
752
757
` spec.metadata.annotations` , and `spec.template.metadata.annotations`. The
753
758
auto-instrumentation annotation needs to be added to
754
759
` spec.template.metadata.annotations` , otherwise it won’t work.
755
760
756
- {{% alert title="Note" color="info" %}}
757
-
758
- Note that unlike other auto-instrumentation, the Deno auto-instrumentation uses
759
- the `instrumentation.opentelemetry.io/inject-sdk : " true" ` annotation, not an
760
- annotation that contains the string ` deno`.
761
-
762
- {{% /alert %}}
763
-
764
761
# ## Was the auto-instrumentation endpoint configured correctly?
765
762
766
763
The `spec.exporter.endpoint` attribute of the `Instrumentation` resource defines
0 commit comments