Skip to content

Commit c319214

Browse files
svrnmjack-bergkaylareopelletrask
authored
Proposal: New Getting Started Documentation And Reference Application (#2427)
* Proposal: New Getting Started Documentation And Reference Application Signed-off-by: svrnm <neumanns@cisco.com> * add @jack-berg to staffing Signed-off-by: svrnm <neumanns@cisco.com> * Update projects/new-getting-started-docs-and-reference-application.md Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com> * address feedback Signed-off-by: svrnm <severin.neumann@altmuehlnet.de> * Update projects/new-getting-started-docs-and-reference-application.md Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com> * Update new-getting-started-docs-and-reference-application.md * fix markdown and cspell issues Signed-off-by: svrnm <neumanns@cisco.com> --------- Signed-off-by: svrnm <neumanns@cisco.com> Signed-off-by: svrnm <severin.neumann@altmuehlnet.de> Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com> Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com> Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
1 parent c9413fb commit c319214

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

.cspell.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ words:
196196
- pytest
197197
- raesene
198198
- reiley
199+
- rolldice
199200
- ruech
200201
- runtimes
201202
- rynn
@@ -238,5 +239,6 @@ words:
238239
- triager
239240
- triagers
240241
- teamcity
242+
- uninstrumented
241243
- vtex
242244
- yahn
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# New Getting Started Documentation and Reference Application
2+
3+
## Background and description
4+
5+
This project aims to deliver a new learning experience on [opentelemetry.io](https://opentelemetry.io) for OpenTelemetry end users, combined with a "reference application" that serves as both the foundation of this experience and a demonstration tool for SIGs to showcase feature implementations.
6+
7+
This proposal is a continuation of the following existing discussions and documents:
8+
9+
- [Restructure Language SDK & API documentation information architecture](https://github.com/open-telemetry/opentelemetry.io/discussions/4853)
10+
- [Nice to have: a tutorials section on opentelemetry.io where folks can easily access tutorials](https://github.com/open-telemetry/opentelemetry.io/discussions/4475)
11+
- [Visualizations we support in the documentation](https://github.com/open-telemetry/opentelemetry.io/discussions/5040), following up on a conversation with .NET SIG in
12+
[this issue](https://github.com/open-telemetry/opentelemetry-dotnet/pull/5779).
13+
- [Learn OpenTelemetry: New Getting Started & Best Practices](https://github.com/open-telemetry/opentelemetry.io/pull/5376)
14+
15+
### Current challenges
16+
17+
Currently, almost all languages have a "getting started" documentation on <https://opentelemetry.io/docs>. However, end users frequently report a lack of a robust, complete reference implementation that demonstrates OpenTelemetry concepts in their chosen programming language. The "getting started" guides typically focus on a quick setup experience—often using zero-code solutions like the Java Agent—and many subsequent pages lack the in-depth information needed to address specific issues that users encounter.
18+
19+
In recent years, we in SIG Comms have aimed to simplify the documentation by standardizing it across languages. While this has improved consistency, it has not fully resolved user challenges. A primary issue is that our current documentation combines best practices guides with technical references. For example, the documentation for "manual instrumentation" attempts to cover all available methods for setting up the SDK, performing tracing, capturing metrics, logging, etc., using the same sample application. Similarly, the pages on exporters list standard exporters—such as Console, OTLP, Prometheus, and ZipKin—and include Docker setup instructions. This overloads end users looking for a point to get started and also does not serve advanced users that want to dive into more technical details and solve specific
20+
problems.
21+
22+
Following [this discussion](https://github.com/open-telemetry/opentelemetry.io/discussions/4853), the [Java Documentation](https://opentelemetry.io/docs/languages/java/) was updated to focus on technical reference material. This revision better aligns it with the structure of the Specification, separating API usage ("Record Telemetry with the API") from SDK management ("Manage Telemetry with the SDK") instead of mixing multiple concepts together.
23+
24+
While we plan to apply these documentation changes across other languages, this proposal focuses on developing "best practices guides". These guides will provide an end-to-end learning journey for users, allowing them to grasp key concepts without delving into extensive details. For instance, we could focus on a single method for setting up the SDK, one approach to capturing traces, and using console and OTLP exporters, rather than covering all possible options in one place.
25+
26+
By offering a structured learning path, as outlined in this document, we aim to meet end users' need for a comprehensive reference implementation while also equipping maintainers with a tool to demonstrate feature implementations in their specific language.
27+
28+
### Goals, objectives, and requirements
29+
30+
The improved "getting started" experience for OpenTelemetry end users will consist of two parts:
31+
32+
- A reference application available in all major languages
33+
- A language agnostic test suite for spec validation (like [W3C Distributed Tracing Validation Service](https://github.com/w3c/trace-context/tree/main/test))
34+
- A guide that leads users through the process of instrumenting this reference application
35+
36+
While members of SIG Comms can create the guide, the reference application will require collaboration across SIGs. This need for cross-SIG collaboration is a key reason behind this project proposal.
37+
38+
The first step is to create a "specification" for this application. This involves defining the type of application we will use and how it should function. An example can be found in the [newrelic-opentelemetry-examples](https://github.com/newrelic/newrelic-opentelemetry-examples) repository, specifically in the [demo-app-specification.md](https://github.com/newrelic/newrelic-opentelemetry-examples/blob/main/getting-started-guides/demo-app-specification.md):
39+
40+
```markdown
41+
# Specification for the Getting Started Guide demo applications
42+
43+
## Application
44+
45+
1. Must use port 8080
46+
47+
2. User must be able to access the endpoint http://localhost:8080/fibonacci?n=[input], and endpoint should return the following JSON response:
48+
49+
- For valid input, `{"n":5,"result":5}`
50+
- For invalid input, `{"message":"n must be 1 <= n <= 90."}`
51+
```
52+
53+
This specification will outline an application that demonstrates a wide range of OpenTelemetry features. Unlike the [Demo](https://github.com/open-telemetry/opentelemetry-demo/), this will be a single, straightforward application implemented in all supported languages, with simple business logic (e.g., Fibonacci calculations or a "roll the dice" feature).
54+
55+
In the second step, this specification should be expanded to include instructions for the "Instrumentation Journey." This will outline the abstract, language-agnostic steps an end user will follow to integrate the OpenTelemetry SDK into the application, add instrumentation, export telemetry, and more.
56+
57+
Once the specification is available, each SIG that implements the API and SDK in their respective language can provide the application in both uninstrumented and instrumented forms as examples in their repository.
58+
59+
Once at least one SIG provides this application, the documentation can be updated to include the new learning experience, utilizing this application. We will leverage existing tools to [extract code excerpts](https://github.com/open-telemetry/opentelemetry.io/tree/main/tools) from external repositories and import the code directly into the website.
60+
61+
An example of how this could look can be seen in this preview of the OpenTelemetry Documentation:
62+
63+
<https://deploy-preview-5376--opentelemetry.netlify.app/docs/learn/getting-started/>
64+
65+
## Deliverables
66+
67+
- A specification for the reference application
68+
- Implementations of the reference application across all supported languages
69+
- Prose detailing the new learning experience on the OpenTelemetry website
70+
71+
## Staffing / Help Wanted
72+
73+
This project is a collaboration between SIG Communications (Docs Contributors) and the SIGs responsible for implementing the API and SDK in their respective languages. No new SIGs need to be formed; however, we do need individuals to sign up and support this effort:
74+
75+
- Staffing from SIG Communications
76+
- [@svrnm](https://github.com/svrnm) (Project Lead)
77+
78+
- Staffing from SIG Java
79+
- [@jack-berg](https://github.com/jack-berg)
80+
- [@lof000](https://github.com/lof000)
81+
82+
- Staffing from SIG Ruby
83+
- [@kaylareopelle](https://github.com/kaylareopelle)
84+
85+
- Staffing from `Language SIG 3`
86+
- `tbd`
87+
88+
- GC/TC Sponsors
89+
- [@svrnm](https://github.com/svrnm)
90+
- [@jack-berg](https://github.com/jack-berg)
91+
92+
## Timeline
93+
94+
The timeline is provided in "quarters," referring to the quarters after the project is approved.
95+
96+
- Q1: Deliver the specification for the reference application
97+
- Q2: Provide a first implementation of the reference application
98+
- Q3: Provide the tutorial on [opentelemetry.io](https://opentelemetry.io)
99+
100+
## Resources
101+
102+
Existing solutions, that can be used as a basis for the reference application:
103+
104+
- The existing `rolldice` app in the Getting Started guides at <https://opentelemetry.io>
105+
- [newrelic-opentelemetry-examples](https://github.com/newrelic/newrelic-opentelemetry-examples)
106+
- [OpenTelemetry instrumentation workshops](https://github.com/honeycombio/workshop-advanced-instrumentation) by Honeycomb
107+
108+
## Project Board
109+
110+
to be created
111+
112+
## SIG Meetings and Other Info
113+
114+
to be done

0 commit comments

Comments
 (0)