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

feat(instrumentation): add OpenTelemetry tracing and metrics with basic configurations #5175

Merged
merged 90 commits into from Oct 11, 2022

Commits on Sep 15, 2022

  1. feat(instrumentation): create basic tracer and meter with console exp…

    …orter
    Girish Chandrashekar committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    a5a7f42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e1b2d0 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. feat(instrumentation): move the instrumentation package to the serve …

    …package
    Girish Chandrashekar committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    514792a View commit details
    Browse the repository at this point in the history
  2. feat(instrumentation): provide options to enable tracing and metrics …

    …independently
    Girish Chandrashekar committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    c3b0c37 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. feat(instrumentation): add the correct grpc opentelmetery insturmenta…

    …tio library
    Girish Chandrashekar committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    2269b57 View commit details
    Browse the repository at this point in the history
  2. feat(serve): instrument grpc server and channel with interceptors

    Girish Chandrashekar committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    14cb744 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f53be22 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. feat(instrumentation): provide opentelemety context from the grpc cli…

    …ent to the request method
    Girish Chandrashekar committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    a4a4621 View commit details
    Browse the repository at this point in the history
  2. feat(instrumentation): check for opentelemetry environment variables …

    …correctly
    Girish Chandrashekar committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    78efb44 View commit details
    Browse the repository at this point in the history
  3. feat(instrumentation): create InstrumentationMixin for server and cli…

    …ent implementations
    Girish Chandrashekar committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    7116e9f View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. chore(instrumentation): use absolute module import

    Girish Chandrashekar committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    92d3679 View commit details
    Browse the repository at this point in the history
  2. feat(instrumentation): trace http and websocket server and clients

    Girish Chandrashekar committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    eb0ccd3 View commit details
    Browse the repository at this point in the history
  3. chore(instrumentation): update/add new opentelemetry arguments

    Girish Chandrashekar committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    38cae61 View commit details
    Browse the repository at this point in the history
  4. feat(instrumentation): globally disable tracing health check requests

    Girish Chandrashekar committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    45d1794 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. feat(instrumentation): add InstrumentationMixIn for Head and Worker r…

    …untime
    Girish Chandrashekar committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    b107f80 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. feat(instrumentation): disable tracing of ServerReflection and endpoi…

    …nt discovery client requests
    Girish Chandrashekar committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    cd17588 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. test(instrumentation): add basic tracing and metrics tests for HTTP G…

    …ateway
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    2e44270 View commit details
    Browse the repository at this point in the history
  2. test(instrumentation): move test common code for tracing and metrics …

    …to module file
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    a083146 View commit details
    Browse the repository at this point in the history
  3. feat(instrumentation): enable tracing of flow internal and start up r…

    …equests
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    30ee9e3 View commit details
    Browse the repository at this point in the history
  4. test(instrumentation): move test common code to new base class

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    3998e2f View commit details
    Browse the repository at this point in the history
  5. test(instrumentation): test grpc gateway opentelemety instrumentation

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    30409c2 View commit details
    Browse the repository at this point in the history
  6. feat(instrumentation): add Jaeger export agent and required configura…

    …tion
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    e2ee862 View commit details
    Browse the repository at this point in the history
  7. chore(instrumentation): remove print statement

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    a0bfaf8 View commit details
    Browse the repository at this point in the history
  8. test(instrumentation): document spans in the grpc and http gateway in…

    …strumentation
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    60be044 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    9da9eaf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    adb96ba View commit details
    Browse the repository at this point in the history
  11. chore: remove print statement

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    0af8ffb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a241f62 View commit details
    Browse the repository at this point in the history
  13. fix: import openetelmetry api globally and the other dependencies onl…

    …y when needed
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    528e38b View commit details
    Browse the repository at this point in the history
  14. fix: use class name as default name when creating Executor instrument…

    …ation providers
    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    47ed0a8 View commit details
    Browse the repository at this point in the history
  15. fix: provide argparse arguments to AlternativeGateway

    Girish Chandrashekar committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    3f436da View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    578e882 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. style: fix overload and cli autocomplete

    Girish Chandrashekar committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    aa5a34a View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    87c15f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f7b4af4 View commit details
    Browse the repository at this point in the history
  4. style: fix overload and cli autocomplete

    Girish Chandrashekar committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    3a2e1de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    82dad9c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. fix: revert changes for Gateway implementation

    Girish Chandrashekar committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    42d00e6 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    9ade3b6 View commit details
    Browse the repository at this point in the history
  3. feat(instrumentation): remove init method from InstrumentationMixin

    Girish Chandrashekar committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    4132396 View commit details
    Browse the repository at this point in the history
  4. feat(instrumentation): create vendor neutral opentelemetry export arg…

    …uments
    Girish Chandrashekar committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    4efbbd7 View commit details
    Browse the repository at this point in the history
  5. style: fix overload and cli autocomplete

    Girish Chandrashekar committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    8e9abcb View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. feat(instrumentation): inject tracing variables from AsyncLoopRuntime…

    … or BaseClient
    Girish Chandrashekar committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    8eed211 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    175a399 View commit details
    Browse the repository at this point in the history
  3. feat(instrumentation): configure a OTLP collector for exporting trace…

    …s and metrics
    Girish Chandrashekar committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    030b980 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c686498 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. feat(instrumentation): return None for aio server interceptors if tra…

    …cing is disabled
    Girish Chandrashekar committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    6d21a3a View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. test: fix handling of optional args

    Girish Chandrashekar committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    00c6c12 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    92c0e1f View commit details
    Browse the repository at this point in the history
  3. fix: remove print debug statement

    Girish Chandrashekar committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    6e27829 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    366a20e View commit details
    Browse the repository at this point in the history
  5. Merge branch 'feat-instrumentation-5155' of github.com:jina-ai/jina i…

    …nto feat-instrumentation-5155
    alaeddine-13 committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    822b541 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    963b82d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6433930 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ffadb73 View commit details
    Browse the repository at this point in the history
  9. test(instrumentation): add integration tests for grpc, http and webso…

    …cket instrumentation
    Girish Chandrashekar committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    3f6eeff View commit details
    Browse the repository at this point in the history
  10. test(instrumentation): parameterize instrumentation tests

    Girish Chandrashekar committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    6b35909 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

  1. test(instrumentation): remove outdated tests replaced by parametrized…

    … test
    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    2906369 View commit details
    Browse the repository at this point in the history
  2. fix(instrumentation): fix executor instrumentation setup

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    f1ad7a2 View commit details
    Browse the repository at this point in the history
  3. fix(instrumentation): force spawn process when running flows in param…

    …etrized test
    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    d7bb8d9 View commit details
    Browse the repository at this point in the history
  4. feat(instrumentation): omit opentelemetry from cli args

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    5e31dca View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c23f30a View commit details
    Browse the repository at this point in the history
  6. test: small test refactoring

    JoanFM committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    bcc39a8 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    c540628 View commit details
    Browse the repository at this point in the history
  8. style: fix overload and cli autocomplete

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    2ce9c67 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    adcb457 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    0ae5f99 View commit details
    Browse the repository at this point in the history
  11. test: dont set multiprocessing start method to spawn

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    b45de43 View commit details
    Browse the repository at this point in the history
  12. fix: hide opentelemetry imports

    Girish Chandrashekar committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    bbd2fb8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    222cfb9 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2022

  1. fix(runtimes): shutdown instrumentation exporters during teardown

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    dcf7296 View commit details
    Browse the repository at this point in the history
  2. test: spawn processes by default in tests

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    57be55e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feat-instrumentation-5155' of github.com:jina-ai/jina i…

    …nto feat-instrumentation-5155
    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    7266abc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e9e78ae View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' into feat-instrumentation-5155

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    3656afc View commit details
    Browse the repository at this point in the history
  6. fix(serve): correctly handle default instrumentation runtime_args

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    4f83c47 View commit details
    Browse the repository at this point in the history
  7. chore: hide opentelemetry imports under TYPE_CHECKING

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    a9d5b1b View commit details
    Browse the repository at this point in the history
  8. test: avoid using spawn

    JoanFM authored and Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    a706480 View commit details
    Browse the repository at this point in the history
  9. fix: add explicit type info and hide imports

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    ef4a232 View commit details
    Browse the repository at this point in the history
  10. fix(executors): handle optional runtime_args correctly

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    1c0aedd View commit details
    Browse the repository at this point in the history
  11. chore: rename otel_context to tracing_context

    Girish Chandrashekar committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    c292234 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. feat: use None instead of NoOp tracer and meter implementations

    Girish Chandrashekar committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    01d543b View commit details
    Browse the repository at this point in the history
  2. fix: remove unused import

    Girish Chandrashekar committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    4afc51b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70146e4 View commit details
    Browse the repository at this point in the history
  4. test: add test case to verify exception recording in a span

    Girish Chandrashekar committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    7f20c06 View commit details
    Browse the repository at this point in the history
  5. fix: use continue_on_error instead of try-except-pass

    Girish Chandrashekar committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    550a975 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b644004 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. chore: rename method name to match returning a list

    Girish Chandrashekar committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    d55d86c View commit details
    Browse the repository at this point in the history
  2. fix: rename span_exporter args to traces_exporter

    Girish Chandrashekar committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    132a932 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb0b003 View commit details
    Browse the repository at this point in the history