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

move attribute processing to otel-attribute module #620

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

tsloughter
Copy link
Member

This just cleans up some stuff that got put in otel_span because otel_attributes was in the SDK.

I checked that no lib in -contrib is calling the otel_span functions

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage is 87.09% of modified lines.

Files Changed Coverage
apps/opentelemetry_api/src/otel_attributes.erl 83.33%
apps/opentelemetry_api/src/opentelemetry.erl 100.00%
apps/opentelemetry_api/src/otel_span.erl 100.00%

📢 Thoughts on this report? Let us know!.

is_boolean(Value) orelse
is_number(Value) orelse
is_binary(Value) orelse
is_list(Value)).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might want to put both of these guard clauses in a wrapping (...) so they can be composed with others without messing with evaluation rules when andalso and orelse are called with them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

@tsloughter tsloughter force-pushed the attribute-processing branch from a4d24f0 to 6957343 Compare August 31, 2023 21:21
@tsloughter tsloughter merged commit a673c0f into open-telemetry:main Aug 31, 2023
@tsloughter tsloughter deleted the attribute-processing branch August 31, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants