Skip to content

fix(opentelemetry): resolve circular imports (#9929) #27034

fix(opentelemetry): resolve circular imports (#9929)

fix(opentelemetry): resolve circular imports (#9929) #27034

name: encoders-profile
on:
push:
branches:
- main
pull_request:
paths:
- 'ddtrace/internal/_encoding.pyx'
- 'scripts/profiles/encoders/**'
- '.github/workflows/encoders-profile.yml'
jobs:
encoders-profile:
runs-on: ubuntu-latest
env:
PREFIX: ${{ github.workspace }}/prefix
defaults:
run:
working-directory: ddtrace
steps:
- uses: actions/checkout@v4
with:
path: ddtrace
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup
run: |
bash scripts/profiles/encoders/setup.sh ${PREFIX}
- name: Run
run: |
bash scripts/profiles/encoders/run.sh ${PREFIX}
for a in `ls ${PREFIX}/artifacts`
do
sed -i 's|${{ github.workspace }}/ddtrace/||g' ${PREFIX}/artifacts/$a
done
- uses: actions/upload-artifact@v4
with:
name: encoders-profile
path: ${{ github.workspace }}/prefix/artifacts