Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/friendsofopentelemetry/slim-test

A Slim test with OpenTelemetry PHP
https://github.com/friendsofopentelemetry/slim-test

nix opentelemetry opentelemetry-php php slim-framework

Last synced: about 2 months ago
JSON representation

A Slim test with OpenTelemetry PHP

Awesome Lists containing this project

README

        

# OpenTelemetry PHP & Nix

> This is a test repository.

# Usage

1. Setup environment by allowing `.envrc` file with `direnv allow`
2. Install Composer dependencies with `composer install`

## Trace

Run `php -S localhost:8000 trace.php`

Then navigate to .

## Metric

Run `php -S localhost:8001 metric.php`

Then navigate to .

# Explore traces & metrics

Run `docker-compose up -d` and navigate to .

- Exported metrics by Otel Collector:
- Collected metrics by Prometheus: