Skip to content

Commit

Permalink
fix: contexts.md add link to spankind docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jigetus committed Nov 12, 2024
1 parent 7b270fa commit 8afdaa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ const ctx = nodekit.ctx.create('requestContext', {
parentSpanContext: nodekit.ctx.extractSpanContext(req.headers),
spanKind: SpanKind.SERVER,
});
```
Read more about spanKind in OpenTelemetry [docs](https://opentelemetry.io/docs/specs/otel/trace/api/#spankind)
```typescript
// Attaching trace information to outgoing request:
fetch('https://some-url/', {
headers: {
Expand Down

0 comments on commit 8afdaa1

Please sign in to comment.