-
Notifications
You must be signed in to change notification settings - Fork 193
JBAI-14524. Fix Open Telemetry attributes conversion logic #401
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
Conversation
- Update extension function for Span attributes; - Add tests to verify span attributes conversion; - Cleanup code for Open Telemetry.
...entelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/attribute/attributes.kt
Outdated
Show resolved
Hide resolved
- Fixed comments from CR; - Fix tests; - Add event body field and logic to convert them into attributes; - Add more tests for new entities.
@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. |
Qodana for JVM240 new problems were found
@@ 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 teamContact us at [email protected]
|
...entelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/attribute/attributes.kt
Outdated
Show resolved
Hide resolved
...entelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/attribute/attributes.kt
Outdated
Show resolved
Hide resolved
...entelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/attribute/attributes.kt
Outdated
Show resolved
Hide resolved
...entelemetry/src/jvmMain/kotlin/ai/koog/agents/features/opentelemetry/event/EventBodyField.kt
Show resolved
Hide resolved
c400ac5
to
ea5f177
Compare
- Convert event field to a single attribute; - Fix service name and service version; - Update tests; - Update README.md according to xthe latest changes.
ea5f177
to
d7a4dd8
Compare
Type of the change
Checklist for all pull requests
develop
as the base branchAdditional steps for pull requests adding a new feature