opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
Add additional attributes for redis.search methods create_index, search
Description
Add additional attributes for redisearch methods: redis.commands.search, create_index:
For create_index method: https://redis-py.readthedocs.io/en/stable/redismodules.html#redis.commands.search.commands.SearchCommands.create_index Attributes:
- fields - to show from which fields index was created
For search method: https://redis-py.readthedocs.io/en/stable/redismodules.html#redis.commands.search.commands.SearchCommands.search Attributes:
- query - shows query string
- total - shows number of documents returned
- xdoc{index} - shows returned documents
Type of change
Please delete options that are not relevant.
- [ ] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [ ] Added functional tests for these methods
Does This PR Require a Core Repo Change?
- [ ] No.
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
- [ ] Followed the style guidelines of this project
- [ ] Changelogs have been updated
- [ ] Unit tests have been added
- [ ] Documentation has been updated