Skip to content

Conversation

sdubov
Copy link
Contributor

@sdubov sdubov commented Jul 6, 2025

  • Update extension function for Span attributes;
  • Add tests to verify span attributes conversion;
  • Cleanup code for Open Telemetry.

Type of the change

  • New feature
  • Bug fix
  • Documentation fix

Checklist for all pull requests

  • The pull request has a description of the proposed change
  • I read the Contributing Guidelines before opening the pull request
  • The pull request uses develop as the base branch
  • Tests for the changes have been added
  • All new and existing tests passed
Additional steps for pull requests adding a new feature
  • An issue describing the proposed change exists
  • The pull request includes a link to the issue
  • The change was discussed and approved in the issue
  • Docs have been added / updated

- Update extension function for Span attributes;
- Add tests to verify span attributes conversion;
- Cleanup code for Open Telemetry.
@sdubov sdubov requested review from sproshev and EugeneTheDev July 6, 2025 21:04
@sdubov sdubov self-assigned this Jul 6, 2025
@sdubov sdubov added the enhancement New feature or request label Jul 6, 2025
- Fixed comments from CR;
- Fix tests;
- Add event body field and logic to convert them into attributes;
- Add more tests for new entities.
@sdubov
Copy link
Contributor Author

sdubov commented Jul 7, 2025

@sproshev, @EugeneTheDev , thank you for your review. I've found that some tests for OT start to failed after my change. I've made a couple of changes in spans that are we create to fix the problem. The issue is related to event body fields. According to Semantic convention, body fields should have a defined structure. However, this is not supported inside SDK. I've introduced the support inside the feature and add a simple conversion from event body field into an attribute. All body fields are added as attributes for now.

Copy link

github-actions bot commented Jul 7, 2025

Qodana for JVM

240 new problems were found

Inspection name Severity Problems
Check Kotlin and Java source code coverage 🔶 Warning 214
Missing KDoc for public API declaration 🔶 Warning 17
Unused import directive 🔶 Warning 5
Vulnerable imported dependency 🔶 Warning 4
@@ Code coverage @@
+ 59% total lines covered
6588 lines analyzed, 3914 lines covered
# Calculated according to the filters of your coverage tool

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@sdubov sdubov requested a review from sproshev July 7, 2025 14:01
@sdubov sdubov force-pushed the sdubov/JBAI-14524-fixes-types branch from c400ac5 to ea5f177 Compare July 7, 2025 18:03
@sdubov sdubov requested a review from sproshev July 7, 2025 18:09
- Convert event field to a single attribute;
- Fix service name and service version;
- Update tests;
- Update README.md according to xthe latest changes.
@sdubov sdubov merged commit f39a0b6 into develop Jul 8, 2025
5 checks passed
@sdubov sdubov deleted the sdubov/JBAI-14524-fixes-types branch July 8, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants