Prettier: switch to single-quotes by default (#2377)
This commit is contained in:
parent
bd87a9cf6b
commit
11eca5d5a2
|
|
@ -18,7 +18,7 @@ $nbsp: \00A0;
|
||||||
content: fa-content($nbsp + $fa-var-external-link-alt);
|
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 {
|
a.external-link:after {
|
||||||
@include external-link-icon();
|
@include external-link-icon();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/* docsy-delta full file override: we're not tracking changes to the docsy file of the same name. */
|
/* docsy-delta full file override: we're not tracking changes to the docsy file of the same name. */
|
||||||
// cSpell:ignore cncf docsy
|
// cSpell:ignore cncf docsy
|
||||||
|
|
||||||
@import "registry";
|
@import 'registry';
|
||||||
@import "tabs";
|
@import 'tabs';
|
||||||
@import "external_link";
|
@import 'external_link';
|
||||||
|
|
||||||
.td-home {
|
.td-home {
|
||||||
.otel-logo {
|
.otel-logo {
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ $light-green: #c0f587;
|
||||||
$primary: $opentelemetry-blue;
|
$primary: $opentelemetry-blue;
|
||||||
$secondary: $opentelemetry-orange;
|
$secondary: $opentelemetry-orange;
|
||||||
$td-enable-google-fonts: false;
|
$td-enable-google-fonts: false;
|
||||||
$google_font_name: "Noto Sans";
|
$google_font_name: 'Noto Sans';
|
||||||
$google_font_family: "Noto+Sans:300,400,600,700";
|
$google_font_family: 'Noto+Sans:300,400,600,700';
|
||||||
|
|
||||||
$enable-gradients: false;
|
$enable-gradients: false;
|
||||||
$enable-rounded: true;
|
$enable-rounded: true;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
title: Final push to HTTP semantic convention stability
|
title: Final push to HTTP semantic convention stability
|
||||||
linkTitle: HTTP semantic conventions
|
linkTitle: HTTP semantic conventions
|
||||||
date: 2023-01-30
|
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
|
The OpenTelemetry community is beginning the final push to declare HTTP
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
title: Gaining JMX Metric Insights with the OpenTelemetry Java Agent
|
title: Gaining JMX Metric Insights with the OpenTelemetry Java Agent
|
||||||
linkTitle: JMX Metric Insight
|
linkTitle: JMX Metric Insight
|
||||||
date: 2023-01-17
|
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
|
[JMX](https://www.oracle.com/technical-resources/articles/javase/jmx.html) (Java
|
||||||
|
|
@ -128,10 +128,10 @@ global:
|
||||||
evaluation_interval: 10s
|
evaluation_interval: 10s
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "my-kafka-broker"
|
- job_name: my-kafka-broker
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["host.docker.internal:9464"]
|
- targets: [host.docker.internal:9464]
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run the command below to deploy Prometheus on Docker:
|
Then run the command below to deploy Prometheus on Docker:
|
||||||
|
|
@ -207,7 +207,7 @@ rules:
|
||||||
metric: kafka.message.count
|
metric: kafka.message.count
|
||||||
type: counter
|
type: counter
|
||||||
desc: The number of messages received by the broker
|
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
|
Each file can consist of multiple rules. Each rule can identify a set of one or
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
title: Opentelemetry PHP Beta Release
|
title: Opentelemetry PHP Beta Release
|
||||||
linkTitle: PHP Beta Release
|
linkTitle: PHP Beta Release
|
||||||
date: 2023-01-30
|
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
|
The OpenTelemetry PHP SIG is very excited to announce the release of
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
title: Submitting Your First Conference Talk
|
title: Submitting Your First Conference Talk
|
||||||
linkTitle: Submitting a CFP
|
linkTitle: Submitting a CFP
|
||||||
date: 2023-02-10
|
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/
|
canonical_url: https://joshuamlee.com/submitting-your-first-conference-talk/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -234,10 +234,10 @@ receivers:
|
||||||
prometheus:
|
prometheus:
|
||||||
config:
|
config:
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "otel-collector"
|
- job_name: otel-collector
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["localhost:8888"]
|
- targets: [localhost:8888]
|
||||||
|
|
||||||
# Data sources: traces
|
# Data sources: traces
|
||||||
zipkin:
|
zipkin:
|
||||||
|
|
@ -301,7 +301,7 @@ processors:
|
||||||
resource:
|
resource:
|
||||||
attributes:
|
attributes:
|
||||||
- key: cloud.zone
|
- key: cloud.zone
|
||||||
value: "zone-1"
|
value: zone-1
|
||||||
action: upsert
|
action: upsert
|
||||||
- key: k8s.cluster.name
|
- key: k8s.cluster.name
|
||||||
from_attribute: k8s-cluster
|
from_attribute: k8s-cluster
|
||||||
|
|
@ -320,8 +320,8 @@ processors:
|
||||||
to_attributes:
|
to_attributes:
|
||||||
rules:
|
rules:
|
||||||
- ^\/api\/v1\/document\/(?P<documentId>.*)\/update$
|
- ^\/api\/v1\/document\/(?P<documentId>.*)\/update$
|
||||||
from_attributes: ["db.svc", "operation"]
|
from_attributes: [db.svc, operation]
|
||||||
separator: "::"
|
separator: '::'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Exporters
|
## Exporters
|
||||||
|
|
@ -358,7 +358,7 @@ exporters:
|
||||||
|
|
||||||
# Data sources: traces
|
# Data sources: traces
|
||||||
jaeger:
|
jaeger:
|
||||||
endpoint: "jaeger-all-in-one:14250"
|
endpoint: jaeger-all-in-one:14250
|
||||||
tls:
|
tls:
|
||||||
cert_file: cert.pem
|
cert_file: cert.pem
|
||||||
key_file: cert-key.pem
|
key_file: cert-key.pem
|
||||||
|
|
@ -373,7 +373,7 @@ exporters:
|
||||||
|
|
||||||
# Data sources: traces, metrics
|
# Data sources: traces, metrics
|
||||||
opencensus:
|
opencensus:
|
||||||
endpoint: "otelcol2:55678"
|
endpoint: otelcol2:55678
|
||||||
|
|
||||||
# Data sources: traces, metrics, logs
|
# Data sources: traces, metrics, logs
|
||||||
otlp:
|
otlp:
|
||||||
|
|
@ -388,12 +388,12 @@ exporters:
|
||||||
|
|
||||||
# Data sources: metrics
|
# Data sources: metrics
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: "prometheus:8889"
|
endpoint: prometheus:8889
|
||||||
namespace: "default"
|
namespace: default
|
||||||
|
|
||||||
# Data sources: metrics
|
# Data sources: metrics
|
||||||
prometheusremotewrite:
|
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)
|
# For official Prometheus (e.g. running via Docker)
|
||||||
# endpoint: 'http://prometheus:9090/api/v1/write'
|
# endpoint: 'http://prometheus:9090/api/v1/write'
|
||||||
# tls:
|
# tls:
|
||||||
|
|
@ -401,7 +401,7 @@ exporters:
|
||||||
|
|
||||||
# Data sources: traces
|
# Data sources: traces
|
||||||
zipkin:
|
zipkin:
|
||||||
endpoint: "http://localhost:9411/api/v2/spans"
|
endpoint: http://localhost:9411/api/v2/spans
|
||||||
```
|
```
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
|
|
@ -525,8 +525,8 @@ configuration. For example to use the values stored on the `DB_KEY` and
|
||||||
processors:
|
processors:
|
||||||
attributes/example:
|
attributes/example:
|
||||||
actions:
|
actions:
|
||||||
- key: "${env:DB_KEY}"
|
- key: ${env:DB_KEY}
|
||||||
action: "${env:OPERATION}"
|
action: ${env:OPERATION}
|
||||||
```
|
```
|
||||||
|
|
||||||
Use `$$` to indicate a literal `$`. For example, representing
|
Use `$$` to indicate a literal `$`. For example, representing
|
||||||
|
|
@ -535,8 +535,8 @@ Use `$$` to indicate a literal `$`. For example, representing
|
||||||
```yaml
|
```yaml
|
||||||
exporters:
|
exporters:
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: "prometheus:8889"
|
endpoint: prometheus:8889
|
||||||
namespace: "$$DataVisualization"
|
namespace: $$DataVisualization
|
||||||
```
|
```
|
||||||
|
|
||||||
### Proxy Support
|
### Proxy Support
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ following content:
|
||||||
```yaml
|
```yaml
|
||||||
dist:
|
dist:
|
||||||
name: otelcol-dev
|
name: otelcol-dev
|
||||||
description: "Basic OTel Collector distribution for Developers"
|
description: Basic OTel Collector distribution for Developers
|
||||||
output_path: ./otelcol-dev
|
output_path: ./otelcol-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,17 +60,17 @@ the following:
|
||||||
# Collector
|
# Collector
|
||||||
otel-collector:
|
otel-collector:
|
||||||
image: otel/opentelemetry-collector
|
image: otel/opentelemetry-collector
|
||||||
command: ["--config=/etc/otel-collector-config.yaml"]
|
command: [--config=/etc/otel-collector-config.yaml]
|
||||||
volumes:
|
volumes:
|
||||||
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
||||||
ports:
|
ports:
|
||||||
- "1888:1888" # pprof extension
|
- 1888:1888 # pprof extension
|
||||||
- "8888:8888" # Prometheus metrics exposed by the collector
|
- 8888:8888 # Prometheus metrics exposed by the collector
|
||||||
- "8889:8889" # Prometheus exporter metrics
|
- 8889:8889 # Prometheus exporter metrics
|
||||||
- "13133:13133" # health_check extension
|
- 13133:13133 # health_check extension
|
||||||
- "4317:4317" # OTLP gRPC receiver
|
- 4317:4317 # OTLP gRPC receiver
|
||||||
- "4318:4318" # OTLP http receiver
|
- 4318:4318 # OTLP http receiver
|
||||||
- "55679:55679" # zpages extension
|
- 55679:55679 # zpages extension
|
||||||
```
|
```
|
||||||
|
|
||||||
## Kubernetes
|
## Kubernetes
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,10 @@ receivers:
|
||||||
prometheus/own_metrics:
|
prometheus/own_metrics:
|
||||||
config:
|
config:
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "otel-collector"
|
- job_name: otel-collector
|
||||||
scrape_interval: 10s
|
scrape_interval: 10s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["0.0.0.0:8888"]
|
- targets: [0.0.0.0:8888]
|
||||||
hostmetrics:
|
hostmetrics:
|
||||||
collection_interval: 10s
|
collection_interval: 10s
|
||||||
scrapers:
|
scrapers:
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: my-microservice
|
name: my-microservice
|
||||||
annotations:
|
annotations:
|
||||||
sidecar.opentelemetry.io/inject: "true"
|
sidecar.opentelemetry.io/inject: 'true'
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: my-microservice
|
- name: my-microservice
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ cluster-name for all metrics:
|
||||||
processors:
|
processors:
|
||||||
metricstransform/clustername:
|
metricstransform/clustername:
|
||||||
transforms:
|
transforms:
|
||||||
- include: "^.*$"
|
- include: ^.*$
|
||||||
match_type: regexp
|
match_type: regexp
|
||||||
action: update
|
action: update
|
||||||
operations:
|
operations:
|
||||||
|
|
|
||||||
|
|
@ -188,9 +188,9 @@ global:
|
||||||
evaluation_interval: 1s
|
evaluation_interval: 1s
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "prometheus"
|
- job_name: prometheus
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["localhost:9090"]
|
- targets: [localhost:9090]
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, run the following docker command to set up Prometheus:
|
Next, run the following docker command to set up Prometheus:
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ spec:
|
||||||
- baggage
|
- baggage
|
||||||
sampler:
|
sampler:
|
||||||
type: parentbased_traceidratio
|
type: parentbased_traceidratio
|
||||||
argument: "1"
|
argument: '1'
|
||||||
java:
|
java:
|
||||||
env:
|
env:
|
||||||
- name: OTEL_INSTRUMENTATION_KAFKA_ENABLED
|
- name: OTEL_INSTRUMENTATION_KAFKA_ENABLED
|
||||||
|
|
@ -234,7 +234,7 @@ spec:
|
||||||
- baggage
|
- baggage
|
||||||
sampler:
|
sampler:
|
||||||
type: parentbased_traceidratio
|
type: parentbased_traceidratio
|
||||||
argument: "1"
|
argument: '1'
|
||||||
python:
|
python:
|
||||||
env:
|
env:
|
||||||
- name: OTEL_PYTHON_DISABLED_INSTRUMENTATIONS
|
- name: OTEL_PYTHON_DISABLED_INSTRUMENTATIONS
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ params:
|
||||||
url: https://github.com/open-telemetry
|
url: https://github.com/open-telemetry
|
||||||
icon: fab fa-github
|
icon: fab fa-github
|
||||||
desc: Find us on GitHub.
|
desc: Find us on GitHub.
|
||||||
- name: "Slack #opentelemetry"
|
- name: 'Slack #opentelemetry'
|
||||||
url: https://cloud-native.slack.com/archives/CJFCJHG4Q
|
url: https://cloud-native.slack.com/archives/CJFCJHG4Q
|
||||||
icon: fab fa-slack
|
icon: fab fa-slack
|
||||||
desc: >-
|
desc: >-
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"proseWrap": "always"
|
"proseWrap": "always",
|
||||||
|
"singleQuote": true
|
||||||
},
|
},
|
||||||
"textlint": {
|
"textlint": {
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue