Skip to content

open-o11y/aws-otel-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Distro for OpenTelemetry PHP

This repository contains documentation and sample apps for the AWS Distro for OpenTelemetry in PHP. It provides the AWS service integrations for traces for the OpenTelemetry PHP library. The library can be configured to support trace applications with the AWS X-Ray service.

Please note all source code for the OpenTelemetry PHP library is upstream on the OpenTelemetry project in the OpenTelemetry PHP library repo. All features of the OpenTelemetry library are available along with its components being configured to create traces which can be viewed in the AWS X-Ray console and to allow propagation of those contexts across multiple downstream AWS services.

Once traces have been generated, they can be sent to a tracing service, like AWS X-Ray, to visualize and understand exactly what happened during the traced calls. For more information about the AWS X-Ray service, see the AWS X-Ray Developer Guide.

To send traces to AWS X-Ray, you can use the AWS Distro for OpenTelemetry (ADOT) Collector. OpenTelemetry PHP exports traces from the application to the ADOT Collector. The ADOT Collector is configured with AWS credentials for the CLI, an AWS region, and which trace attributes to index so that it can send the traces to the AWS X-Ray console. Read more about the AWS X-Ray Tracing Exporter for OpenTelemetry Collector.

Getting Started

See the links below for information on getting started with ADOT PHP:

Requirements

PHP v7.4+ is required to use OpenTelemetry PHP. For more information on supported versions, see the OpenTelemetry PHP package on Packagist.

Sample application - Manual instrumentation

See the example sample application README.md for setup instructions.

Useful Links and Resources

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 91.2%
  • Dockerfile 8.3%
  • Shell 0.5%