Skip to content

Commit 0f54022

Browse files
authored
Merge branch 'main' into expo-histo-aggregation-4
2 parents b2dee01 + 4a0d19f commit 0f54022

File tree

97 files changed

+3908
-558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+3908
-558
lines changed

.devcontainer/Dockerfile.conan

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright The OpenTelemetry Authors
2+
# SPDX-License-Identifier: Apache-2.0
3+
FROM ubuntu:24.04
4+
5+
RUN apt update && apt install -y \
6+
build-essential \
7+
ca-certificates \
8+
wget \
9+
cmake \
10+
git \
11+
sudo \
12+
nano \
13+
pkg-config \
14+
ninja-build \
15+
clang-format \
16+
clang-tidy \
17+
autoconf \
18+
automake \
19+
libtool \
20+
python3-pip
21+
22+
RUN pip install conan --break-system-packages
23+
24+
ARG USER_UID=1000
25+
ARG USER_GID=1000
26+
ARG USER_NAME=devuser
27+
ENV USER_NAME=devuser
28+
ENV USER_UID=${USER_UID}
29+
ENV USER_GID=${USER_GID}
30+
ENV INSTALL_PACKAGES=
31+
ENV IS_CONTAINER_BUILD=true
32+
33+
COPY ./.devcontainer/customize_container.sh /tmp/opentelemetry_cpp/devcontainer/customize_container.sh
34+
RUN /tmp/opentelemetry_cpp/devcontainer/customize_container.sh
35+
USER devuser
36+
37+
RUN conan profile detect --force
38+
39+
ARG CONAN_FILE=conanfile_stable.txt
40+
ARG CONAN_BUILD_TYPE=Debug
41+
ARG CXX_STANDARD=17
42+
WORKDIR /home/devuser/conan
43+
COPY ./install/conan/ .
44+
45+
RUN conan install ./${CONAN_FILE} --build=missing -s build_type=${CONAN_BUILD_TYPE}
46+
ENV CMAKE_TOOLCHAIN_FILE=/home/devuser/conan/build/${CONAN_BUILD_TYPE}/generators/conan_toolchain.cmake
47+
ENV CXX_STANDARD=${CXX_STANDARD}
48+
ENV BUILD_TYPE=${CONAN_BUILD_TYPE}
49+
ENV CONAN_FILE=${CONAN_FILE}
50+
51+
WORKDIR /workspaces/opentelemetry-cpp
52+
53+
ENTRYPOINT []
54+
55+
CMD ["/bin/bash"]

.devcontainer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ environment variables (for evaluation in `devcontainer.json`).
1212

1313
* **abseil-cpp version:**
1414
This is the version of abseil-cpp that will be used to build protobuf, gRPC,
15-
and opentelemetry-cpp (when WITH_ABSEIL is set).
15+
and opentelemetry-cpp.
1616
* Docker ARG:
1717
`ABSEIL_CPP_VERSION`
1818
* Host Environment Variable:

.github/workflows/benchmark.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
name: Run OpenTelemetry-cpp benchmarks
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
submodules: 'recursive'
1919
- name: Mount Bazel Cache
20-
uses: actions/cache@v4
20+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2121
env:
2222
cache-name: bazel_cache
2323
with:
@@ -35,7 +35,7 @@ jobs:
3535
mv api-benchmark_result.json benchmarks
3636
mv sdk-benchmark_result.json benchmarks
3737
mv exporters-benchmark_result.json benchmarks
38-
- uses: actions/upload-artifact@v4
38+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3939
with:
4040
name: benchmark_results
4141
path: benchmarks
@@ -47,8 +47,8 @@ jobs:
4747
name: Store benchmark result
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v4
51-
- uses: actions/download-artifact@master
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
- uses: actions/download-artifact@2a5974104b6d5dbdb2f9468a3e54da3bdd241578 # v4.2.1
5252
with:
5353
name: benchmark_results
5454
path: benchmarks
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
cat benchmarks/*
5959
- name: Push benchmark result
60-
uses: benchmark-action/github-action-benchmark@v1
60+
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
6161
with:
6262
name: OpenTelemetry-cpp ${{ matrix.components }} Benchmark
6363
tool: 'googlecpp'

0 commit comments

Comments
 (0)