From 8afdaa1df192661679ed0a5c309b036eec2de1a8 Mon Sep 17 00:00:00 2001 From: Aleksey Danilov Date: Tue, 12 Nov 2024 12:57:17 +0300 Subject: [PATCH] fix: contexts.md add link to spankind docs --- docs/contexts.md | 4 ++++ 1 file changed, 4 insertions(+) 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: {