Prettier: switch to single-quotes by default (#2377)

This commit is contained in:
Patrice Chalin 2023-02-21 17:49:18 -05:00 committed by GitHub
parent bd87a9cf6b
commit 11eca5d5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 48 additions and 47 deletions

View File

@ -18,7 +18,7 @@ $nbsp: \00A0;
content: fa-content($nbsp + $fa-var-external-link-alt);
}
.td-sidebar-nav a[target="_blank"]:after,
.td-sidebar-nav a[target='_blank']:after,
a.external-link:after {
@include external-link-icon();
}

View File

@ -1,9 +1,9 @@
/* docsy-delta full file override: we're not tracking changes to the docsy file of the same name. */
// cSpell:ignore cncf docsy
@import "registry";
@import "tabs";
@import "external_link";
@import 'registry';
@import 'tabs';
@import 'external_link';
.td-home {
.otel-logo {

View File

@ -12,8 +12,8 @@ $light-green: #c0f587;
$primary: $opentelemetry-blue;
$secondary: $opentelemetry-orange;
$td-enable-google-fonts: false;
$google_font_name: "Noto Sans";
$google_font_family: "Noto+Sans:300,400,600,700";
$google_font_name: 'Noto Sans';
$google_font_family: 'Noto+Sans:300,400,600,700';
$enable-gradients: false;
$enable-rounded: true;

View File

@ -2,7 +2,7 @@
title: Final push to HTTP semantic convention stability
linkTitle: HTTP semantic conventions
date: 2023-01-30
author: "[Trask Stalnaker](https://github.com/trask) (Microsoft)"
author: '[Trask Stalnaker](https://github.com/trask) (Microsoft)'
---
The OpenTelemetry community is beginning the final push to declare HTTP

View File

@ -2,7 +2,7 @@
title: Gaining JMX Metric Insights with the OpenTelemetry Java Agent
linkTitle: JMX Metric Insight
date: 2023-01-17
author: "[Samudraneel Dasgupta](https://github.com/Samudraneel24) (Cisco)"
author: '[Samudraneel Dasgupta](https://github.com/Samudraneel24) (Cisco)'
---
[JMX](https://www.oracle.com/technical-resources/articles/javase/jmx.html) (Java
@ -128,10 +128,10 @@ global:
evaluation_interval: 10s
scrape_configs:
- job_name: "my-kafka-broker"
- job_name: my-kafka-broker
scrape_interval: 5s
static_configs:
- targets: ["host.docker.internal:9464"]
- targets: [host.docker.internal:9464]
```
Then run the command below to deploy Prometheus on Docker:
@ -207,7 +207,7 @@ rules:
metric: kafka.message.count
type: counter
desc: The number of messages received by the broker
unit: "{messages}"
unit: '{messages}'
```
Each file can consist of multiple rules. Each rule can identify a set of one or

View File

@ -2,7 +2,7 @@
title: Opentelemetry PHP Beta Release
linkTitle: PHP Beta Release
date: 2023-01-30
author: "[Bob Strecansky](https://github.com/bobstrecansky/) (Intuit)"
author: '[Bob Strecansky](https://github.com/bobstrecansky/) (Intuit)'
---
The OpenTelemetry PHP SIG is very excited to announce the release of

View File

@ -2,7 +2,7 @@
title: Submitting Your First Conference Talk
linkTitle: Submitting a CFP
date: 2023-02-10
author: "[Josh Lee](https://github.com/joshleecreates/) (IBM)"
author: '[Josh Lee](https://github.com/joshleecreates/) (IBM)'
canonical_url: https://joshuamlee.com/submitting-your-first-conference-talk/
---

View File

@ -234,10 +234,10 @@ receivers:
prometheus:
config:
scrape_configs:
- job_name: "otel-collector"
- job_name: otel-collector
scrape_interval: 5s
static_configs:
- targets: ["localhost:8888"]
- targets: [localhost:8888]
# Data sources: traces
zipkin:
@ -301,7 +301,7 @@ processors:
resource:
attributes:
- key: cloud.zone
value: "zone-1"
value: zone-1
action: upsert
- key: k8s.cluster.name
from_attribute: k8s-cluster
@ -320,8 +320,8 @@ processors:
to_attributes:
rules:
- ^\/api\/v1\/document\/(?P<documentId>.*)\/update$
from_attributes: ["db.svc", "operation"]
separator: "::"
from_attributes: [db.svc, operation]
separator: '::'
```
## Exporters
@ -358,7 +358,7 @@ exporters:
# Data sources: traces
jaeger:
endpoint: "jaeger-all-in-one:14250"
endpoint: jaeger-all-in-one:14250
tls:
cert_file: cert.pem
key_file: cert-key.pem
@ -373,7 +373,7 @@ exporters:
# Data sources: traces, metrics
opencensus:
endpoint: "otelcol2:55678"
endpoint: otelcol2:55678
# Data sources: traces, metrics, logs
otlp:
@ -388,12 +388,12 @@ exporters:
# Data sources: metrics
prometheus:
endpoint: "prometheus:8889"
namespace: "default"
endpoint: prometheus:8889
namespace: default
# Data sources: metrics
prometheusremotewrite:
endpoint: "http://some.url:9411/api/prom/push"
endpoint: http://some.url:9411/api/prom/push
# For official Prometheus (e.g. running via Docker)
# endpoint: 'http://prometheus:9090/api/v1/write'
# tls:
@ -401,7 +401,7 @@ exporters:
# Data sources: traces
zipkin:
endpoint: "http://localhost:9411/api/v2/spans"
endpoint: http://localhost:9411/api/v2/spans
```
## Extensions
@ -525,8 +525,8 @@ configuration. For example to use the values stored on the `DB_KEY` and
processors:
attributes/example:
actions:
- key: "${env:DB_KEY}"
action: "${env:OPERATION}"
- key: ${env:DB_KEY}
action: ${env:OPERATION}
```
Use `$$` to indicate a literal `$`. For example, representing
@ -535,8 +535,8 @@ Use `$$` to indicate a literal `$`. For example, representing
```yaml
exporters:
prometheus:
endpoint: "prometheus:8889"
namespace: "$$DataVisualization"
endpoint: prometheus:8889
namespace: $$DataVisualization
```
### Proxy Support

View File

@ -84,7 +84,7 @@ following content:
```yaml
dist:
name: otelcol-dev
description: "Basic OTel Collector distribution for Developers"
description: Basic OTel Collector distribution for Developers
output_path: ./otelcol-dev
```

View File

@ -60,17 +60,17 @@ the following:
# Collector
otel-collector:
image: otel/opentelemetry-collector
command: ["--config=/etc/otel-collector-config.yaml"]
command: [--config=/etc/otel-collector-config.yaml]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "55679:55679" # zpages extension
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension
```
## Kubernetes

View File

@ -133,10 +133,10 @@ receivers:
prometheus/own_metrics:
config:
scrape_configs:
- job_name: "otel-collector"
- job_name: otel-collector
scrape_interval: 10s
static_configs:
- targets: ["0.0.0.0:8888"]
- targets: [0.0.0.0:8888]
hostmetrics:
collection_interval: 10s
scrapers:

View File

@ -171,7 +171,7 @@ kind: Pod
metadata:
name: my-microservice
annotations:
sidecar.opentelemetry.io/inject: "true"
sidecar.opentelemetry.io/inject: 'true'
spec:
containers:
- name: my-microservice

View File

@ -123,7 +123,7 @@ cluster-name for all metrics:
processors:
metricstransform/clustername:
transforms:
- include: "^.*$"
- include: ^.*$
match_type: regexp
action: update
operations:

View File

@ -188,9 +188,9 @@ global:
evaluation_interval: 1s
scrape_configs:
- job_name: "prometheus"
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]
- targets: [localhost:9090]
```
Next, run the following docker command to set up Prometheus:

View File

@ -164,7 +164,7 @@ spec:
- baggage
sampler:
type: parentbased_traceidratio
argument: "1"
argument: '1'
java:
env:
- name: OTEL_INSTRUMENTATION_KAFKA_ENABLED
@ -234,7 +234,7 @@ spec:
- baggage
sampler:
type: parentbased_traceidratio
argument: "1"
argument: '1'
python:
env:
- name: OTEL_PYTHON_DISABLED_INSTRUMENTATIONS

View File

@ -110,7 +110,7 @@ params:
url: https://github.com/open-telemetry
icon: fab fa-github
desc: Find us on GitHub.
- name: "Slack #opentelemetry"
- name: 'Slack #opentelemetry'
url: https://cloud-native.slack.com/archives/CJFCJHG4Q
icon: fab fa-slack
desc: >-

View File

@ -60,7 +60,8 @@
},
"private": true,
"prettier": {
"proseWrap": "always"
"proseWrap": "always",
"singleQuote": true
},
"textlint": {
"rules": {