Skip to content

Commit 1058416

Browse files
committed
Add support for OpenTelemetry tracing via OTLP
This allows using the GRPC endpoint of an OTLP exporter to export span-based telemetry data directly from conmon-rs. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
1 parent 36b55d1 commit 1058416

13 files changed

+774
-25
lines changed

.github/install-deps

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
set -euo pipefail
33

44
sudo apt-get update
5-
sudo apt-get install capnproto runc
5+
sudo apt-get install capnproto runc protobuf-compiler

.github/workflows/cross.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ on:
55
branches:
66
- main
77
env:
8-
CROSS_VERSION: v0.2.4
98
CARGO_TERM_COLOR: always
10-
ACTION_MSRV_TOOLCHAIN: 1.58.1
9+
TRIPLE: unknown-linux-gnu
1110
jobs:
1211
build:
1312
strategy:
@@ -31,18 +30,11 @@ jobs:
3130
~/.cargo/git
3231
target
3332
key: ${{ runner.os }}-cross-${{matrix.arch}}-${{ hashFiles('**/Cargo.lock') }}
34-
- name: Select Toolchain
35-
uses: actions-rs/toolchain@v1
36-
with:
37-
toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }}
38-
default: true
39-
override: true
40-
components: rustfmt
4133
- name: Install cross-rs
4234
run: |
43-
curl -sSfL --retry 5 --retry-delay 3 \
44-
"https://github.com/cross-rs/cross/releases/download/$CROSS_VERSION/cross-x86_64-unknown-linux-gnu.tar.gz" \
45-
-o- | tar xfz - -C /usr/local/bin
35+
cargo install cross --git https://github.com/cross-rs/cross
4636
cross --version
37+
- name: Ensure the latest base image
38+
run: docker pull ghcr.io/cross-rs/${{matrix.arch}}-$TRIPLE:main
4739
- name: Build for ${{matrix.arch}}
48-
run: cross build --target ${{matrix.arch}}-unknown-linux-gnu
40+
run: cross build -v --target ${{matrix.arch}}-$TRIPLE

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ linters-settings:
100100
varnamelen:
101101
min-name-length: 1
102102
cyclop:
103-
max-complexity: 15
103+
max-complexity: 20
104104
gocognit:
105105
min-complexity: 30
106106
nestif:

0 commit comments

Comments
 (0)