-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Roll the dice example for elixir/phoenix #2685
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very preliminary feedback: drop the aliases
entries, they aren't needed.
content/en/docs/instrumentation/erlang/getting-started/rebar.md
Outdated
Show resolved
Hide resolved
content/en/docs/instrumentation/erlang/getting-started/phoenix.md
Outdated
Show resolved
Hide resolved
content/en/docs/instrumentation/erlang/getting-started/_index.md
Outdated
Show resolved
Hide resolved
cd4e15a
to
b238d57
Compare
b238d57
to
835c5ca
Compare
content/en/docs/instrumentation/erlang/getting-started/phoenix.md
Outdated
Show resolved
Hide resolved
content/en/docs/instrumentation/erlang/getting-started/phoenix.md
Outdated
Show resolved
Hide resolved
content/en/docs/instrumentation/erlang/getting-started/phoenix.md
Outdated
Show resolved
Hide resolved
content/en/docs/instrumentation/erlang/getting-started/phoenix.md
Outdated
Show resolved
Hide resolved
Had a few comments but overall this looks great. |
👏👏 thanks for doing this @marcdel! |
@marcdel, @tsloughter not knowing enough about erlang/elixir, so I leave that to you. I have one question/concern I'd like to clarify: One of the goals we try to accomplish with standardizing on one application for "Getting Started" is to get consistency across the docs. While this PR accomplishes that partially I still see some inconsistencies I'd like to see if we can resolve them: There are now 2 kinds of getting started, which is confusing. Would it be possible to make the "Phoenix" one with the roll the dice app the REAL getting started page and take whatever is important from the existing Getting Started and merge it and put everything else into pages where it fits (e.g. exporters have their own page across the languages) Also, if I look at the Phoenix app there is some differences to other languages. Would it be possible to structure the page in a similar way (e.g. start with a ready to use roll the dice app and instrument from there) Note: We can accomplish some/all of that in follow-up PRs but I wanted to clarify that. |
@svrnm ok, yea, I agree about starting from a working roll dice app and then instrument that. The README.md of the example can have any setup instructions about how the project was created. What do you think @marcdel ? I think we can also move stuff into a single |
@marcdel this is really great work so I am eager to merge this in, please let us know if and where you might need assistance, if any of our comments or change requests are unclear/a too big ask, we can clarify and help with the heavy lifting. |
@svrnm Does it make sense to combine these two pages and get this merged in, then address those other bits? I'd rather add pages than remove ones someone might already be linking to. FWIW I was following the javascript one which has node as a child of the getting started page and includes all the endpoint setup bits and stuff. Seems like the Go one is maybe a more idiomatic example (if we pretend it's doing dice roll instead of fibonacci). I don't have any strong feelings on organization so I'm happy to do whatever! The one thing that is a little awkward is that the current getting started supports both erlang and elixir. My assumption is that it's not possible to add phoenix to an erlang application, but I could totally be wrong (cc @tsloughter), so while there is quite a bit of overlap in setup I'm not quite sure how to transition between the two. Do we want to support standard non-phoenix applications in the docs? It's a significant subset of use cases, so it feels like handling that separately somehow could be worthwhile. Not sure how that fits into the existing structure though, and I get wanting there to be consistency across the projects. |
fbfad5e
to
028b425
Compare
028b425
to
f75027a
Compare
Okie dokie, I've moved the Phoenix stuff into the main Getting Started page and shuffled some things around such that it hopefully makes sense. I also moved the setup bits over to the readme of open-telemetry/opentelemetry-erlang-contrib#173, and edited the surrounding bits to assume all the setup is already done. |
Thanks. I think this will work for now and I'll merge together the Phoenix and Erlang getting started once I write the Erlang part. So it won't have the section about creating a new project anymore once I do that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @marcdel, this is great. I'll merge this assuming nobody else has any objections in a day or so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing all of this work @marcdel, very much appreciated!
heavily cribbed from #2624
Preview: https://deploy-preview-2685--opentelemetry.netlify.app/docs/instrumentation/erlang/getting-started/