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

Adding TypeScript to "Getting Started" #1800

Closed

Conversation

kaiwalyakoparkar
Copy link
Contributor

closes #1799

@kaiwalyakoparkar kaiwalyakoparkar marked this pull request as ready for review October 5, 2022 16:33
@kaiwalyakoparkar kaiwalyakoparkar requested review from a team as code owners October 5, 2022 16:33
Copy link
Member

@svrnm svrnm left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together, a few remarks

Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

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

See inline comments, thanks.

Comment on lines 43 to 55
{{< tabs TypeScript JavaScript >}}

{{< tab >}}
tsc --init
npm install --save @opentelemetry/api @opentelemetry/sdk-trace-web @opentelemetry/instrumentation-document-load @opentelemetry/context-zone
{{< /tab >}}

{{< tab >}}
npm init -y
npm install --save @opentelemetry/api @opentelemetry/sdk-trace-web @opentelemetry/instrumentation-document-load @opentelemetry/context-zone
```
{{< /tab >}}

{{< /tabs >}}
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Don't use tabs here. The steps to install the required NPM packages will be the same for TS and JS.
  • Drop the --save argument, since npm install saves the installed packages by default.
  • Drop the npm init -y, AFAIK, you don't need it for this simple example app.
  • The tsc command has nothing to do with Installation, which is the subject of this section. Instead, in the next section, mention it as an extra step for TS developers.

Copy link
Member

Choose a reason for hiding this comment

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

Drop the npm init -y, AFAIK, you don't need it for this simple example app.

I introduced that a while back into the nodejs getting started because I had a node_modules in a parent directory and node is then putting everything there instead of the local directory. Although this is expected behaviour by npm, it's confusing, having a basic package.json fixes that. The alternative is echo {} > package.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will just keep the npm init -y and tsc --init commands for now

Copy link
Contributor

Choose a reason for hiding this comment

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

I introduced that a while back into the nodejs getting started because I had a node_modules in a parent directory and node is then putting everything there instead of the local directory. Although this is expected behaviour by npm, it's confusing, having a basic package.json fixes that.

How likely is it that a first-time user will have a node_modules folder in the parent directory? I'd prefer that we drop the npm init -y command, but I'm not strongly against it.

@kaiwalyakoparkar - all of the other points I made are still relevant. I'll point this out again in my next review.

@kaiwalyakoparkar
Copy link
Contributor Author

Thank you so much for the detailed review @svrnm and @chalin. I will do the requested changes shortly

@svrnm
Copy link
Member

svrnm commented Oct 7, 2022

Thank you so much for the detailed review @svrnm and @chalin. I will do the requested changes shortly

Thanks @kaiwalyakoparkar! As it turned out this is a much bigger change than I have anticipated in the beginning, so thanks for going back & forth with us on that!

@cartermp
Copy link
Contributor

cartermp commented Oct 8, 2022

Yes, thank you @kaiwalyakoparkar for your patience and work here

@svrnm
Copy link
Member

svrnm commented Oct 19, 2022

@kaiwalyakoparkar, we are getting closer:) Just found a orphaned space, but beyond that it looks good to me.

@kaiwalyakoparkar
Copy link
Contributor Author

@kaiwalyakoparkar, we are getting closer:) Just found a orphaned space, but beyond that it looks good to me.

Thank you, resolved it :D

@svrnm
Copy link
Member

svrnm commented Oct 19, 2022

@chalin, any more remarks/concern?

Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

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

@svrnm - won't have time to re-review. I trust that the changes I suggested were done. If you're happy with the current stat of the page, then you have my vote too.

Thanks all!

@svrnm
Copy link
Member

svrnm commented Oct 19, 2022

@svrnm - won't have time to re-review. I trust that the changes I suggested were done. If you're happy with the current stat of the page, then you have my vote too.

Sure! I am happy with it, and we can build on top of it, keen to get some end-user feedback how they like it.

Thanks all!

+1 and especially, once again thanks @kaiwalyakoparkar , amazing work!

@svrnm
Copy link
Member

svrnm commented Oct 19, 2022

why is EasyCLA pending? @open-telemetry/docs-approvers

@cartermp
Copy link
Contributor

Ugh, damn you easycla

@chalin
Copy link
Contributor

chalin commented Oct 19, 2022

/easycla

@chalin
Copy link
Contributor

chalin commented Oct 19, 2022

@austinlparker @cartermp - what was the / command we used to put into comments to kick re-start the easy CLA check?

/cla

@cartermp
Copy link
Contributor

Wouldn't know, sadly.

@chalin
Copy link
Contributor

chalin commented Oct 19, 2022

/easycla

@chalin
Copy link
Contributor

chalin commented Oct 19, 2022

Apparently it's meant to be /easycla but that doesn't seem to be having an effect.

Just to confirm, @kaiwalyakoparkar, you did sign the CLA, right?

@kaiwalyakoparkar
Copy link
Contributor Author

Apparently it's meant to be /easycla but that doesn't seem to be having an effect.

Just to confirm, @kaiwalyakoparkar, you did sign the CLA, right?

I guess yes (because it I am not getting any option to do either)
Img

@svrnm
Copy link
Member

svrnm commented Oct 20, 2022

@kaiwalyakoparkar can you re-raise the PR? maybe that helps 😞

@chalin
Copy link
Contributor

chalin commented Oct 20, 2022

Maybe start by rebasing, and doing a force-push, that might kick-start a new EasyCLA check cycle.

@cartermp cartermp closed this Oct 20, 2022
@cartermp cartermp reopened this Oct 20, 2022
@cartermp
Copy link
Contributor

close/re-open was a common fix for this kind of stuff but it appears not to have done anything

@kaiwalyakoparkar
Copy link
Contributor Author

I will try pushing a blank commit to re-trigger the easycla

@cartermp
Copy link
Contributor

Ooof, maybe this PR is just cursed. @kaiwalyakoparkar would you be willing to submit another PR from this same branch?

@kaiwalyakoparkar
Copy link
Contributor Author

Ooof, maybe this PR is just cursed. @kaiwalyakoparkar would you be willing to submit another PR from this same branch?

Absolutely. I will close this and raise a new PR

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.

Add TypeScript to "Getting Started"
4 participants