PHP code example of auxmoney / opentracing-bundle-core

1. Go to this page and download the library: Download auxmoney/opentracing-bundle-core library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

auxmoney / opentracing-bundle-core example snippets


    # Symfony 3: AppKernel.php
    $bundles[] = new Auxmoney\OpentracingBundle\OpentracingBundle();

    # Symfony 4+: bundles.php
    Auxmoney\OpentracingBundle\OpentracingBundle::class => ['all' => true],

    Auxmoney\OpentracingBundle\Service\Tracing::injectTracingHeaders(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\RequestInterface

    Auxmoney\OpentracingBundle\Service\Tracing::injectTracingHeadersIntoCarrier(array $carrier): array

    Auxmoney\OpentracingBundle\Service\Tracing::startActiveSpan(string $operationName, array $options = null): void

    Auxmoney\OpentracingBundle\Service\Tracing::finishActiveSpan(): void

    Auxmoney\OpentracingBundle\Service\Tracing::setTagOfActiveSpan(string $key, string|bool|int|float $value): void

    Auxmoney\OpentracingBundle\Service\Tracing::logInActiveSpan(array $fields): void

    Auxmoney\OpentracingBundle\Service\Tracing::setBaggageItem(string $key, string $value): void

    Auxmoney\OpentracingBundle\Service\Tracing::getBaggageItem(string $key): ?string