Skip to content

Conversation

@comandeo-mongo
Copy link
Contributor

@comandeo-mongo comandeo-mongo commented Jan 13, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 13, 2026 10:40
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner January 13, 2026 10:40
@comandeo-mongo comandeo-mongo requested a review from jamis January 13, 2026 10:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds OpenTelemetry tracing support for Atlas search index operations and enables the corresponding test suite.

Changes:

  • Enables atlas_search.yml OpenTelemetry tests by removing them from the skip list
  • Adds OpenTelemetry tracing to create_many, drop_one, and update_one operations in the SearchIndex::View class
  • Refactors create_one to conditionally include the name parameter only when provided

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
spec/spec_tests/open_telemetry_spec.rb Removes 'atlas_search.yml' from SKIPPED_OTEL_TESTS to enable OpenTelemetry test coverage for search index operations
lib/mongo/search_index/view.rb Adds tracer delegation and wraps create_many, drop_one, and update_one operations with OpenTelemetry tracing; refactors create_one to only include name when not nil

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@jamis jamis left a comment

Choose a reason for hiding this comment

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

Approved, just with a question about the removal of atlas_search.yml from the otel specs.

base = "#{CURRENT_PATH}/spec_tests/data/open_telemetry"
OTEL_UNIFIED_TESTS = Dir.glob("#{base}/**/*.yml").sort
SKIPPED_OTEL_TESTS = [
'bulk_write.yml', 'map_reduce.yml', 'atlas_search.yml'
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this intentional? Given that you're adding tracing support for the atlas indexes here, should these tests remain part of the otel specs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The new bulk_write is not yet implemented in the driver; same for map_reduce.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh! My bad, I was reading that backward. I missed that these were skipped tests, and you were thus enabling atlas search tests. 👍 LGTM!

@comandeo-mongo comandeo-mongo merged commit 60c1e68 into mongodb:master Jan 13, 2026
173 of 174 checks passed
@comandeo-mongo comandeo-mongo deleted the 3723-otel-for-atlas branch January 13, 2026 16:22
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.

2 participants