Skip to content

Commit

Permalink
update for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
cartersocha committed Dec 11, 2023
1 parent d113ecb commit 97bcca9
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 60 deletions.
14 changes: 7 additions & 7 deletions assets/js/registrySearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ if (pathName.includes('registry')) {
if (selectedLanguage !== 'all') {
document.getElementById('languageDropdown').textContent =
document.getElementById(
`language-item-${selectedLanguage}`,
`language-item-${selectedLanguage}`
).textContent;
}
if (selectedComponent !== 'all') {
document.getElementById('componentDropdown').textContent =
document.getElementById(
`component-item-${selectedComponent}`,
`component-item-${selectedComponent}`
).textContent;
}
updateFilters();
Expand Down Expand Up @@ -97,8 +97,8 @@ function populateResults(results) {
snippetHighlights.push(
match.value.substring(
match.indices[0][0],
match.indices[0][1] - mvalue.indices[0][0] + 1,
),
match.indices[0][1] - mvalue.indices[0][0] + 1
)
);
}
});
Expand All @@ -110,7 +110,7 @@ function populateResults(results) {

// Pull template from hugo template definition
let templateDefinition = document.querySelector(
'#search-result-template',
'#search-result-template'
).innerHTML;

// Replace values from template with search results
Expand Down Expand Up @@ -176,7 +176,7 @@ if (pathName.includes('registry')) {
evt.target.textContent;
setInput('language', val);
updateFilters();
}),
})
);
typeList.forEach((element) =>
element.addEventListener('click', function (evt) {
Expand All @@ -186,7 +186,7 @@ if (pathName.includes('registry')) {
evt.target.textContent;
setInput('component', val);
updateFilters();
}),
})
);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Zipkin backend. The following steps are required to be done.
add the following text

```html
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<title>PHP Test Page</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is a very simple guide, if you'd like to see more complex examples go to
Copy the following file into an empty directory and call it `index.html`.

```html
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
22 changes: 11 additions & 11 deletions content/en/docs/instrumentation/js/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const resource = Resource.default().merge(
new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'service-name-here',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
}),
})
);

const provider = new WebTracerProvider({
Expand Down Expand Up @@ -390,7 +390,7 @@ const resource = Resource.default().merge(
new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'service-name-here',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
}),
})
);

const provider = new WebTracerProvider({
Expand Down Expand Up @@ -442,7 +442,7 @@ import opentelemetry from '@opentelemetry/api';

const tracer = opentelemetry.trace.getTracer(
'instrumentation-scope-name',
'instrumentation-scope-version',
'instrumentation-scope-version'
);

// You can now use a 'tracer' to do tracing!
Expand All @@ -456,7 +456,7 @@ const opentelemetry = require('@opentelemetry/api');

const tracer = opentelemetry.trace.getTracer(
'instrumentation-scope-name',
'instrumentation-scope-version',
'instrumentation-scope-version'
);

// You can now use a 'tracer' to do tracing!
Expand Down Expand Up @@ -881,7 +881,7 @@ tracer.startActiveSpan(
// do some work...

span.end();
},
}
);
```

Expand All @@ -894,7 +894,7 @@ function rollTheDice(rolls: number, min: number, max: number) {
{ attributes: { 'dicelib.rolls': rolls.toString() } },
(span: Span) => {
/* ... */
},
}
);
}
```
Expand All @@ -908,7 +908,7 @@ function rollTheDice(rolls, min, max) {
{ attributes: { 'dicelib.rolls': rolls.toString() } },
(span) => {
/* ... */
},
}
);
}
```
Expand Down Expand Up @@ -1182,7 +1182,7 @@ const doWork = (parent, i) => {
// in the context, then use the resulting context to create a child span.
const ctx = opentelemetry.trace.setSpan(
opentelemetry.context.active(),
parent,
parent
);
const span = tracer.startSpan(`doWork:${i}`, undefined, ctx);

Expand Down Expand Up @@ -1280,7 +1280,7 @@ const resource = Resource.default().merge(
new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'dice-server',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
}),
})
);

const metricReader = new PeriodicExportingMetricReader({
Expand Down Expand Up @@ -1318,7 +1318,7 @@ const resource = Resource.default().merge(
new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'service-name-here',
[SemanticResourceAttributes.SERVICE_VERSION]: '0.1.0',
}),
})
);

const metricReader = new PeriodicExportingMetricReader({
Expand Down Expand Up @@ -1573,7 +1573,7 @@ const httpServerResponseDuration = myMeter.createHistogram(
description: 'A distribution of the HTTP server response times',
unit: 'milliseconds',
valueType: ValueType.INT,
},
}
);
```

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/instrumentation/js/propagation.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let span = tracer.startSpan(
{
attributes: {},
},
activeContext,
activeContext
);

// Set the created span as active in the deserialized context.
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/instrumentation/js/serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const collectorOptions = {
};

const spanProcessor = new BatchSpanProcessor(
new OTLPTraceExporter(collectorOptions),
new OTLPTraceExporter(collectorOptions)
);

provider.addSpanProcessor(spanProcessor);
Expand Down Expand Up @@ -255,7 +255,7 @@ const collectorOptions = {
};
const spanProcessor = new BatchSpanProcessor(
new OTLPTraceExporter(collectorOptions),
new OTLPTraceExporter(collectorOptions)
);
provider.addSpanProcessor(spanProcessor);
Expand Down
18 changes: 9 additions & 9 deletions content/en/docs/security/security-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ branch at the moment of the release. For instance, if the latest version is
Security fixes are given priority and might be enough to cause a new version to
be released. Each repository is entitled to establish their own complementary
processes. SIG-Security in conjunction with the TC can advise in case
clarifications are required.
clarifications are required.

## Disclosures

Expand All @@ -49,9 +49,9 @@ If you know of a publicly disclosed security vulnerability please IMMEDIATELY
email
[[email protected]](mailto:[email protected])
to inform the Security Response Committee (SRC) about the vulnerability so they
may start the patch, release, and communication process. Please include any relevant
information about current public exploitations of this vulnerability if known to
help with scoring and priortization.
may start the patch, release, and communication process. Please include any
relevant information about current public exploitations of this vulnerability if
known to help with scoring and prioritization.

The TC should receive the message and re-direct it to the relevant repo

Check failure on line 56 in content/en/docs/security/security-response.md

View workflow job for this annotation

GitHub Actions / TEXT linter

textlint terminology error

Incorrect usage of the term: “repo”, use “repository” instead
maintainers for ownership. If possible the repo maintainers will engage and ask

Check failure on line 57 in content/en/docs/security/security-response.md

View workflow job for this annotation

GitHub Actions / TEXT linter

textlint terminology error

Incorrect usage of the term: “repo”, use “repository” instead
Expand All @@ -69,7 +69,8 @@ The Fix Team is made up of the relevant repo maintainers.

### TC Role

- A member of the TC will need to review the proposed CVSS score and severity from the Fix Team
- A member of the TC will need to review the proposed CVSS score and severity
from the Fix Team
- Acknowledge when a proposed fix is completed

### Fix Development Process
Expand Down Expand Up @@ -112,8 +113,7 @@ OTel relies on GitHub tooling to notify the affected repositories and publish a
security advisory. GitHub will publish the CVE to the CVE List, broadcast the
Security Advisory via the GitHub Advisory Database, and send security alerts to
all repositories that use the package and have alerts on. The CVE will also be
added to the [OTel website's CVE
feed](security/cve/).
added to the [OTel website's CVE feed](security/cve/).

#### Fix Release Day

Expand All @@ -122,8 +122,8 @@ notify their communities via Slack.

## Severity

The Fix Team evaluates vulnerability severity on a case-by-case
basis, guided by CVSS 3.1 and is subject to TC review.
The Fix Team evaluates vulnerability severity on a case-by-case basis, guided by
CVSS 3.1 and is subject to TC review.

## Retrospective

Expand Down
2 changes: 1 addition & 1 deletion gulp-src/_md-rules/trim-code-block-and-unindent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function processToken(token) {
(line) =>
line.trim().length === 0
? '' // Blank-only lines
: line.substring(minIndent), // Unindent
: line.substring(minIndent) // Unindent
);
fixedLines = trimBlankLinesFromArray(fixedLines);
const fixedContent = fixedLines.join('\n');
Expand Down
8 changes: 4 additions & 4 deletions gulp-src/prune.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function pruneTask() {
const entriesWith4xxStatus = Object.keys(entries)
.map((url) => [url, entries[url].LastSeen, entries[url].StatusCode])
.filter(
([url, date, statusCode]) => 400 <= statusCode && statusCode <= 499,
([url, date, statusCode]) => 400 <= statusCode && statusCode <= 499
);

var msg = `INFO: ${entriesWith4xxStatus.length} entries with 4XX status.`;
Expand Down Expand Up @@ -106,14 +106,14 @@ async function pruneTask() {
`INFO: ${
pruneCandidatesByDate__sorted.length
} entries as prune candidates for before-date ${formattedDate(
beforeDate,
)}.`,
beforeDate
)}.`
);
}

if (n == 0) {
console.log(
`WARN: num is ${n} so no entries will be pruned by date. Specify number of entries to prune as --num <n>.`,
`WARN: num is ${n} so no entries will be pruned by date. Specify number of entries to prune as --num <n>.`
);
if (numEntriesWith4xxStatus == 0) return;
}
Expand Down
Loading

0 comments on commit 97bcca9

Please sign in to comment.