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

[pull] main from open-telemetry:main #308

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

Commits on Jul 11, 2024

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

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    63fa4fd View commit details
    Browse the repository at this point in the history
  2. [CI] Enable bzlmod (#2995)

    keith authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    323a279 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. [Metrics SDK] Fix hash calculation for nostd::string (#2999)

    * add test to validate cardinaity limit
    
    * format
    
    * warning
    
    * Format
    
    * maint mode CI
    
    * modify test to reproduce the issue
    
    * Format
    
    * remove vscode settings
    
    * remove redundant test
    
    * remove unused code
    
    * fix to calculate hash on string_view
    
    * remove iostream
    
    * template specialization for const char *, and varous string type tests
    
    * unused variable warning
    
    * more warnings
    
    * format
    
    * fix use-after-stack-scope
    
    * format
    
    * another try
    
    * format
    
    ---------
    
    Co-authored-by: Tom Tan <Tom.Tan@microsoft.com>
    lalitb and ThomsonTan authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    d8ae09e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baecbb9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aac2b77 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0a43c1f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    611906e View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    f195b9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4520aa5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    deed1e3 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

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

Commits on Aug 2, 2024

  1. Configuration menu
    Copy the full SHA
    eda6e93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34ca855 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

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

Commits on Aug 8, 2024

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

Commits on Aug 9, 2024

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

Commits on Aug 13, 2024

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

Commits on Aug 14, 2024

  1. [SDK] Support empty histogram buckets (#3027)

    * support empty buckets
    
    * Update histogram_test.cc
    
    * Update histogram_test.cc
    
    * test for negative values
    
    * fix count
    lalitb authored Aug 14, 2024
    Configuration menu
    Copy the full SHA
    1203bcf View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

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

Commits on Aug 21, 2024

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

Commits on Aug 25, 2024

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

Commits on Aug 26, 2024

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

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    f02d70b View commit details
    Browse the repository at this point in the history
  2. [TEST] Add missing tests to Bazel build (#3045)

    * Fix overflow in timeout logic
    
    Also use steady clock consistently.
    
    Prior to this change, the test would fail under ASAN:
    
    bazel test --config=asan --test_output=errors //sdk/test/metrics:meter_provider_sdk_test
    INFO: Analyzed target //sdk/test/metrics:meter_provider_sdk_test (0 packages loaded, 0 targets configured).
    FAIL: //sdk/test/metrics:meter_provider_sdk_test (see /private/var/tmp/_bazel_punya/e3bd968ba61238cdeb1a5537fc3dbf7d/execroot/_main/bazel-out/darwin_arm64-fastbuild-asan/testlogs/sdk/test/metrics/meter_provider_sdk_test/test.log)
    INFO: From Testing //sdk/test/metrics:meter_provider_sdk_test:
    ==================== Test output for //sdk/test/metrics:meter_provider_sdk_test:
    Running main() from gmock_main.cc
    [==========] Running 1 test from 1 test suite.
    [----------] Global test environment set-up.
    [----------] 1 test from MeterProvider
    [ RUN      ] MeterProvider.GetMeter
    [Warning] File: sdk/src/metrics/meter_provider.cc:65 [MeterProvider::GetMeter] Library name is empty.
    [Warning] File: sdk/src/metrics/meter_provider.cc:65 [MeterProvider::GetMeter] Library name is empty.
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__chrono/duration.h:102:59: runtime error: signed integer overflow: 9221646818050376183 * 1000 cannot be represented in type '_Ct' (aka 'long long')
    SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__chrono/duration.h:102:59 in 
    ================================================================================
    INFO: Found 1 test target...
    Target //sdk/test/metrics:meter_provider_sdk_test up-to-date:
      bazel-bin/sdk/test/metrics/meter_provider_sdk_test
    INFO: Elapsed time: 2.251s, Critical Path: 2.13s
    INFO: 5 processes: 5 darwin-sandbox.
    INFO: Build completed, 1 test FAILED, 5 total actions
    //sdk/test/metrics:meter_provider_sdk_test                               FAILED in 0.6s
      /private/var/tmp/_bazel_punya/e3bd968ba61238cdeb1a5537fc3dbf7d/execroot/_main/bazel-out/darwin_arm64-fastbuild-asan/testlogs/sdk/test/metrics/meter_provider_sdk_test/test.log
    
    Executed 1 out of 1 test: 1 fails locally.
    
    Fix overflow in periodic_exporting_metric_reader
    
    * Add missing tests to Bazel build by globbing test files
    
    Previously, we were missing
    * instrument_metadata_validator_test
    * observable_registry_test
    * cardinality_limit_test
    * periodic_exporting_metric_reader_test
    And there were no checks in place to prevent things from getting worse.
    
    Remove unnecessary exception checks in attributes_hashmap_test,
    which simplifies the build and CI script.
    
    Resolve symbol collision using anonymous namespaces.
    
    ---------
    
    Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
    punya and lalitb authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7f785b5 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. [TEST] update collector example with debug exporter (#3050)

    The logging exporter was renamed debug in 2023, the logging exporter will be removed in the near future, updating the example accordingly.
    codeboten authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    0803569 View commit details
    Browse the repository at this point in the history
  2. [EXAMPLE] update collector example with debug exporter (#3049)

    The logging exporter was renamed debug in 2023, the logging exporter will be removed in the near future, updating the example accordingly.
    
    Co-authored-by: Marc Alff <marc.alff@oracle.com>
    codeboten and marcalff authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    0d5a387 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. [TEST] update references to logging exporter (#3053)

    This exporter has been replaced by the debug exporter and will be removed soon
    
    Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
    codeboten authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    261a151 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d623bc5 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

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

Commits on Sep 10, 2024

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

Commits on Sep 11, 2024

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

Commits on Sep 18, 2024

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

Commits on Sep 20, 2024

  1. [CI] Update otel-collector version (#3067)

    Looks like otel-collector equal or higher than 0.86.0 has the "debug"
    exporter.
    
    So updated the README.md with the latest version of the otel-collector
    (v0.109.0) and also the CI script.
    fabriziomello authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    23818a7 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

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

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    3910b04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    35e8d17 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa0a520 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. [EXPORTER] Fix crash in ElasticsearchLogRecordExporter when (#3082)

    using constructor with user given options (#3078)
    
     Closes #3078
    ShadowMaxLeb authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    0ea1f2c View commit details
    Browse the repository at this point in the history
  2. [BUILD] Avoid buggy "should be explicitly initialized in the copy con…

    …structor" warning with gcc <= 8 (#3087)
    
    gcc <= 8, when building with -Wextra (and -Werror) wrongly raises this:
    /data/mwrep/res/mdw/SIOTF/internal/opentelemetry_cpp/trace/18-0-0-7/include/opentelemetry/trace/default_span.h: In copy constructor 'opentelemetry::v1::trace::DefaultSpan::DefaultSpan(const opentelemetry::v1::trace::DefaultSpan&)':
    /data/mwrep/res/mdw/SIOTF/internal/opentelemetry_cpp/trace/18-0-0-7/include/opentelemetry/trace/default_span.h:70:3: error: base class 'class opentelemetry::v1::trace::Span' should be explicitly initialized in the copy constructor [-Werror=extra]
       DefaultSpan(const DefaultSpan &spn) noexcept : span_context_(spn.GetContext()) {}
       ^~~~~~~~~~~
    
    See on Compiler Explorer here: https://godbolt.org/z/ed5rv74nT
    
    I believe Jason Merrill fixed it in gcc for all gcc >= 9 with:
    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=f3f7cefecc833b4ab652215ceb8b408c21dca225;hp=777083bb806dbe31ab97002b7d445191d3ee7a2d
    
    Workaround this by calling explicitly the empty Span constructor.
    Romain-Geissler-1A authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    3d9c2b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6445819 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Update bzlmod version (#3093)

    owent authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    f69963f View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

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

Commits on Oct 17, 2024

  1. [BUILD] Fix compiling problems for gcc 4.8 (#3100)

    * Fix compiling problems for gcc 4.8
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Marc Alff <marc.alff@free.fr>
    owent and marcalff authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    63683c1 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. [TEST] Fix linking order and gmock linking (#3106)

    * Fix link order
    
    * Fix gmock linking
    owent authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    1185405 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    b1488cd View commit details
    Browse the repository at this point in the history
  2. [BUILD] Add a CMake option to disable shared libs (#3095)

    * Add a CMake option to disable shared libs
    
    This option is useful to support platforms that do not support
    dynamic libraries and `dlopen`.
    tobim authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    7402ed9 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

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

Commits on Oct 24, 2024

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

Commits on Oct 25, 2024

  1. [BUILD] Remove aligned_storage from nostd (#3112)

    std::aligned_storage was deprecated in C++23.
    Abseil removed its aligned_storage in abseil/abseil-cpp@4213346
    ColoredCarrot authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    2c912d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. [EXPORTER] Elastic Search exporter follow ECS guidelines (#3107)

    * [EXPORTERS]: elastic search log message within `message` key instead of
    `body`
    
    According to ECS logging reference
    https://www.elastic.co/guide/en/ecs/8.11/ecs-base.html#field-message
    
    Refs #3091
    
    * [EXPORTERS]: elastic search set severity within `log.level` key instead of
        `severity`
    
    According to ECS logging reference
    https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html#field-log-level
    
    Refs #3091
    
    * [EXPORTERS]: elastic search set timestamp within `@timestamp` instead of
    `timestamp`
    
    Also changes the format to be a Date string.
    
    According to ECS logging reference
    https://www.elastic.co/guide/en/ecs/8.11/ecs-base.html#field-timestamp
    
    Refs #3091
    
    * [EXPORTERS]: elastic search set instrumentation scope within `log.logger` instead of
    `name`
    
    According to ECS logging reference
    https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html#field-log-logger
    
    Refs #3091
    
    * EXPORTERS]: elastic search recorable constructor sets `ecs.version` field
    to 8.11.0
    
    According to ECS guidelines this field is mandatory
    https://www.elastic.co/guide/en/ecs/8.11/ecs-guidelines.html
    
    Refs #3091
    
    * [EXPORTERS]: elastic search put attributes in json root instead of under
    `attributes`
    
    This allows user to set other fields that are part of the [ECS log documentation](https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html).
    For instance, it allows to have an attribute with key `log.file`, that
    will, thanks to `nlohmann::json`, appear as :
    ```
    {
      "log": {
        "file": "xxx"
      }
    }
    ```
    
    Closes #3091
    ShadowMaxLeb authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    5e62859 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. [INSTALL] Resolve dependencies in opentelemetry-cpp-config.cmake (#3094)

    * Resolve dependencies in opentelemetry-cpp-config.cmake
    
    Before this change, consumers of the exported CMake targets had to know
    which dependencies are needed to get the transitive target dependencies
    like `absl::*`, `gRPC::grpc++`, or `protobuf::libprotobuf`.
    
    * Add find_dependency calls for remaining deps
    
    Now we also resolve `OpenTracing`, and `prometheus-cpp`.
    
    If necessary, `CURL` and `ZLIB` are also resolved.
    
    ---------
    
    Co-authored-by: Marc Alff <marc.alff@oracle.com>
    Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
    3 people authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    6292a6a View commit details
    Browse the repository at this point in the history
  2. [API] Add synchronous gauge (#3029)

    * Add synchronous gauge
    
    * Add ABI Version macro, update tests
    
    * Fix function description
    
    * Fix formatting
    
    * Remove ABI macros from SDK.
    
    * Add error log for gauge delta temporality.
    
    * Fix formatting
    
    * Apply suggestions from code review
    
    Move kGauge to the end, for better ABI compatibility.
    
    ---------
    
    Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
    Co-authored-by: Marc Alff <marc.alff@free.fr>
    3 people authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    f30ab92 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

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

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    6fdf797 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be1f43c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0e8d7a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    84d4270 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Configuration menu
    Copy the full SHA
    ff2447d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95d039c View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    24a523c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1863fe7 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

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

Commits on Nov 13, 2024

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