{
    "name": "datadog/dd-trace",
    "type": "library",
    "description": "PHP APM Client",
    "keywords": [
        "datadog",
        "php",
        "tracing"
    ],
    "license": "BSD-3-Clause",
    "authors": [
        {
            "name": "José Carlos Chávez",
            "email": "jcchavezs@gmail.com"
        },
        {
            "name": "DataDog",
            "email": "dev@datadoghq.com",
            "role": "Developer"
        }
    ],
    "require": {
        "php": "^7.0 || ^8.0.0",
        "ext-curl": "*",
        "ext-json": "*"
    },
    "require-dev": {
        "ext-posix": "*",
        "g1a/composer-test-scenarios": "~3.0",
        "mockery/mockery": "*",
        "phpunit/phpunit": "<10",
        "squizlabs/php_codesniffer": "^3.3.0",
        "symfony/process": "<5"
    },
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "g1a/composer-test-scenarios": true,
            "php-http/discovery": true,
            "cakephp/plugin-installer": true
        }
    },
    "autoload": {
        "psr-4": {
            "DDTrace\\": "./src/api/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "DDTrace\\Tests\\Api\\": "./tests_api/",
            "DDTrace\\Tests\\": "./tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "fix-lint": "phpcbf",
        "lint": "phpcs -s --ignore=src/Integrations/Integrations/ZendFramework/V1/Ddtrace.php,dockerfiles/,tests/xdebug/",
        "static-analyze": [
            "@static-analyze-clear-cache",
            "@static-analyze-api",
            "@static-analyze-ddtrace"
        ],
        "static-analyze-api": "php -dmemory_limit=1G $(which phpstan) analyse --configuration=./phpstan.api.neon --level=2 src/api",
        "static-analyze-clear-cache": [
            "phpstan clear-result-cache --configuration=./phpstan.api.neon",
            "phpstan clear-result-cache --configuration=./phpstan.ddtrace.neon"
        ],
        "static-analyze-ddtrace": "php -dmemory_limit=1G $(which phpstan) analyse --configuration=./phpstan.ddtrace.neon --level=2 src/DDTrace",
        "run-agent": [
            "docker run -p 8126:8126 -e \"DD_APM_ENABLED=true\" -e \"DD_BIND_HOST=0.0.0.0\" -e \"DD_API_KEY=invalid_key_but_this_is_fine\" --rm datadog/docker-dd-agent",
            "while ! echo exit | nc localhost 8126; do sleep 1; done"
        ],
        "install-ext": "make sudo install install_ini $*",
        "test-ext": "make test_c TESTS=tests/ext"
    },
    "extra": {
        "scenarios": {
            "openai": {
                "require": {
                    "openai-php/client": "@stable"
                },
                "scenario-options": {
                    "create-lockfile": false
                }
            },
            "opentelemetry1": {
                "require": {
                    "open-telemetry/sdk": "@stable",
                    "open-telemetry/extension-propagator-b3": "@stable",
                    "open-telemetry/opentelemetry-logger-monolog": "@stable"
                },
                "scenario-options": {
                    "create-lockfile": false
                }
            },
            "opentracing_beta5": {
                "require": {
                    "opentracing/opentracing": "1.0.0-beta5"
                },
                "scenario-options": {
                    "create-lockfile": false
                }
            },
            "opentracing_beta6": {
                "require": {
                    "opentracing/opentracing": "1.0.0-beta6"
                },
                "scenario-options": {
                    "create-lockfile": false
                }
            },
            "opentracing10": {
                "require": {
                    "opentracing/opentracing": "^1.0"
                },
                "scenario-options": {
                    "create-lockfile": false
                }
            }
        },
        "scenario-options": {
            "dependency-licenses": false
        }
    }
}
