-
Notifications
You must be signed in to change notification settings - Fork 750
feat(instrumentation): Add milvus metrics support #3013
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
base: main
Are you sure you want to change the base?
feat(instrumentation): Add milvus metrics support #3013
Conversation
61c08cc
to
6bb3121
Compare
6bb3121
to
32afce7
Compare
@@ -124,6 +125,10 @@ def test_milvus_single_vector_search(exporter, collection): | |||
assert ( | |||
span.attributes.get(SpanAttributes.MILVUS_SEARCH_RESULT_COUNT) == total_matches | |||
) | |||
metris_data = reader.get_metrics_data() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the variable name
@@ -21,6 +21,12 @@ class Meters: | |||
PINECONE_DB_USAGE_READ_UNITS = "db.pinecone.usage.read_units" | |||
PINECONE_DB_USAGE_WRITE_UNITS = "db.pinecone.usage_write_units" | |||
|
|||
MILVUS_DB_QUERY_DURATION = "db.milvus.query.duration" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to raise a new PR, if these are new semantic convention. Once it is released, you can use it here
shared_attributes, | ||
response | ||
): | ||
print(response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this.
feat(instrumentation): ...
orfix(instrumentation): ...
.