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

Sync upstream #12

Draft
wants to merge 151 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
bdc2048
Improve ets queries performance
albertored Sep 4, 2023
44a6484
Update instrument name regex as per specs version 1.2.5
albertored Sep 17, 2023
a5f1d52
Merge pull request #627 from albertored/instrument-name-validation
Sep 17, 2023
0bdac8e
Add advisory_params option to instruments
albertored Sep 19, 2023
3b406dc
Validate advisory parameters
albertored Sep 19, 2023
d43a1f5
Use explicit_histogram_buckets if not configured in view
albertored Sep 19, 2023
34e8271
Add test about histogram aggregation option
albertored Sep 23, 2023
046d97c
fix
albertored Sep 23, 2023
119ab2b
typo
albertored Oct 2, 2023
5e48148
Rename boundaries to explicit_bucket_boundaries
albertored Oct 2, 2023
8c09768
Add Changelog
albertored Oct 2, 2023
73ac37f
Update apps/opentelemetry_experimental/src/otel_aggregation_last_valu…
albertored Oct 2, 2023
e4d4d3d
Fix flaky test
albertored Oct 2, 2023
623a1fe
Merge pull request #628 from albertored/advisory-parameters
Oct 2, 2023
0806073
Merge branch 'main' into flaky-test
Oct 2, 2023
46e690c
Merge pull request #630 from albertored/flaky-test
Oct 2, 2023
4af6e9e
Merge branch 'main' into metrics-query-performance
Oct 2, 2023
0a4f0f2
fix
albertored Oct 2, 2023
bfa5a52
Merge pull request #623 from albertored/metrics-query-performance
Oct 2, 2023
f9cda55
Allow wildcard for view instrument name
albertored Sep 5, 2023
8149dd7
remove some dialyzer ignores
albertored Sep 20, 2023
710de34
Fix type specs
albertored Oct 3, 2023
abe5fa0
Update changelog
albertored Oct 3, 2023
2c45b1b
Merge pull request #624 from albertored/wildcard-view
Oct 5, 2023
cc2e4a4
Fix transmitted time units for logs
filmor Oct 14, 2023
363d277
Merge pull request #640 from filmor/patch-1
bryannaegele Oct 17, 2023
d3ab7c1
fix(otel_metrics): use `opentelemetry:timestamp/0` (native unit monot…
SergeTupchiy Oct 24, 2023
b51f206
Merge pull request #644 from SergeTupchiy/fix-metrics-timestamp
Oct 28, 2023
c00cffe
fix(otel_batch_processor): don't divide `max_queue_size` by word-size
SergeTupchiy Oct 10, 2023
22f3417
fix(otel_batch_processor): start check_table_size timeouts
SergeTupchiy Oct 17, 2023
0fb4e6c
Merge pull request #635 from SergeTupchiy/fix-batch-processor-max-que…
bryannaegele Oct 29, 2023
3b24398
fix(otel_processor): wait for runner process termination
SergeTupchiy Oct 18, 2023
0ec0e86
Merge pull request #641 from SergeTupchiy/fix-processor-kill-runner
bryannaegele Oct 29, 2023
96ef35d
attributes optional in counter.add and histo.record function
albertored Oct 3, 2023
4027fc0
counter.add and histo.record should accept only positive numbers
albertored Oct 3, 2023
0e5ae10
Changelog
albertored Oct 3, 2023
9e02f4b
Update changelog
albertored Nov 5, 2023
44bc2a1
No more needed to check for pos numbers in sum aggregation
albertored Nov 5, 2023
d4d5c21
create unique processor name in otel_tracer_server
tsloughter Nov 6, 2023
63ce53e
Add renovate.json
renovate[bot] Nov 9, 2023
ed77591
fix(otel_otlp_metrics): convert histogram timestamps and fix 'unix_na…
SergeTupchiy Nov 10, 2023
86a3221
Update renovate.json
bryannaegele Nov 15, 2023
c4caa16
Merge pull request #647 from open-telemetry/renovate/configure
bryannaegele Nov 15, 2023
b7eccc5
chore(deps): update dependency cmark to ~> 0.10
renovate[bot] Nov 15, 2023
837a5e9
Merge pull request #649 from open-telemetry/renovate/cmark-0.x
bryannaegele Nov 16, 2023
8f801eb
chore(deps): update actions/cache action to v3
renovate[bot] Nov 16, 2023
1a6fa1a
Merge pull request #653 from open-telemetry/renovate/actions-cache-3.x
bryannaegele Nov 16, 2023
7579d5f
chore(deps): update actions/checkout action to v4
renovate[bot] Nov 16, 2023
c3d9b45
Merge pull request #654 from open-telemetry/renovate/actions-checkout…
bryannaegele Nov 16, 2023
fde471b
chore(deps): update dependency ex_doc to == 0.30.9
renovate[bot] Nov 16, 2023
3abf69f
Update mix.exs
bryannaegele Nov 16, 2023
2f1a5df
Merge pull request #650 from open-telemetry/renovate/ex_doc-0.x
bryannaegele Nov 16, 2023
7b36247
chore(deps): update actions/setup-python action to v4
renovate[bot] Nov 16, 2023
f22876c
Merge pull request #655 from open-telemetry/renovate/actions-setup-py…
bryannaegele Nov 16, 2023
ba8d1c7
chore(deps): update mikepenz/action-junit-report action to v4
renovate[bot] Nov 16, 2023
a258bbc
Merge pull request #657 from open-telemetry/renovate/mikepenz-action-…
bryannaegele Nov 17, 2023
e878a9a
Merge branch 'main' into limit-processor-pterm
tsloughter Nov 18, 2023
f0021c8
Merge pull request #646 from tsloughter/limit-processor-pterm
tsloughter Nov 18, 2023
25e6fec
Set specific otp versions
bryannaegele Nov 17, 2023
7384a31
Update erlang.yml
bryannaegele Nov 17, 2023
a899ca2
Update elixir.yml
bryannaegele Nov 17, 2023
d024b6c
Update elixir.yml
bryannaegele Nov 17, 2023
41d3919
Update elixir.yml
bryannaegele Nov 17, 2023
50406bc
Update mix.exs
bryannaegele Nov 17, 2023
64053a3
Update api cover deps
bryannaegele Nov 17, 2023
afe55cd
Merge pull request #658 from open-telemetry/otp-workflow-versions
bryannaegele Nov 19, 2023
070528a
bump grpcbox dep to 0.17.0
tsloughter Nov 18, 2023
e3cd687
bump grpcbox to 0.17.1
tsloughter Nov 18, 2023
ee9abca
Merge pull request #659 from tsloughter/bump-grpcbox
bryannaegele Nov 19, 2023
feb73c4
chore(deps): update dependency ubuntu to v22
renovate[bot] Nov 19, 2023
1ea1901
Update w3c_interop.yml
bryannaegele Nov 19, 2023
41c793c
Merge pull request #656 from open-telemetry/renovate/ubuntu-22.x
bryannaegele Nov 19, 2023
02786fa
Merge branch 'main' into fix-metrics-timestamp-follow-up-fix
tsloughter Nov 19, 2023
a79a39f
Merge pull request #648 from SergeTupchiy/fix-metrics-timestamp-follo…
tsloughter Nov 19, 2023
b94ff50
Merge branch 'main' into spec-compliance
tsloughter Nov 19, 2023
0bf88c2
Add User-Agent header to exporter requests
albertored Aug 20, 2023
b5764e6
Merge pull request #605 from albertored/exporter-user-agent
tsloughter Nov 20, 2023
78911eb
Merge branch 'main' into spec-compliance
tsloughter Nov 20, 2023
c48e16e
update exporter proto instructions
tsloughter Nov 19, 2023
ca1191c
update collector to 0.89 and fix jaeger collector config for it
tsloughter Nov 19, 2023
45e4221
bump proto to 1.0.0 (no generated code changes)
tsloughter Nov 19, 2023
311948a
Merge pull request #660 from tsloughter/collector-0.89
bryannaegele Nov 20, 2023
750e47a
Merge branch 'main' into spec-compliance
tsloughter Nov 21, 2023
cbce85f
Merge pull request #632 from albertored/spec-compliance
tsloughter Nov 22, 2023
5225d4b
chore(deps): update otel/opentelemetry-collector-contrib docker tag t…
renovate[bot] Dec 2, 2023
b593951
Merge pull request #663 from open-telemetry/renovate/otel-opentelemet…
bryannaegele Dec 3, 2023
11dbe91
Update labeler.yml
bryannaegele Dec 13, 2023
80003de
Merge pull request #667 from open-telemetry/bryannaegele-patch-1
bryannaegele Dec 15, 2023
f148a41
chore(deps): update dependency ex_doc to ~> 0.31
renovate[bot] Dec 15, 2023
577fa24
Merge pull request #665 from open-telemetry/renovate/ex_doc-0.x
ferd Dec 15, 2023
d853cfa
chore(deps): update otel/opentelemetry-collector-contrib docker tag t…
renovate[bot] Dec 15, 2023
6f2d7db
Merge pull request #666 from open-telemetry/renovate/otel-opentelemet…
ferd Dec 15, 2023
0d2810e
chore(deps): update actions/setup-python action to v5
renovate[bot] Dec 15, 2023
977dcb1
Merge pull request #664 from open-telemetry/renovate/actions-setup-py…
ferd Dec 15, 2023
da4de01
chore(deps): update otel/opentelemetry-collector-contrib docker tag t…
renovate[bot] Jan 10, 2024
26aa299
Merge pull request #672 from open-telemetry/renovate/otel-opentelemet…
bryannaegele Jan 17, 2024
05a7704
chore(deps): update actions/cache action to v4
renovate[bot] Jan 17, 2024
99e3eec
Merge pull request #673 from open-telemetry/renovate/actions-cache-4.x
bryannaegele Jan 17, 2024
d5fe7e0
Add docs to *_processor modules
whatyouhide Jan 22, 2024
ce432bb
Document opentelemetry:get_tracer/* functions
whatyouhide Jan 22, 2024
59fc3b3
Address review comments
whatyouhide Jan 22, 2024
b5977f3
chore(deps): update otel/opentelemetry-collector-contrib docker tag t…
renovate[bot] Jan 25, 2024
a31d0e5
Merge pull request #678 from open-telemetry/renovate/otel-opentelemet…
ferd Jan 27, 2024
1d83b5f
chore(deps): update codecov/codecov-action action to v4
renovate[bot] Jan 31, 2024
3666088
Merge pull request #679 from open-telemetry/renovate/codecov-codecov-…
ferd Feb 1, 2024
bd63da0
start of using generation to lock writes during each reader checkpoint
tsloughter Jan 22, 2024
da72cb7
add test of cumulative async attribute removal
tsloughter Jan 27, 2024
35b0132
drop metrics for observables that aren't recorded in a cycle
tsloughter Jan 28, 2024
62a7ee8
use forget element on view_aggregation to know to use Generation
tsloughter Jan 29, 2024
fcf3f54
sum collect: remove unneeded variable matches in match spec
tsloughter Jan 29, 2024
a35a43b
move metric checkpointing out of reader in case aggregation doens't n…
tsloughter Jan 29, 2024
1ec5e42
take collection start times in aggregation functions
tsloughter Jan 30, 2024
a63959d
sum agg: remove unused last_start_time from sum aggregation
tsloughter Jan 31, 2024
ab2b089
explicit histogram: update to call checkpoint in collect
tsloughter Jan 31, 2024
43cb396
update last_value aggregation to use generation
tsloughter Feb 1, 2024
01e9933
generation based metric deltas: support restart of reader
tsloughter Feb 1, 2024
f442fd3
update rest of metric tests for deltas being dropped between collections
tsloughter Feb 1, 2024
728a42b
update eqwalizer ignores
tsloughter Feb 1, 2024
f683ce5
eqwalizer: fix reason for ignoring error on state record in reader
tsloughter Feb 2, 2024
b5efa6c
delete previous generations metrics
tsloughter Feb 2, 2024
0cf3a8a
ets:lookup_element/4 only available in 26+ so wrap in macro
tsloughter Feb 3, 2024
9d5458e
cleanup dialyzer and eqwalizer issues
tsloughter Feb 3, 2024
19ea063
github ci: remove force mix install of rebar3
tsloughter Feb 3, 2024
63a75e1
expand sync_delta_histogram test to match supplementary guide
tsloughter Feb 3, 2024
bc62f5d
Add docs to half of the functions in otel_span
whatyouhide Feb 3, 2024
ecef0f4
support for cumulative explicit histograms
tsloughter Feb 4, 2024
196a787
Update apps/opentelemetry_api/src/otel_span.erl
whatyouhide Feb 4, 2024
3604220
Update apps/opentelemetry_api/src/otel_span.erl
whatyouhide Feb 4, 2024
a7b5a2f
Add docs to otel_ctx and otel_baggage
whatyouhide Feb 4, 2024
4dd6c87
Merge branch 'main' into al/get-tracer-docs
tsloughter Feb 5, 2024
bd659d7
Fix @ends
whatyouhide Feb 5, 2024
ce08c3c
Merge branch 'main' into al/span-docs
tsloughter Feb 6, 2024
a53ff15
Merge pull request #675 from whatyouhide/al/span-docs
tsloughter Feb 6, 2024
0d357ef
Merge branch 'main' into al/get-tracer-docs
tsloughter Feb 6, 2024
0ca9af1
Merge pull request #676 from whatyouhide/al/get-tracer-docs
tsloughter Feb 6, 2024
2d37fbc
Merge branch 'main' into al/docs-baggage-ctx
tsloughter Feb 6, 2024
9d302f6
Merge pull request #681 from whatyouhide/al/docs-baggage-ctx
tsloughter Feb 6, 2024
906af34
Merge branch 'main' into al/some-otel-span-docs
tsloughter Feb 6, 2024
3287d22
Merge pull request #680 from whatyouhide/al/some-otel-span-docs
tsloughter Feb 6, 2024
bf735f7
Add docs to otel_attributes
whatyouhide Feb 6, 2024
ff3134c
Apply suggestions from code review
whatyouhide Feb 7, 2024
04cd147
Merge pull request #686 from whatyouhide/al/otel-attributes-docs
tsloughter Feb 7, 2024
1aa7853
Merge branch 'main' into delta-checkpoint-generation
tsloughter Feb 7, 2024
13e64d5
Merge pull request #677 from tsloughter/delta-checkpoint-generation
tsloughter Feb 7, 2024
868962f
Update otel/opentelemetry-collector-contrib Docker tag to v0.94.0
renovate[bot] Feb 8, 2024
f6db9a9
Merge pull request #690 from open-telemetry/renovate/otel-opentelemet…
ferd Feb 8, 2024
15c1f7c
handle OTP-27 changing -0.0 and +0.0 to not be =:= by using == on 0.0
tsloughter Feb 9, 2024
8d22743
just match on +0.0 in an assertMatch to get rid of OTP-27 warning
tsloughter Feb 9, 2024
b746f08
update variable/record key ViewAggregation to Stream to match spec
tsloughter Feb 9, 2024
82c090f
Merge pull request #691 from tsloughter/metric-streams
tsloughter Feb 10, 2024
9d331b1
Merge remote-tracking branch 'upstream/main' into sync-upstream
SergeTupchiy Feb 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:

jobs:
format:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '25.0'
elixir-version: '1.13.4'
otp-version: '26.1.2'
elixir-version: '1.15.7'
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand All @@ -34,22 +34,24 @@ jobs:
name: Test SDK on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['25.0.3', '24.1.2']
elixir_version: ['1.14', '1.13.4']
rebar3_version: ['3.20.0']
otp_version: ['26.1.2', '24.3.4.14']
elixir_version: ['1.15.7', '1.12.3']
rebar3_version: ['3.22.1']
os: [ubuntu-20.04]
exclude:
- elixir_version: "1.12.3"
- otp_version: "26.1.2"
env:
OTP_VERSION: ${{ matrix.otp_version }}
ELIXIR_VERSION: ${{ matrix.elixir_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
- run: mix local.rebar --force rebar3 /home/runner/work/_temp/.setup-beam/rebar3/bin/rebar3
- name: Compile
run: rebar3 as test compile
- name: ExUnit
Expand All @@ -60,25 +62,28 @@ jobs:
name: Test API on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['25.0.3', '24.1.2']
elixir_version: ['1.14', '1.13.4']
rebar3_version: ['3.20.0']
otp_version: ['26.1.2', '24.3.4.14']
elixir_version: ['1.15.7', '1.12.3']
rebar3_version: ['3.22.1']
os: [ubuntu-20.04]
exclude:
- elixir_version: "1.12.3"
- otp_version: "26.1.2"
env:
OTP_VERSION: ${{ matrix.otp_version }}
ELIXIR_VERSION: ${{ matrix.elixir_version }}
defaults:
run:
working-directory: apps/opentelemetry_api/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand All @@ -87,12 +92,11 @@ jobs:
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-v4-${{ hashFiles(format('{0}{1}', github.workspace, '/apps/opentelemetry_api/mix.lock')) }}
restore-keys: |
${{ runner.os }}-build-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-
- run: mix local.rebar --force rebar3 /home/runner/work/_temp/.setup-beam/rebar3/bin/rebar3
- run: mix deps.get
name: Deps
- run: mix test --cover
name: ExUnit
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: apps/opentelemetry_api/coverage.xml
Expand All @@ -104,8 +108,9 @@ jobs:
name: Dialyze on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['25.0']
elixir_version: ['1.14']
otp_version: ['26.1.2']
elixir_version: ['1.15.7']
rebar_version: ['3.22.1']
os: [ubuntu-20.04]
env:
OTP_VERSION: ${{ matrix.otp_version }}
Expand All @@ -114,13 +119,13 @@ jobs:
run:
working-directory: apps/opentelemetry_api/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.0', '25.0.3', '24.1.2']
otp_version: ['26.1.2', '25.3.2.7', '24.3.4.14']
rebar3_version: ['3.22.1']
os: [ubuntu-20.04]
include:
- otp_version: '23.3'
- otp_version: '23.3.4.19'
rebar3_version: '3.17.0'
os: ubuntu-20.04
env:
OTP_VERSION: ${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run Collector
run: docker-compose up -d
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand All @@ -52,7 +52,7 @@ jobs:
run: rebar3 ct --cover

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/_build/test/logs/*/junit_report.xml'
Expand All @@ -62,25 +62,25 @@ jobs:
- name: Covertool
if: ${{ always() }}
run: rebar3 covertool generate
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: _build/test/covertool/opentelemetry.covertool.xml
env_vars: OTP_VERSION
flags: sdk,erlang
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: _build/test/covertool/opentelemetry_api.covertool.xml
env_vars: OTP_VERSION
flags: api,erlang
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: _build/test/covertool/opentelemetry_exporter.covertool.xml
env_vars: OTP_VERSION
flags: exporter,erlang
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: ${{ always() }}
with:
file: _build/test/covertool/opentelemetry_zipkin.covertool.xml
Expand All @@ -91,17 +91,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.0']
otp_version: ['26.1.2']
rebar3_version: ['3.22.1']
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand All @@ -119,17 +119,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['26.0']
otp_version: ['26.1.2']
rebar3_version: ['3.22.1']
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
version-type: 'strict'
- uses: actions/cache@v2
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
18 changes: 9 additions & 9 deletions .github/workflows/w3c_interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:
jobs:
interop_tests:
name: Run W3C Trace Context Interop Tests
runs-on: ubuntu-20.04
env:
OTP_VERSION:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '26.0'
- uses: actions/cache@v2
otp-version: '26.1.2'
version-type: strict
rebar3-version: '3.22.1'
- uses: actions/cache@v4
name: Cache
with:
path: |
Expand All @@ -31,14 +31,14 @@ jobs:
- name: Compile
run: rebar3 as interop compile

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
repository: 'w3c/trace-context'
path: 'trace-context'
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.6
python-version: 3.12
architecture: x64
- run: pip install aiohttp
- run: |
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Attributes module `otel_attributes` moved to
API](https://github.com/open-telemetry/opentelemetry-erlang/pull/618)

### Fixes

- [Fix leak of atoms/persistent terms by creating unique processor name in `otel_tracer_server`](https://github.com/open-telemetry/opentelemetry-erlang/pull/646)

## Experimental API

### Changes

- [Allow to create observable instruments without passing callback arguments](https://github.com/open-telemetry/opentelemetry-erlang/pull/604)
- [Allow to create observable instruments without passing callback
arguments](https://github.com/open-telemetry/opentelemetry-erlang/pull/604)
- [Allow to give `advisory_params` to instrument creation functions](https://github.com/open-telemetry/opentelemetry-erlang/pull/628)
- [Attributes are optional in Counter.add(), UpDownCounter.add() and Histo.record()](https://github.com/open-telemetry/opentelemetry-erlang/pull/632)

## Experimental SDK

### Added

- [Add `instrument_unit` to view criteria](https://github.com/open-telemetry/opentelemetry-erlang/pull/604)
- [Validate instrument name](https://github.com/open-telemetry/opentelemetry-erlang/pull/604)
- [Handle `explict_bucket_boundaries` advisory parameter](https://github.com/open-telemetry/opentelemetry-erlang/pull/628)
- [Rename `boundaries` to `explict_bucket_boundaries` in histogram explicit aggregation options](https://github.com/open-telemetry/opentelemetry-erlang/pull/628)
- [Allow creating wildcard views](https://github.com/open-telemetry/opentelemetry-erlang/pull/624)

### Changes

Expand All @@ -46,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [Correctly record histogram values greater than last boundary](https://github.com/open-telemetry/opentelemetry-erlang/pull/614)
- [Readers should use a default cumulative temporality if not specified](https://github.com/open-telemetry/opentelemetry-erlang/pull/613)
- [Check for positive data values in counters and histograms](https://github.com/open-telemetry/opentelemetry-erlang/pull/632)

## SDK 1.3.1 - 2023-08-15

Expand Down
18 changes: 12 additions & 6 deletions apps/opentelemetry/src/otel_batch_processor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% @doc The Batch Span Processor implements the `otel_span_processor'
%% behaviour. It stores finished Spans in a ETS table buffer and exports
%% @doc The Batch Span Processor implements the {@link otel_span_processor}
%% behaviour.
%%
%% It stores finished Spans in a ETS table buffer and exports
%% them on an interval or when the table reaches a maximum size.
%%
%% Timeouts:
%% exporting_timeout_ms: How long to let the exports run before killing.
%% check_table_size_ms: Timeout to check the size of the export table.
%% scheduled_delay_ms: How often to trigger running the exporters.
%% You can configure these timeouts:
%%
%% <ul>
%% <li>`exporting_timeout_ms': how long to let the exports run before killing.</li>
%% <li>`check_table_size_ms': timeout to check the size of the export table.</li>
%% <li>`scheduled_delay_ms': how often to trigger running the exporters.</li>
%% </ul>
%%
%% The size limit of the current table where finished spans are stored can
%% be configured with the `max_queue_size' option.
Expand Down Expand Up @@ -76,6 +81,7 @@ start_link(#{name := Name} = Config) ->
Err
end.

%% @private
-spec on_start(otel_ctx:t(), opentelemetry:span(), otel_span_processor:processor_config())
-> opentelemetry:span().
on_start(_Ctx, Span, _) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
setup(Probability) ->
IdUpperBound =
case Probability of
P when P =:= 0.0 ->
P when P == 0.0 ->
0;
P when P =:= 1.0 ->
?MAX_VALUE;
Expand Down
Loading