Skip to content

Commit

Permalink
deploy: a5bfda8
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Sep 18, 2024
1 parent 4cd70e4 commit 05b9c2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions sdk/aws-resource-detectors.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ <h2 id="getting-started" class="section"><a class="anchor-link left" href="#gett
</span><span class="comment">// register OTLP exporters configurer
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExportersConfigurer</span><span>(</span><span class="type-name">OtlpExportersAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS Lambda detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSLambdaDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsLambdaDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS EC2 detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSEC2Detector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsEc2Detector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS ECS detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSECSDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsEcsDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS Beanstalk detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSBeanstalkDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsBeanstalkDetector</span><span>[</span><span class="type-name">IO</span><span>])
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
</span><span class="keyword">val</span><span> </span><span class="identifier">sdk</span><span> = </span><span class="identifier">autoConfigured</span><span>.</span><span class="identifier">sdk</span><span>
Expand Down Expand Up @@ -362,13 +362,13 @@ <h2 id="getting-started" class="section"><a class="anchor-link left" href="#gett
</span><span class="comment">// register OTLP exporters configurer
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExporterConfigurer</span><span>(</span><span class="type-name">OtlpSpanExporterAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS Lambda detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSLambdaDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsLambdaDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS EC2 detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSEC2Detector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsEc2Detector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS ECS detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSECSDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsEcsDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// register AWS Beanstalk detector
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AWSBeanstalkDetector</span><span>[</span><span class="type-name">IO</span><span>])
</span><span> .</span><span class="identifier">addResourceDetector</span><span>(</span><span class="type-name">AwsBeanstalkDetector</span><span>[</span><span class="type-name">IO</span><span>])
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
</span><span class="identifier">program</span><span>(</span><span class="identifier">autoConfigured</span><span>.</span><span class="identifier">tracerProvider</span><span>)
Expand Down
10 changes: 5 additions & 5 deletions sdk/aws-xray-propagator.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ <h2 id="getting-started" class="section"><a class="anchor-link left" href="#gett
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExportersConfigurer</span><span>(</span><span class="type-name">OtlpExportersAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// add AWS X-Ray Propagator
</span><span> .</span><span class="identifier">addTracerProviderCustomizer</span><span>((</span><span class="identifier">b</span><span>, </span><span class="identifier">_</span><span>) =&gt;
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AWSXRayPropagator</span><span>())
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AwsXRayPropagator</span><span>())
)
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
Expand Down Expand Up @@ -228,7 +228,7 @@ <h2 id="getting-started" class="section"><a class="anchor-link left" href="#gett
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExporterConfigurer</span><span>(</span><span class="type-name">OtlpSpanExporterAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// add AWS X-Ray Propagator
</span><span> .</span><span class="identifier">addTracerProviderCustomizer</span><span>((</span><span class="identifier">b</span><span>, </span><span class="identifier">_</span><span>) =&gt;
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AWSXRayPropagator</span><span>())
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AwsXRayPropagator</span><span>())
)
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
Expand All @@ -246,7 +246,7 @@ <h2 id="getting-started" class="section"><a class="anchor-link left" href="#gett
<h2 id="aws-lambda" class="section"><a class="anchor-link left" href="#aws-lambda"><i class="icofont-laika link">&#xef71;</i></a>AWS Lambda</h2>
<p>AWS Lambda can <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">utilize</a> <code>_X_AMZN_TRACE_ID</code> environment variable or
<code>com.amazonaws.xray.traceHeader</code> system property to set the X-Ray tracing header.</p>
<p>Use <code>AWSXRayLambdaPropagator</code> in such a case.</p>
<p>Use <code>AwsXRayLambdaPropagator</code> in such a case.</p>
<div class="tab-container" data-tab-group="sdk-entry-point">
<ul class="tab-group">
<li class="tab active" data-choice-name="sdk"><a href="#">OpenTelemetrySDK</a></li>
Expand All @@ -270,7 +270,7 @@ <h2 id="aws-lambda" class="section"><a class="anchor-link left" href="#aws-lambd
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExportersConfigurer</span><span>(</span><span class="type-name">OtlpExportersAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// add AWS X-Ray Lambda Propagator
</span><span> .</span><span class="identifier">addTracerProviderCustomizer</span><span>((</span><span class="identifier">b</span><span>, </span><span class="identifier">_</span><span>) =&gt;
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AWSXRayLambdaPropagator</span><span>())
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AwsXRayLambdaPropagator</span><span>())
)
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
Expand Down Expand Up @@ -302,7 +302,7 @@ <h2 id="aws-lambda" class="section"><a class="anchor-link left" href="#aws-lambd
</span><span> </span><span class="identifier">_</span><span>.</span><span class="identifier">addExporterConfigurer</span><span>(</span><span class="type-name">OtlpSpanExporterAutoConfigure</span><span>[</span><span class="type-name">IO</span><span>])
</span><span class="comment">// add AWS X-Ray Lambda Propagator
</span><span> .</span><span class="identifier">addTracerProviderCustomizer</span><span>((</span><span class="identifier">b</span><span>, </span><span class="identifier">_</span><span>) =&gt;
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AWSXRayLambdaPropagator</span><span>())
</span><span class="identifier">b</span><span>.</span><span class="identifier">addTextMapPropagators</span><span>(</span><span class="type-name">AwsXRayLambdaPropagator</span><span>())
)
)
.</span><span class="identifier">use</span><span> { </span><span class="identifier">autoConfigured</span><span> =&gt;
Expand Down

0 comments on commit 05b9c2d

Please sign in to comment.