Content-Length: 359201 | pFad | https://github.com/traceloop/openllmetry/pull/2944

D1 fix(milvus): Added New Semantic Conventions for pymilvus MilvusClient Hybrid Search by divyapathak24 · Pull Request #2944 · traceloop/openllmetry · GitHub
Skip to content

fix(milvus): Added New Semantic Conventions for pymilvus MilvusClient Hybrid Search #2944

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

Merged
merged 15 commits into from
May 16, 2025

Conversation

divyapathak24
Copy link
Contributor

@divyapathak24 divyapathak24 commented May 13, 2025

Fixes: #2937

  • I have added tests that cover my changes.
  • If adding a new instrumentation or changing an existing one, I've added screenshots from some observability platform showing the change.
  • PR name follows conventional commits format: feat(instrumentation): ... or fix(instrumentation): ....
  • (If applicable) I have updated the documentation accordingly.

Important

Added new semantic conventions for Milvus hybrid search and updated version to 0.4.9.

  • Semantic Conventions:
    • Added new attributes for Milvus hybrid search in SpanAttributes in __init__.py.
    • Fixed duplicate MILVUS_HYBRID_SEARCH_RESULT_COUNT in SpanAttributes in __init__.py.
  • Versioning:
    • Updated version to 0.4.9 in version.py and pyproject.toml.

This description was created by Ellipsis for 4372453. You can customize this summary. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed everything up to 4372453 in 1 minute and 59 seconds. Click for details.
  • Reviewed 42 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/__init__.py:205
  • Draft comment:
    The constant 'MILVUS_HYBRID_SEARCH_RESULT_COUNT' is defined twice (lines 205 and 213). Please remove or rename the duplicate to avoid ambiguity.
  • Reason this comment was not posted:
    Marked as duplicate.
2. packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/__init__.py:212
  • Draft comment:
    The constant 'MILVUS_HYBRID_SEARCH_PARTITION_NAMES' is assigned the value 'db.milvus.hybrid_search.partition_names_count'. This appears inconsistent with the naming pattern and might be a copy-paste error. Please verify if this is intentional or if it should be corrected (e.g., to 'db.milvus.hybrid_search.partition_names').
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_JD54LBJ3xMpwYMRw

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

MILVUS_HYBRID_SEARCH_OUTPUT_FIELDS_COUNT = "db.milvus.hybrid_search.output_fields_count"
MILVUS_HYBRID_SEARCH_PARTITION_NAMES_COUNT = "db.milvus.hybrid_search.partition_names_count"
MILVUS_HYBRID_SEARCH_TIMEOUT = "db.milvus.hybrid_search.timeout"
MILVUS_HYBRID_SEARCH_PARTITION_NAMES = "db.milvus.hybrid_search.partition_names_count"
Copy link
Contributor

Choose a reason for hiding this comment

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

The attribute MILVUS_HYBRID_SEARCH_PARTITION_NAMES is assigned the value db.milvus.hybrid_search.partition_names_count. This looks like a copy-paste error—likely it should use a distinct value (e.g. db.milvus.hybrid_search.partition_names).

Suggested change
MILVUS_HYBRID_SEARCH_PARTITION_NAMES = "db.milvus.hybrid_search.partition_names_count"
MILVUS_HYBRID_SEARCH_PARTITION_NAMES = "db.milvus.hybrid_search.partition_names"

divyapathak24 and others added 3 commits May 13, 2025 12:56
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
@nirga nirga force-pushed the milvus-hybrid-search-semconv branch from 25ac267 to 73c4f5f Compare May 16, 2025 10:33
@nirga nirga merged commit d7b3dcb into traceloop:main May 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Add OpenTelemetry instrumentation support for MilvusClient hybrid_search operation
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/traceloop/openllmetry/pull/2944

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy