Skip to content

Commit 67c6369

Browse files
remove --unstable-otel flag from tutorials and docs (#1904)
1 parent 94d3ed0 commit 67c6369

File tree

8 files changed

+17
-26
lines changed

8 files changed

+17
-26
lines changed

examples/tutorials/basic_opentelemetry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ This server:
120120
To run the server with OpenTelemetry, use these flags:
121121

122122
```sh
123-
OTEL_DENO=true OTEL_SERVICE_NAME=my-server deno run --unstable-otel --allow-net server.ts
123+
OTEL_DENO=true OTEL_SERVICE_NAME=my-server deno run --allow-net server.ts
124124
```
125125

126126
## Step 3: Create a Test Client
@@ -218,7 +218,7 @@ trace context.
218218

219219
If you're not seeing data in your collector:
220220

221-
1. Check that you've set `OTEL_DENO=true` and used the `--unstable-otel` flag
221+
1. Check that you've set `OTEL_DENO=true`
222222
2. Verify the collector is running and accessible at the default endpoint
223223
3. Check if you need to set `OTEL_EXPORTER_OTLP_ENDPOINT` to a different URL
224224
4. Look for errors in your Deno console output

examples/tutorials/grafana.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ to send data to the collector:
185185
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
186186
OTEL_SERVICE_NAME=chat-app \
187187
OTEL_DENO=true \
188-
deno run --unstable-otel --allow-net --allow-env --env-file --allow-read main.ts
188+
deno run --allow-net --allow-env --env-file --allow-read main.ts
189189
```
190190

191191
This command:

examples/tutorials/honeycomb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ to send data to the collector:
155155
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
156156
OTEL_SERVICE_NAME=chat-app \
157157
OTEL_DENO=true \
158-
deno run --unstable-otel --allow-net --allow-env --env-file --allow-read main.ts
158+
deno run --allow-net --allow-env --env-file --allow-read main.ts
159159
```
160160

161161
This command:

examples/tutorials/hyperdx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ to send data to the collector:
133133
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
134134
OTEL_SERVICE_NAME=chat-app \
135135
OTEL_DENO=true \
136-
deno run --unstable-otel --allow-net --allow-env --env-file --allow-read main.ts
136+
deno run --allow-net --allow-env --env-file --allow-read main.ts
137137
```
138138

139139
This command:

examples/tutorials/otel_span_propagation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ request headers and establishes the server span as a child of the client's span.
137137
To run this example, first, start the server, giving your otel service a name:
138138

139139
```sh
140-
OTEL_DENO=true OTEL_SERVICE_NAME=server deno run --unstable-otel --allow-net server.ts
140+
OTEL_DENO=true OTEL_SERVICE_NAME=server deno run --allow-net server.ts
141141
```
142142

143143
Then, in another terminal, run the client, giving the client a different service
144144
name to make observing the propagation clearer:
145145

146146
```sh
147-
OTEL_DENO=true OTEL_SERVICE_NAME=client deno run --unstable-otel --allow-net client.ts
147+
OTEL_DENO=true OTEL_SERVICE_NAME=client deno run --allow-net client.ts
148148
```
149149

150150
You should see:

runtime/fundamentals/debugging.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ support for OpenTelemetry, allowing you to:
187187
- Collect structured logs
188188
- Export telemetry data to monitoring systems
189189

190-
To enable OpenTelemetry, run your application with the `--unstable-otel` flag:
191-
192190
```sh
193-
OTEL_DENO=true deno run --unstable-otel your_script.ts
191+
OTEL_DENO=true deno run your_script.ts
194192
```
195193

196194
This will automatically collect and export runtime observability data,

runtime/fundamentals/open_telemetry.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ title: OpenTelemetry
33
description: "Learn how to implement observability in Deno applications using OpenTelemetry. Covers tracing, metrics collection, and integration with monitoring systems."
44
---
55

6-
:::caution
7-
8-
The OpenTelemetry integration for Deno is still in development and may change.
9-
To use it, you must pass the `--unstable-otel` flag to Deno.
10-
11-
:::
12-
136
Deno has built in support for [OpenTelemetry](https://opentelemetry.io/).
147

158
> OpenTelemetry is a collection of APIs, SDKs, and tools. Use it to instrument,
@@ -33,11 +26,11 @@ Deno provides the following features:
3326

3427
## Quick start
3528

36-
To enable the OpenTelemetry integration, run your Deno script with the
37-
`--unstable-otel` flag and set the environment variable `OTEL_DENO=true`:
29+
To enable the OpenTelemetry integration set the environment variable
30+
`OTEL_DENO=true`:
3831

3932
```sh
40-
OTEL_DENO=true deno run --unstable-otel my_script.ts
33+
OTEL_DENO=true deno run my_script.ts
4134
```
4235

4336
This will automatically collect and export runtime observability data to an
@@ -270,11 +263,11 @@ In addition to the automatically collected telemetry data, you can also create
270263
your own metrics and traces using the `npm:@opentelemetry/api` package.
271264

272265
You do not need to configure the `npm:@opentelemetry/api` package to use it with
273-
Deno. Deno sets up the `npm:@opentelemetry/api` package automatically when the
274-
`--unstable-otel` flag is passed. There is no need to call
275-
`metrics.setGlobalMeterProvider()`, `trace.setGlobalTracerProvider()`, or
276-
`context.setGlobalContextManager()`. All configuration of resources, exporter
277-
settings, etc. is done via environment variables.
266+
Deno. Deno sets up the `npm:@opentelemetry/api` package automatically. There is
267+
no need to call `metrics.setGlobalMeterProvider()`,
268+
`trace.setGlobalTracerProvider()`, or `context.setGlobalContextManager()`. All
269+
configuration of resources, exporter settings, etc. is done via environment
270+
variables.
278271

279272
Deno works with version `1.x` of the `npm:@opentelemetry/api` package. You can
280273
either import directly from `npm:@opentelemetry/api@1`, or you can install the

runtime/reference/cli/unstable_flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Enable unstable net APIs. These APIs include:
210210
- [`WebSocketStream`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream)
211211
- [`Deno.DatagramConn`](https://docs.deno.com/api/deno/~/Deno.DatagramConn)
212212

213-
## `--unstable-otel`
213+
## ``
214214

215215
Enable the
216216
[OpenTelemetry integration for Deno](/runtime/fundamentals/open_telemetry).

0 commit comments

Comments
 (0)