diff --git a/docs/contexts.md b/docs/contexts.md index 573cc4c..4c664d1 100644 --- a/docs/contexts.md +++ b/docs/contexts.md @@ -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: {