Skip to content

Commit d899852

Browse files
authored
Merge pull request #1543 from Saran-pariyar/Saran-pariyar_branch
2 parents 146d990 + 19f2727 commit d899852

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

ARCHITECTURE.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Architecture
22

3-
This document aims to give a high level overview of the
3+
This document aims to give a high-level overview of the
44
Glean JavaScript SDK (aka Glean.js) architecture.
55

66
This is a great place to start for newcomers to the project.
@@ -11,8 +11,7 @@ the [Glean.js developer documentation](docs/README.md).
1111
## Context
1212

1313
The Glean JavaScript SDK is part of [the Glean project](https://docs.telemetry.mozilla.org/concepts/glean/glean.html).
14-
An end-to-end data collection platform developed by Mozilla and primarily targeting Mozilla products
15-
across multiple platforms.
14+
An end-to-end data collection platform developed by Mozilla and primarily targeting Mozilla products across multiple platforms.
1615

1716
Glean provides multiple client SDKs for different programming languages and platforms.
1817
One of the aspects that guide Glean SDK development is cross-platform consistency and the Glean
@@ -30,8 +29,8 @@ Firefox Desktop SDK in the [mozilla-central](https://hg.mozilla.org/mozilla-cent
3029
On a very high level a Glean SDK is a library which exposes APIs for users to record
3130
structured data and submit that data in an (again) structured format to a specific endpoint.
3231

33-
Users cannot simply record arbitrary data though. The Glean SDKs expose specialized metrics APIs for
34-
different collection needs. The SDK is responsible to validating that the data given by a user is in
32+
Users cannot simply record arbitrary data, though. The Glean SDKs expose specialized metrics APIs for
33+
different collection needs. The SDK is responsible for validating that the data given by a user is in
3534
the correct format and only then recording it (or recording an error in case the data provided is
3635
not correct).
3736

@@ -114,11 +113,9 @@ for all platforms, because each platform provides different APIs for these tasks
114113
for useless platform specific code not to bloat the size of the library on each platform,
115114
the `platform/` module contains implementations of identical interfaces in different platforms.
116115

117-
This allows the pattern of only importing the necessary implementation of these modules on each
118-
platform. It also makes testing easier, because the exact same suite of tests can run for each of
119-
the platform specific implementation, thus guaranteeing that each modules works exactly the same
120-
in all platforms.
121-
116+
This allows the pattern of only importing the necessary implementation of these modules on each platform.
117+
It also makes testing easier, because the exact same suite of tests can be run for each of the platform-specific implementations,
118+
thus guaranteeing that each module works exactly the same on all platforms.
122119
### `plugins/`
123120

124121
The `plugins/` folder contains the Glean.js' plugins code.

automation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ npm run size:report
4646
4747
### Docs
4848

49-
Builds the Glean.js library for all the targeted platforms and document
49+
Builds the Glean.js library for all the targeted platforms and documents
5050
the size of the library and of each extra metric and plugin.
5151

5252
To run the script without updating the documentation:
@@ -55,7 +55,7 @@ To run the script without updating the documentation:
5555
npm run size:docs:dry
5656
```
5757

58-
To run the script and update the documentation.
58+
To run the script and update the documentation:
5959

6060
```
6161
npm run size:docs

docs/guides/adding_a_new_metric_type.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ awaiting or callbacks.
123123

124124
This is to say: any recording action must be wrapped in a `Glean.dispatcher.launch` block.
125125

126-
Continuing on the String metric type example,
127-
let's look at how a simple string recording function will look like.
126+
Continuing with the String metric type example,
127+
let's look at what a simple string recording function will look like.
128128

129129
```ts
130130
function set(value: string): void {
@@ -227,7 +227,7 @@ a new release of Glean.js is made.
227227

228228
## Other
229229

230-
Even after your are done with all the above steps, you still need to prepare other parts of the Glean
230+
Even after you are done with all the above steps, you still need to prepare other parts of the Glean
231231
ecosystem in order for you to be done implementing your new metric type.
232232

233233
### glean_parser

docs/guides/update_glean_parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ To update the version of glean_parser used by the Glean.js, run the `bin/update-
66
bin/update-glean-parser-version.sh 1.28.3
77
```
88

9-
This will update the version in all the required places and create a commit with the changes. After that you just need to create a pull request with the changes.
9+
This will update the version in all the required places and create a commit with the changes. After that, you just need to create a pull request with the changes.
1010

1111
No further action is required.

glean/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import log, { LoggingLevel } from "./core/log.js";
1515

1616
const LOG_TAG = "CLI";
1717

18-
// The name of the directory which contains / will contain the Python virtual environment
18+
// The name of the directory which contains/will contain the Python virtual environment
1919
// used to run the glean-parser.
2020
//
2121
// > When a virtual environment is active, the VIRTUAL_ENV environment variable
22-
// > is set to the path of the virtual environment. This can be used to check if
22+
// > is set to the virtual environment's path. This can be used to check if
2323
// > one is running inside a virtual environment.
2424
//
2525
// See: https://docs.python.org/3/library/venv.html

0 commit comments

Comments
 (0)