<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTTP instrumentation for Tempo on Grafana Labs</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/</link><description>Recent content in HTTP instrumentation for Tempo on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/index.xml" rel="self" type="application/rss+xml"/><item><title>instrumentHTTP</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/instrumenthttp/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/instrumenthttp/</guid><content><![CDATA[&lt;h1 id=&#34;instrumenthttp&#34;&gt;instrumentHTTP&lt;/h1&gt;
&lt;p&gt;The &lt;code&gt;instrumentHTTP&lt;/code&gt; function instruments the k6 http module with tracing capabilities. It transparently replaces each of the k6 http module functions with versions that automatically attach a trace context to every request. Instrumented functions include 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/del/&#34;&gt;del&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/get/&#34;&gt;get&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/head/&#34;&gt;head&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/options/&#34;&gt;options&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/patch/&#34;&gt;patch&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/post/&#34;&gt;post&lt;/a&gt;,
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/head/&#34;&gt;put&lt;/a&gt;, and 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/request/&#34;&gt;request&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;instrumentHTTP&lt;/code&gt; automatically adds tracing information to HTTP requests performed using the &lt;code&gt;k6/http&lt;/code&gt; module functions (mentioned above).
This means that, to instrument the HTTP requests, you don&amp;rsquo;t need to rewrite any code.
Instead, call it once in the init context.
From that point forward, all requests made by the HTTP module will have a trace context header added to them, and the metadata for the data-point output will have the used &lt;code&gt;trace_id&lt;/code&gt;. For details about propagation, refer to 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/#about-trace-contexts&#34;&gt;About trace contexts&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Name&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Type&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;options&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/&#34;&gt;&lt;code&gt;Options&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Configures the tracing behavior with the provided 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/&#34;&gt;&lt;code&gt;Options&lt;/code&gt;&lt;/a&gt; object.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;example&#34;&gt;Example&lt;/h2&gt;
&lt;p&gt;This example demonstrates how to call the &lt;code&gt;instrumentHTTP&lt;/code&gt; function in the script&amp;rsquo;s init context. From that point forward, all the requests made by the HTTP module have a trace context header attached.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JavaScript&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-javascript&#34;&gt;import { check } from &amp;#39;k6&amp;#39;;
import tempo from &amp;#39;https://jslib.k6.io/http-instrumentation-tempo/1.0.1/index.js&amp;#39;;
import http from &amp;#39;k6/http&amp;#39;;

// instrumentHTTP will ensure that all requests made by the http module
// will be traced. The first argument is a configuration object that
// can be used to configure the tracer.
//
// Currently supported HTTP methods are: get, post, put, patch, head,
// del, options, and request.
tempo.instrumentHTTP({
  // propagator defines the trace context propagation format.
  // Currently supported: w3c and jaeger.
  // Default: w3c
  propagator: &amp;#39;w3c&amp;#39;,
});

export default () =&amp;gt; {
  const res = http.get(&amp;#39;http://httpbin.org/get&amp;#39;, {
    headers: {
      &amp;#39;X-Example-Header&amp;#39;: &amp;#39;instrumented/get&amp;#39;,
    },
  });
};&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
]]></content><description>&lt;h1 id="instrumenthttp">instrumentHTTP&lt;/h1>
&lt;p>The &lt;code>instrumentHTTP&lt;/code> function instruments the k6 http module with tracing capabilities. It transparently replaces each of the k6 http module functions with versions that automatically attach a trace context to every request. Instrumented functions include
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/del/">del&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/get/">get&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/head/">head&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/options/">options&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/patch/">patch&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/post/">post&lt;/a>,
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/head/">put&lt;/a>, and
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-http/request/">request&lt;/a>.&lt;/p></description></item><item><title>Client</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/client/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/client/</guid><content><![CDATA[&lt;h1 id=&#34;client&#34;&gt;Client&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;Client&lt;/code&gt; is an HTTP client constructor that attaches tracing information to its requests. Use it to include a tracing context in HTTP requests so that tracing backends (such as &lt;a href=&#34;/oss/tempo/&#34;&gt;Grafana Tempo&lt;/a&gt;) can incorporate their results.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;Client&lt;/code&gt; class acts as a drop-in replacement for the standard &lt;code&gt;http&lt;/code&gt; module and attaches a &lt;a href=&#34;https://www.w3.org/TR/trace-context/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;trace context&lt;/a&gt; to the requests headers, and add a &lt;code&gt;trace_id&lt;/code&gt; to HTTP-related k6 output&amp;rsquo;s data points metadata. It currently supports the &lt;a href=&#34;https://www.w3.org/TR/trace-context/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;W3C Trace Context&lt;/a&gt; and &lt;a href=&#34;https://www.jaegertracing.io/docs/1.21/client-libraries/#propagation-format&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Jaeger&lt;/a&gt; trace context propagation formats. For details about propagation, refer to 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/#about-trace-contexts&#34;&gt;About trace contexts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;Client&lt;/code&gt; constructor accepts an 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/&#34;&gt;&lt;code&gt;Options&lt;/code&gt;&lt;/a&gt; object as its only parameter.&lt;/p&gt;
&lt;h2 id=&#34;example&#34;&gt;Example&lt;/h2&gt;
&lt;p&gt;This example demonstrates how to instantiate a tracing client and use it to instrument HTTP calls with trace context headers. It also illustrates how you can use it alongside the standard &lt;code&gt;http&lt;/code&gt; module to perform non-instrumented HTTP calls.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JavaScript&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-javascript&#34;&gt;import { check } from &amp;#39;k6&amp;#39;;
import tempo from &amp;#39;https://jslib.k6.io/http-instrumentation-tempo/1.0.1/index.js&amp;#39;;
import http from &amp;#39;k6/http&amp;#39;;

// Explicitly instantiating a tempo client allows to distinguish
// instrumented from non-instrumented HTTP calls, by keeping APIs separate.
// It also allows for finer-grained configuration control, by letting
// users changing the tracing configuration on the fly during their
// script&amp;#39;s execution.
const instrumentedHTTP = new tempo.Client({
  propagator: &amp;#39;w3c&amp;#39;,
});

const testData = { name: &amp;#39;Bert&amp;#39; };

export default () =&amp;gt; {
  // Using the tracing client instance, HTTP calls will have
  // their trace context headers set.
  let res = instrumentedHTTP.request(&amp;#39;GET&amp;#39;, &amp;#39;http://httpbin.org/get&amp;#39;, null, {
    headers: {
      &amp;#39;X-Example-Header&amp;#39;: &amp;#39;instrumented/request&amp;#39;,
    },
  });

  // The tracing client offers more flexibility over
  // the `instrumentHTTP` function, as it leaves the
  // imported standard http module untouched. Thus,
  // one can still perform non-instrumented HTTP calls
  // using it.
  res = http.post(&amp;#39;http://httpbin.org/post&amp;#39;, JSON.stringify(testData), {
    headers: { &amp;#39;X-Example-Header&amp;#39;: &amp;#39;noninstrumented/post&amp;#39; },
  });

  res = instrumentedHTTP.del(&amp;#39;http://httpbin.org/delete&amp;#39;, null, {
    headers: { &amp;#39;X-Example-Header&amp;#39;: &amp;#39;instrumented/delete&amp;#39; },
  });
};&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;http-module-functions-equivalents&#34;&gt;HTTP module functions equivalents&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;Client&lt;/code&gt; class exposes the same API as the standard &lt;code&gt;http&lt;/code&gt; module, except for the &lt;code&gt;batch&lt;/code&gt; method.&lt;/p&gt;
&lt;p&gt;The following table lists the &lt;code&gt;Client&lt;/code&gt; methods which have an equivalent in the standard &lt;code&gt;http&lt;/code&gt; module:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Method&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;HTTP equivalent&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.del(url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/del/&#34;&gt;http.del&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP DELETE request. The method has the same prototype as the &lt;code&gt;http.del&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.get(url, [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/get/&#34;&gt;http.get&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP GET request. The method has the same prototype as the &lt;code&gt;http.get&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.head(url, [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/head/&#34;&gt;http.head&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP HEAD request. The method has the same prototype as the &lt;code&gt;http.head&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.options(url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/options/&#34;&gt;http.options&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP OPTIONS request. The method has the same prototype as the &lt;code&gt;http.options&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.patch(url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/patch/&#34;&gt;http.patch&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP PATCH request. The method has the same prototype as the &lt;code&gt;http.patch&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.post(url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/post/&#34;&gt;http.post&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP POST request. The method has the same prototype as the &lt;code&gt;http.post&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.put(url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/head/&#34;&gt;http.put&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP HEAD request. The method has the same prototype as the &lt;code&gt;http.put&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.request(method, url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/request/&#34;&gt;http.request&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP request. The method has the same prototype as the &lt;code&gt;http.request&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.asyncRequest(method, url, [body], [params])&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-http/asyncrequest/&#34;&gt;http.asyncRequest&lt;/a&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Performs an instrumented HTTP asynchronous request. The method has the same prototype as the &lt;code&gt;http.asyncRequest&lt;/code&gt; function and should transparently act as a drop-in replacement for it.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;Client&lt;/code&gt; instances support being reconfigured using the following API:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Method&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;Client.configure(options)&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Reconfigures the tracing client instance with the provided 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/&#34;&gt;&lt;code&gt;Options&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="client">Client&lt;/h1>
&lt;p>&lt;code>Client&lt;/code> is an HTTP client constructor that attaches tracing information to its requests. Use it to include a tracing context in HTTP requests so that tracing backends (such as &lt;a href="/oss/tempo/">Grafana Tempo&lt;/a>) can incorporate their results.&lt;/p></description></item><item><title>Options</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/options/</guid><content><![CDATA[&lt;h1 id=&#34;options&#34;&gt;Options&lt;/h1&gt;
&lt;p&gt;Use the &lt;code&gt;Options&lt;/code&gt; object to configure the tracing instrumentation behavior. It is used during the instantiation of a 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/client/&#34;&gt;&lt;code&gt;Client&lt;/code&gt;&lt;/a&gt; instance and also as a parameter to the 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/instrumenthttp/&#34;&gt;&lt;code&gt;instrumentHTTP&lt;/code&gt;&lt;/a&gt; function. It controls the general behavior of the tracing instrumentation and is unspecific to any particular tracing client instance.&lt;/p&gt;
&lt;h2 id=&#34;options-1&#34;&gt;Options&lt;/h2&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Option name&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Type&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Default&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;propagator&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;string&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;w3c&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The trace context propagation format. Currently supported: &lt;code&gt;w3c&lt;/code&gt; and &lt;code&gt;jaeger&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sampling&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;number&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;1&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;A number between 0 and 1 defining the sampling rate. 1 means sample always, 0 means never sample.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="options">Options&lt;/h1>
&lt;p>Use the &lt;code>Options&lt;/code> object to configure the tracing instrumentation behavior. It is used during the instantiation of a
&lt;a href="/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/client/">&lt;code>Client&lt;/code>&lt;/a> instance and also as a parameter to the
&lt;a href="/docs/k6/v2.3.x/javascript-api/jslib/http-instrumentation-tempo/instrumenthttp/">&lt;code>instrumentHTTP&lt;/code>&lt;/a> function. It controls the general behavior of the tracing instrumentation and is unspecific to any particular tracing client instance.&lt;/p></description></item></channel></rss>