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(containerd-shim-wasm): add OpenTelemetry tracing library and feature #582

Merged
merged 22 commits into from
Jul 23, 2024

Commits on Jul 22, 2024

  1. feat(otel): add otel collector to the core crate

    this commit adds otel collector APIs and a new opentelemetry feature to the wasm shim
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    05a978c View commit details
    Browse the repository at this point in the history
  2. remove parsing env var for otel_exporter_otlp_endpoint

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    707d3c7 View commit details
    Browse the repository at this point in the history
  3. move more logic to otel.rs

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2f34aea View commit details
    Browse the repository at this point in the history
  4. propogate tracing context for inter-process communication

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    791f437 View commit details
    Browse the repository at this point in the history
  5. add documentation for opentelemetry tracing

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1e27248 View commit details
    Browse the repository at this point in the history
  6. use the correct macro to conditional compile the trace_context code i…

    …n shim_main
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    0fbf0d2 View commit details
    Browse the repository at this point in the history
  7. feat(otel): add support for http/protobuf protocol support for OTLP

    this commit adds a new env var OTEL_EXPORTER_OTLP_PROTOCOL to configure different types of OTLP protocols such as grpc and http/protobuf
    
    by default, it uses http/protobuf
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    3624383 View commit details
    Browse the repository at this point in the history
  8. feat(otel): use the default service.name from containerd

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2d53509 View commit details
    Browse the repository at this point in the history
  9. refactor: rename OtelConfig to Config

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    d81544c View commit details
    Browse the repository at this point in the history
  10. refactor: merge opentelemetry and tracing features into one

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    d7789ce View commit details
    Browse the repository at this point in the history
  11. refactor: renamed images

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    14cd4a1 View commit details
    Browse the repository at this point in the history
  12. added back the tracing feature

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    537b80a View commit details
    Browse the repository at this point in the history
  13. added back deleted lines

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    28b0a5d View commit details
    Browse the repository at this point in the history
  14. disable OTLP exporter if endpoint is empty

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    e4b3408 View commit details
    Browse the repository at this point in the history
  15. only pull the necesasry tokio features instead of the full set

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    506c192 View commit details
    Browse the repository at this point in the history
  16. feat(opentelemetry): add more env vars supports

    this commit adds the traces specific env vars to the otel module. It also refactors the code and adds unit tests.
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    537baeb View commit details
    Browse the repository at this point in the history
  17. refactor(opentelemetry): renamed otel functions and bump deps

    this commit does a few things to refactor the opentelemetry codebase
    1. rename otel funcitons
    2. bump deps of otel
    3. move tokio runtime to the crate
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    fe9ac4e View commit details
    Browse the repository at this point in the history
  18. add opentelemetry feature to makefile

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b388f79 View commit details
    Browse the repository at this point in the history
  19. refactor(opentelemetry): rename shim_main_with_otel to shim_main

    this commit removes ConfigBuilder and adds build_from_env to Config and renames shim_main_with_otel to shim_main
    
    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    22d16c2 View commit details
    Browse the repository at this point in the history
  20. add OTEL_SDK_DISABLED support

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ab0fbfe View commit details
    Browse the repository at this point in the history
  21. resolved more comments

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    e07aef2 View commit details
    Browse the repository at this point in the history
  22. added otel tests to the CI test-smoke

    Signed-off-by: jiaxiao zhou <[email protected]>
    Mossaka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    ef53564 View commit details
    Browse the repository at this point in the history