Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-instrumentation registration #1304

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Commits on May 6, 2024

  1. [WIP] Add instrumentation configuration

    Nevay authored and brettmc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    be76d19 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c178431 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31f93c0 View commit details
    Browse the repository at this point in the history
  4. fix attribute

    brettmc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    ef343e1 View commit details
    Browse the repository at this point in the history
  5. experimental config file

    brettmc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    ba765d9 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. fixing invalid dependencies

    - deptrac was rightly complaining that API (indirectly) depended on SDK through config/sdk. For now,
    remove usage of Config\SDK\Configuration\Context
    - update deptrac config to allow some new dependencies
    brettmc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    b771c57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba994d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35feeff View commit details
    Browse the repository at this point in the history
  4. possibly fixing type-hint

    psalm doesn't complain now, so that should be good
    brettmc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    43fc772 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    76ce98f View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Configuration menu
    Copy the full SHA
    73f83e0 View commit details
    Browse the repository at this point in the history
  2. fixing 8.1 psalm error

    brettmc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7e57997 View commit details
    Browse the repository at this point in the history
  3. use context to pass providers to instrumentations

    - make "register global" a function of Sdk, but keep the sdk builder's interface intact
    - invent an API instrumentation context, similar to the one in config/sdk, to pass providers
      to instrumentations
    - add an initial test of autoloading from a config file
    brettmc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f29b713 View commit details
    Browse the repository at this point in the history
  4. adding tests for sdk::registerGlobal

    in passing, remove some dead code for handling invalid booleans - config already handles this correctly
    brettmc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    20cd7ef View commit details
    Browse the repository at this point in the history
  5. linting

    brettmc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    c8373a3 View commit details
    Browse the repository at this point in the history
  6. test coverage for globals

    brettmc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    9ba45be View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Configuration menu
    Copy the full SHA
    a4d9046 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e704719 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. register globals initializer for file-config sdk

    allow SDK created from config file to coexist with components using globals initializer
    brettmc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    d94d4cc View commit details
    Browse the repository at this point in the history
  2. linting

    brettmc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    04aa26a View commit details
    Browse the repository at this point in the history
  3. remove globals init function

    brettmc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    7262680 View commit details
    Browse the repository at this point in the history
  4. fix phan warning

    brettmc committed May 10, 2024
    Configuration menu
    Copy the full SHA
    579713a View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. simplify hook manager

    - drop storage from hook manager: can't guarantee that something else, eg swoole, won't modify storage
    - drop context from hook manager: we must lazy-load globals via initializers, because not all instrumentations use SPI (although that may change in future)
    - default hook manager to enabled
    brettmc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    8fd3724 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e6f85fe View commit details
    Browse the repository at this point in the history
  3. autoload instrumentations without config

    if no config provided, still try to load them. wrap registration in a try/catch/log
    brettmc committed May 13, 2024
    Configuration menu
    Copy the full SHA
    d032942 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. fixing phan ref, update doc

    brettmc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    82d62db View commit details
    Browse the repository at this point in the history
  2. remove phan suppress

    brettmc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    0e5ffac View commit details
    Browse the repository at this point in the history
  3. fix example

    brettmc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    de4262b View commit details
    Browse the repository at this point in the history
  4. bump SPI to 0.2.1

    brettmc committed May 14, 2024
    Configuration menu
    Copy the full SHA
    be50116 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Configuration menu
    Copy the full SHA
    5798a40 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. adding late-binding tracer+provider

    per review from Nevay, this will allow instrumentations to get things from Globals as late as possible
    brettmc committed May 17, 2024
    Configuration menu
    Copy the full SHA
    7acacb6 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Configuration menu
    Copy the full SHA
    77653d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0cd4ed View commit details
    Browse the repository at this point in the history
  3. tidy

    brettmc committed May 18, 2024
    Configuration menu
    Copy the full SHA
    fe5fe3e View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    9459cb0 View commit details
    Browse the repository at this point in the history
  2. dont use CoversMethod yet

    not available in phpunit 10, so comment out and leave a todo
    brettmc committed May 21, 2024
    Configuration menu
    Copy the full SHA
    1c0e1b5 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    dcbdc37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b6deb8 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    610832b View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. adding general config

    brettmc committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a85982f View commit details
    Browse the repository at this point in the history
  2. move general config into sdk

    brettmc committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ccde00d View commit details
    Browse the repository at this point in the history
  3. test config caching

    brettmc committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    552a7e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1164e6b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3695630 View commit details
    Browse the repository at this point in the history
  6. bump config yaml files to 0.3

    brettmc committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    7c0131b View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. fix tests

    brettmc committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    90a69ce View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    d1b1f6f View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    3c2ac3f View commit details
    Browse the repository at this point in the history
  2. cleanup

    brettmc committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    f841065 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    898982b View commit details
    Browse the repository at this point in the history