Skip to content

Commit 94edc2c

Browse files
committed
fix: remove incorrect otel: true setting from homepage code example
Fresh auto-detects OpenTelemetry via trace.getActiveSpan() — there is no otel option on the App constructor.
1 parent 3143fa8 commit 94edc2c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

www/components/homepage/SecuritySection.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import { FancyLink } from "../../components/FancyLink.tsx";
77

88
const otelCode = `import { App } from "fresh";
99
10-
const app = new App({
11-
// When OpenTelemetry is active, Fresh
12-
// auto-injects a <meta name="traceparent">
13-
// tag — connecting browser traces to
14-
// server spans, zero config required
15-
otel: true,
16-
});
10+
// When OpenTelemetry is active, Fresh
11+
// auto-injects a <meta name="traceparent">
12+
// tag — connecting browser traces to
13+
// server spans, zero config required
14+
const app = new App();
1715
1816
app.listen();`;
1917

@@ -54,7 +52,7 @@ export function SecuritySection() {
5452
</p>
5553
<p>
5654
Get full-stack observability across your entire request lifecycle
57-
with a single flag.
55+
with zero configuration.
5856
</p>
5957
<FancyLink href="/docs/advanced/opentelemetry" class="mt-2">
6058
Learn about OpenTelemetry

0 commit comments

Comments
 (0)