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

[documentation] Ruby documentation audit #772

Merged
merged 4 commits into from
Jul 15, 2019
Merged

Conversation

apigirl
Copy link
Contributor

@apigirl apigirl commented Jun 26, 2019

This is my audit to make sure that everything that exists currently in https://docs.datadoghq.com/tracing/setup/ruby/ is added here. Also did some small grammar and style updates to make sure this doc reflects well into the documentation site.

Staging link: https://docs-staging.datadoghq.com/gus/ruby-doc/tracing/setup/ruby/, created in this PR.

The staging link reflects what is currently in this file and will update once this PR is merged in.

@apigirl apigirl added the docs Involves documentation label Jun 26, 2019
@apigirl apigirl requested review from delner and ruthnaebeck June 26, 2019 21:51
@delner delner added this to the 0.26.0 milestone Jun 27, 2019
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Some minor corrections and other suggestions. Otherwise looks pretty good!

docs/GettingStarted.md Outdated Show resolved Hide resolved
docs/GettingStarted.md Outdated Show resolved Hide resolved
docs/GettingStarted.md Outdated Show resolved Hide resolved
docs/GettingStarted.md Outdated Show resolved Hide resolved
docs/GettingStarted.md Outdated Show resolved Hide resolved
docs/GettingStarted.md Outdated Show resolved Hide resolved
@delner delner assigned delner and apigirl and unassigned delner Jul 11, 2019
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the update @apigirl! 👍

@delner delner modified the milestones: 0.26.0, 0.25.1 Jul 15, 2019
@delner delner merged commit fad83cd into DataDog:master Jul 15, 2019
ivoanjo added a commit that referenced this pull request Feb 24, 2023
**What does this PR do?**:

This PR adds the following tip to the error message that customers
see when trying to enable profiling but the `pkg-config` system tool
is missing:

> (Tip: When fixing this, ensure `pkg-config` is installed **before**
> running `bundle install`, and remember to clear any installed gems
> cache).

We've had a couple of customers so far run into this issue -- they
install `pkg-config`, and can see it running on their container, but
they still see the error, because when `bundle install` runs,
the tool is not there yet.

Hopefully this tip will avoid other customers running into this
issue.

**Motivation**:

Improve customer UX when enabling the profiler.

**Additional Notes**:

I've been considering reimplementing what we need out of `pkg-config`
so that we stop requiring this tool but for now hopefully this
reduces the number of frustrated customers due to this problem.

**How to test the change?**:

The easiest way to test this is to use one of our development
Ruby images, and just delete `pkg-config` from it using
``rm `which pkg-config` ``.

If then you run `bundle exec rake clean compile` and then try
to run the profiler, you should see the error popping up as a log:

```
$ DD_PROFILING_ENABLED=true bundle exec ddtracerb exec ruby -e "sleep"
W, [2023-02-24T10:33:59.671680 #772]  WARN -- ddtrace: [ddtrace]
Profiling was requested but is not supported, profiling disabled:
Your ddtrace installation is missing support for the Continuous
Profiler because the `pkg-config` system tool is missing. This issue
can usually be fixed by installing one of the following: the
`pkg-config` package on Homebrew and Debian/Ubuntu-based Linux; the
`pkgconf` package on Arch and Alpine-based Linux; the
`pkgconf-pkg-config` package on Fedora/Red Hat-based Linux. (Tip:
When fixing this, ensure `pkg-config` is installed **before**
running `bundle install`, and remember to clear any installed gem
caches). For help solving this issue, please contact Datadog support
at <https://docs.datadoghq.com/help/>. You can also check out the
Continuous Profiler troubleshooting page at
<https://dtdg.co/ruby-profiler-troubleshooting>.
```
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.

2 participants