-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove advisor low-cardinality keys that aren't actually exposed. #1660
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
@jonatan-ivanov can you review this please? |
Line 38 in efc3923
But it is called Lines 63 to 71 in efc3923
It seems Lines 34 to 40 in efc3923
Though metrics are only created when you trigger the operation that records the observation, can it happen that your use-case did not trigger it? |
It's been awhile since I created this and thought about it, but.. It's not that I don't see the
Neither of the two keys I mentioned are in this response. Since they are documented as low-cardinality keys, I'd expect them to be there. And yes, I see from the code you showed where Also, this most recent attempt was done moments ago using a local build of the very latest snapshot code (to take advantage of the fix for #1738 / #1742 ). |
There's probably some error in the code if those keys are not populated, good catch! The reason for having those low cardinality keys is to enable the integration of Spring AI with observability/evaluation platforms following the OpenTelemetry Semantic Conventions for Generative AI Systems. I'll work soon on a sample app demonstrating integrations with some of those platforms with the hope to clarify the usage and review the current observability setup in Spring AI. The |
…bservations Add AI_OPERATION_TYPE and AI_PROVIDER as low cardinality key names to advisor observations. The advisor AI_OPERATION_TYPE is set to 'framework' and the AI_PROVIDER to 'spring_ai'. Resolves spring-projects#1660
@habuma Closed this PR as the underlying issue is fixed now - both the keys are updated for the Advisor observation. |
…bservations Add AI_OPERATION_TYPE and AI_PROVIDER as low cardinality key names to advisor observations. The advisor AI_OPERATION_TYPE is set to 'framework' and the AI_PROVIDER to 'spring_ai'. Resolves spring-projects#1660 Signed-off-by: leijendary <[email protected]>
…bservations Add AI_OPERATION_TYPE and AI_PROVIDER as low cardinality key names to advisor observations. The advisor AI_OPERATION_TYPE is set to 'framework' and the AI_PROVIDER to 'spring_ai'. Resolves spring-projects#1660 Signed-off-by: leijendary <[email protected]>
I noticed that
gen_ai.operation.name
andgen_ai.system
are shown as low-cardinality keys forspring.ai.advisor
, but neither of those appear in the metrics. Moreover, I confirmed that are aren't included as low-cardinality keys in eitherDefaultAdvisorObservationConvention
orAdvisorObservationDocumentation
. So this PR removes them from the documentation.