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

Fix Tracer#trace start_time type documentation #1268

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Nov 30, 2020

Fixes #1264

This PR updates the required type for the Datadog::Tracer#trace(start_time:) option.

The type required is a Ruby Time object, while the documentation erroneously requested an Integer.

As as follow up, I suggest we move most of this documentation to our published API docs: https://www.rubydoc.info/github/DataDog/dd-trace-rb/Datadog/Tracer#trace-instance_method. This allows us to keep the documentation close to implementation, and prevent information drift between the two.

Fixes #1264

This PR updates the required type for the `Datadog::Tracer#trace(start_time:)` option.

The type required is a Ruby [Time](https://ruby-doc.org/stdlib-2.7.2/libdoc/time/rdoc/Time.html) object, while the documentation erroneously requested an `Integer`.

As as follow up, I suggest we move most of this documentation to our published API docs: https://www.rubydoc.info/github/DataDog/dd-trace-rb/Datadog/Tracer#trace-instance_method. This allows us to keep the documentation close to implementation, and prevent information drift between the two.
@marcotc marcotc added the docs Involves documentation label Nov 30, 2020
@marcotc marcotc self-assigned this Nov 30, 2020
@marcotc marcotc requested a review from a team November 30, 2020 21:05
@marcotc marcotc merged commit 9a8a383 into master Dec 2, 2020
@marcotc marcotc deleted the docs/start_time_type branch December 2, 2020 16:49
@github-actions github-actions bot added this to the 0.44.0 milestone Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Involves documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

start_time type doesn't match code
2 participants