Download the PHP package 0to10/observability-php without Composer

On this page you can find all versions of the php package 0to10/observability-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package observability-php

Maintainability Rating Quality Gate Status Code Smells Coverage

Scrutinizer Code Quality Build Status Code Coverage

Observability library for PHP

This package aims to make it easier to monitor your application by generalising frequently used methods to customise how you instrument your code.

Getting started

Getting started is usually easy: just follow the instructions below.

Installation

Use Composer to install this library into your project:

Basic usage

Below is the high-level documentation of how to work with this library.

Working with transactions

A Transaction is a logical unit of work in a software application. This might be handling a request and sending a response (in a Web transaction), executing a script that handles some piece of business logic, etc.

This library exposes a helper class via the transaction() method of a Client instance that can be used to customise monitoring of a transaction.

The methods of the returned class are documented in TransactionInterface.

Real-user monitoring

Real-user monitoring (RUM) may be customised by calling the browser() method of a Client instance.

Automatic instrumentation (e.g. automatic injection of browser scripts in the header and footer of a page) may be disabled using the following method:

Note that this must be done before any output is sent to the browser, and that it's more stable to disable RUM as part of your PHP configuration (if available).

Legacy usage

Library versions up to 2.0.0 continue to support using the Client class located in the Nouve\APM namespace. Please do not use this method for new projects.

Usage notes

It is important to understand that this library exposes generic methods to adjust observability within projects. Depending on the capabilities of the used observability tool, methods may not have the desired outcome. Always make sure that you understand the impact of customising your setup before publishing this into any production environment.


All versions of observability-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3 | >8.0
psr/log Version ^1.1.4 || ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package 0to10/observability-php contains the following files

Loading the files please wait ....