Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/tutorials/basic_opentelemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Let's start by creating a basic HTTP server that simulates a small web
application:

```ts title="server.ts"
import { metrics, trace } from "npm:@opentelemetry/api@1";
import { metrics, SpanStatusCode, trace } from "npm:@opentelemetry/api@1";

// Create a tracer and meter for our application
const tracer = trace.getTracer("my-server", "1.0.0");
Expand Down Expand Up @@ -94,7 +94,7 @@ Deno.serve({ port: 8000 }, (req) => {
if (error instanceof Error) {
span.recordException(error);
span.setStatus({
code: trace.SpanStatusCode.ERROR,
code: SpanStatusCode.ERROR,
message: error.message,
});
}
Expand Down
Loading