PHPackages                             open-telemetry/sampler-aws-xray - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. open-telemetry/sampler-aws-xray

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

open-telemetry/sampler-aws-xray
===============================

AWS X-Ray Remote Sampler for OpenTelemetry PHP Contrib

0.2.0(1mo ago)0451Apache-2.0PHPPHP ^8.1

Since Aug 27Pushed 1mo agoCompare

[ Source](https://github.com/opentelemetry-php/contrib-sampler-aws-xray)[ Packagist](https://packagist.org/packages/open-telemetry/sampler-aws-xray)[ RSS](/packages/open-telemetry-sampler-aws-xray/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (28)Versions (3)Used By (0)

AWS X-Ray Sampler
=================

[](#aws-x-ray-sampler)

Provides a sampler which can get sampling configurations from AWS X-Ray to make sampling decisions. See: [AWS X-Ray Sampling](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-sampling)

Installation
------------

[](#installation)

```
composer require open-telemetry/sampler-aws-xray
```

Configuration
-------------

[](#configuration)

You can configure the `AWSXRayRemoteSampler` as per the following example. Note that you will need to configure your [OpenTelemetry Collector for X-Ray remote sampling](https://aws-otel.github.io/docs/getting-started/remote-sampling).

```
