Skip to content
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

docs: Fix doc for sidekiq options #825

Merged
merged 8 commits into from
Feb 8, 2024
Merged

docs: Fix doc for sidekiq options #825

merged 8 commits into from
Feb 8, 2024

Conversation

kohbis
Copy link
Contributor

@kohbis kohbis commented Jan 18, 2024

There are omissions to correct on #824

@kohbis kohbis requested review from a team January 18, 2024 14:43
@kohbis kohbis changed the title fix doc for sidekiq options Fix doc for sidekiq options Jan 18, 2024
@@ -38,6 +38,10 @@ class Instrumentation < OpenTelemetry::Instrumentation::Base
# - `:queue` - the span names will be set to '<destination / queue name> <operation>'.
# - `:job_class` - the span names will be set to '<job class name> <operation>'.
option :span_naming, default: :queue, validate: %I[job_class queue]
# @!macro
# @!method $1
# @instrumentation_option_default `:$2`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why using :$2 here but in :propagation_style changed from :$2 to $2?
Should line 33 also need to change to $2 if that's the correct format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Somehow I thought it would be easier to see the symbols if they are code blocks.
But it's not my strong request, so it's ok that unified them one way or the other 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see, it's for yardoc; my bad. It looks good, thanks

Copy link
Contributor

@xuan-cao-swi xuan-cao-swi Jan 19, 2024

Choose a reason for hiding this comment

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

I don't have any other preference about illustration of boolean and nil value (i.e. could be string, code block or darken like **$2**); unless others suggest difference.

@arielvalentin arielvalentin changed the title Fix doc for sidekiq options docs: Fix doc for sidekiq options Jan 18, 2024
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Thank you! This taught me something new about YARD!

@kohbis
Copy link
Contributor Author

kohbis commented Jan 30, 2024

Is there anything else I should do in this PR?
(If there is no particular problem, I would like to add YARD to other instrumentation options.)

Copy link
Collaborator

@arielvalentin arielvalentin left a comment

Choose a reason for hiding this comment

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

Even thought I really like this, it turns out my suggestion to add documentation for individual options ended up confusing people.

Sorry about that.

We'll eventually be putting all of the configurations as class level docs to eliminate any confusion.

Thank you again for taking the time to implement my suggestions and sorry for the inconvenience.

@kohbis
Copy link
Contributor Author

kohbis commented Jan 31, 2024

@arielvalentin So should I move it to the class level documentation like #834 for now?

@arielvalentin
Copy link
Collaborator

Yes please.

I sincerely apologize for having mislead you the first time around.

@kohbis
Copy link
Contributor Author

kohbis commented Jan 31, 2024

@arielvalentin Moved to Class level. Could you please check 🙏 9ea801a

スクリーンショット 2024-01-31 21 32 43 スクリーンショット 2024-01-31 21 32 54

@arielvalentin
Copy link
Collaborator

@robbkidd may I ask for your review here?

@kaylareopelle kaylareopelle self-requested a review February 6, 2024 17:47
kohbis and others added 2 commits February 7, 2024 10:24
…kiq.rb

Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
…kiq/instrumentation.rb

Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
@kohbis
Copy link
Contributor Author

kohbis commented Feb 7, 2024

@kaylareopelle Thank you for your review. I've committed suggestions

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

🎉

@arielvalentin arielvalentin merged commit d70068f into open-telemetry:main Feb 8, 2024
49 checks passed
@kohbis kohbis deleted the fix-doc-for-sidekiq-options branch February 8, 2024 06:49
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.

4 participants